All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.1.0 - 2024-09-09
- Add
engines
key to package.json to forbid Node.js versions prior to22.1.0
. We now rely onCustomEvent
which was made stable and available from that version.
1.1.0 - 2024-09-09
- Add local Flow declarations (shipped with the package). We don't necessarily want to contribute the fork definitions to flow-typed for the moment.
1.0.0 - 2024-09-06
- Remove usage of Node core lib util module (#1).
- Remove usage of
except
helper package (#1). - BREAKING Replace usage of Node
EventEmitter
with nativeEventTarget
(#1). This make the package able to run server of client side without requiring polyfills. This change the signature of event listener callbacks. They now receive a singleCustomEvent
object as argument, instead of unlimited parameters. So for instance:// Before instance.onLocaleChange((locale, previous) => {})
// After instance.onLocaleChange((event) => { // event.detail.locale // event.detail.previous })