fix(deps): update dependency i18next to v27.1.5 #35
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "renovate/i18next-27.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This MR contains the following updates:
27.0.1→27.1.5Release Notes
i18next/i18next (i18next)
v27.1.5Compare Source
off(event, listener)removes a listener added withonce().once()registers a wrapper, sooff()with the listener itself found nothing and the listener still ran on the next event. Aonce()listener is now also removed before it runs, so one that emits the same event again (like callingchangeLanguage()fromlanguageChanged) or throws runs only once. Thanks @SudeepGowda55 (#2475)v27.1.4Compare Source
enableSelector, assigning atfunction to a widerTFunction(TFunction<'ns'>toTFunction<'ns', string>orTFunction<Namespace>, or a key prefix to a wider one) failed with TS2590 "Expression produces a union type that is too complex to represent" once the namespaces had about 600 top-level keys together. This started in 26.3.3. Selector results for JSON arrays that mix arrays with objects or strings also keep the inner arrays as arrays. Thanks @reckter (#2474)v27.1.3Compare Source
hasOwnProperty,isPrototypeOf,toLocaleString,__defineGetter__, ...) made the backend connector throwobj[k].push is not a functionwhen its load finished. A language detector passes such a code on from a request (?lng=hasOwnProperty), and with an asynchronous backend nothing caught the throw, so one request ended a Node.js server process (in a browser,init()never resolved). Now these codes load like any other unknown language. Thanks @superbot-helper (GHSA-q76c-gcvw-89x9)fallbackLng, a language code named like anObject.prototypeproperty (constructor,toString,hasOwnProperty,constructor-US) gets thedefaultfallback instead of makingt(),exists(),getFixedT()andchangeLanguage()throwfallbackCodes.forEach is not a function. Thanks @cyphercodes (#2473, #2472)v27.1.2Compare Source
supportedLngs: false, every made-up language a detector found (?lng=xx1,?lng=xx2, ...) or every made-up namespace requested from i18next-http-middleware'sgetResourcesHandleradded about 180 bytes for good. Now only the most recent 1000 failed loads are kept (an older one is read again when it is needed), and both caches are emptied at 1000 codes, as the formatted language codes already were. Pairs with i18next-http-middleware 3.10.1 (GHSA-mjcw-gfh6-3cxm).v27.1.1Compare Source
t()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 @g4lb (#2469)v27.1.0Compare Source
countis missing,t()uses the_otherform of the same language before the next fallback language, as CLDR does (lateral inheritance), instead of returning the key. Current CLDR data gives French, Spanish, Italian and Portuguese amanyform for exact millions, so files with only_oneand_othershowed the key (or the fallback language) forcount: 1000000. The plain key still comes first, sokey+key_otherkeeps resolvingkey; with a context,key_<context>_othercomes beforekey_other; ordinals use_ordinal_other; anddefaultValue_otheris used afterdefaultValue. A form filled in from_otheris no longer reported as missing (saveMissing,missingKeyHandler,exists()). Thanks @TenPotatoes (#2468)Configuration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever MR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this MR and you won't be reminded about this update again.
This MR has been generated by Mend Renovate CLI.
mentioned in issue #1
aborted the automatic merge because the source branch was updated. Learn more.
added 3 commits
masterCompare with previous version
added 1 commit
Compare with previous version
changed title from
fix(deps): update dependency i18next to v27.1.2tofix(deps): update dependency i18next to v27.1.3changed the description
aborted the automatic merge because the source branch was updated. Learn more.
added 3 commits
masterCompare with previous version
added 7 commits
mastera4b2abde- fix(deps): update dependency i18next to v27.1.5Compare with previous version
changed title from
fix(deps): update dependency i18next to v27.1.3tofix(deps): update dependency i18next to v27.1.5changed the description
aborted the automatic merge because the source branch was updated. Learn more.
added 5 commits
masterCompare with previous version
a4b2abde1ctob53aa5a35fb53aa5a35f93f0d73c8693f0d73c860977a15774View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.