Sourced from i18next-cli's changelog.
1.71.2
- fix:
extractno longer scales quadratically with the number of keys: selector-API /returnObjectskeys are matched via an O(key depth) Set lookup instead of one regex per object key, and the per-key leaf check uses a precomputed ancestor-prefix Set instead of scanning all keys. A 4-minute run on a ~11,500-key monorepo drops to seconds; written output is byte-identical (#286).1.71.1
- feat:
.reduce()/.reduceRight()over anas constarray now bind the element callback parameter (the second one,(acc, el) => …) like.map()/.forEach()already did, soERRORS.reduce((acc, n) => { acc[n] = t(`errors.${n}.title`) }, {})extracts every element without the(typeof ERRORS)[number]cast workaround (#285).