Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eth-json-rpc-middleware

Package Overview
Dependencies
Maintainers
6
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eth-json-rpc-middleware - npm Package Compare versions

Comparing version 6.0.0 to 7.0.0

dist/block-cache.d.ts

37

CHANGELOG.md

@@ -10,2 +10,34 @@ # Changelog

## [7.0.0] - 2021-03-25
### Added
- TypeScript types ([#68](https://github.com/MetaMask/eth-json-rpc-middleware/pull/68))
### Changed
- **(BREAKING)** Move middleware files to `/src` folder ([#60](https://github.com/MetaMask/eth-json-rpc-middleware/pull/60))
- **(BREAKING)** Convert all exports to named ([#81](https://github.com/MetaMask/eth-json-rpc-middleware/pull/81))
- Migrate to TypeScript ([#68](https://github.com/MetaMask/eth-json-rpc-middleware/pull/68))
- Replace `url` dependency with native URL global ([#67](https://github.com/MetaMask/eth-json-rpc-middleware/pull/67))
- 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))
- 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))
### Fixed
- `retryOnEmpty` middleware error messages ([#58](https://github.com/MetaMask/eth-json-rpc-middleware/pull/58))
- They were referencing a different middleware.
- Default unrecognized methods to never be cached ([#66](https://github.com/MetaMask/eth-json-rpc-middleware/pull/66))
- Only publish necessary files ([#70](https://github.com/MetaMask/eth-json-rpc-middleware/pull/70))
- Robustify `providerFromEngine` callback parameter validation ([#76](https://github.com/MetaMask/eth-json-rpc-middleware/pull/76))
- Previously, it only errored if the parameter was falsy. Now, it will error if it is not a function.
- Passing the previous implementation a truthy, non-function value would cause fatal downstream errors.
- Prevent caching unrecognized requests ([#75](https://github.com/MetaMask/eth-json-rpc-middleware/pull/75))
- Previously, nonsense values were sometimes cached, resulting in an ugly state and possibly a minor performance penalty.
### Removed
- **(BREAKING)** Parity middleware ([#63](https://github.com/MetaMask/eth-json-rpc-middleware/pull/63))
- Previously imported as `eth-json-rpc-middleware/wallet-parity.js`
## [6.0.0] - 2020-09-22

@@ -15,3 +47,3 @@

- **Breaking:** Delete VM middleware ([#56](https://github.com/MetaMask/eth-json-rpc-middleware/pull/56))
- **(BREAKING)** Delete VM middleware ([#56](https://github.com/MetaMask/eth-json-rpc-middleware/pull/56))
- Previously imported as `eth-json-rpc-middleware/vm.js`

@@ -26,4 +58,5 @@

[Unreleased]:https://github.com/MetaMask/eth-json-rpc-middleware/compare/v6.0.0...HEAD
[Unreleased]:https://github.com/MetaMask/eth-json-rpc-middleware/compare/v7.0.0...HEAD
[7.0.0]:https://github.com/MetaMask/eth-json-rpc-middleware/compare/v6.0.0...v7.0.0
[6.0.0]:https://github.com/MetaMask/eth-json-rpc-middleware/compare/v5.1.0...v6.0.0
[5.1.0]:https://github.com/MetaMask/eth-json-rpc-middleware/compare/v5.0.3...v5.1.0

75

package.json
{
"name": "eth-json-rpc-middleware",
"version": "6.0.0",
"main": "block-ref.js",
"description": "Ethereum-related json-rpc-engine middleware.",
"version": "7.0.0",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"browser": {
"node-fetch": false,
"btoa": false
},
"engines": {
"node": ">=10.0.0"
},
"directories": {

@@ -9,45 +18,53 @@ "test": "test"

"scripts": {
"lint": "printf '%s\\n' 'No lint command'",
"test": "node test/index.js"
"build": "rm -rf ./dist && tsc --project .",
"lint": "eslint . --ext ts,js,json",
"lint:fix": "yarn lint --fix",
"test:nobuild": "node test/index.js",
"test": "yarn build && yarn test:nobuild"
},
"author": "",
"license": "ISC",
"files": [
"*.js"
"dist/"
],
"resolutions": {
"ganache-core/**/elliptic": "^6.5.3",
"ganache-core/lodash": "^4.17.19"
},
"devDependencies": {
"@babel/core": "^7.5.5",
"async": "^2.5.0",
"concat-stream": "^1.6.2",
"eth-block-tracker": "^4.4.1",
"ethjs-query": "^0.3.8",
"ganache-core": "^2.7.0",
"tape": "^4.6.3"
},
"dependencies": {
"@metamask/safe-event-emitter": "^2.0.0",
"btoa": "^1.2.1",
"clone": "^2.1.1",
"eth-query": "^2.1.2",
"eth-rpc-errors": "^3.0.0",
"eth-rpc-errors": "^4.0.3",
"eth-sig-util": "^1.4.2",
"ethereumjs-util": "^5.1.2",
"json-rpc-engine": "^5.3.0",
"json-rpc-engine": "^6.1.0",
"json-stable-stringify": "^1.0.1",
"node-fetch": "^2.6.1",
"pify": "^3.0.0",
"safe-event-emitter": "^1.0.1"
"pify": "^3.0.0"
},
"devDependencies": {
"@metamask/eslint-config": "^5.0.0",
"@types/btoa": "^1.2.3",
"@types/clone": "^2.1.0",
"@types/eth-sig-util": "^2.1.0",
"@types/json-stable-stringify": "^1.0.32",
"@types/node": "^14.14.36",
"@types/pify": "^3.0.2",
"@typescript-eslint/eslint-plugin": "^4.10.0",
"@typescript-eslint/parser": "^4.10.0",
"async": "^2.5.0",
"concat-stream": "^1.6.2",
"eslint": "^7.14.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-json": "^2.1.2",
"eslint-plugin-node": "^11.1.0",
"eth-block-tracker": "^5.0.1",
"ethjs-query": "^0.3.8",
"ganache-core": "^2.13.2",
"tape": "^4.6.3",
"typescript": "^4.1.3"
},
"repository": {
"type": "git",
"url": "git+https://github.com/kumavis/eth-json-rpc-middleware.git"
"url": "git+https://github.com/MetaMask/eth-json-rpc-middleware.git"
},
"bugs": {
"url": "https://github.com/kumavis/eth-json-rpc-middleware/issues"
"url": "https://github.com/MetaMask/eth-json-rpc-middleware/issues"
},
"homepage": "https://github.com/kumavis/eth-json-rpc-middleware#readme",
"description": ""
"homepage": "https://github.com/MetaMask/eth-json-rpc-middleware#readme"
}
# eth-json-rpc-middleware
Ethereum related middleware for [`json-rpc-engine`](https://github.com/MetaMask/json-rpc-engine).
Ethereum-related middleware for [`json-rpc-engine`](https://github.com/MetaMask/json-rpc-engine).
See tests for usage details.
### see also
## See Also

@@ -12,2 +12,1 @@ - [`eth-json-rpc-filters`](https://github.com/MetaMask/eth-json-rpc-filters).

- [`json-rpc-engine`](https://github.com/MetaMask/json-rpc-engine).
- (semi-deprecated) [`provider-engine`](https://github.com/MetaMask/provider-engine)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc