-
Notifications
You must be signed in to change notification settings - Fork 5k
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
chore: bump @metamask/providers
to ^17.2.0
#27049
Closed
+51
−30
Closed
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
c2ab0db
bump @metamask/providers to ^17.2.0
jiexi 26c9dae
Fix initializeProvider import
jiexi 79642c4
Update LavaMoat policies
metamaskbot 1374c7f
dedupe
jiexi 03d402f
Merge remote-tracking branch 'origin/jl/bump-provider-17.2.0' into jl…
jiexi 32a30e1
Webpack import assertion support
jiexi d7c0512
lint
jiexi cbda740
keepImportAttributes
jiexi 375d390
Merge branch 'develop' into jl/bump-provider-17.2.0
jiexi 48dd437
add emitAssertForImportAttributes
jiexi dddf498
Update LavaMoat policies
metamaskbot 80dc1e5
see getDetect import default was issue
jiexi 71c801f
Merge remote-tracking branch 'origin/jl/bump-provider-17.2.0' into jl…
jiexi 1c0282a
Merge branch 'develop' into jl/bump-provider-17.2.0
jiexi 17c36d0
fix: work around broken import/export of @metamask/providers
legobeat 9de1ea4
Merge branch 'develop' into jl/bump-provider-17.2.0
legobeat 9d33738
chore: update lavamoat policies
legobeat 77b6e4e
fixup merge
legobeat dd44d55
chore: update webpack swcLoader snapshot
legobeat 2c4af5d
chore: webpack test fix
legobeat cf3132e
Merge branch 'develop' into jl/bump-provider-17.2.0
legobeat 640d766
Merge branch 'develop' into jl/bump-provider-17.2.0
legobeat 4062d54
Merge branch 'develop' into jl/bump-provider-17.2.0
jiexi cac5cf0
yarn
jiexi ab43fd0
Update LavaMoat policies
metamaskbot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
.yarn/patches/@metamask-providers-npm-17.2.0-cb0cfcdadc.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
diff --git a/dist/extension-provider/createExternalExtensionProvider.mjs b/dist/extension-provider/createExternalExtensionProvider.mjs | ||
index f2aa9285d84cd5e25c20f5202437c476cdacc326..121a9099e456d3444d8aae79574ba9c53e7f2699 100644 | ||
--- a/dist/extension-provider/createExternalExtensionProvider.mjs | ||
+++ b/dist/extension-provider/createExternalExtensionProvider.mjs | ||
@@ -1,5 +1,4 @@ | ||
-import $detectbrowser from "detect-browser"; | ||
-const { detect } = $detectbrowser; | ||
+import { detect } from "detect-browser"; | ||
import $extensionportstream from "extension-port-stream"; | ||
const { PortDuplexStream: PortStream } = $extensionportstream; | ||
import config from "./external-extension-config.json" assert { type: "json" }; | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ cleanContextForImports(); | |
import log from 'loglevel'; | ||
import { v4 as uuid } from 'uuid'; | ||
import { WindowPostMessageStream } from '@metamask/post-message-stream'; | ||
import { initializeProvider } from '@metamask/providers/dist/initializeInpageProvider'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Relevant: MetaMask/snaps#2445 (comment) |
||
import { initializeProvider } from '@metamask/providers/dist/initializeInpageProvider.cjs'; | ||
import shouldInjectProvider from '../../shared/modules/provider-injection'; | ||
|
||
// contexts | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. these changes probably should be moved into a separate PR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -234,6 +234,8 @@ | |
"@trezor/schema-utils@npm:1.0.2": "patch:@trezor/schema-utils@npm%3A1.0.2#~/.yarn/patches/@trezor-schema-utils-npm-1.0.2-7dd48689b2.patch", | ||
"lavamoat-core@npm:^15.1.1": "patch:lavamoat-core@npm%3A15.1.1#~/.yarn/patches/lavamoat-core-npm-15.1.1-51fbe39988.patch", | ||
"@metamask/snaps-sdk": "^6.9.0", | ||
"@metamask/providers@npm:^17.1.2": "patch:@metamask/providers@npm%3A17.2.0#~/.yarn/patches/@metamask-providers-npm-17.2.0-cb0cfcdadc.patch", | ||
"@metamask/providers@npm:^15.0.0": "patch:@metamask/providers@npm%3A17.2.0#~/.yarn/patches/@metamask-providers-npm-17.2.0-cb0cfcdadc.patch", | ||
"@swc/[email protected]": "^0.1.6", | ||
"@babel/core": "patch:@babel/core@npm%3A7.25.9#~/.yarn/patches/@babel-core-npm-7.25.9-4ae3bff7f3.patch", | ||
"@babel/runtime": "patch:@babel/runtime@npm%3A7.25.9#~/.yarn/patches/@babel-runtime-npm-7.25.9-fe8c62510a.patch", | ||
|
@@ -331,7 +333,7 @@ | |
"@metamask/ppom-validator": "0.35.1", | ||
"@metamask/preinstalled-example-snap": "^0.2.0", | ||
"@metamask/profile-sync-controller": "^0.9.7", | ||
"@metamask/providers": "^14.0.2", | ||
"@metamask/providers": "patch:@metamask/providers@npm%3A17.2.0#~/.yarn/patches/@metamask-providers-npm-17.2.0-cb0cfcdadc.patch", | ||
"@metamask/queued-request-controller": "^2.0.0", | ||
"@metamask/rate-limit-controller": "^6.0.0", | ||
"@metamask/rpc-errors": "^7.0.0", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
without this patch, I get the following from the inpage provider in the dapp web console