UNPKG

3.73 kBMarkdownView Raw
1# Changelog
2
3All notable changes to this project will be documented in this file.
4
5The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
8## [Unreleased]
9
10## [7.0.1] - 2021-03-26
11
12### Fixed
13
14- `blockTrackerInspectorMiddleware` ([#88](https://github.com/MetaMask/eth-json-rpc-middleware/pull/88))
15 - Due to an error introduced in [#68](https://github.com/MetaMask/eth-json-rpc-middleware/pull/68), this middleware would sometimes hang indefinitely.
16
17## [7.0.0] - 2021-03-25
18
19### Added
20
21- TypeScript types ([#68](https://github.com/MetaMask/eth-json-rpc-middleware/pull/68))
22
23### Changed
24
25- **(BREAKING)** Move middleware files to `/src` folder ([#60](https://github.com/MetaMask/eth-json-rpc-middleware/pull/60))
26- **(BREAKING)** Convert all exports to named ([#81](https://github.com/MetaMask/eth-json-rpc-middleware/pull/81))
27- Migrate to TypeScript ([#68](https://github.com/MetaMask/eth-json-rpc-middleware/pull/68))
28- Replace `url` dependency with native URL global ([#67](https://github.com/MetaMask/eth-json-rpc-middleware/pull/67))
29- Ask bundlers to ignore Node-specific depedencies in browser environments ([#78](https://github.com/MetaMask/eth-json-rpc-middleware/pull/78), [#84](https://github.com/MetaMask/eth-json-rpc-middleware/pull/84))
30- Removed various unused production dependencies ([#10](https://github.com/MetaMask/eth-json-rpc-middleware/pull/10), [#80](https://github.com/MetaMask/eth-json-rpc-middleware/pull/80))
31
32### Fixed
33
34- `retryOnEmpty` middleware error messages ([#58](https://github.com/MetaMask/eth-json-rpc-middleware/pull/58))
35 - They were referencing a different middleware.
36- Default unrecognized methods to never be cached ([#66](https://github.com/MetaMask/eth-json-rpc-middleware/pull/66))
37- Only publish necessary files ([#70](https://github.com/MetaMask/eth-json-rpc-middleware/pull/70))
38- Robustify `providerFromEngine` callback parameter validation ([#76](https://github.com/MetaMask/eth-json-rpc-middleware/pull/76))
39 - Previously, it only errored if the parameter was falsy. Now, it will error if it is not a function.
40 - Passing the previous implementation a truthy, non-function value would cause fatal downstream errors.
41- Prevent caching unrecognized requests ([#75](https://github.com/MetaMask/eth-json-rpc-middleware/pull/75))
42 - Previously, nonsense values were sometimes cached, resulting in an ugly state and possibly a minor performance penalty.
43
44### Removed
45
46- **(BREAKING)** Parity middleware ([#63](https://github.com/MetaMask/eth-json-rpc-middleware/pull/63))
47 - Previously imported as `eth-json-rpc-middleware/wallet-parity.js`
48- **(BREAKING)** Scaffold middleware ([#60](https://github.com/MetaMask/eth-json-rpc-middleware/pull/60))
49 - This was just a re-export from `json-rpc-engine`.
50
51## [6.0.0] - 2020-09-22
52
53### Changed
54
55- **(BREAKING)** Delete VM middleware ([#56](https://github.com/MetaMask/eth-json-rpc-middleware/pull/56))
56 - Previously imported as `eth-json-rpc-middleware/vm.js`
57
58## [5.1.0] - 2020-09-22
59
60### Changed
61
62- `json-rpc-engine@5.3.0` ([#53](https://github.com/MetaMask/eth-json-rpc-middleware/pull/53))
63- `eth-rpc-errors@3.0.0` ([#55](https://github.com/MetaMask/eth-json-rpc-middleware/pull/55))
64
65[Unreleased]:https://github.com/MetaMask/eth-json-rpc-middleware/compare/v7.0.1...HEAD
66[7.0.1]:https://github.com/MetaMask/eth-json-rpc-middleware/compare/v7.0.0...v7.0.1
67[7.0.0]:https://github.com/MetaMask/eth-json-rpc-middleware/compare/v6.0.0...v7.0.0
68[6.0.0]:https://github.com/MetaMask/eth-json-rpc-middleware/compare/v5.1.0...v6.0.0
69[5.1.0]:https://github.com/MetaMask/eth-json-rpc-middleware/compare/v5.0.3...v5.1.0