npm / i18next-http-backend
i18next-http-backend
What changed in i18next-http-backend 3 to 4, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-20.
7 breaking3 security1 new APIs and options1 performance2 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initi18next-http-backend 412 changes
Breaking changes 7
Values containing &, = or ; are rejected to prevent query parameter pollution when lng is interpolated into query-shaped loadPath or addPath templates.
Values containing &, = or ; are rejected to prevent query parameter pollution when ns is interpolated into query-shaped loadPath or addPath templates.
Values containing
:are now rejected to prevent URL injection when a loadPath or addPath template starts with a placeholder.Values containing
:or//are now rejected to prevent URL injection when a loadPath or addPath template starts with a placeholder.The minimum supported Node version is now 18, so projects using older Node versions must upgrade or stay on v3.x.
The backend no longer provides cross-fetch and requires a host-provided fetch; runtimes without native fetch need a ponyfill injected through options.alternateFetch or must stay on v3.x.
XHR and ActiveXObject are still detected when provided by the host, but are no longer polyfilled.
Security 2
The interpolated URL is now checked as a whole, preventing requests to protocol-relative URLs when loadPath or addPath templates do not start with // or \.
i18next-http-backend incomplete URL validation permits SSRF
New APIs and options 1
Use options.alternateFetch to inject a fetch ponyfill, mock fetch in tests, or intercept requests.
Performance 1
The package declares sideEffects as false, enabling downstream bundlers to apply tree-shaking accordingly.
Fixes and other changes 1
Allows
@innsvalues so scoped-package-style namespace names fetch correctly;@remains blocked forlng.
i18next-http-backend 32 changes
Security 1
i18next-http-backend has Path Traversal & URL Injection via Unsanitised lng/ns
Fixes and other changes 1
Namespace values can contain forward slashes again, allowing nested namespace names to fetch correctly through loadPath.