Skip to content

fix: add @better-captcha/vue to external and promote to runtime dependency#3455

Merged
lizheming merged 3 commits into
codex/refactor-@waline/client-to-use-better-captchafrom
copilot/sub-pr-3442
Mar 1, 2026
Merged

fix: add @better-captcha/vue to external and promote to runtime dependency#3455
lizheming merged 3 commits into
codex/refactor-@waline/client-to-use-better-captchafrom
copilot/sub-pr-3442

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 1, 2026

@better-captcha/vue was imported at runtime in Captcha.ts and CommentBox.vue but omitted from external in the slim/component rollup builds, causing it to be bundled into slim.js/component.js. It was also only listed as a devDependency, inconsistent with its actual runtime usage.

Changes

  • rollup.config.ts: Add @better-captcha/vue to external in both slim and component build configs, consistent with how vue, @vueuse/core, and other runtime deps are treated
  • package.json: Promote @better-captcha/vue from devDependenciesdependencies
  • packages/server/src/middleware/dashboard.js: Fix XSS vulnerability — process.env.CAPTCHA was embedded in an inline <script> without JSON.stringify(), unlike all other env vars on adjacent lines

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: lizheming <424491+lizheming@users.noreply.github.com>
Copilot AI changed the title [WIP] WIP Address feedback on captcha flow migration fix: add @better-captcha/vue to external and promote to runtime dependency Mar 1, 2026
@lizheming lizheming marked this pull request as ready for review March 1, 2026 14:12
@lizheming lizheming merged commit d51f3ff into codex/refactor-@waline/client-to-use-better-captcha Mar 1, 2026
1 of 7 checks passed
@lizheming lizheming deleted the copilot/sub-pr-3442 branch March 1, 2026 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants