Skip to content

chore(deps): bump vue-i18n from 9.9.1 to 11.4.22 in /ui-vue3 - #1668

Open
dependabot[bot] wants to merge 1 commit into
developfrom
dependabot/npm_and_yarn/ui-vue3/vue-i18n-11.4.22
Open

dependabot[bot] wants to merge 1 commit into
developfrom
dependabot/npm_and_yarn/ui-vue3/vue-i18n-11.4.22

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Dec 5, 2026

Copy link
Copy Markdown
Contributor

Bumps vue-i18n from 9.9.1 to 11.4.22.

Release notes

Sourced from vue-i18n's releases.

v11.4.22

escapeParameter: The sanitizer now closes the elements that a translation leaves open, and removes end tags that close no element of the translation, in the same way as browsers do when the translation is rendered on the client. A <form> that the translation does not close, and <foreignObject>, <desc>, <mi> and similar SVG and MathML elements outside SVG and MathML, are turned into text. Well-formed translations are not changed. (#2793) See GHSA-786j-gfwp-vhm5.

What's Changed

🔒 Security Fixes

Full Changelog: intlify/vue-i18n@v11.4.21...v11.4.22

v11.4.21

escapeParameter: A parameter that is not a string, such as an array or an object, is now escaped after it is turned into text, in the same way as a string parameter. Message functions still receive the parameters as they are passed. (#2792) See GHSA-4fx6-3h3f-fh66.

What's Changed

🔒 Security Fixes

Full Changelog: intlify/vue-i18n@v11.4.20...v11.4.21

v11.4.20

Behavior change: a line break or a tab right after a linked key (@:key) now ends the key, as a space does. Such messages now render the linked message, and a line break that was dropped after a linked message is kept. Messages compiled at build time get this when they are compiled again with the new @intlify/message-compiler. (#2780)

What's Changed

🐛 Bug Fixes

📝️ Documentations

Full Changelog: intlify/vue-i18n@v11.4.19...v11.4.20

v11.4.19

escapeParameter: The sanitizer now reads tags and attributes in the same way as browsers do, and checks every attribute. A tag, a comment, or an element like <textarea> that is not closed at the end of a translation is turned into text, and so is <plaintext>. Some outputs change their form with the same result in the browser: < that does not start a tag becomes &lt;, and onclick= inside an attribute value is kept as it is. < in the content of <textarea>, <style> and similar elements also becomes &lt;: it looks the same in <textarea> and <title>, but stays as &lt; in <style> and <xmp>. (#2769) See GHSA-9qc3-h48f-7h96 and GHSA-7356-3q55-jvxm.

What's Changed

🔒 Security Fixes

Full Changelog: intlify/vue-i18n@v11.4.18...v11.4.19

... (truncated)

Changelog

Sourced from vue-i18n's changelog.

v11.4.22 (2026-11-17T15:32:39.779Z)

This changelog is generated by GitHub Releases

What's Changed

🔒 Security Fixes

Full Changelog: intlify/vue-i18n@v11.4.21...v11.4.22

v11.4.21 (2026-11-17T04:42:21.771Z)

This changelog is generated by GitHub Releases

What's Changed

🔒 Security Fixes

Full Changelog: intlify/vue-i18n@v11.4.20...v11.4.21

v11.4.20 (2026-11-14T07:18:43.667Z)

This changelog is generated by GitHub Releases

What's Changed

🐛 Bug Fixes

📝️ Documentations

Full Changelog: intlify/vue-i18n@v11.4.19...v11.4.20

v11.4.19 (2026-11-12T14:41:58.607Z)

This changelog is generated by GitHub Releases

... (truncated)

Commits
Maintainer changes

This version was pushed to npm by GitHub Actions, a new releaser for vue-i18n since your current version.


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Bumps [vue-i18n](https://github.com/intlify/vue-i18n/tree/HEAD/packages/vue-i18n) from 9.9.1 to 11.4.22.
- [Release notes](https://github.com/intlify/vue-i18n/releases)
- [Changelog](https://github.com/intlify/vue-i18n/blob/v11.4.22/CHANGELOG.md)
- [Commits](https://github.com/intlify/vue-i18n/commits/v11.4.22/packages/vue-i18n)

---
updated-dependencies:
- dependency-name: vue-i18n
  dependency-version: 11.4.22
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Dec 5, 2026
@sonarqubecloud

sonarqubecloud Bot commented Dec 5, 2026

Copy link
Copy Markdown

@robocanic robocanic left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

优点

  • 改动范围小,仅涉及 ui-vue3/package.json 与 ui-vue3/yarn.lock。
  • 项目已使用 Composition 模式(src/base/i18n/index.ts:38-43,legacy: false),且未发现 $tc/tc()、<i18n> 组件、v-t 等 v10+ 已移除/变更的 API;messages 中仅有简单的命名插值 {name},升级到 v11 的 API 兼容性风险较低。

Issues

Critical (Must Fix)

  1. vue-i18n@11.4.22 要求 Node >= 22,但项目构建环境均为 Node 18,导致前端构建与 CI 失败
    • 证据:CI 日志 yarn install --frozen-lockfile 报错 error vue-i18n@11.4.22: The engine "node" is incompatible with this module. Expected version ">= 22". Got "18.20.8",CI (Go 1.23 / 1.24) 与 RISC-V Build 均因此失败。
    • 受影响位置:.github/workflows/ci.yml:58、.github/workflows/riscv-build.yml:42(node-version: '18')、Dockerfile:17(node:18-alpine)、ui-vue3/README.md:28(node v18),以及 ui-vue3/package.json 中的 @tsconfig/node18。
    • 影响:合入后 CI 和镜像构建(Dockerfile 的 frontend-builder 阶段)都会在 yarn install 时失败,本地 Node 18 开发者同样无法安装依赖。
    • 建议:二选一
      a. 若决定升级,需要在同一 PR 中把 CI、RISC-V workflow、Dockerfile、README 以及 @tsconfig/node* 等统一升级到 Node >= 22,并确认 vite 5 / vitest 1 / ts-node 等工具链在 Node 22 下正常(跑 yarn build、yarn test、yarn check:i18n);
      b. 若暂不升级 Node,则不要合入此 PR,将 vue-i18n 限制在不要求 Node 22 的版本范围(例如通过 dependabot ignore 规则限制到 v9/v10 范围)。

Important (Should Fix)

  1. 缺少升级后的验证:这是跨两个大版本(9 → 11)的升级,目前 CI 在安装阶段即失败,yarn build、yarn test(含 updateByFormView.spec.ts、RuleHistoryPanel.spec.ts 等依赖 i18n 的测试)及页面中的中英文切换均未得到验证。请在修复 Node 版本问题后确认这些检查通过,并手动验证 routingRuleDomain.baseDesc/matchDesc/distributeDesc、ruleVersionDomain.latestRecordedVersionBadge 等带插值的文案渲染正常。
  2. yarn.lock 的 registry 源被整体改写:原条目使用 registry.npmmirror.com,新条目使用 registry.yarnpkg.com,lockfile 中源地址不一致,可能影响国内环境的安装速度/可用性。建议统一 registry 后再生成 lockfile(若项目约定使用 npmmirror 则保持一致)。

总体评估

暂不可合入(Not ready):依赖本身为安全修复类更新、代码层面兼容性良好,但 Node >= 22 的引擎要求与项目当前 Node 18 的 CI/Dockerfile 冲突,已导致 CI 失败;需先统一 Node 版本或放弃该升级。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant