# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

| Icon | Description                                                    |
| ---- | -------------------------------------------------------------- |
| 👷🏻   | Related to development experience and non-production impacting |
| 💥   | Related to API breaking changes                                |

## [0.3.0] - 2026-06-24

### Changed

- Concealed internals from `globalThis`, in PR [#12](https://github.com/teamonting/selenium-webdriver-message-port/pull/12), by [@compulim](https://github.com/compulim)
- 💥 Renamed CDN entry point for migrating to import map, in PR [#12](https://github.com/teamonting/selenium-webdriver-message-port/pull/12), by [@compulim](https://github.com/compulim)
- Concealed internals using `globalThis[Symbol.for(*)]` instead of `import()`, in PR [#13](https://github.com/teamonting/selenium-webdriver-message-port/pull/13), by [@compulim](https://github.com/compulim)
- BiDi: use notify than push for better transport reliability, in PR [#14](https://github.com/teamonting/selenium-webdriver-message-port/pull/14), by [@compulim](https://github.com/compulim)

### Fixed

- BiDi: client should not overwrite host notify handler due to race condition, in PR [#15](https://github.com/teamonting/selenium-webdriver-message-port/pull/15), by [@compulim](https://github.com/compulim)
- BiDi: handle error graceful if frame is closed too quickly, in PR [#16](https://github.com/teamonting/selenium-webdriver-message-port/pull/16), by [@compulim](https://github.com/compulim)

## [0.2.0] - 2026-06-13

### Added

- Added [structured clone algorithm](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm) for marshalling objects, in PR [#9](https://github.com/teamonting/selenium-webdriver-message-port/pull/9), by [@compulim](https://github.com/compulim)

### Changed

- 💥 Added `.js` suffix to named exports, in PR [#8](https://github.com/teamonting/selenium-webdriver-message-port/pull/8), by [@compulim](https://github.com/compulim)
  - `@onting/selenium-webdriver-messageport/browser` is now `@onting/selenium-webdriver-messageport/browser.js`
  - `@onting/selenium-webdriver-messageport/host` is now `@onting/selenium-webdriver-messageport/host.js`

### Fixed

- Fixed `MessagePort` should close if `viaBiDi()` call failed prematurely, in PR [#7](https://github.com/teamonting/selenium-webdriver-message-port/pull/7), by [@compulim](https://github.com/compulim)

## [0.1.0] - 2026-06-08

### Added

- Initial public release

[0.3.0]: https://github.com/teamonting/selenium-webdriver-message-port/compare/v0.2.0...v0.3.0
[0.2.0]: https://github.com/teamonting/selenium-webdriver-message-port/compare/v0.1.0...v0.2.0
[0.1.0]: https://github.com/teamonting/selenium-webdriver-message-port/releases/tag/v0.1.0
