包详细信息

json-rpc-middleware-stream

MetaMask99.5kISC5.0.1

A small toolset for streaming JSON-RPC data and matching requests and responses.

自述文件

json-rpc-middleware-stream

A small toolset for streaming JSON RPC data and matching requests and responses. Made to be used with @metamask/json-rpc-engine.

更新日志

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.

Unreleased

5.0.1

Changed

  • Upgrade typescript version to 4.8.4 (#68)

5.0.0

Changed

  • BREAKING: Increase minimum Node.js version to 16 (#59)
  • BREAKING: Update readable-stream from ^2.3.3 to ^3.6.2 (#55)
  • BREAKING: Switch from legacy json-rpc-engine@^6.1.0 to @metamask/json-rpc-engine@^7.1.1 (#54)
  • Add dependency @metamask/utils (#54)

4.2.3

Fixed

  • Moved json-rpc-engine from devDependencies to dependencies (#56)

4.2.2

Changed

  • Bump @metamask/safe-event-emitter from 2.0.0 to 3.0.0 (#44)

Fixed

  • Fix race condition in createStreamMiddleware (#47)
    • Previously this middleware would fail to process synchronous responses on initialized streams

4.2.1

Fixed

  • Add early return in createStreamMiddleware.processsResponse method if JSON RPC request is not found (#35)

4.2.0

Changed

  • Change error throw when response is seen for unknown request into warning displayed in console (#32)

4.1.0

Changed

  • Added retry limit of 3 to requests (#30)

4.0.0 - 2022-10-03

Changed

  • BREAKING: Add Node 12 as minimum required version #15
  • Retry pending requests when notification to reconnect is received (#27)

Security

  • Add @lavamoat/allow-scripts to make dependency install scripts opt-in (#25)

3.0.0 - 2020-12-08

Added

  • TypeScript typings (#11)