Skip to content

Releases: wojtekmaj/get-user-locale

v2.3.2

19 Apr 22:52
c164f2f
Compare
Choose a tag to compare

What's new?

  • Replaced lodash.memoize with mem, reducing bundle size by about 300 bytes.

v2.3.1

18 Oct 13:22
25c768e
Compare
Choose a tag to compare

What's new?

v2.3.0

03 Jul 07:52
f44210e
Compare
Choose a tag to compare

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

08 Mar 09:22
2caed52
Compare
Choose a tag to compare

Bug fixes

  • Fixed exports field missing support for CJS require()

v2.2.0

02 Mar 12:04
186cb83
Compare
Choose a tag to compare

What's new?

  • Added support for native ESM modules.

v2.1.3

02 Feb 08:25
da99477
Compare
Choose a tag to compare

Bug fixes

  • Fixed types not picked up correctly by some tools (e.g. Next.js).

v2.1.2

12 Jan 10:57
14c6522
Compare
Choose a tag to compare

Bug fixes

  • Fixed "Object is possibly 'undefined'" error when using TypeScript with noUncheckedIndexedAccess turned on (#51).

v2.1.1

11 Jan 10:50
1e07d17
Compare
Choose a tag to compare

Bug fixes

  • Fixed "Could not find a declaration file for module 'lodash.memoize'." error (#50).

v2.1.0

09 Jan 13:12
ca3be47
Compare
Choose a tag to compare

What's new?

  • Converted package to TypeScript (#22).

v2.0.0

28 Sep 11:03
4434c9b
Compare
Choose a tag to compare

❗️ = breaking change

What's new?

  • ❗️ Dropped Internet Explorer <11 support.