Skip to content

Latest commit

 

History

History
46 lines (38 loc) · 1.74 KB

CHANGELOG.md

File metadata and controls

46 lines (38 loc) · 1.74 KB

Changelog

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

Fixed

  • Add 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.

1.1.0 - 2024-09-09

Added

  • 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

Changed

  • Remove usage of Node core lib util module (#1).
  • Remove usage of except helper package (#1).
  • BREAKING Replace usage of Node 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
    })