Skip to content

Commit

Permalink
chore(deps): bump @metamask/utils from 11.0.1 to 11.1.0 (#3050)
Browse files Browse the repository at this point in the history
Bumps [@metamask/utils](https://github.com/MetaMask/utils) from 11.0.1
to 11.1.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/MetaMask/utils/releases"><code>@​metamask/utils</code>'s
releases</a>.</em></p>
<blockquote>
<h2>11.1.0</h2>
<h3>Added</h3>
<ul>
<li>Add additional CAIP-19 types
(<code>CaipAsset{Namespace,Reference,TokenId}</code> support (<a
href="https://redirect.github.com/MetaMask/utils/pull/227">#227</a>)</li>
<li>Add CAIP-19 <code>CaipAssetTypeOrId</code> (<a
href="https://redirect.github.com/MetaMask/utils/pull/229">#229</a>)
<ul>
<li>This one combines both <code>CaipAssetType</code> and
<code>CaipAssetId</code> to avoid relying on
<code>superstruct.union</code>, resulting in better error messages.</li>
</ul>
</li>
<li>Add <code>definePattern</code> superstruct helper (<a
href="https://redirect.github.com/MetaMask/utils/pull/228">#228</a>)
<ul>
<li>Allow to define a <code>superstruct.pattern</code> while naming the
struct and enforcing its type.</li>
</ul>
</li>
</ul>
<h3>Changed</h3>
<ul>
<li>Use named structs for all CAIP types (<a
href="https://redirect.github.com/MetaMask/utils/pull/228">#228</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/MetaMask/utils/blob/main/CHANGELOG.md"><code>@​metamask/utils</code>'s
changelog</a>.</em></p>
<blockquote>
<h2>[11.1.0]</h2>
<h3>Added</h3>
<ul>
<li>Add additional CAIP-19 types
(<code>CaipAsset{Namespace,Reference,TokenId}</code> support (<a
href="https://redirect.github.com/MetaMask/utils/pull/227">#227</a>)</li>
<li>Add CAIP-19 <code>CaipAssetTypeOrId</code> (<a
href="https://redirect.github.com/MetaMask/utils/pull/229">#229</a>)
<ul>
<li>This one combines both <code>CaipAssetType</code> and
<code>CaipAssetId</code> to avoid relying on
<code>superstruct.union</code>, resulting in better error messages.</li>
</ul>
</li>
<li>Add <code>definePattern</code> superstruct helper (<a
href="https://redirect.github.com/MetaMask/utils/pull/228">#228</a>)
<ul>
<li>Allow to define a <code>superstruct.pattern</code> while naming the
struct and enforcing its type.</li>
</ul>
</li>
</ul>
<h3>Changed</h3>
<ul>
<li>Use named structs for all CAIP types (<a
href="https://redirect.github.com/MetaMask/utils/pull/228">#228</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/MetaMask/utils/commit/90837bad1d85277aa5b8f16fe40beb81e0a1e09d"><code>90837ba</code></a>
11.1.0 (<a
href="https://redirect.github.com/MetaMask/utils/issues/230">#230</a>)</li>
<li><a
href="https://github.com/MetaMask/utils/commit/9dd5b12a7e1901b539782485afdb34c6425cc0cc"><code>9dd5b12</code></a>
feat: add <code>CaipAssetTypeOrId</code> struct (<a
href="https://redirect.github.com/MetaMask/utils/issues/229">#229</a>)</li>
<li><a
href="https://github.com/MetaMask/utils/commit/9ac7ec29af434f3fa6bf408106e75c6b61b0909d"><code>9ac7ec2</code></a>
feat: named CAIP structs (<a
href="https://redirect.github.com/MetaMask/utils/issues/228">#228</a>)</li>
<li><a
href="https://github.com/MetaMask/utils/commit/48267f8e18de9a5480d473c0aa99624bc0468410"><code>48267f8</code></a>
feat: add additional CAIP-19 types and parsing functions to align with
propos...</li>
<li><a
href="https://github.com/MetaMask/utils/commit/a5886d34faacb04f538cd38f12cbbf37cdc63ede"><code>a5886d3</code></a>
Bump nanoid from 3.3.6 to 3.3.8 (<a
href="https://redirect.github.com/MetaMask/utils/issues/226">#226</a>)</li>
<li>See full diff in <a
href="https://github.com/MetaMask/utils/compare/v11.0.1...v11.1.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@metamask/utils&package-manager=npm_and_yarn&previous-version=11.0.1&new-version=11.1.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: MetaMask Bot <[email protected]>
Co-authored-by: Maarten Zuidhoorn <[email protected]>
  • Loading branch information
3 people authored Feb 5, 2025
1 parent e8a87dc commit f4cb049
Show file tree
Hide file tree
Showing 31 changed files with 60 additions and 60 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"@metamask/eslint-config-jest": "^12.1.0",
"@metamask/eslint-config-nodejs": "^12.1.0",
"@metamask/eslint-config-typescript": "^12.1.0",
"@metamask/utils": "^11.0.1",
"@metamask/utils": "^11.1.0",
"@swc/core": "1.3.78",
"@ts-bridge/cli": "^0.6.1",
"@types/jest": "^27.5.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/packages/bip32/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"dependencies": {
"@metamask/key-tree": "^10.0.2",
"@metamask/snaps-sdk": "workspace:^",
"@metamask/utils": "^11.0.1",
"@metamask/utils": "^11.1.0",
"@noble/ed25519": "^1.6.0",
"@noble/secp256k1": "^1.7.1"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/packages/bip44/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"dependencies": {
"@metamask/key-tree": "^10.0.2",
"@metamask/snaps-sdk": "workspace:^",
"@metamask/utils": "^11.0.1",
"@metamask/utils": "^11.1.0",
"@noble/bls12-381": "^1.2.0"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/MetaMask/snaps.git"
},
"source": {
"shasum": "T/cb9ly020MyohyHH6g8Q/ZapmVvOtXHHbIQxISD+cQ=",
"shasum": "t/mItLdi/miIU7FWJjijmmaFT/5svN1dK4Ik+1LMbqw=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/packages/browserify/snap.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/MetaMask/snaps.git"
},
"source": {
"shasum": "aYoiDzIC2/+pYOUP24J5RwSbmyOKIeo/0+F5gHecdSw=",
"shasum": "3kC/z0z6RjjarArtxcs+iltJRQgvZNIPBueMP0cLQJw=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/packages/ethereum-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
},
"dependencies": {
"@metamask/snaps-sdk": "workspace:^",
"@metamask/utils": "^11.0.1"
"@metamask/utils": "^11.1.0"
},
"devDependencies": {
"@jest/globals": "^29.5.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/packages/file-upload/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
},
"dependencies": {
"@metamask/snaps-sdk": "workspace:^",
"@metamask/utils": "^11.0.1"
"@metamask/utils": "^11.1.0"
},
"devDependencies": {
"@jest/globals": "^29.5.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/packages/get-entropy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
},
"dependencies": {
"@metamask/snaps-sdk": "workspace:^",
"@metamask/utils": "^11.0.1",
"@metamask/utils": "^11.1.0",
"@noble/bls12-381": "^1.2.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/packages/interactive-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
},
"dependencies": {
"@metamask/snaps-sdk": "workspace:^",
"@metamask/utils": "^11.0.1"
"@metamask/utils": "^11.1.0"
},
"devDependencies": {
"@jest/globals": "^29.5.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"dependencies": {
"@metamask/key-tree": "^10.0.2",
"@metamask/snaps-sdk": "workspace:^",
"@metamask/utils": "^11.0.1",
"@metamask/utils": "^11.1.0",
"@noble/hashes": "^1.3.1"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"dependencies": {
"@metamask/key-tree": "^10.0.2",
"@metamask/snaps-sdk": "workspace:^",
"@metamask/utils": "^11.0.1",
"@metamask/utils": "^11.1.0",
"@noble/curves": "^1.1.0",
"async-mutex": "^0.5.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/packages/jsx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"@metamask/eslint-config-typescript": "^12.1.0",
"@metamask/snaps-cli": "workspace:^",
"@metamask/snaps-jest": "workspace:^",
"@metamask/utils": "^11.0.1",
"@metamask/utils": "^11.1.0",
"@swc/core": "1.3.78",
"@swc/jest": "^0.2.26",
"@typescript-eslint/eslint-plugin": "^5.42.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/packages/manage-state/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
},
"dependencies": {
"@metamask/snaps-sdk": "workspace:^",
"@metamask/utils": "^11.0.1"
"@metamask/utils": "^11.1.0"
},
"devDependencies": {
"@jest/globals": "^29.5.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/packages/network-access/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
},
"dependencies": {
"@metamask/snaps-sdk": "workspace:^",
"@metamask/utils": "^11.0.1"
"@metamask/utils": "^11.1.0"
},
"devDependencies": {
"@jest/globals": "^29.5.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/packages/preinstalled/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"@metamask/snaps-cli": "workspace:^",
"@metamask/snaps-controllers": "workspace:^",
"@metamask/snaps-jest": "workspace:^",
"@metamask/utils": "^11.0.1",
"@metamask/utils": "^11.1.0",
"@swc/core": "1.3.78",
"@swc/jest": "^0.2.26",
"@typescript-eslint/eslint-plugin": "^5.42.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
},
"dependencies": {
"@metamask/snaps-sdk": "workspace:^",
"@metamask/utils": "^11.0.1"
"@metamask/utils": "^11.1.0"
},
"devDependencies": {
"@jest/globals": "^29.5.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/snaps-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"@metamask/snaps-utils": "workspace:^",
"@metamask/snaps-webpack-plugin": "workspace:^",
"@metamask/superstruct": "^3.1.0",
"@metamask/utils": "^11.0.1",
"@metamask/utils": "^11.1.0",
"@swc/core": "1.3.78",
"assert": "^2.0.0",
"babelify": "^10.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/snaps-controllers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"@metamask/snaps-rpc-methods": "workspace:^",
"@metamask/snaps-sdk": "workspace:^",
"@metamask/snaps-utils": "workspace:^",
"@metamask/utils": "^11.0.1",
"@metamask/utils": "^11.1.0",
"@xstate/fsm": "^2.0.0",
"async-mutex": "^0.5.0",
"browserify-zlib": "^0.2.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/snaps-controllers/src/snaps/SnapController.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3955,7 +3955,7 @@ describe('SnapController', () => {
},
}),
).rejects.toThrow(
`Assertion failed: At path: assets.foo -- Expected a string matching`,
`Assertion failed: At path: assets.foo -- Expected a value of type \`CaipAssetType\`, but received: \`"foo"\`.`,
);

snapController.destroy();
Expand Down Expand Up @@ -4187,7 +4187,7 @@ describe('SnapController', () => {
},
}),
).rejects.toThrow(
`Assertion failed: At path: conversionRates.foo -- Expected a string matching`,
`Assertion failed: At path: conversionRates.foo -- Expected a value of type \`CaipAssetType\`, but received: \`"foo"\`.`,
);

snapController.destroy();
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 @@ -72,7 +72,7 @@
"@metamask/snaps-sdk": "workspace:^",
"@metamask/snaps-utils": "workspace:^",
"@metamask/superstruct": "^3.1.0",
"@metamask/utils": "^11.0.1",
"@metamask/utils": "^11.1.0",
"nanoid": "^3.1.31",
"readable-stream": "^3.6.2"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/snaps-jest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"@metamask/snaps-sdk": "workspace:^",
"@metamask/snaps-simulation": "workspace:^",
"@metamask/superstruct": "^3.1.0",
"@metamask/utils": "^11.0.1",
"@metamask/utils": "^11.1.0",
"express": "^4.18.2",
"jest-environment-node": "^29.5.0",
"jest-matcher-utils": "^29.5.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/snaps-rpc-methods/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"@metamask/snaps-sdk": "workspace:^",
"@metamask/snaps-utils": "workspace:^",
"@metamask/superstruct": "^3.1.0",
"@metamask/utils": "^11.0.1",
"@metamask/utils": "^11.1.0",
"@noble/hashes": "^1.3.1",
"luxon": "^3.5.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/snaps-rpc-methods/src/endowments/protocol.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ describe('protocolCaveatSpecifications', () => {
},
}),
).toThrow(
'Invalid scopes specified: At path: foo -- Expected a string matching `/^(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32})$/` but received "foo".',
'Invalid scopes specified: At path: foo -- Expected a value of type `CaipChainId`, but received: `"foo"`.',
);
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ describe('snap_experimentalProviderRequest', () => {
...rpcErrors
.invalidParams({
message:
'Invalid params: At path: chainId -- Expected a string matching `/^(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32})$/` but received "abcdefg".',
'Invalid params: At path: chainId -- Expected a value of type `CaipChainId`, but received: `"abcdefg"`.',
})
.serialize(),
stack: expect.any(String),
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 @@ -95,7 +95,7 @@
"@metamask/providers": "^18.3.1",
"@metamask/rpc-errors": "^7.0.2",
"@metamask/superstruct": "^3.1.0",
"@metamask/utils": "^11.0.1"
"@metamask/utils": "^11.1.0"
},
"devDependencies": {
"@lavamoat/allow-scripts": "^3.0.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/snaps-simulation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"@metamask/snaps-sdk": "workspace:^",
"@metamask/snaps-utils": "workspace:^",
"@metamask/superstruct": "^3.1.0",
"@metamask/utils": "^11.0.1",
"@metamask/utils": "^11.1.0",
"@reduxjs/toolkit": "^1.9.5",
"fast-deep-equal": "^3.1.3",
"mime": "^3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/snaps-simulator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"@metamask/snaps-sdk": "workspace:^",
"@metamask/snaps-utils": "workspace:^",
"@metamask/superstruct": "^3.1.0",
"@metamask/utils": "^11.0.1",
"@metamask/utils": "^11.1.0",
"@minoru/react-dnd-treeview": "^3.4.4",
"@noble/hashes": "^1.3.1",
"@reduxjs/toolkit": "^1.9.5",
Expand Down
2 changes: 1 addition & 1 deletion packages/snaps-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"@metamask/snaps-registry": "^3.2.3",
"@metamask/snaps-sdk": "workspace:^",
"@metamask/superstruct": "^3.1.0",
"@metamask/utils": "^11.0.1",
"@metamask/utils": "^11.1.0",
"@noble/hashes": "^1.3.1",
"@scure/base": "^1.1.1",
"chalk": "^4.1.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/snaps-webpack-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"dependencies": {
"@metamask/snaps-sdk": "workspace:^",
"@metamask/snaps-utils": "workspace:^",
"@metamask/utils": "^11.0.1",
"@metamask/utils": "^11.1.0",
"prettier": "^2.8.8",
"webpack-sources": "^3.2.3"
},
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 @@ -68,7 +68,7 @@
"@metamask/send-flow-example-snap": "workspace:^",
"@metamask/signature-insights-example-snap": "workspace:^",
"@metamask/snaps-utils": "workspace:^",
"@metamask/utils": "^11.0.1",
"@metamask/utils": "^11.1.0",
"@metamask/wasm-example-snap": "workspace:^",
"@popperjs/core": "^2.11.8",
"@reduxjs/toolkit": "^1.9.5",
Expand Down
Loading

0 comments on commit f4cb049

Please sign in to comment.