Socket
Socket
Sign inDemoInstall

@metamask/providers

Package Overview
Dependencies
Maintainers
0
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@metamask/providers - npm Package Compare versions

Comparing version 17.0.0 to 17.1.0

dist/BaseProvider.cjs

22

CHANGELOG.md

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

## [17.1.0]
### Changed
- Bump `@metamask/json-rpc-middleware-stream` from `^7.0.1` to `^8.0.0` ([#327](https://github.com/MetaMask/providers/pull/327))
- Bump `@metamask/json-rpc-engine` from `^8.0.2` to `^9.0.0` ([#328](https://github.com/MetaMask/providers/pull/328))
- Bump `extension-port-stream` from `^3.0.0` to `^4.1.0` ([#331](https://github.com/MetaMask/providers/pull/331))
- Bump `@metamask/utils` from `^8.4.0` to `^8.5.0` ([#329](https://github.com/MetaMask/providers/pull/329))
- Bump `@metamask/rpc-errors` from `^6.2.1` to `^6.3.0` ([#326](https://github.com/MetaMask/providers/pull/326))
### Fixed
- Produce and export ESM-compatible TypeScript type declaration files in addition to CommonJS-compatible declaration files ([#336](https://github.com/MetaMask/providers/pull/336))
- This fixes the issue of this package being unusable by any TypeScript project that uses `Node16` or `NodeNext` as its `moduleResolution` option.
- Previously, this package shipped with only one variant of type declaration files, and these files were only CommonJS-compatible, and the `exports` field in `package.json` linked to these files. This is an anti-pattern and was rightfully flagged by the ["Are the Types Wrong?"](https://arethetypeswrong.github.io/) tool as ["masquerading as CJS"](https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/main/docs/problems/FalseCJS.md).
- Remove chunk files ([#336](https://github.com/MetaMask/providers/pull/336)).
- 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.
- Use named `extension-port-stream` import to ensure compatibility with bundlers such as Vite ([#331](https://github.com/MetaMask/providers/pull/331))
## [17.0.0]

@@ -407,3 +426,4 @@

[Unreleased]: https://github.com/MetaMask/providers/compare/v17.0.0...HEAD
[Unreleased]: https://github.com/MetaMask/providers/compare/v17.1.0...HEAD
[17.1.0]: https://github.com/MetaMask/providers/compare/v17.0.0...v17.1.0
[17.0.0]: https://github.com/MetaMask/providers/compare/v16.1.0...v17.0.0

@@ -410,0 +430,0 @@ [16.1.0]: https://github.com/MetaMask/providers/compare/v16.0.0...v16.1.0

46

package.json
{
"name": "@metamask/providers",
"version": "17.0.0",
"version": "17.1.0",
"description": "A JavaScript Ethereum provider that connects to the wallet over a stream",

@@ -23,16 +23,26 @@ "keywords": [

".": {
"import": "./dist/index.mjs",
"require": "./dist/index.js",
"types": "./dist/types/index.d.ts"
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
},
"./dist/StreamProvider": {
"import": "./dist/StreamProvider.mjs",
"require": "./dist/StreamProvider.js",
"types": "./dist/types/StreamProvider.d.ts"
"import": {
"types": "./dist/StreamProvider.d.mts",
"default": "./dist/StreamProvider.mjs"
},
"require": {
"types": "./dist/StreamProvider.d.cts",
"default": "./dist/StreamProvider.cjs"
}
},
"./package.json": "./package.json"
},
"main": "./dist/index.js",
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/types/index.d.ts",
"types": "./dist/index.d.cts",
"files": [

@@ -42,3 +52,3 @@ "dist"

"scripts": {
"build": "tsup --clean && yarn build:types",
"build": "ts-bridge --project tsconfig.build.json --clean",
"build:clean": "rimraf dist && yarn build",

@@ -62,4 +72,4 @@ "build:docs": "typedoc",

"dependencies": {
"@metamask/json-rpc-engine": "^8.0.1",
"@metamask/json-rpc-middleware-stream": "^7.0.1",
"@metamask/json-rpc-engine": "^9.0.0",
"@metamask/json-rpc-middleware-stream": "^8.0.0",
"@metamask/object-multiplex": "^2.0.0",

@@ -70,3 +80,3 @@ "@metamask/rpc-errors": "^6.2.1",

"detect-browser": "^5.2.0",
"extension-port-stream": "^3.0.0",
"extension-port-stream": "^4.1.0",
"fast-deep-equal": "^3.1.3",

@@ -77,3 +87,3 @@ "is-stream": "^2.0.0",

"devDependencies": {
"@lavamoat/allow-scripts": "^3.0.0",
"@lavamoat/allow-scripts": "^3.0.4",
"@lavamoat/preinstall-always-fail": "^2.0.0",

@@ -85,5 +95,7 @@ "@metamask/auto-changelog": "^3.4.3",

"@metamask/eslint-config-typescript": "^12.1.0",
"@ts-bridge/cli": "^0.1.4",
"@ts-bridge/shims": "^0.1.1",
"@types/chrome": "^0.0.233",
"@types/jest": "^28.1.6",
"@types/node": "^17.0.23",
"@types/node": "^20.14.9",
"@types/uuid": "^9.0.1",

@@ -111,3 +123,2 @@ "@types/webextension-polyfill": "^0.10.0",

"ts-node": "^10.7.0",
"tsup": "^7.2.0",
"typedoc": "^0.23.15",

@@ -130,6 +141,5 @@ "typescript": "~4.8.4",

"allowScripts": {
"@lavamoat/preinstall-always-fail": false,
"tsup>esbuild": true
"@lavamoat/preinstall-always-fail": false
}
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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