@gandi/counterpart
Advanced tools
Changelog
[1.1.0] - 2024-09-09
engines
key to package.json to forbid Node.js versions prior to 22.1.0
.
We now rely on CustomEvent
which was made stable and available from that version.Changelog
[1.0.0] - 2024-09-06
except
helper package (#1).EventEmitter
with native EventTarget
(#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 single CustomEvent
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
})