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.
- Bump
@metamask/json-rpc-enginefrom^10.0.2to^10.0.3(#5272) - Bump
@metamask/utilsfrom^11.0.1to^11.1.0(#5223)
- Bump
@metamask/json-rpc-enginefrom^10.0.1to^10.0.2(#5082) - Bump
@metamask/utilsfrom^10.0.0to^11.0.1(#5080)
- Bump
@metamask/utilsfrom^9.1.0to^10.0.0(#4831)
- Bump
@metamask/json-rpc-engineto^10.0.0(#4798)
- Produce and export ESM-compatible TypeScript type declaration files in addition to CommonJS-compatible declaration files (#4648)
- Previously, this package shipped with only one variant of type declaration
files, and these files were only CommonJS-compatible, and the
exportsfield inpackage.jsonlinked to these files. This is an anti-pattern and was rightfully flagged by the "Are the Types Wrong?" tool as "masquerading as CJS". All of the ATTW checks now pass.
- Previously, this package shipped with only one variant of type declaration
files, and these files were only CommonJS-compatible, and the
- Remove chunk files (#4648).
- Previously, the build tool we used to generate JavaScript files extracted common code to "chunk" files. While this was intended to make this package more tree-shakeable, it also made debugging more difficult for our development teams. These chunk files are no longer present.
- Bump TypeScript version to
~5.0.4and setmoduleResolutionoption toNode16(#3645) - Bump
@metamask/utilsfrom^9.0.0to^9.1.0(#4529)
- Bump
@metamask/json-rpc-engineto^9.0.1(#4517) - Bump
@metamask/rpc-errorsto^6.3.1(#4516) - Bump
@metamask/utilsto^9.0.0(#4516)
- Fix incorrect notification detection logic (#4427)
- Previously, response objects with a falsy
idproperty were detected as notifications. Now, we check for the absence of theidproperty.
- Previously, response objects with a falsy
- BREAKING: Bump minimum Node version to 18.18 (#3611)
- Bump
@metamask/json-rpc-engineto^9.0.0(#4352)
- Bump
@metamask/json-rpc-engineto^8.0.2(#4234)
- Fix
typesfield inpackage.json(#4047)
- BREAKING: Add ESM build (#3998)
- It's no longer possible to import files from
./distdirectly.
- It's no longer possible to import files from
- Bump
@metamask/json-rpc-engineto^8.0.0(#4039)
- Bump
@metamask/json-rpc-engineto^7.3.1(#3695)
- Migrate
@metamask/json-rpc-engineinto the core monorepo (#1762)
- BREAKING: Rename package from
json-rpc-middleware-streamto@metamask/json-rpc-middleware-stream(#1762) - Bump
@metamask/json-rpc-enginefrom^7.1.0to^7.2.0(#1762) - Bump
@metamask/utilsfrom^8.1.0to^8.2.0(#1762)
- Upgrade typescript version to 4.8.4 (#68)
- BREAKING: Increase minimum Node.js version to 16 (#59)
- BREAKING: Update
readable-streamfrom^2.3.3to^3.6.2(#55) - BREAKING: Switch from legacy
json-rpc-engine@^6.1.0to@metamask/json-rpc-engine@^7.1.1(#54) - Add dependency
@metamask/utils(#54)
- Moved json-rpc-engine from devDependencies to dependencies (#56)
- Bump @metamask/safe-event-emitter from 2.0.0 to 3.0.0 (#44)
- Fix race condition in
createStreamMiddleware(#47)- Previously this middleware would fail to process synchronous responses on initialized streams
- Add early return in createStreamMiddleware.processsResponse method if JSON RPC request is not found (#35)
- Change error throw when response is seen for unknown request into warning displayed in console (#32)
- Added retry limit of 3 to requests (#30)
4.0.0 - 2022-10-03
- BREAKING: Add Node 12 as minimum required version #15
- Retry pending requests when notification to reconnect is received (#27)
- Add
@lavamoat/allow-scriptsto make dependency install scripts opt-in (#25)
3.0.0 - 2020-12-08
- TypeScript typings (#11)