mirror of
https://github.com/maputnik/editor.git
synced 2026-12-04 07:44:22 +00:00
chore(deps): Bump i18next from 27.2.2 to 27.2.3 (#2366)
Bumps [i18next](https://github.com/i18next/i18next) from 27.2.2 to 27.2.3. <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.2.3</h2> <ul> <li>fix: a variable in the options of a nested <code>$t(key, { "name": "{{name}}" })</code> is escaped once. With the default <code>escapeValue: true</code> it was escaped for HTML before the options were parsed and again by the nested <code>t()</code>, so <code>Tom & Jerry</code> came out as <code>Tom &amp;amp; Jerry</code> (and react-i18next's <code>Trans</code> has shown <code>Tom &amp; Jerry</code> since 17.1.10, with <code>escapeValue: false</code> too). These variables are now escaped for the options' JSON, whatever <code>escapeValue</code> is, and the nested <code>t()</code> escapes them like the values of a direct call; <code>defaultValue</code> and <code>joinArrays</code> there, which it does not interpolate, stay escaped once. A value with <code>"</code>, <code>'</code>, <code>\</code> or a line break no longer breaks the options, with <code>escapeValue: false</code> a value can no longer inject options such as <code>lng</code>, and with <code>skipOnVariables</code> a <code>{{placeholder}}</code> inside a value is no longer interpolated a second time. The warning added in 26.0.6 now covers <code>{{- var}}</code> in these options, the one form still inserted unescaped, instead of <code>escapeValue: false</code>.</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.2.3</h2> <ul> <li>fix: a variable in the options of a nested <code>$t(key, { "name": "{{name}}" })</code> is escaped once. With the default <code>escapeValue: true</code> it was escaped for HTML before the options were parsed and again by the nested <code>t()</code>, so <code>Tom & Jerry</code> came out as <code>Tom &amp;amp; Jerry</code> (and react-i18next's <code>Trans</code> has shown <code>Tom &amp; Jerry</code> since 17.1.10, with <code>escapeValue: false</code> too). These variables are now escaped for the options' JSON, whatever <code>escapeValue</code> is, and the nested <code>t()</code> escapes them like the values of a direct call; <code>defaultValue</code> and <code>joinArrays</code> there, which it does not interpolate, stay escaped once. A value with <code>"</code>, <code>'</code>, <code>\</code> or a line break no longer breaks the options, with <code>escapeValue: false</code> a value can no longer inject options such as <code>lng</code>, and with <code>skipOnVariables</code> a <code>{{placeholder}}</code> inside a value is no longer interpolated a second time. The warning added in 26.0.6 now covers <code>{{- var}}</code> in these options, the one form still inserted unescaped, instead of <code>escapeValue: false</code>.</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/i18next/i18next/commit/2f3c6c2f666d1d153b23d4464f01528c4aa41478"><code>2f3c6c2</code></a> 27.2.3</li> <li><a href="https://github.com/i18next/i18next/commit/595b53ea278798948a246cd4c64e7458b628acc7"><code>595b53e</code></a> changelog for 27.2.3</li> <li><a href="https://github.com/i18next/i18next/commit/bb66134a230c9a830609a5ae71a6e0f326343cef"><code>bb66134</code></a> fix: escape a variable in $t() nesting options once</li> <li>See full diff in <a href="https://github.com/i18next/i18next/compare/v27.2.2...v27.2.3">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:
1 parent
1a2c3363ce
commit
df58be0609
2 files changed
+37
-5
No files matched your search
+1
-1
@@ -46,7 +46,7 @@
|
||||
"downshift": "^9.5.0",
|
||||
"events": "^3.3.0",
|
||||
"file-saver": "^2.0.5",
|
||||
"i18next": "^27.2.2",
|
||||
"i18next": "^27.2.3",
|
||||
"i18next-browser-languagedetector": "^8.3.1",
|
||||
"i18next-resources-to-backend": "^1.3.0",
|
||||
"json-stringify-pretty-compact": "^4.0.0",
|
||||
|
||||
Reference in new issue
Block a user