mirror of
https://github.com/maputnik/editor.git
synced 2026-11-27 04:23:45 +00:00
chore(deps): Bump i18next from 27.0.0 to 27.1.1 (#2324)
Bumps [i18next](https://github.com/i18next/i18next) from 27.0.0 to 27.1.1. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/i18next/i18next/releases">i18next's releases</a>.</em></p> <blockquote> <h2>v27.1.1</h2> <ul> <li>perf: <code>t()</code> skips the interpolation and nesting regexp scans when the text has no interpolation or nesting prefix, about 6-14% faster for short texts and up to 75% for long ones. The output does not change. Thanks <a href="https://github.com/g4lb"><code>@g4lb</code></a> (<a href="https://redirect.github.com/i18next/i18next/pull/2469">#2469</a>)</li> </ul> <h2>v27.1.0</h2> <ul> <li>feat: when the plural form selected for <code>count</code> is missing, <code>t()</code> uses the <code>_other</code> form of the same language before the next fallback language, as CLDR does (<a href="https://www.unicode.org/reports/tr35/#Lateral_Inheritance">lateral inheritance</a>), instead of returning the key. Current CLDR data gives French, Spanish, Italian and Portuguese a <code>many</code> form for exact millions, so files with only <code>_one</code> and <code>_other</code> showed the key (or the fallback language) for <code>count: 1000000</code>. The plain key still comes first, so <code>key</code> + <code>key_other</code> keeps resolving <code>key</code>; with a context, <code>key_<context>_other</code> comes before <code>key_other</code>; ordinals use <code>_ordinal_other</code>; and <code>defaultValue_other</code> is used after <code>defaultValue</code>. A form filled in from <code>_other</code> is no longer reported as missing (<code>saveMissing</code>, <code>missingKeyHandler</code>, <code>exists()</code>). Thanks <a href="https://github.com/TenPotatoes"><code>@TenPotatoes</code></a> (<a href="https://redirect.github.com/i18next/i18next/issues/2468">#2468</a>)</li> </ul> <h2>v27.0.1</h2> <ul> <li>fix: each cached format keeps at most 1000 formatters, dropping the oldest when full. This covers the built-in formats (number, currency, datetime, relativetime, list) with the default <code>cacheInBuiltFormats: true</code>, and formats added with <code>addCached</code>. The cache key holds all <code>t()</code> options, including the interpolated values, so every new amount, date or name added a formatter that was never released: about 50 MB per 100k values, growing without end in a long-running server. A dropped formatter is made again from the same language and options, so the output does not change. Thanks <a href="https://github.com/liustack"><code>@liustack</code></a> (<a href="https://redirect.github.com/i18next/i18next/pull/2467">#2467</a>).</li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/i18next/i18next/blob/master/CHANGELOG.md">i18next's changelog</a>.</em></p> <blockquote> <h2>27.1.1</h2> <ul> <li>perf: <code>t()</code> skips the interpolation and nesting regexp scans when the text has no interpolation or nesting prefix, about 6-14% faster for short texts and up to 75% for long ones. The output does not change. Thanks <a href="https://github.com/g4lb"><code>@g4lb</code></a> (<a href="https://redirect.github.com/i18next/i18next/pull/2469">#2469</a>)</li> </ul> <h2>27.1.0</h2> <ul> <li>feat: when the plural form selected for <code>count</code> is missing, <code>t()</code> uses the <code>_other</code> form of the same language before the next fallback language, as CLDR does (<a href="https://www.unicode.org/reports/tr35/#Lateral_Inheritance">lateral inheritance</a>), instead of returning the key. Current CLDR data gives French, Spanish, Italian and Portuguese a <code>many</code> form for exact millions, so files with only <code>_one</code> and <code>_other</code> showed the key (or the fallback language) for <code>count: 1000000</code>. The plain key still comes first, so <code>key</code> + <code>key_other</code> keeps resolving <code>key</code>; with a context, <code>key_<context>_other</code> comes before <code>key_other</code>; ordinals use <code>_ordinal_other</code>; and <code>defaultValue_other</code> is used after <code>defaultValue</code>. A form filled in from <code>_other</code> is no longer reported as missing (<code>saveMissing</code>, <code>missingKeyHandler</code>, <code>exists()</code>). Thanks <a href="https://github.com/TenPotatoes"><code>@TenPotatoes</code></a> (<a href="https://redirect.github.com/i18next/i18next/issues/2468">#2468</a>)</li> </ul> <h2>27.0.1</h2> <ul> <li>fix: each cached format keeps at most 1000 formatters, dropping the oldest when full. This covers the built-in formats (number, currency, datetime, relativetime, list) with the default <code>cacheInBuiltFormats: true</code>, and formats added with <code>addCached</code>. The cache key holds all <code>t()</code> options, including the interpolated values, so every new amount, date or name added a formatter that was never released: about 50 MB per 100k values, growing without end in a long-running server. A dropped formatter is made again from the same language and options, so the output does not change. Thanks <a href="https://github.com/liustack"><code>@liustack</code></a> (<a href="https://redirect.github.com/i18next/i18next/pull/2467">#2467</a>).</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/i18next/i18next/commit/523cb611cb25c84a73c1b245d12d641b06868706"><code>523cb61</code></a> 27.1.1</li> <li><a href="https://github.com/i18next/i18next/commit/509751009bb6ceed8747e6d64903f15efaad8eab"><code>5097510</code></a> changelog for 27.1.1</li> <li><a href="https://github.com/i18next/i18next/commit/5f453fe2a508c6201098986fd5b5c4a8cf30044e"><code>5f453fe</code></a> perf: skip the interpolation and nesting regexp scans for a text without thei...</li> <li><a href="https://github.com/i18next/i18next/commit/854769014009953f4547d785810b8411f649f852"><code>8547690</code></a> 27.1.0</li> <li><a href="https://github.com/i18next/i18next/commit/56e4aa02b8443f2feb206ee1a43c83fbcbd1e91e"><code>56e4aa0</code></a> changelog for 27.1.0</li> <li><a href="https://github.com/i18next/i18next/commit/73f6f26e43b2d9b58d8eceb8bc8631cbc5a0bec9"><code>73f6f26</code></a> feat: a missing plural form falls back to the _other form of the same language</li> <li><a href="https://github.com/i18next/i18next/commit/1cb5a7ab338a7ef015e2c866955f5b0dc960ab3e"><code>1cb5a7a</code></a> 27.0.1</li> <li><a href="https://github.com/i18next/i18next/commit/7f7216b96907230b8c6db0f195e3b7e2a2f4bc2e"><code>7f7216b</code></a> changelog for 27.0.1</li> <li><a href="https://github.com/i18next/i18next/commit/35fecdd711129d0b6afb7a0c7896f49037debaa7"><code>35fecdd</code></a> fix: keep at most 1000 formatters in each cached format (<a href="https://redirect.github.com/i18next/i18next/issues/2467">#2467</a>)</li> <li>See full diff in <a href="https://github.com/i18next/i18next/compare/v27.0.0...v27.1.1">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> 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) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
Generated
+4
-4
@@ -29,7 +29,7 @@
|
||||
"downshift": "^9.5.0",
|
||||
"events": "^3.3.0",
|
||||
"file-saver": "^2.0.5",
|
||||
"i18next": "^27.0.0",
|
||||
"i18next": "^27.1.1",
|
||||
"i18next-browser-languagedetector": "^8.3.0",
|
||||
"i18next-resources-to-backend": "^1.2.4",
|
||||
"json-stringify-pretty-compact": "^4.0.0",
|
||||
@@ -5809,9 +5809,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/i18next": {
|
||||
"version": "27.0.0",
|
||||
"resolved": "https://registry.npmjs.org/i18next/-/i18next-27.0.0.tgz",
|
||||
"integrity": "sha512-lCP39wHw2s0MZLyNXNvVEVhSRx3STHXB7XUbyS5qVabE3b+SSqFM/Ffb6HIygeKjYrMAwRV2qDShBQRba/DvAQ==",
|
||||
"version": "27.1.1",
|
||||
"resolved": "https://registry.npmjs.org/i18next/-/i18next-27.1.1.tgz",
|
||||
"integrity": "sha512-Qq3aJizS3RXQ30crhx9BKQLrHoa6GKpgrOJjVZ9vgj3EBxAddrmVfDNUrAMxSUimw5Jc+ld4SSZUAzf1q4nGyQ==",
|
||||
"funding": [
|
||||
{
|
||||
"type": "individual",
|
||||
|
||||
+1
-1
@@ -46,7 +46,7 @@
|
||||
"downshift": "^9.5.0",
|
||||
"events": "^3.3.0",
|
||||
"file-saver": "^2.0.5",
|
||||
"i18next": "^27.0.0",
|
||||
"i18next": "^27.1.1",
|
||||
"i18next-browser-languagedetector": "^8.3.0",
|
||||
"i18next-resources-to-backend": "^1.2.4",
|
||||
"json-stringify-pretty-compact": "^4.0.0",
|
||||
|
||||
Reference in New Issue
Block a user