This PR was automatically created by Snyk using the credentials of a real user.
Snyk has created this PR to upgrade i18n from 0.11.1 to 0.14.2.
![merge advice](https://app.snyk.io/badges/merge-advice/?package_manager=npm&package_name=i18n&from_version=0.11.1&to_version=0.14.2&pr_id=cb771964-43f9-4755-96b2-e93d22d84134&visibility=true&has_feature_flag=false)
:information_source: 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 **9 versions** ahead of your current version.
- The recommended version was released **2 months ago**, on 2022-03-05.
Release notes Package name: i18n
Fixes #493 - using i18n with a combination of retry and sync settings lead to a 'Maximum call stack size exceeded' exception due to an infinite loop while writing phrases to all locale files.
A preinstall script was added to force resolving specific versions of lodash and ajv. Those are sub-dependencies of zombie and its packages. Zombie is devDependency of i18n. But zombie still refers to older versions reported to vulnerable - so I decided to force fixed versions.
Of course that preinstall should count on any npm install i18n, it's renamed to force-resolutions so I can still resolve audit issues in dev while also supporting clean installs.
backward compatible default to singleton with const i18n = require('i18n')
create an instance of i18n by const i18n = new I18n()
Example:
/** * require I18n with capital I as constructor */const{ I18n }=require("i18n");/** * create a new instance with it's configuration */consti18n=newI18n({locales:['en','de'],directory: __dirname+'/locales'});
Compare
**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:
🧐 [View latest project report](https://app.snyk.io/org/mmboldori/project/cdf6dd02-46f7-4805-9b0f-f8f6aa5f2dfd?utm_source=github&utm_medium=referral&page=upgrade-pr)
🛠 [Adjust upgrade PR settings](https://app.snyk.io/org/mmboldori/project/cdf6dd02-46f7-4805-9b0f-f8f6aa5f2dfd/settings/integration?utm_source=github&utm_medium=referral&page=upgrade-pr)
🔕 [Ignore this dependency or unsubscribe from future upgrade PRs](https://app.snyk.io/org/mmboldori/project/cdf6dd02-46f7-4805-9b0f-f8f6aa5f2dfd/settings/integration?pkg=i18n&utm_source=github&utm_medium=referral&page=upgrade-pr#auto-dep-upgrades)
This PR was automatically created by Snyk using the credentials of a real user.
Snyk has created this PR to upgrade i18n from 0.11.1 to 0.14.2.
![merge advice](https://app.snyk.io/badges/merge-advice/?package_manager=npm&package_name=i18n&from_version=0.11.1&to_version=0.14.2&pr_id=cb771964-43f9-4755-96b2-e93d22d84134&visibility=true&has_feature_flag=false) :information_source: 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 **9 versions** ahead of your current version. - The recommended version was released **2 months ago**, on 2022-03-05.
Release notes
Package name: i18n
Fixed
Fixes #493 - using i18n with a combination of retry and sync settings lead to a 'Maximum call stack size exceeded' exception due to an infinite loop while writing phrases to all locale files.
Fixed
This also updates to mocha 9.2.0 (mochajs/mocha#4814) which fixes GHSA-qrpm-p2h7-hrv2
Changed
Fixed
see aa60ac7, 3139881 and 4e6963f for details
Added
Fixed
Fixed
Fixed
Details
A preinstall script was added to force resolving specific versions of lodash and ajv. Those are sub-dependencies of zombie and its packages. Zombie is devDependency of i18n. But zombie still refers to older versions reported to vulnerable - so I decided to force fixed versions.
Of course that
preinstall
should count on anynpm install i18n
, it's renamed toforce-resolutions
so I can still resolve audit issues in dev while also supporting clean installs.now reads as
And doesn't get triggered by
npm install
.Added
retryInDefaultLocale
as proposed by PR #206header
as proposed by PRs #390 and #407Fixed
Changed
Added
const i18n = require('i18n')
const i18n = new I18n()
Example:
Fixed
Minimist is a sub-dependency of
mocha
andmessageformat
:Commit messages
Package name: i18n
**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: 🧐 [View latest project report](https://app.snyk.io/org/mmboldori/project/cdf6dd02-46f7-4805-9b0f-f8f6aa5f2dfd?utm_source=github&utm_medium=referral&page=upgrade-pr) 🛠 [Adjust upgrade PR settings](https://app.snyk.io/org/mmboldori/project/cdf6dd02-46f7-4805-9b0f-f8f6aa5f2dfd/settings/integration?utm_source=github&utm_medium=referral&page=upgrade-pr) 🔕 [Ignore this dependency or unsubscribe from future upgrade PRs](https://app.snyk.io/org/mmboldori/project/cdf6dd02-46f7-4805-9b0f-f8f6aa5f2dfd/settings/integration?pkg=i18n&utm_source=github&utm_medium=referral&page=upgrade-pr#auto-dep-upgrades)