Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Snyk] Upgrade vue-i18n from 9.10.2 to 10.0.4 #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nerdy-tech-com-gitub
Copy link
Owner

@nerdy-tech-com-gitub nerdy-tech-com-gitub commented Dec 7, 2024

snyk-top-banner

Snyk has created this PR to upgrade vue-i18n from 9.10.2 to 10.0.4.

ℹ️ 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.


⚠️ Warning: This PR contains major version upgrade(s), and may be a breaking change.

  • The recommended version is 26 versions ahead of your current version.

  • The recommended version was released on 2 months ago.

Issues fixed by the recommended upgrade:

Issue Score Exploit Maturity
high severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-CROSSSPAWN-8303230
169 Proof of Concept
high severity Prototype Pollution
SNYK-JS-INTLIFYSHARED-8442251
169 Proof of Concept
high severity Prototype Pollution
SNYK-JS-VUEI18N-8442254
169 Proof of Concept
medium severity Cross-site Scripting (XSS)
SNYK-JS-INTLIFYCOREBASE-8442262
169 Proof of Concept
medium severity Cross-site Scripting (XSS)
SNYK-JS-ROLLUP-8073097
169 Proof of Concept
medium severity Cross-site Scripting (XSS)
SNYK-JS-VUEI18N-8442260
169 Proof of Concept
Release notes
Package name: vue-i18n
  • 10.0.4 - 2024-10-06

    What's Changed

    🐛 Bug Fixes

    📝️ Documentations

    New Contributors

    Full Changelog: v10.0.3...v10.0.4

  • 10.0.3 - 2024-09-22

    What's Changed

    🐛 Bug Fixes

    • fix(petite-vue-i18n): cannot register correctly message resolver and locale fallbacker by @ kazupon in #1967

    📝️ Documentations

    • docs: add unplugin-vue-i18n setting for petite-vue-i18n by @ kazupon in #1968

    Full Changelog: v10.0.2...v10.0.3

  • 10.0.2 - 2024-09-21

    What's Changed

    ⚡ Improvement Features

    📝️ Documentations

    Full Changelog: v10.0.1...v10.0.2

  • 10.0.1 - 2024-09-12

    What's Changed

    🐛 Bug Fixes

    New Contributors

    Full Changelog: v10.0.0...v10.0.1

  • 10.0.0 - 2024-09-10

    We are excited to announce the release of Vue I18n v10.
    We had many contributors.

    Thanks for your contributing ❤️

    Summary

    petite-vue-i18n General Availability

    petite-vue-i18n is an alternative distribution of Vue I18n, providing only minimal features.

    If you don't need the full functionality of vue-i18n and are just looking for basic translation features with a smaller footprint, this will suit your use case.

    For more details, please see the docs.

    JIT Compilation Enabled by Default

    JIT compilation was introduced in v9.3, but it was not enabled by default.

    However, it had the following issues:

    • CSP restrictions: Difficult to work with service/web workers, edge-side runtimes of CDNs, etc.
    • Backend integration: Hard to fetch messages from a backend (e.g., a database via API) and localize them dynamically.

    Starting from v10, JIT compilation is enabled by default.

    Support for Generated Locale Types

    We provide an interface to extend the Locale type in TypeScript, similar to ComponentCustomProperties in Vue.

    This feature is useful when using vue-i18n as part of a framework.

    For more details, see the PR for the Nuxt I18n use case.

    Changes to $t and t Overload Signatures for Legacy API Mode

    In Vue I18n v9, $t and t had different overload signatures in Composition API mode compared to Legacy API mode.

    When migrating from Legacy API mode to Composition API mode, these differences sometimes caused confusion.

    Starting from v10, Legacy API mode will use the same $t and t overload signatures as Composition API mode.

    For details on the signature pattern, see the migration guide.

    Deprecation of tc and $tc for Legacy API Mode

    The t and $t functions already support pluralization, so tc and $tc can be replaced.

    In v10, tc and $tc still exist to aid in migration, but they will be fully removed in v11.

    If you use them, Vue I18n will display a console warning in your application.

    For migration instructions, see the docs.

    Dropping Deprecated Features from v9

    Some features were marked as deprecated in v9 with warnings.

    These deprecated features will be completely removed in v10.

    For more details on the deprecated features, see the docs.

    🌟 Features

    ❗ Braeking Changes

    • breaking: drop translation component <i18n> v8.x compatibility by @ kazupon in #1844
    • breaking: drop te behavior v8.x compatibility on v9 by @ kazupon in #1845
    • feat!: deprecate tc and $tc for Legacy API mode by @ kazupon in #1839
    • breaking: drop fully formatter option codes on Legacy API by @ kazupon in #1826
    • breaking: drop fully preserveDirectiveContent option codes on Legacy API by @ kazupon in #1827
    • breaking: drop fully preserve modifier codes on v-t directive by @ kazupon in #1828
    • breaking: drop fully getChoiceIndex on Legacy API by @ kazupon in #1829
    • breaking: drop vue-i18n-bridge by @ kazupon in #1816
    • breaking: drop allowComposition option by @ kazupon in #1817
    • breaking: drop modulo syntax by @ kazupon in #1814

    ⚡ Improvement Features

    ✏️ Documentation & Sample Updates

    🐛 Bug Fixes

    New Contributors

    Full Changelog: v9.13.1...v10.0.0

  • 10.0.0-rc.1 - 2024-09-05

    What's Changed

    ⚡ Improvement Features

    Full Changelog: v10.0.0-beta.6...v10.0.0-rc.1

  • 10.0.0-beta.6 - 2024-08-29

    What's Changed

    🐛 Bug Fixes

    📝️ Documentations

    🍭 Examples

    New Contributors

    Full Changelog: v10.0.0-beta.5...v10.0.0-beta.6

  • 10.0.0-beta.5 - 2024-07-19

    What's Changed

    📝️ Documentations

    Full Changelog: v10.0.0-beta.4...v10.0.0-beta.5

  • 10.0.0-beta.4 - 2024-07-16
  • 10.0.0-beta.3 - 2024-07-14
  • 10.0.0-beta.2 - 2024-07-05
  • 10.0.0-beta.1 - 2024-05-23
  • 10.0.0-alpha.5 - 2024-05-15
  • 10.0.0-alpha.4 - 2024-05-09
  • 10.0.0-alpha.3 - 2024-04-27
  • 10.0.0-alpha.2 - 2024-04-22
  • 10.0.0-alpha.1 - 2024-04-21
  • 9.14.2 - 2024-11-28
  • 9.14.1 - 2024-09-26

    What's Changed

    🐛 Bug Fixes

    Full Changelog: v9.14.0...v9.14.1

  • 9.14.0 - 2024-08-16

    What's Changed

    ⚡ Improvement Features

    Full Changelog: v9.13.1...v9.14.0

  • 9.13.1 - 2024-04-20
  • 9.13.0 - 2024-04-17
  • 9.12.1 - 2024-04-14
  • 9.12.0 - 2024-04-12
  • 9.11.1 - 2024-04-10
  • 9.11.0 - 2024-04-04
  • 9.10.2 - 2024-03-15
