Sourced from i18next's releases.
v27.1.5
- fix:
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.4
- fix(types): with
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)
Sourced from i18next's changelog.
27.1.5
- fix:
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)27.1.4
- fix(types): with
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)
8a9abd7
27.1.52b26695
changelog for 27.1.5c1e4071
fix: off() scans only for once() listeners, and a once() wrapper removes
itse...2eeb593
fix: off() removes a listener bound with once() (#2475)15c66d4
27.1.41c0f7b2
changelog for 27.1.438eb145
Add a test for TS crashing with many namespaces and fix it (#2474)