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.
- BREAKING: Increase minimum Node.js version to
^18.18
(#145) - Bump
@metamask/utils
from^9.0.0
to^11.0.1
(#144, #148, #153)
- Bump
@metamask/utils
from^8.1.0
to^9.0.0
(#140)
- Support overriding default Duplex Stream options as constructor options. (#131)
- BREAKING: Increase minimum Node.js version to
^16.20.0
(#110) - Update
@metamask/utils
from^5.0.2
to^8.0.1
(#108)
- BREAKING: Update
readable-stream
from2.3.3
to3.6.2
(#88)
- Add
setLogger
function for logging incoming/outgoing messages (#93)
- Use
addEventListener
instead ofonmessage
in WebWorkerPostMessageStream (#83)- This fixes compatibility with LavaMoat.
- Fixed accessing MessageEvent prototype after event lockdown (#79)
- Add browser runtime post message stream (#69)
- BREAKING: Use separate entrypoint for browser environments (#49)
- This means
worker_threads
andchild_process
streams are no longer exposed in the browser.
- This means
- Export
BasePostMessageStream
(#45)
- Fix
WindowPostMessageStream
parameter documentation (#43)- The security implications of the
targetOrigin
andtargetWindow
parameters were mischaracterized in the 5.0.0 documentation.
- The security implications of the
- Add
StreamData
andStreamMessage
types (#37) - Add
worker_threads
streams (#39) - Add
child_process
streams (#34)
- 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 aWebWorker
. This change may not be breaking in practice because the streams would not work in unintended environments anyway.
- For example, a
- BREAKING: Add
targetOrigin
parameter forWindowPostMessageStream
(#23)
4.0.0 - 2021-05-04
- #9: Add LICENSE file
- #6: Add
WorkerPostMessageStream
andWorkerParentPostMessageStream
- #18: Add changelog
- #18: (BREAKING) Rename package to
@metamask/post-message-stream
- #6: (BREAKING) Refactor exports
PostMessageStream
default export now exported under nameWindowPostMessageStream
- #13: Migrate to TypeScript, add typings
3.0.0 - 2017-07-13
- (BREAKING) Add handshake to mitigate synchronization issues
2.0.0 - 2017-01-17
targetWindow
constructor option- README.md
1.0.0 - 2016-08-11
- Initial release.