[PR #6901] [CLOSED] chore(deps): bump react-i18next from 17.0.16 to 17.1.0 in /frontend #6507

Closed
opened 2026-11-02 04:09:17 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/6901
Author: @dependabot[bot]
Created: 10/22/2026
Status: ❌ Closed

Base: main ← Head: dependabot/npm_and_yarn/frontend/react-i18next-17.1.0


📝 Commits (1)

  • b17f810 chore(deps): bump react-i18next from 17.0.16 to 17.1.0 in /frontend

📊 Changes

2 files changed (+5 additions, -5 deletions)

View changed files

📝 frontend/package-lock.json (+4 -4)
📝 frontend/package.json (+1 -1)

📄 Description

Bumps react-i18next from 17.0.16 to 17.1.0.

Changelog

Sourced from react-i18next's changelog.

17.1.0

  • feat(types): with i18next's new parseInterpolation: 'icu' (or 'mf2') type option (i18next v26.5.0), the values of IcuTrans and IcuTransWithoutContext are typed from the message of i18nKey, like the options of t(): a misspelled argument, a value of the wrong type or a value meant for another key is a type error. values was Record<string, any> before, and still is with any other parseInterpolation setting. values stays optional, as on Trans. useTranslation's t and Trans values get the checks from i18next's types without changes here.
  • fix(types): IcuTrans and IcuTransWithoutContext now infer the literal i18nKey (const type parameter, as Trans does), so props that depend on the key are checked against that key instead of all keys of the namespace.

17.0.21

  • fix(IcuTrans): explicit values now win over interpolation.defaultVariables, as they do in t(). IcuTrans merged them the other way round, so <IcuTrans values={{ user: 'John Doe' }} /> rendered the configured default variable user instead of John Doe. Trans had the same inverted merge and is fixed too. Compatibility note: only names that are set both in values and in defaultVariables render differently.
  • feat: new entry point react-i18next/IcuTransWithoutContext (with types) for React Server Components. Importing IcuTransWithoutContext from react-i18next in a Server Component could fail the build with createContext is not a function, because the main entry creates the React context when it is loaded. Like react-i18next/TransWithoutContext, the new entry point does not.
  • fix(build): the ESM build's dist/es/package.json now declares "sideEffects": false, like the root package.json already did. Bundlers use the nearest package.json, so the ESM build counted as having side effects and unused exports were kept: an app that only uses Trans still bundled IcuTrans with its HTML entity decoder, useTranslation and use-sync-external-store. With esbuild, a Trans-only bundle (React and i18next external) goes from 20.9 KB to 11.6 KB minified, 8.3 KB to 5.0 KB gzipped.
  • docs: the icu.macro Babel macro is now marked as deprecated in favour of using IcuTrans directly. It fails on Babel 8 (t.jSXIdentifier is not a function), <Plural count={count}> renders the raw ICU message, and a React key on <Plural>/<Select> becomes an ICU case. It keeps working on Babel 7 and is not removed. The IcuTrans docs page has a corrected example and props table and covers Server Components.

17.0.20

  • fix: useTranslation no longer suspends when a missing namespace is loaded by a synchronous backend. With useSuspense (the default), a namespace that wasn't in the store yet always made the component throw the loading promise, even when the backend had already delivered the resources while that promise was being created. React then showed the Suspense fallback and rendered again right away, which appears as a fallback flash (a white flash in React Native) and costs performance. The hook now starts the load first, checks the store again and only suspends if the namespace is still missing. This helps every backend that calls back synchronously, for example i18next-resources-to-backend with a static resources object or a loader that returns the data directly. Async backends, and an instance that isn't initialized yet, still suspend as before. Thanks @​oblador (#1937).

17.0.19

  • fix: useTranslation with an inline selector keyPrefix (useTranslation('ns', { keyPrefix: ($) => $.role })) returned a new t on every render, so every effect, useCallback and useMemo depending on t ran again each time. The cached t was compared against the keyPrefix function itself, and an inline arrow is a new function on every render. It is now compared against the key the selector resolves to (with the same options and namespace list getFixedT resolves it with), so t keeps its identity as long as the resolved prefix does, just like a string keyPrefix. A selector that resolves to a different key still gets a new t, and i18next still resolves the selector on each t call as before. Fixes #1936.
  • fix: useTranslation kept returning the previous t when only the namespace (useTranslation('a') → useTranslation('b')) or only the i18n instance (another instance with the same language, via props or I18nextProvider) changed on a mounted component. That t kept resolving against the old namespace or instance until something else (the language, the ready state, a bound i18n event) produced a new one. Both are now part of the check that decides whether the cached t can be reused.

17.0.18

  • fix(Trans): with shouldUnescape, the default unescape now turns &nbsp; and &[#160](https://github.com/i18next/react-i18next/issues/160); into a no-break space (U+00A0) instead of a regular space (U+0020). The regular space dropped what the entity is for: u&nbsp;nás or 10&nbsp;km could wrap across lines, and consecutive &nbsp;s collapsed into one space. This also matches IcuTrans, whose entity decoder already mapped &nbsp; to U+00A0. Compatibility note: only affects shouldUnescape; snapshots or exact textContent comparisons of such text now contain U+00A0 (Testing Library's default normalizer still matches it as a space). A custom react.unescape function can restore the old mapping for text nodes. Thanks @​lprnmns (#1935).

17.0.17

  • perf: useTranslation no longer unsubscribes and resubscribes its i18n listeners on every render. The subscribe callback handed to useSyncExternalStore depended on the merged options object, which is rebuilt whenever props is a new object: with no options (the {} default), with options passed inline (useTranslation('ns', { keyPrefix })), and through withTranslation and <Translation>. A new subscribe makes React resubscribe, so each render of each caller ran i18n.off and i18n.on in an extra effect. It now depends only on the instance and the bindI18n/bindI18nStore event names. No updates were ever missed, because React re-checks the snapshot after resubscribing; this only removes the churn, which adds up with many mounted components that re-render often. Reported via next-i18next#2349.
Commits
  • d3b1236 17.1.0
  • efed87d chore: i18next ^26.5.0 for the parseInterpolation 'icu' / 'mf2' type tests
  • 6300ae2 feat(types): IcuTrans values typed from the message under parseInterpolation ...
  • 64a3d13 17.0.21
  • c7e1c80 fix(IcuTrans): explicit values win over defaultVariables, RSC entry point, ES...
  • 66dbfba 17.0.20
  • 806df1e build, changelog for 17.0.20
  • 49ec36d fix(useTranslation): don't suspend synchronous backends (#1937)
  • d576d09 17.0.19
  • d69464b build
  • Additional commits viewable in compare view

Dependabot compatibility score

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 commands and options

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)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/MHSanaei/3x-ui/pull/6901 **Author:** [@dependabot[bot]](https://github.com/apps/dependabot) **Created:** 10/22/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `dependabot/npm_and_yarn/frontend/react-i18next-17.1.0` --- ### 📝 Commits (1) - [`b17f810`](https://github.com/MHSanaei/3x-ui/commit/b17f8105d81df1a0ecceb7fa2d1739e83b03a32d) chore(deps): bump react-i18next from 17.0.16 to 17.1.0 in /frontend ### 📊 Changes **2 files changed** (+5 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `frontend/package-lock.json` (+4 -4) 📝 `frontend/package.json` (+1 -1) </details> ### 📄 Description Bumps [react-i18next](https://github.com/i18next/react-i18next) from 17.0.16 to 17.1.0. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/i18next/react-i18next/blob/master/CHANGELOG.md">react-i18next's changelog</a>.</em></p> <blockquote> <h2>17.1.0</h2> <ul> <li>feat(types): with i18next's new <code>parseInterpolation: 'icu'</code> (or <code>'mf2'</code>) type option (i18next v26.5.0), the <code>values</code> of <code>IcuTrans</code> and <code>IcuTransWithoutContext</code> are typed from the message of <code>i18nKey</code>, like the options of <code>t()</code>: a misspelled argument, a value of the wrong type or a value meant for another key is a type error. <code>values</code> was <code>Record&lt;string, any&gt;</code> before, and still is with any other <code>parseInterpolation</code> setting. <code>values</code> stays optional, as on <code>Trans</code>. <code>useTranslation</code>'s <code>t</code> and <code>Trans</code> <code>values</code> get the checks from i18next's types without changes here.</li> <li>fix(types): <code>IcuTrans</code> and <code>IcuTransWithoutContext</code> now infer the literal <code>i18nKey</code> (<code>const</code> type parameter, as <code>Trans</code> does), so props that depend on the key are checked against that key instead of all keys of the namespace.</li> </ul> <h2>17.0.21</h2> <ul> <li>fix(IcuTrans): explicit <code>values</code> now win over <code>interpolation.defaultVariables</code>, as they do in <code>t()</code>. <code>IcuTrans</code> merged them the other way round, so <code>&lt;IcuTrans values={{ user: 'John Doe' }} /&gt;</code> rendered the configured default variable <code>user</code> instead of <code>John Doe</code>. <code>Trans</code> had the same inverted merge and is fixed too. Compatibility note: only names that are set both in <code>values</code> and in <code>defaultVariables</code> render differently.</li> <li>feat: new entry point <code>react-i18next/IcuTransWithoutContext</code> (with types) for React Server Components. Importing <code>IcuTransWithoutContext</code> from <code>react-i18next</code> in a Server Component could fail the build with <code>createContext is not a function</code>, because the main entry creates the React context when it is loaded. Like <code>react-i18next/TransWithoutContext</code>, the new entry point does not.</li> <li>fix(build): the ESM build's <code>dist/es/package.json</code> now declares <code>&quot;sideEffects&quot;: false</code>, like the root <code>package.json</code> already did. Bundlers use the nearest <code>package.json</code>, so the ESM build counted as having side effects and unused exports were kept: an app that only uses <code>Trans</code> still bundled <code>IcuTrans</code> with its HTML entity decoder, <code>useTranslation</code> and <code>use-sync-external-store</code>. With esbuild, a <code>Trans</code>-only bundle (React and i18next external) goes from 20.9 KB to 11.6 KB minified, 8.3 KB to 5.0 KB gzipped.</li> <li>docs: the <code>icu.macro</code> Babel macro is now marked as deprecated in favour of using <code>IcuTrans</code> directly. It fails on Babel 8 (<code>t.jSXIdentifier is not a function</code>), <code>&lt;Plural count={count}&gt;</code> renders the raw ICU message, and a React <code>key</code> on <code>&lt;Plural&gt;</code>/<code>&lt;Select&gt;</code> becomes an ICU case. It keeps working on Babel 7 and is not removed. The <code>IcuTrans</code> docs page has a corrected example and props table and covers Server Components.</li> </ul> <h2>17.0.20</h2> <ul> <li>fix: <code>useTranslation</code> no longer suspends when a missing namespace is loaded by a synchronous backend. With <code>useSuspense</code> (the default), a namespace that wasn't in the store yet always made the component throw the loading promise, even when the backend had already delivered the resources while that promise was being created. React then showed the <code>Suspense</code> fallback and rendered again right away, which appears as a fallback flash (a white flash in React Native) and costs performance. The hook now starts the load first, checks the store again and only suspends if the namespace is still missing. This helps every backend that calls back synchronously, for example <code>i18next-resources-to-backend</code> with a static resources object or a loader that returns the data directly. Async backends, and an instance that isn't initialized yet, still suspend as before. Thanks <a href="https://github.com/oblador"><code>@​oblador</code></a> (<a href="https://redirect.github.com/i18next/react-i18next/pull/1937">#1937</a>).</li> </ul> <h2>17.0.19</h2> <ul> <li>fix: <code>useTranslation</code> with an inline selector <code>keyPrefix</code> (<code>useTranslation('ns', { keyPrefix: ($) =&gt; $.role })</code>) returned a new <code>t</code> on every render, so every effect, <code>useCallback</code> and <code>useMemo</code> depending on <code>t</code> ran again each time. The cached <code>t</code> was compared against the <code>keyPrefix</code> function itself, and an inline arrow is a new function on every render. It is now compared against the key the selector resolves to (with the same options and namespace list <code>getFixedT</code> resolves it with), so <code>t</code> keeps its identity as long as the resolved prefix does, just like a string <code>keyPrefix</code>. A selector that resolves to a different key still gets a new <code>t</code>, and i18next still resolves the selector on each <code>t</code> call as before. Fixes <a href="https://redirect.github.com/i18next/react-i18next/issues/1936">#1936</a>.</li> <li>fix: <code>useTranslation</code> kept returning the previous <code>t</code> when only the namespace (<code>useTranslation('a')</code> → <code>useTranslation('b')</code>) or only the i18n instance (another instance with the same language, via props or <code>I18nextProvider</code>) changed on a mounted component. That <code>t</code> kept resolving against the old namespace or instance until something else (the language, the ready state, a bound i18n event) produced a new one. Both are now part of the check that decides whether the cached <code>t</code> can be reused.</li> </ul> <h2>17.0.18</h2> <ul> <li>fix(Trans): with <code>shouldUnescape</code>, the default <code>unescape</code> now turns <code>&amp;nbsp;</code> and <code>&amp;[#160](https://github.com/i18next/react-i18next/issues/160);</code> into a no-break space (U+00A0) instead of a regular space (U+0020). The regular space dropped what the entity is for: <code>u&amp;nbsp;nás</code> or <code>10&amp;nbsp;km</code> could wrap across lines, and consecutive <code>&amp;nbsp;</code>s collapsed into one space. This also matches <code>IcuTrans</code>, whose entity decoder already mapped <code>&amp;nbsp;</code> to U+00A0. Compatibility note: only affects <code>shouldUnescape</code>; snapshots or exact <code>textContent</code> comparisons of such text now contain U+00A0 (Testing Library's default normalizer still matches it as a space). A custom <code>react.unescape</code> function can restore the old mapping for text nodes. Thanks <a href="https://github.com/lprnmns"><code>@​lprnmns</code></a> (<a href="https://redirect.github.com/i18next/react-i18next/pull/1935">#1935</a>).</li> </ul> <h2>17.0.17</h2> <ul> <li>perf: <code>useTranslation</code> no longer unsubscribes and resubscribes its i18n listeners on every render. The <code>subscribe</code> callback handed to <code>useSyncExternalStore</code> depended on the merged options object, which is rebuilt whenever <code>props</code> is a new object: with no options (the <code>{}</code> default), with options passed inline (<code>useTranslation('ns', { keyPrefix })</code>), and through <code>withTranslation</code> and <code>&lt;Translation&gt;</code>. A new <code>subscribe</code> makes React resubscribe, so each render of each caller ran <code>i18n.off</code> and <code>i18n.on</code> in an extra effect. It now depends only on the instance and the <code>bindI18n</code>/<code>bindI18nStore</code> event names. No updates were ever missed, because React re-checks the snapshot after resubscribing; this only removes the churn, which adds up with many mounted components that re-render often. Reported via <a href="https://redirect.github.com/i18next/next-i18next/issues/2349">next-i18next#2349</a>.</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/i18next/react-i18next/commit/d3b12369660975aa73e8c2648de5e7cfa4fcbc57"><code>d3b1236</code></a> 17.1.0</li> <li><a href="https://github.com/i18next/react-i18next/commit/efed87d91449ad3cfcbdfd0d9ec3b24ff19691fb"><code>efed87d</code></a> chore: i18next ^26.5.0 for the parseInterpolation 'icu' / 'mf2' type tests</li> <li><a href="https://github.com/i18next/react-i18next/commit/6300ae2e5860c00e34c8157ec4203c99204fefeb"><code>6300ae2</code></a> feat(types): IcuTrans values typed from the message under parseInterpolation ...</li> <li><a href="https://github.com/i18next/react-i18next/commit/64a3d1360fd0bf2f49652c09881be04a5e22082f"><code>64a3d13</code></a> 17.0.21</li> <li><a href="https://github.com/i18next/react-i18next/commit/c7e1c80f066abb68dc1399e3a069e0a5b7dddaa8"><code>c7e1c80</code></a> fix(IcuTrans): explicit values win over defaultVariables, RSC entry point, ES...</li> <li><a href="https://github.com/i18next/react-i18next/commit/66dbfbab1c5430a99a7d9badc308f59fa3931678"><code>66dbfba</code></a> 17.0.20</li> <li><a href="https://github.com/i18next/react-i18next/commit/806df1ee326534bd1656fcc88239321f70c9c65f"><code>806df1e</code></a> build, changelog for 17.0.20</li> <li><a href="https://github.com/i18next/react-i18next/commit/49ec36d359236d3f5f7298b9da355754eb1fb719"><code>49ec36d</code></a> fix(useTranslation): don't suspend synchronous backends (<a href="https://redirect.github.com/i18next/react-i18next/issues/1937">#1937</a>)</li> <li><a href="https://github.com/i18next/react-i18next/commit/d576d09cbebb9e2fc7a52a4cd6fe80793459cdfb"><code>d576d09</code></a> 17.0.19</li> <li><a href="https://github.com/i18next/react-i18next/commit/d69464b4c4346309c530c9c5777191954f9842f0"><code>d69464b</code></a> build</li> <li>Additional commits viewable in <a href="https://github.com/i18next/react-i18next/compare/v17.0.16...v17.1.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=react-i18next&package-manager=npm_and_yarn&previous-version=17.0.16&new-version=17.1.0)](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> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 04:09:17 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#6507
No description provided.