Skip to content

Commit

Permalink
chore: bump snaps-utils in RC (#23628)
Browse files Browse the repository at this point in the history
## **Description**

Bumps `snaps-utils` to latest to solve a few bugs related to validation.

- Allow `maxRequestTime` on `endowment:rpc`
- Update markdown parsing for better link validation
  • Loading branch information
FrederikBolding authored Mar 21, 2024
1 parent 6473a90 commit 9cead27
Show file tree
Hide file tree
Showing 7 changed files with 511 additions and 24 deletions.
86 changes: 85 additions & 1 deletion lavamoat/browserify/beta/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -1926,13 +1926,14 @@
"fetch": true
},
"packages": {
"@metamask/permission-controller": true,
"@metamask/providers>@metamask/rpc-errors": true,
"@metamask/snaps-sdk": true,
"@metamask/snaps-sdk>@metamask/key-tree": true,
"@metamask/snaps-utils>@metamask/permission-controller": true,
"@metamask/snaps-utils>@metamask/slip44": true,
"@metamask/snaps-utils>cron-parser": true,
"@metamask/snaps-utils>fast-json-stable-stringify": true,
"@metamask/snaps-utils>marked": true,
"@metamask/snaps-utils>rfdc": true,
"@metamask/snaps-utils>validate-npm-package-name": true,
"@metamask/utils": true,
Expand All @@ -1943,12 +1944,95 @@
"superstruct": true
}
},
"@metamask/snaps-utils>@metamask/base-controller": {
"globals": {
"setTimeout": true
},
"packages": {
"immer": true
}
},
"@metamask/snaps-utils>@metamask/permission-controller": {
"globals": {
"console.error": true
},
"packages": {
"@metamask/providers>@metamask/rpc-errors": true,
"@metamask/snaps-utils>@metamask/base-controller": true,
"@metamask/snaps-utils>@metamask/permission-controller>@metamask/controller-utils": true,
"@metamask/snaps-utils>@metamask/permission-controller>@metamask/json-rpc-engine": true,
"@metamask/snaps-utils>@metamask/permission-controller>nanoid": true,
"@metamask/utils": true,
"deep-freeze-strict": true,
"immer": true
}
},
"@metamask/snaps-utils>@metamask/permission-controller>@metamask/controller-utils": {
"globals": {
"URL": true,
"console.error": true,
"fetch": true,
"setTimeout": true
},
"packages": {
"@ethereumjs/tx>@ethereumjs/util": true,
"@metamask/controller-utils>@spruceid/siwe-parser": true,
"@metamask/ethjs>@metamask/ethjs-unit": true,
"@metamask/utils": true,
"bn.js": true,
"browserify>buffer": true,
"eslint>fast-deep-equal": true,
"eth-ens-namehash": true
}
},
"@metamask/snaps-utils>@metamask/permission-controller>@metamask/json-rpc-engine": {
"packages": {
"@metamask/providers>@metamask/rpc-errors": true,
"@metamask/snaps-utils>@metamask/permission-controller>@metamask/json-rpc-engine>@metamask/safe-event-emitter": true,
"@metamask/utils": true
}
},
"@metamask/snaps-utils>@metamask/permission-controller>@metamask/json-rpc-engine>@metamask/safe-event-emitter": {
"globals": {
"setTimeout": true
},
"packages": {
"webpack>events": true
}
},
"@metamask/snaps-utils>@metamask/permission-controller>nanoid": {
"globals": {
"crypto.getRandomValues": true
}
},
"@metamask/snaps-utils>cron-parser": {
"packages": {
"browserify>browser-resolve": true,
"luxon": true
}
},
"@metamask/snaps-utils>marked": {
"globals": {
"Hooks": true,
"Lexer": true,
"Parser": true,
"Renderer": true,
"TextRenderer": true,
"Tokenizer": true,
"console.error": true,
"console.warn": true,
"defaults": true,
"define": true,
"inlineQueue": true,
"passThroughHooks": true,
"renderer": true,
"rules": true,
"state": true,
"textRenderer": true,
"tokenizer": true,
"tokens": true
}
},
"@metamask/snaps-utils>rfdc": {
"packages": {
"browserify>buffer": true
Expand Down
86 changes: 85 additions & 1 deletion lavamoat/browserify/desktop/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -2190,13 +2190,14 @@
"fetch": true
},
"packages": {
"@metamask/permission-controller": true,
"@metamask/providers>@metamask/rpc-errors": true,
"@metamask/snaps-sdk": true,
"@metamask/snaps-sdk>@metamask/key-tree": true,
"@metamask/snaps-utils>@metamask/permission-controller": true,
"@metamask/snaps-utils>@metamask/slip44": true,
"@metamask/snaps-utils>cron-parser": true,
"@metamask/snaps-utils>fast-json-stable-stringify": true,
"@metamask/snaps-utils>marked": true,
"@metamask/snaps-utils>rfdc": true,
"@metamask/snaps-utils>validate-npm-package-name": true,
"@metamask/utils": true,
Expand All @@ -2207,6 +2208,67 @@
"superstruct": true
}
},
"@metamask/snaps-utils>@metamask/base-controller": {
"globals": {
"setTimeout": true
},
"packages": {
"immer": true
}
},
"@metamask/snaps-utils>@metamask/permission-controller": {
"globals": {
"console.error": true
},
"packages": {
"@metamask/providers>@metamask/rpc-errors": true,
"@metamask/snaps-utils>@metamask/base-controller": true,
"@metamask/snaps-utils>@metamask/permission-controller>@metamask/controller-utils": true,
"@metamask/snaps-utils>@metamask/permission-controller>@metamask/json-rpc-engine": true,
"@metamask/snaps-utils>@metamask/permission-controller>nanoid": true,
"@metamask/utils": true,
"deep-freeze-strict": true,
"immer": true
}
},
"@metamask/snaps-utils>@metamask/permission-controller>@metamask/controller-utils": {
"globals": {
"URL": true,
"console.error": true,
"fetch": true,
"setTimeout": true
},
"packages": {
"@ethereumjs/tx>@ethereumjs/util": true,
"@metamask/controller-utils>@spruceid/siwe-parser": true,
"@metamask/ethjs>@metamask/ethjs-unit": true,
"@metamask/utils": true,
"bn.js": true,
"browserify>buffer": true,
"eslint>fast-deep-equal": true,
"eth-ens-namehash": true
}
},
"@metamask/snaps-utils>@metamask/permission-controller>@metamask/json-rpc-engine": {
"packages": {
"@metamask/providers>@metamask/rpc-errors": true,
"@metamask/snaps-utils>@metamask/permission-controller>@metamask/json-rpc-engine>@metamask/safe-event-emitter": true,
"@metamask/utils": true
}
},
"@metamask/snaps-utils>@metamask/permission-controller>@metamask/json-rpc-engine>@metamask/safe-event-emitter": {
"globals": {
"setTimeout": true
},
"packages": {
"webpack>events": true
}
},
"@metamask/snaps-utils>@metamask/permission-controller>nanoid": {
"globals": {
"crypto.getRandomValues": true
}
},
"@metamask/snaps-utils>@metamask/snaps-registry": {
"packages": {
"@metamask/snaps-utils>@metamask/snaps-registry>@noble/curves": true,
Expand All @@ -2229,6 +2291,28 @@
"luxon": true
}
},
"@metamask/snaps-utils>marked": {
"globals": {
"Hooks": true,
"Lexer": true,
"Parser": true,
"Renderer": true,
"TextRenderer": true,
"Tokenizer": true,
"console.error": true,
"console.warn": true,
"defaults": true,
"define": true,
"inlineQueue": true,
"passThroughHooks": true,
"renderer": true,
"rules": true,
"state": true,
"textRenderer": true,
"tokenizer": true,
"tokens": true
}
},
"@metamask/snaps-utils>rfdc": {
"packages": {
"browserify>buffer": true
Expand Down
86 changes: 85 additions & 1 deletion lavamoat/browserify/flask/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -2224,13 +2224,14 @@
"fetch": true
},
"packages": {
"@metamask/permission-controller": true,
"@metamask/providers>@metamask/rpc-errors": true,
"@metamask/snaps-sdk": true,
"@metamask/snaps-sdk>@metamask/key-tree": true,
"@metamask/snaps-utils>@metamask/permission-controller": true,
"@metamask/snaps-utils>@metamask/slip44": true,
"@metamask/snaps-utils>cron-parser": true,
"@metamask/snaps-utils>fast-json-stable-stringify": true,
"@metamask/snaps-utils>marked": true,
"@metamask/snaps-utils>rfdc": true,
"@metamask/snaps-utils>validate-npm-package-name": true,
"@metamask/utils": true,
Expand All @@ -2241,6 +2242,67 @@
"superstruct": true
}
},
"@metamask/snaps-utils>@metamask/base-controller": {
"globals": {
"setTimeout": true
},
"packages": {
"immer": true
}
},
"@metamask/snaps-utils>@metamask/permission-controller": {
"globals": {
"console.error": true
},
"packages": {
"@metamask/providers>@metamask/rpc-errors": true,
"@metamask/snaps-utils>@metamask/base-controller": true,
"@metamask/snaps-utils>@metamask/permission-controller>@metamask/controller-utils": true,
"@metamask/snaps-utils>@metamask/permission-controller>@metamask/json-rpc-engine": true,
"@metamask/snaps-utils>@metamask/permission-controller>nanoid": true,
"@metamask/utils": true,
"deep-freeze-strict": true,
"immer": true
}
},
"@metamask/snaps-utils>@metamask/permission-controller>@metamask/controller-utils": {
"globals": {
"URL": true,
"console.error": true,
"fetch": true,
"setTimeout": true
},
"packages": {
"@ethereumjs/tx>@ethereumjs/util": true,
"@metamask/controller-utils>@spruceid/siwe-parser": true,
"@metamask/ethjs>@metamask/ethjs-unit": true,
"@metamask/utils": true,
"bn.js": true,
"browserify>buffer": true,
"eslint>fast-deep-equal": true,
"eth-ens-namehash": true
}
},
"@metamask/snaps-utils>@metamask/permission-controller>@metamask/json-rpc-engine": {
"packages": {
"@metamask/providers>@metamask/rpc-errors": true,
"@metamask/snaps-utils>@metamask/permission-controller>@metamask/json-rpc-engine>@metamask/safe-event-emitter": true,
"@metamask/utils": true
}
},
"@metamask/snaps-utils>@metamask/permission-controller>@metamask/json-rpc-engine>@metamask/safe-event-emitter": {
"globals": {
"setTimeout": true
},
"packages": {
"webpack>events": true
}
},
"@metamask/snaps-utils>@metamask/permission-controller>nanoid": {
"globals": {
"crypto.getRandomValues": true
}
},
"@metamask/snaps-utils>@metamask/snaps-registry": {
"packages": {
"@metamask/snaps-utils>@metamask/snaps-registry>@noble/curves": true,
Expand All @@ -2263,6 +2325,28 @@
"luxon": true
}
},
"@metamask/snaps-utils>marked": {
"globals": {
"Hooks": true,
"Lexer": true,
"Parser": true,
"Renderer": true,
"TextRenderer": true,
"Tokenizer": true,
"console.error": true,
"console.warn": true,
"defaults": true,
"define": true,
"inlineQueue": true,
"passThroughHooks": true,
"renderer": true,
"rules": true,
"state": true,
"textRenderer": true,
"tokenizer": true,
"tokens": true
}
},
"@metamask/snaps-utils>rfdc": {
"packages": {
"browserify>buffer": true
Expand Down
Loading

0 comments on commit 9cead27

Please sign in to comment.