Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump @metamask/providers to ^17.1.2 #2598

Merged
merged 4 commits into from
Jul 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@
"simple-git-hooks": "^2.7.0",
"ts-node": "^10.9.1",
"tsup": "^8.0.1",
"typescript": "~4.8.4"
"typescript": "~4.8.4",
"vite": "^4.3.9"
},
"engines": {
"node": "^18.16 || >=20"
Expand All @@ -122,7 +123,8 @@
"ts-node>@swc/core": true,
"@swc/core": true,
"favicons>sharp": true,
"tsup>esbuild": true
"tsup>esbuild": true,
"vite>esbuild": true
}
},
"packageManager": "yarn@3.6.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
"console": true
},
"packages": {
"@metamask/json-rpc-engine": true,
"@metamask/object-multiplex": true,
"@metamask/providers>@metamask/json-rpc-engine": true,
"@metamask/providers>@metamask/json-rpc-middleware-stream": true,
"@metamask/providers>@metamask/safe-event-emitter": true,
"@metamask/providers>is-stream": true,
Expand All @@ -52,20 +52,14 @@
"readable-stream": true
}
},
"@metamask/providers>@metamask/json-rpc-engine": {
"packages": {
"@metamask/providers>@metamask/safe-event-emitter": true,
"@metamask/rpc-errors": true,
"@metamask/utils": true
}
},
"@metamask/providers>@metamask/json-rpc-middleware-stream": {
"globals": {
"console.warn": true,
"setTimeout": true
},
"packages": {
"@metamask/providers>@metamask/safe-event-emitter": true,
"@metamask/utils": true,
"readable-stream": true
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
"console": true
},
"packages": {
"@metamask/json-rpc-engine": true,
"@metamask/object-multiplex": true,
"@metamask/providers>@metamask/json-rpc-engine": true,
"@metamask/providers>@metamask/json-rpc-middleware-stream": true,
"@metamask/providers>@metamask/safe-event-emitter": true,
"@metamask/providers>is-stream": true,
Expand All @@ -59,20 +59,14 @@
"readable-stream": true
}
},
"@metamask/providers>@metamask/json-rpc-engine": {
"packages": {
"@metamask/providers>@metamask/safe-event-emitter": true,
"@metamask/rpc-errors": true,
"@metamask/utils": true
}
},
"@metamask/providers>@metamask/json-rpc-middleware-stream": {
"globals": {
"console.warn": true,
"setTimeout": true
},
"packages": {
"@metamask/providers>@metamask/safe-event-emitter": true,
"@metamask/utils": true,
"readable-stream": true
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
"console": true
},
"packages": {
"@metamask/json-rpc-engine": true,
"@metamask/object-multiplex": true,
"@metamask/providers>@metamask/json-rpc-engine": true,
"@metamask/providers>@metamask/json-rpc-middleware-stream": true,
"@metamask/providers>@metamask/safe-event-emitter": true,
"@metamask/providers>is-stream": true,
Expand All @@ -59,20 +59,14 @@
"readable-stream": true
}
},
"@metamask/providers>@metamask/json-rpc-engine": {
"packages": {
"@metamask/providers>@metamask/safe-event-emitter": true,
"@metamask/rpc-errors": true,
"@metamask/utils": true
}
},
"@metamask/providers>@metamask/json-rpc-middleware-stream": {
"globals": {
"console.warn": true,
"setTimeout": true
},
"packages": {
"@metamask/providers>@metamask/safe-event-emitter": true,
"@metamask/utils": true,
"readable-stream": true
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
"console": true
},
"packages": {
"@metamask/json-rpc-engine": true,
"@metamask/object-multiplex": true,
"@metamask/providers>@metamask/json-rpc-engine": true,
"@metamask/providers>@metamask/json-rpc-middleware-stream": true,
"@metamask/providers>@metamask/safe-event-emitter": true,
"@metamask/providers>is-stream": true,
Expand All @@ -52,20 +52,14 @@
"readable-stream": true
}
},
"@metamask/providers>@metamask/json-rpc-engine": {
"packages": {
"@metamask/providers>@metamask/safe-event-emitter": true,
"@metamask/rpc-errors": true,
"@metamask/utils": true
}
},
"@metamask/providers>@metamask/json-rpc-middleware-stream": {
"globals": {
"console.warn": true,
"setTimeout": true
},
"packages": {
"@metamask/providers>@metamask/safe-event-emitter": true,
"@metamask/utils": true,
"readable-stream": true
}
},
Expand Down
2 changes: 1 addition & 1 deletion packages/snaps-execution-environments/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"@metamask/json-rpc-engine": "^9.0.2",
"@metamask/object-multiplex": "^2.0.0",
"@metamask/post-message-stream": "^8.1.0",
"@metamask/providers": "17.0.0",
"@metamask/providers": "^17.1.2",
"@metamask/rpc-errors": "^6.3.1",
"@metamask/snaps-sdk": "workspace:^",
"@metamask/snaps-utils": "workspace:^",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/// <reference path="../../../../node_modules/ses/types.d.ts" />
import { createIdRemapMiddleware } from '@metamask/json-rpc-engine';
import type { RequestArguments } from '@metamask/providers';
import { StreamProvider } from '@metamask/providers/dist/StreamProvider';
import { StreamProvider } from '@metamask/providers/stream-provider';
import { errorCodes, rpcErrors, serializeError } from '@metamask/rpc-errors';
import type { SnapsProvider } from '@metamask/snaps-sdk';
import { getErrorData } from '@metamask/snaps-sdk';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import { walk } from '@lavamoat/lavatube';
import { createIdRemapMiddleware } from '@metamask/json-rpc-engine';
import ObjectMultiplex from '@metamask/object-multiplex';
import { StreamProvider } from '@metamask/providers';
import type { RequestArguments } from '@metamask/providers/dist/BaseProvider';
import type { RequestArguments } from '@metamask/providers';
import { StreamProvider } from '@metamask/providers/stream-provider';
import { SNAP_STREAM_NAMES } from '@metamask/snaps-utils';

