Skip to content

Latest commit

 

History

History
117 lines (95 loc) · 6.12 KB

CHANGELOG.md

File metadata and controls

117 lines (95 loc) · 6.12 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.

Changed

  • BREAKING: Increase minimum Node.js version to ^18.18 (#145)
  • Bump @metamask/utils from ^9.0.0 to ^11.0.1 (#144, #148, #153)

Changed

  • Bump @metamask/utils from ^8.1.0 to ^9.0.0 (#140)

Changed

  • Support overriding default Duplex Stream options as constructor options. (#131)

Changed

  • BREAKING: Increase minimum Node.js version to ^16.20.0 (#110)
  • Update @metamask/utils from ^5.0.2 to ^8.0.1 (#108)

Changed

  • BREAKING: Update readable-stream from 2.3.3 to 3.6.2 (#88)

Added

  • Add setLogger function for logging incoming/outgoing messages (#93)

Changed

  • Use addEventListener instead of onmessage in WebWorkerPostMessageStream (#83)
    • This fixes compatibility with LavaMoat.

Fixed

  • Fixed accessing MessageEvent prototype after event lockdown (#79)

Added

  • Add browser runtime post message stream (#69)

Changed

  • BREAKING: Use separate entrypoint for browser environments (#49)
    • This means worker_threads and child_process streams are no longer exposed in the browser.

Added

  • Export BasePostMessageStream (#45)

Security

  • Fix WindowPostMessageStream parameter documentation (#43)
    • The security implications of the targetOrigin and targetWindow parameters were mischaracterized in the 5.0.0 documentation.

Added

  • Add StreamData and StreamMessage types (#37)
  • Add worker_threads streams (#39)
  • Add child_process streams (#34)

Changed

  • BREAKING: Increase minimum Node.js version to ^14.0.0 (#38)
  • BREAKING: Adopt a uniform naming scheme for all classes (#40)
  • BREAKING: Throw an error when constructing a stream in the wrong environment (#40)
    • For example, a WebWorkerPostMessageStream can now only be constructed in a WebWorker. This change may not be breaking in practice because the streams would not work in unintended environments anyway.
  • BREAKING: Add targetOrigin parameter for WindowPostMessageStream (#23)

4.0.0 - 2021-05-04

Added

  • #9: Add LICENSE file
  • #6: Add WorkerPostMessageStream and WorkerParentPostMessageStream
  • #18: Add changelog

Changed

  • #18: (BREAKING) Rename package to @metamask/post-message-stream
  • #6: (BREAKING) Refactor exports
    • PostMessageStream default export now exported under name WindowPostMessageStream
  • #13: Migrate to TypeScript, add typings

3.0.0 - 2017-07-13

Changed

  • (BREAKING) Add handshake to mitigate synchronization issues

2.0.0 - 2017-01-17

Added

  • targetWindow constructor option
  • README.md

1.0.0 - 2016-08-11

Added

  • Initial release.