Releases: wojtekmaj/get-user-locale
Releases · wojtekmaj/get-user-locale
v2.3.2
What's new?
- Replaced
lodash.memoize
with mem
, reducing bundle size by about 300 bytes.
v2.3.0
What's new?
- Improved type accuracy, so that return type does not include
null
when fallbackLocale
has been provided (#80).
- Improved edge cases handling when
navigator.language
or navigator.languages
contained non-standard values like "en-US,en"
, "C"
, "en-US.UTF-8"
, and more (#16).
Bug fixes
- Fixed an edge case when "el.indexOf is not a function" error could be thrown (#20).
v2.2.1
Bug fixes
- Fixed exports field missing support for CJS
require()
v2.2.0
What's new?
- Added support for native ESM modules.
v2.1.3
Bug fixes
- Fixed types not picked up correctly by some tools (e.g. Next.js).
v2.1.2
Bug fixes
- Fixed "Object is possibly 'undefined'" error when using TypeScript with
noUncheckedIndexedAccess
turned on (#51).
v2.1.1
Bug fixes
- Fixed "Could not find a declaration file for module 'lodash.memoize'." error (#50).
v2.1.0
What's new?
- Converted package to TypeScript (#22).
v2.0.0
❗️ = breaking change
What's new?
- ❗️ Dropped Internet Explorer <11 support.