[Snyk] Upgrade vue-i18n from 9.10.2 to 11.1.3 #68
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Snyk has created this PR to upgrade vue-i18n from 9.10.2 to 11.1.3.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 41 versions ahead of your current version.
The recommended version was released a month ago.
Issues fixed by the recommended upgrade:
SNYK-JS-CROSSSPAWN-8303230
SNYK-JS-VITE-9653016
SNYK-JS-VUEI18N-8442254
SNYK-JS-VUEI18N-9376708
SNYK-JS-INTLIFYSHARED-8442251
SNYK-JS-BABELHELPERS-9397697
SNYK-JS-BABELRUNTIME-10044504
SNYK-JS-VITE-9576207
SNYK-JS-VITE-9685035
SNYK-JS-VITE-9919777
SNYK-JS-VUEI18N-8442260
SNYK-JS-INTLIFYCOREBASE-8442262
SNYK-JS-NANOID-8492085
SNYK-JS-ROLLUP-8073097
SNYK-JS-VITE-8648411
SNYK-JS-VITE-9512410
Release notes
Package name: vue-i18n
What's Changed
🔒 Security Fixes
handleFlatJson
, about details see GHSA-p2ph-7g93-hw3mFull Changelog: v11.1.1...v11.1.2
Full Changelog: v11.1.0...v11.1.1
What's Changed
🌟 Features
ComponentCustomProperties['$i18n']
type by @ BobbieGoede in #2094📝️ Documentations
Full Changelog: v11.0.1...v11.1.0
What's Changed
⚡ Improvement Features
Full Changelog: v11.0.0...v11.0.1
We are excited to announce the release of Vue I18n v11.
We had many contributors.
Thanks for your contributing ❤️
Summary
Deprecate Legacy API mode
The Legacy API mode was the API mode compatible with v8 for Vue 2. When v9 was released, the Legacy API was provided to smooth the migration from v8 to v9.
Legacy API mode will be deprecated in v11, as previous vue-i18n releases have already provided the following to support migration to Composition API mode
For compatibility, Legacy API mode still works in v11, but will be removed entirely in v12, so Legacy API mode will not work after that version.
Deprecate Custom Directive
v-t
The advantage of
v-t
was that it could optimize performance using the vue compiler transform and the pre-translation ofvue-i18n-extension
.This feature was supported from Vue 2.
About details see the blog article
In Vue 3, due to the Composition API, the pre-translation of
vue-i18n-extension
is now limited only for global scope.In addition, Vue 3 Virtual DOM optimization has been introduced, and the optimization provided by
vue-i18n-extension
is no longer very effective. We need to require settings for SSR, the benefits of usingv-t
have disappeared. And DX of templates usingv-t
is not good. Custom directives do not work with key completion in editors (e.g. vscode).For compatibility,
v-t
mode still works in v11, but will be removed entirely in v12, sov-t
will not work after that version.Drop
tc
and$tc
for Legacy API modeThese APIs had already deprecated in warning about being dropped in v11. docs says
Vue I18n maintenance Status
Vue I18n v8 is no longer supported after 2025. Vue I18n v9 and Vue I18n v10 is in maintenance mode after 2025 July.
With the release of Vue I18n v11, that version will become mainstream.
The maintenance detail status of Vue I18n v9 and Vue I18n v10 is as follows:
You can check the maintenance status on the docs
❗ Braeking Changes
$tc
andtc
by @ kazupon in #2017v-t
custom directive by @ kazupon in #2045⚡ Improvement Features
tm
function should acceptDefineLocaleMessage
key type by @ BobbieGoede in #2014🔒 Security Fixes
📝️ Documentations
👋 New Contributors
Full Changelog: v10.0.4...v11.0.0
What's Changed
🔒 Security Fixes
handleFlatJson
, about details see GHSA-p2ph-7g93-hw3mFull Changelog: v10.0.5...v10.0.6
What's Changed
🔒 Security Fixes
handleFlatJson
, about details see GHSA-p2ph-7g93-hw3mFull Changelog: v9.14.2...v9.14.3
Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
Summary by Sourcery
Enhancements: