Sourced from i18next-cli's changelog.
1.80.6
- fix(extract): a function parameter no longer resolves to a variable of the same name declared elsewhere.
const getLabel = (options, value, t) => t(options[value])extractedGETas a key because another file had aconst options = { method: 'GET' }. Inside a function, its parameters now hide same-named variables, object maps, enums, functions and string constants from the module, other functions and other files, also when the value goes through a local (const key = options[value]; t(key)) or a function's return value. This also fixes custom hooks likeuseT(ns) { const { t } = useTranslation(ns) }, whose keys went to the namespace of anyconst ns = 'admin'in the project (the same forkeyPrefix). Parameters with a default value or typed with a union or an interface still resolve as before. Fixes #316.- chore(deps):
ora,execaandinquirerare replaced byyocto-spinner,nano-spawnand the single@inquirer/input,@inquirer/select,@inquirer/confirmand@inquirer/passwordprompts. Prompts, spinners and thelocize,gitand browser-opener subprocesses behave as before. The install tree no longer containsis-interactive,is-unicode-supported,safer-buffer,iconv-lite,@inquirer/external-editor,path-keyandget-east-asian-width, including the three packages Socket rated as high-severity alerts.
33f0154
1.80.67abf5fd
docs: changelog for 1.80.6740a925
docs: changelog for the dependency replacement05774e3
fix(extract): a function parameter hides same-named values declared
elsewhere...99a5c17
docs: add Socket badge to READMEd99dbe6
chore(deps): replace ora, execa and inquirer with lighter packages