from vue-i18n GitHub release notes

Important

  • Warning: This PR contains a major version upgrade, and may be a breaking change.
  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.

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

Upgrade vue-i18n from version 9.10.2 to 10.0.4 to address several vulnerabilities and introduce new features, including default JIT compilation and support for generated locale types. This major version upgrade may include breaking changes, so review the changes carefully.

New Features:

  • Enable JIT compilation by default in vue-i18n.

Bug Fixes:

  • Fix issues related to message resolver and locale fallbacker in petite-vue-i18n.
  • Resolve empty string on plural in vue-i18n.

Enhancements:

  • Optimize bundle size for vue-i18n.

Documentation:

  • Update README to include petite-vue-i18n package.

Snyk has created this PR to upgrade vue-i18n from 9.10.2 to 10.0.4.

See this package in npm:
vue-i18n

See this project in Snyk:
https://app.snyk.io/org/nerds-github/project/a6d95be2-6fa7-418d-8fd1-0cd3974eee23?utm_source=github&utm_medium=referral&page=upgrade-pr
Copy link

sourcery-ai bot commented Dec 7, 2024

Reviewer's Guide by Sourcery

This PR upgrades vue-i18n from version 9.10.2 to 10.0.4, which is a major version upgrade that includes several breaking changes and security fixes. The upgrade addresses multiple vulnerabilities including ReDoS, Prototype Pollution, and Cross-site Scripting (XSS) issues.

No diagrams generated as the changes look simple and do not need a visual representation.

File-Level Changes

Change Details Files
Major version upgrade of vue-i18n with breaking changes
  • JIT compilation is now enabled by default
  • Changed $t and t overload signatures for Legacy API mode
  • Deprecated tc and $tc functions for Legacy API mode
  • Dropped several deprecated features from v9
  • Added support for generated locale types
frontend/package.json
Security vulnerability fixes
  • Fixed Regular Expression Denial of Service (ReDoS) vulnerability
  • Fixed two Prototype Pollution vulnerabilities
  • Fixed three Cross-site Scripting (XSS) vulnerabilities
frontend/package.json

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time. You can also use
    this command to specify where the summary should be inserted.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

We have skipped reviewing this pull request. Here's why:

  • It seems to have been created by a bot ('[Snyk]' found in title). We assume it knows what it's doing!
  • We don't review packaging changes - Let us know if you'd like us to change this.

Copy link

github-actions bot commented Dec 7, 2024

Hey there and thank you for opening this pull request! 👋🏼

We require pull request titles to follow the Conventional Commits specification and it looks like your proposed title needs to be adjusted.

Details:

No release type found in pull request title "[Snyk] Upgrade vue-i18n from 9.10.2 to 10.0.4". Add a prefix to indicate what kind of release this pull request corresponds to. For reference, see https://www.conventionalcommits.org/

Available types:
 - feat: A new feature
 - fix: A bug fix
 - docs: Documentation only changes
 - style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
 - refactor: A code change that neither fixes a bug nor adds a feature
 - perf: A code change that improves performance
 - test: Adding missing tests or correcting existing tests
 - build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
 - ci: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
 - chore: Other changes that don't modify src or test files
 - revert: Reverts a previous commit

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