import {
Expand Down Expand Up @@ -59,5 +59,5 @@ export function getMockedStreamProvider() {
return await withTeardown(originalRequest(args), { lastTeardown: 0 });
};

return proxyStreamProvider(provider, request);
return proxyStreamProvider(request);
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// TODO: Remove this file once we switch to `Node16` module resolution in
// `tsconfig.json`.
// eslint-disable-next-line import/unambiguous
declare module '@metamask/providers/dist/StreamProvider' {
declare module '@metamask/providers/stream-provider' {
import { StreamProvider } from '@metamask/providers';

export { StreamProvider };
Expand Down
1 change: 1 addition & 0 deletions packages/snaps-execution-environments/wdio.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const config = {
viteConfig: {
plugins: [tsconfigPaths()],
optimizeDeps: {
include: ['@metamask/providers/stream-provider'],
esbuildOptions: {
plugins: [
NodeModulesPolyfillPlugin(),
Expand Down
2 changes: 1 addition & 1 deletion packages/snaps-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
},
"dependencies": {
"@metamask/key-tree": "^9.1.2",
"@metamask/providers": "17.0.0",
"@metamask/providers": "^17.1.2",
"@metamask/rpc-errors": "^6.3.1",
"@metamask/superstruct": "^3.1.0",
"@metamask/utils": "^9.1.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/test-snaps/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"@metamask/eslint-config-jest": "^12.1.0",
"@metamask/eslint-config-nodejs": "^12.1.0",
"@metamask/eslint-config-typescript": "^12.1.0",
"@metamask/providers": "17.0.0",
"@metamask/providers": "^17.1.2",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.10",
"@swc/core": "1.3.78",
"@swc/jest": "^0.2.26",
Expand Down
61 changes: 22 additions & 39 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4877,7 +4877,7 @@ __metadata:
languageName: unknown
linkType: soft

"@metamask/json-rpc-engine@npm:^8.0.1, @metamask/json-rpc-engine@npm:^8.0.2":
"@metamask/json-rpc-engine@npm:^8.0.2":
version: 8.0.2
resolution: "@metamask/json-rpc-engine@npm:8.0.2"
dependencies:
Expand All @@ -4888,7 +4888,7 @@ __metadata:
languageName: node
linkType: hard

"@metamask/json-rpc-engine@npm:^9.0.2":
"@metamask/json-rpc-engine@npm:^9.0.1, @metamask/json-rpc-engine@npm:^9.0.2":
version: 9.0.2
resolution: "@metamask/json-rpc-engine@npm:9.0.2"
dependencies:
Expand Down Expand Up @@ -4935,19 +4935,7 @@ __metadata:
languageName: unknown
linkType: soft

"@metamask/json-rpc-middleware-stream@npm:^7.0.1":
version: 7.0.1
resolution: "@metamask/json-rpc-middleware-stream@npm:7.0.1"
dependencies:
"@metamask/json-rpc-engine": ^8.0.1
"@metamask/safe-event-emitter": ^3.0.0
"@metamask/utils": ^8.3.0
readable-stream: ^3.6.2
checksum: aacf571a906c3c1d5376e9b1f78d47510b568cc64af26f432dfaa6c6d5480d86e0f8af36855c57a0de95c017313d7ff19bfc396c648aa6ee79f689092154d46b
languageName: node
linkType: hard

"@metamask/json-rpc-middleware-stream@npm:^8.0.2":
"@metamask/json-rpc-middleware-stream@npm:^8.0.1, @metamask/json-rpc-middleware-stream@npm:^8.0.2":
version: 8.0.2
resolution: "@metamask/json-rpc-middleware-stream@npm:8.0.2"
dependencies:
Expand Down Expand Up @@ -5291,24 +5279,24 @@ __metadata:
languageName: node
linkType: hard

"@metamask/providers@npm:17.0.0":
version: 17.0.0
resolution: "@metamask/providers@npm:17.0.0"
"@metamask/providers@npm:^17.1.2":
version: 17.1.2
resolution: "@metamask/providers@npm:17.1.2"
dependencies:
"@metamask/json-rpc-engine": ^8.0.1
"@metamask/json-rpc-middleware-stream": ^7.0.1
"@metamask/json-rpc-engine": ^9.0.1
"@metamask/json-rpc-middleware-stream": ^8.0.1
"@metamask/object-multiplex": ^2.0.0
"@metamask/rpc-errors": ^6.2.1
"@metamask/rpc-errors": ^6.3.1
"@metamask/safe-event-emitter": ^3.1.1
"@metamask/utils": ^8.3.0
"@metamask/utils": ^9.0.0
detect-browser: ^5.2.0
extension-port-stream: ^3.0.0
extension-port-stream: ^4.1.0
fast-deep-equal: ^3.1.3
is-stream: ^2.0.0
readable-stream: ^3.6.2
peerDependencies:
webextension-polyfill: ^0.10.0 || ^0.11.0 || ^0.12.0
checksum: 330e369458edc68d743d87b8b2597cdacac58df01b5fc31f565ae5dacee2390ee23693fb10fa451c6146665e87475a4c8f54163407eb05fceeb698900e34f9e6
checksum: 4cfe612649120049abd5d496e02facd86d0851c10e810a3e1289629857da027d77524e6cb8706d38b993bc5fd696bce6f1d33c93bb7d15169b6422e063f205ea
languageName: node
linkType: hard

Expand Down Expand Up @@ -5677,7 +5665,7 @@ __metadata:
"@metamask/json-rpc-engine": ^9.0.2
"@metamask/object-multiplex": ^2.0.0
"@metamask/post-message-stream": ^8.1.0
"@metamask/providers": 17.0.0
"@metamask/providers": ^17.1.2
"@metamask/rpc-errors": ^6.3.1
"@metamask/snaps-sdk": "workspace:^"
"@metamask/snaps-utils": "workspace:^"
Expand Down Expand Up @@ -5907,7 +5895,7 @@ __metadata:
"@metamask/eslint-config-nodejs": ^12.1.0
"@metamask/eslint-config-typescript": ^12.1.0
"@metamask/key-tree": ^9.1.2
"@metamask/providers": 17.0.0
"@metamask/providers": ^17.1.2
"@metamask/rpc-errors": ^6.3.1
"@metamask/superstruct": ^3.1.0
"@metamask/utils": ^9.1.0
Expand Down Expand Up @@ -6220,7 +6208,7 @@ __metadata:
"@metamask/name-lookup-example-snap": "workspace:^"
"@metamask/network-example-snap": "workspace:^"
"@metamask/notification-example-snap": "workspace:^"
"@metamask/providers": 17.0.0
"@metamask/providers": ^17.1.2
"@metamask/signature-insights-example-snap": "workspace:^"
"@metamask/snaps-utils": "workspace:^"
"@metamask/utils": ^9.1.0
Expand Down Expand Up @@ -13263,13 +13251,14 @@ __metadata:
languageName: node
linkType: hard

"extension-port-stream@npm:^3.0.0":
version: 3.0.0
resolution: "extension-port-stream@npm:3.0.0"
"extension-port-stream@npm:^4.1.0":
version: 4.2.0
resolution: "extension-port-stream@npm:4.2.0"
dependencies:
readable-stream: ^3.6.2 || ^4.4.2
webextension-polyfill: ">=0.10.0 <1.0"
checksum: 4f51d2258a96154c2d916a8a5425636a2b0817763e9277f7dc378d08b6f050c90d185dbde4313d27cf66ad99d4b3116479f9f699c40358c64cccfa524d2b55bf
peerDependencies:
webextension-polyfill: ^0.10.0 || ^0.11.0 || ^0.12.0
checksum: 85559c82e3f3aa21462e234b30b7d53872708893664cd03f2f848af556cf0730cf2243b089efc9d40bbe9a4f73bd8fd19684db5a985329b0c4402b4f2fe26358
languageName: node
linkType: hard

Expand Down Expand Up @@ -20331,6 +20320,7 @@ __metadata:
ts-node: ^10.9.1
tsup: ^8.0.1
typescript: ~4.8.4
vite: ^4.3.9
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -22929,13 +22919,6 @@ __metadata:
languageName: node
linkType: hard

"webextension-polyfill@npm:>=0.10.0 <1.0":
version: 0.10.0
resolution: "webextension-polyfill@npm:0.10.0"
checksum: 4a59036bda571360c2c0b2fb03fe1dc244f233946bcf9a6766f677956c40fd14d270aaa69cdba95e4ac521014afbe4008bfa5959d0ac39f91c990eb206587f91
languageName: node
linkType: hard

"webidl-conversions@npm:^3.0.0":
version: 3.0.1
resolution: "webidl-conversions@npm:3.0.1"
Expand Down
Loading