diff --git a/eslint-warning-thresholds.json b/eslint-warning-thresholds.json index aa3ee4ad14f..efa3f902d04 100644 --- a/eslint-warning-thresholds.json +++ b/eslint-warning-thresholds.json @@ -165,7 +165,6 @@ }, "packages/controller-utils/src/util.test.ts": { "import-x/no-named-as-default": 1, - "import-x/order": 1, "jest/no-conditional-in-test": 1, "promise/param-names": 2 }, diff --git a/package.json b/package.json index cdaa4d42f55..f2d1ab3ce6b 100644 --- a/package.json +++ b/package.json @@ -62,7 +62,7 @@ "@metamask/eth-block-tracker": "^12.0.1", "@metamask/eth-json-rpc-provider": "^4.1.8", "@metamask/json-rpc-engine": "^10.0.3", - "@metamask/utils": "^11.2.0", + "@metamask/utils": "^11.4.2", "@ts-bridge/cli": "^0.6.1", "@types/jest": "^27.4.1", "@types/lodash": "^4.14.191", diff --git a/packages/accounts-controller/CHANGELOG.md b/packages/accounts-controller/CHANGELOG.md index 5cfad4be5f8..c6ed3271956 100644 --- a/packages/accounts-controller/CHANGELOG.md +++ b/packages/accounts-controller/CHANGELOG.md @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - **BREAKING:** Bump peer dependency `@metamask/snaps-controllers` from `^12.0.0` to `^14.0.0` ([#6035](https://github.com/MetaMask/core/pull/6035)) - Bump `@metamask/snaps-sdk` from `^7.1.0` to `^9.0.0` ([#6035](https://github.com/MetaMask/core/pull/6035)) - Bump `@metamask/snaps-utils` from `^9.4.0` to `^11.0.0` ([#6035](https://github.com/MetaMask/core/pull/6035)) +- Bump `@metamask/utils` from `^11.2.0` to `^11.4.2` ([#6054](https://github.com/MetaMask/core/pull/6054)) ## [31.0.0] diff --git a/packages/accounts-controller/package.json b/packages/accounts-controller/package.json index 89754fb9ce8..385de98eb35 100644 --- a/packages/accounts-controller/package.json +++ b/packages/accounts-controller/package.json @@ -55,7 +55,7 @@ "@metamask/keyring-utils": "^3.0.0", "@metamask/snaps-sdk": "^9.0.0", "@metamask/snaps-utils": "^11.0.0", - "@metamask/utils": "^11.2.0", + "@metamask/utils": "^11.4.2", "deepmerge": "^4.2.2", "ethereum-cryptography": "^2.1.2", "immer": "^9.0.6", diff --git a/packages/address-book-controller/CHANGELOG.md b/packages/address-book-controller/CHANGELOG.md index fafcb27c1c4..bbd9149f221 100644 --- a/packages/address-book-controller/CHANGELOG.md +++ b/packages/address-book-controller/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +- Bump `@metamask/utils` from `^11.2.0` to `^11.4.2` ([#6054](https://github.com/MetaMask/core/pull/6054)) - Bump `@metamask/controller-utils` to `^11.10.0` ([#5935](https://github.com/MetaMask/core/pull/5935)) ## [6.1.0] diff --git a/packages/address-book-controller/package.json b/packages/address-book-controller/package.json index 5654ad2281b..dcbee81ba12 100644 --- a/packages/address-book-controller/package.json +++ b/packages/address-book-controller/package.json @@ -49,7 +49,7 @@ "dependencies": { "@metamask/base-controller": "^8.0.1", "@metamask/controller-utils": "^11.10.0", - "@metamask/utils": "^11.2.0" + "@metamask/utils": "^11.4.2" }, "devDependencies": { "@metamask/auto-changelog": "^3.4.4", diff --git a/packages/approval-controller/CHANGELOG.md b/packages/approval-controller/CHANGELOG.md index bfd726e315e..cfe7d9e2cc7 100644 --- a/packages/approval-controller/CHANGELOG.md +++ b/packages/approval-controller/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +- Bump `@metamask/utils` from `^11.2.0` to `^11.4.2` ([#6054](https://github.com/MetaMask/core/pull/6054)) - Bump `@metamask/base-controller` from ^8.0.0 to ^8.0.1 ([#5722](https://github.com/MetaMask/core/pull/5722)) ## [7.1.3] diff --git a/packages/approval-controller/package.json b/packages/approval-controller/package.json index a4351045b30..62ef11fb221 100644 --- a/packages/approval-controller/package.json +++ b/packages/approval-controller/package.json @@ -49,7 +49,7 @@ "dependencies": { "@metamask/base-controller": "^8.0.1", "@metamask/rpc-errors": "^7.0.2", - "@metamask/utils": "^11.2.0", + "@metamask/utils": "^11.4.2", "nanoid": "^3.3.8" }, "devDependencies": { diff --git a/packages/assets-controllers/CHANGELOG.md b/packages/assets-controllers/CHANGELOG.md index d86804e0903..4bc9c2acf81 100644 --- a/packages/assets-controllers/CHANGELOG.md +++ b/packages/assets-controllers/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +- Bump `@metamask/utils` from `^11.2.0` to `^11.4.2` ([#6054](https://github.com/MetaMask/core/pull/6054)) + ## [70.0.0] ### Changed diff --git a/packages/assets-controllers/package.json b/packages/assets-controllers/package.json index 97a456531cd..30b2f857a90 100644 --- a/packages/assets-controllers/package.json +++ b/packages/assets-controllers/package.json @@ -64,7 +64,7 @@ "@metamask/rpc-errors": "^7.0.2", "@metamask/snaps-sdk": "^9.0.0", "@metamask/snaps-utils": "^11.0.0", - "@metamask/utils": "^11.2.0", + "@metamask/utils": "^11.4.2", "@types/bn.js": "^5.1.5", "@types/uuid": "^8.3.0", "async-mutex": "^0.5.0", diff --git a/packages/base-controller/CHANGELOG.md b/packages/base-controller/CHANGELOG.md index 3967748d179..041ac412d2e 100644 --- a/packages/base-controller/CHANGELOG.md +++ b/packages/base-controller/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +- Bump `@metamask/utils` from `^11.2.0` to `^11.4.2` ([#6054](https://github.com/MetaMask/core/pull/6054)) + ## [8.0.1] ### Changed diff --git a/packages/base-controller/package.json b/packages/base-controller/package.json index 06a0c1c35fc..c2ff186b2fd 100644 --- a/packages/base-controller/package.json +++ b/packages/base-controller/package.json @@ -46,7 +46,7 @@ "test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch" }, "dependencies": { - "@metamask/utils": "^11.2.0", + "@metamask/utils": "^11.4.2", "immer": "^9.0.6" }, "devDependencies": { diff --git a/packages/bridge-controller/CHANGELOG.md b/packages/bridge-controller/CHANGELOG.md index fc1417fe1f7..ad9a2070bd5 100644 --- a/packages/bridge-controller/CHANGELOG.md +++ b/packages/bridge-controller/CHANGELOG.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - **BREAKING:** Bump peer dependency `@metamask/assets-controllers` from `^69.0.0` to `^70.0.0` ([#6061](https://github.com/MetaMask/core/pull/6061)) - **BREAKING:** Bump peer dependency `@metamask/snaps-controllers` from `^12.0.0` to `^14.0.0` ([#6035](https://github.com/MetaMask/core/pull/6035)) +- Bump `@metamask/utils` from `^11.2.0` to `^11.4.2` ([#6054](https://github.com/MetaMask/core/pull/6054)) ## [34.0.0] diff --git a/packages/bridge-controller/package.json b/packages/bridge-controller/package.json index 409b7eb6695..cc1ff33ca99 100644 --- a/packages/bridge-controller/package.json +++ b/packages/bridge-controller/package.json @@ -59,7 +59,7 @@ "@metamask/metamask-eth-abis": "^3.1.1", "@metamask/multichain-network-controller": "^0.9.0", "@metamask/polling-controller": "^14.0.0", - "@metamask/utils": "^11.2.0", + "@metamask/utils": "^11.4.2", "bignumber.js": "^9.1.2", "reselect": "^5.1.1", "uuid": "^8.3.2" diff --git a/packages/bridge-status-controller/CHANGELOG.md b/packages/bridge-status-controller/CHANGELOG.md index 1ebefd0412d..ea717e4132a 100644 --- a/packages/bridge-status-controller/CHANGELOG.md +++ b/packages/bridge-status-controller/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +- Bump `@metamask/utils` from `^11.2.0` to `^11.4.2` ([#6054](https://github.com/MetaMask/core/pull/6054)) + ## [34.0.0] ### Added diff --git a/packages/bridge-status-controller/package.json b/packages/bridge-status-controller/package.json index c8905ffc31e..a230c8c34d3 100644 --- a/packages/bridge-status-controller/package.json +++ b/packages/bridge-status-controller/package.json @@ -52,7 +52,7 @@ "@metamask/keyring-api": "^18.0.0", "@metamask/polling-controller": "^14.0.0", "@metamask/superstruct": "^3.1.0", - "@metamask/utils": "^11.2.0", + "@metamask/utils": "^11.4.2", "bignumber.js": "^9.1.2", "uuid": "^8.3.2" }, diff --git a/packages/build-utils/CHANGELOG.md b/packages/build-utils/CHANGELOG.md index 3ac59171823..dcef0765091 100644 --- a/packages/build-utils/CHANGELOG.md +++ b/packages/build-utils/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +- Bump `@metamask/utils` from `^11.2.0` to `^11.4.2` ([#6054](https://github.com/MetaMask/core/pull/6054)) + ## [3.0.3] ### Changed diff --git a/packages/build-utils/package.json b/packages/build-utils/package.json index c17163a48a7..750bc7bcac3 100644 --- a/packages/build-utils/package.json +++ b/packages/build-utils/package.json @@ -47,7 +47,7 @@ "test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch" }, "dependencies": { - "@metamask/utils": "^11.2.0", + "@metamask/utils": "^11.4.2", "@types/eslint": "^8.44.7" }, "devDependencies": { diff --git a/packages/chain-agnostic-permission/CHANGELOG.md b/packages/chain-agnostic-permission/CHANGELOG.md index 725932aa3c4..76c64198121 100644 --- a/packages/chain-agnostic-permission/CHANGELOG.md +++ b/packages/chain-agnostic-permission/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +- Bump `@metamask/utils` from `^11.2.0` to `^11.4.2` ([#6054](https://github.com/MetaMask/core/pull/6054)) + ## [1.0.0] ### Changed diff --git a/packages/chain-agnostic-permission/package.json b/packages/chain-agnostic-permission/package.json index be3aedb8407..5e10158752f 100644 --- a/packages/chain-agnostic-permission/package.json +++ b/packages/chain-agnostic-permission/package.json @@ -52,7 +52,7 @@ "@metamask/network-controller": "^24.0.0", "@metamask/permission-controller": "^11.0.6", "@metamask/rpc-errors": "^7.0.2", - "@metamask/utils": "^11.2.0", + "@metamask/utils": "^11.4.2", "lodash": "^4.17.21" }, "devDependencies": { diff --git a/packages/controller-utils/CHANGELOG.md b/packages/controller-utils/CHANGELOG.md index 89363477d8f..363e9b5066b 100644 --- a/packages/controller-utils/CHANGELOG.md +++ b/packages/controller-utils/CHANGELOG.md @@ -17,6 +17,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +- Bump `@metamask/utils` from `^11.2.0` to `^11.4.2` ([#6054](https://github.com/MetaMask/core/pull/6054)) +- Improve performance of `isValidHexAddress` and `toChecksumHexAddress` ([#6054](https://github.com/MetaMask/core/pull/6054)) + - Replace `ethereumjs-util` lib with faster `@metamask/utils` functions + - Memoize `isValidHexAddress` and `toChecksumHexAddress` functions - Update `createServicePolicy` to reduce circuit break duration from 30 minutes to 2 minutes ([#6015](https://github.com/MetaMask/core/pull/6015)) - When hitting an API, this reduces the default duration for which requests to the API are paused when perceived to be unavailable diff --git a/packages/controller-utils/package.json b/packages/controller-utils/package.json index efb14ced91e..4a43f97bd49 100644 --- a/packages/controller-utils/package.json +++ b/packages/controller-utils/package.json @@ -47,22 +47,23 @@ "test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch" }, "dependencies": { - "@ethereumjs/util": "^9.1.0", "@metamask/eth-query": "^4.0.0", "@metamask/ethjs-unit": "^0.3.0", - "@metamask/utils": "^11.2.0", + "@metamask/utils": "^11.4.2", "@spruceid/siwe-parser": "2.1.0", "@types/bn.js": "^5.1.5", "bignumber.js": "^9.1.2", "bn.js": "^5.2.1", "cockatiel": "^3.1.2", "eth-ens-namehash": "^2.0.8", - "fast-deep-equal": "^3.1.3" + "fast-deep-equal": "^3.1.3", + "lodash": "^4.17.21" }, "devDependencies": { "@babel/runtime": "^7.23.9", "@metamask/auto-changelog": "^3.4.4", "@types/jest": "^27.4.1", + "@types/lodash": "^4.14.191", "deepmerge": "^4.2.2", "jest": "^27.5.1", "jest-environment-jsdom": "^27.5.1", diff --git a/packages/controller-utils/src/util.test.ts b/packages/controller-utils/src/util.test.ts index 14595fd4f3e..74bfee0ebd5 100644 --- a/packages/controller-utils/src/util.test.ts +++ b/packages/controller-utils/src/util.test.ts @@ -3,9 +3,9 @@ import BigNumber from 'bignumber.js'; import BN from 'bn.js'; import nock from 'nock'; -import { FakeProvider } from '../../../tests/fake-provider'; import { MAX_SAFE_CHAIN_ID } from './constants'; import * as util from './util'; +import { FakeProvider } from '../../../tests/fake-provider'; const VALID = '4e1fF7229BDdAf0A73DF183a88d9c3a04cc975e0'; const SOME_API = 'https://someapi.com'; @@ -320,6 +320,56 @@ describe('util', () => { it('should return the input untouched if it is null', () => { expect(util.toChecksumHexAddress(null)).toBeNull(); }); + + it('should return the address untouched if it is not a valid hex address', () => { + expect(util.toChecksumHexAddress('0x1')).toBe('0x1'); + }); + + it('should memoize results for same input', () => { + const testAddress = '4e1ff7229bddaf0a73df183a88d9c3a04cc975e0'; + + // Call the function multiple times with the same input + const result1 = util.toChecksumHexAddress(testAddress); + const result2 = util.toChecksumHexAddress(testAddress); + const result3 = util.toChecksumHexAddress(testAddress); + + // All results should be identical + expect(result1).toBe('0x4e1fF7229BDdAf0A73DF183a88d9c3a04cc975e0'); + expect(result2).toBe(result1); + expect(result3).toBe(result1); + }); + + it('should return different results for different inputs but still memoize each', () => { + const testAddress1 = '4e1ff7229bddaf0a73df183a88d9c3a04cc975e0'; + const testAddress2 = '742d35cc6ba4c0a2b7e8b4c0b1b0c2b2b2b2b2b2'; + + // Call with first address multiple times + const result1a = util.toChecksumHexAddress(testAddress1); + const result1b = util.toChecksumHexAddress(testAddress1); + + // Call with second address multiple times + const result2a = util.toChecksumHexAddress(testAddress2); + const result2b = util.toChecksumHexAddress(testAddress2); + + // Results for same address should be identical + expect(result1b).toBe(result1a); + expect(result2b).toBe(result2a); + + // Results for different addresses should be different + expect(result1a).not.toBe(result2a); + }); + + it('should memoize based on complete argument signature', () => { + const testAddress = '4e1ff7229bddaf0a73df183a88d9c3a04cc975e0'; + + // Call with string argument + const result1 = util.toChecksumHexAddress(testAddress); + const result2 = util.toChecksumHexAddress(testAddress); + + // Both should be memoized and return the same result + expect(result2).toBe(result1); + expect(result1).toBe('0x4e1fF7229BDdAf0A73DF183a88d9c3a04cc975e0'); + }); }); describe('isValidHexAddress', () => { @@ -336,6 +386,83 @@ describe('util', () => { false, ); }); + + it('should memoize results for same input', () => { + const validAddress = '4e1fF7229BDdAf0A73DF183a88d9c3a04cc975e0'; + + // Call the function multiple times with the same input + const result1 = util.isValidHexAddress(validAddress); + const result2 = util.isValidHexAddress(validAddress); + const result3 = util.isValidHexAddress(validAddress); + + // All results should be identical + expect(result1).toBe(true); + expect(result2).toBe(result1); + expect(result3).toBe(result1); + }); + + it('should memoize results for same input with options', () => { + const validAddress = '4e1fF7229BDdAf0A73DF183a88d9c3a04cc975e0'; + const options = { allowNonPrefixed: true }; + + // Call the function multiple times with the same input and options + const result1 = util.isValidHexAddress(validAddress, options); + const result2 = util.isValidHexAddress(validAddress, options); + const result3 = util.isValidHexAddress(validAddress, options); + + // All results should be identical + expect(result1).toBe(true); + expect(result2).toBe(result1); + expect(result3).toBe(result1); + }); + + it('should return different results for different option combinations', () => { + const addressWithoutPrefix = '4e1fF7229BDdAf0A73DF183a88d9c3a04cc975e0'; + + // Call with different options + const result1 = util.isValidHexAddress(addressWithoutPrefix, { + allowNonPrefixed: true, + }); + const result2 = util.isValidHexAddress(addressWithoutPrefix, { + allowNonPrefixed: false, + }); + + // Should return different results for different options + expect(result1).toBe(true); + expect(result2).toBe(false); + + // But calling again with same options should return memoized results + const result1Again = util.isValidHexAddress(addressWithoutPrefix, { + allowNonPrefixed: true, + }); + const result2Again = util.isValidHexAddress(addressWithoutPrefix, { + allowNonPrefixed: false, + }); + + expect(result1Again).toBe(result1); + expect(result2Again).toBe(result2); + }); + + it('should handle memoization with different address inputs', () => { + const validAddress = '4e1fF7229BDdAf0A73DF183a88d9c3a04cc975e0'; + const invalidAddress = '0x00'; + + // Call with valid address multiple times + const validResult1 = util.isValidHexAddress(validAddress); + const validResult2 = util.isValidHexAddress(validAddress); + + // Call with invalid address multiple times + const invalidResult1 = util.isValidHexAddress(invalidAddress); + const invalidResult2 = util.isValidHexAddress(invalidAddress); + + // Results for same address should be identical + expect(validResult2).toBe(validResult1); + expect(invalidResult2).toBe(invalidResult1); + + // Results should be correct + expect(validResult1).toBe(true); + expect(invalidResult1).toBe(false); + }); }); it('messageHexToString', () => { diff --git a/packages/controller-utils/src/util.ts b/packages/controller-utils/src/util.ts index 7e80c6ace65..5fb889cd5ce 100644 --- a/packages/controller-utils/src/util.ts +++ b/packages/controller-utils/src/util.ts @@ -1,4 +1,3 @@ -import { isValidAddress, toChecksumAddress } from '@ethereumjs/util'; import type EthQuery from '@metamask/eth-query'; import { fromWei, toWei } from '@metamask/ethjs-unit'; import type { Hex, Json } from '@metamask/utils'; @@ -7,11 +6,14 @@ import { add0x, isHexString, remove0x, + getChecksumAddress, + isHexChecksumAddress, } from '@metamask/utils'; import type { BigNumber } from 'bignumber.js'; import BN from 'bn.js'; import ensNamehash from 'eth-ens-namehash'; import deepEqual from 'fast-deep-equal'; +import { memoize } from 'lodash'; import { MAX_SAFE_CHAIN_ID } from './constants'; @@ -284,7 +286,7 @@ export async function safelyExecuteWithTimeout( * @param address - The address to convert. * @returns The address in 0x-prefixed hexadecimal checksummed form if it is valid. */ -export function toChecksumHexAddress(address: string): string; +function toChecksumHexAddressUnmemoized(address: string): string; /** * Convert an address to a checksummed hexadecimal address. @@ -299,11 +301,11 @@ export function toChecksumHexAddress(address: string): string; */ // TODO: Either fix this lint violation or explain why it's necessary to ignore. // eslint-disable-next-line @typescript-eslint/naming-convention -export function toChecksumHexAddress(address: T): T; +function toChecksumHexAddressUnmemoized(address: T): T; // Tools only see JSDocs for overloads and ignore them for the implementation. // eslint-disable-next-line jsdoc/require-jsdoc -export function toChecksumHexAddress(address: unknown) { +function toChecksumHexAddressUnmemoized(address: unknown) { if (typeof address !== 'string') { // Mimic behavior of `addHexPrefix` from `ethereumjs-util` (which this // function was previously using) for backward compatibility. @@ -320,21 +322,37 @@ export function toChecksumHexAddress(address: unknown) { return hexPrefixed; } - return toChecksumAddress(hexPrefixed); + try { + return getChecksumAddress(hexPrefixed); + } catch (error) { + // This is necessary for backward compatibility with the old behavior of + // `ethereumjs-util` which would return the original string if the address + // was invalid. + if (error instanceof Error && error.message === 'Invalid hex address.') { + return hexPrefixed; + } + throw error; + } } /** - * Validates that the input is a hex address. This utility method is a thin - * wrapper around @metamask/utils.isValidHexAddress, with the exception that it - * by default will return true for hex strings that are otherwise valid - * hex addresses, but are not prefixed with `0x`. + * Convert an address to a checksummed hexadecimal address. * - * @param possibleAddress - Input parameter to check against. - * @param options - The validation options. - * @param options.allowNonPrefixed - If true will allow addresses without `0x` prefix.` - * @returns Whether or not the input is a valid hex address. + * @param address - The address to convert. For backward compatibility reasons, + * this can be anything, even a non-hex string with an 0x prefix, but that usage + * is deprecated. Please use a valid hex string (with or without the `0x` + * prefix). + * @returns A 0x-prefixed checksummed version of `address` if it is a valid hex + * string, or the address as given otherwise. */ -export function isValidHexAddress( +export const toChecksumHexAddress: { + (address: string): string; + (address: T): T; +} = memoize(toChecksumHexAddressUnmemoized); + +// JSDoc is only used for memoized version of this function that is exported +// eslint-disable-next-line jsdoc/require-jsdoc +function isValidHexAddressUnmemoized( possibleAddress: string, { allowNonPrefixed = true } = {}, ): boolean { @@ -345,9 +363,33 @@ export function isValidHexAddress( return false; } - return isValidAddress(addressToCheck); + // We used to rely on `isValidAddress` from `@ethereumjs/util` which allows + // for upper-case characters too. So we preserve this behavior and use our + // faster and memoized validation function instead. + return isHexChecksumAddress(addressToCheck); } +/** + * Validates that the input is a hex address. This utility method is a thin + * wrapper around `isValidHexAddress` from `@metamask/utils`, with the exception + * that it may return true for non-0x-prefixed hex strings (depending on the + * option below). + * + * @param possibleAddress - Input parameter to check against. + * @param options - The validation options. + * @param options.allowNonPrefixed - If true will regard addresses without a + * `0x` prefix as valid. + * @returns Whether or not the input is a valid hex address. + */ +export const isValidHexAddress: ( + possibleAddress: string, + options?: { allowNonPrefixed?: boolean }, +) => boolean = memoize( + isValidHexAddressUnmemoized, + (possibleAddress, { allowNonPrefixed = true } = {}) => + `${possibleAddress}-${allowNonPrefixed}`, +); + /** * Returns whether the given code corresponds to a smart contract. * diff --git a/packages/delegation-controller/CHANGELOG.md b/packages/delegation-controller/CHANGELOG.md index 82699a7329a..16614fba9dd 100644 --- a/packages/delegation-controller/CHANGELOG.md +++ b/packages/delegation-controller/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +- Bump `@metamask/utils` from `^11.2.0` to `^11.4.2` ([#6054](https://github.com/MetaMask/core/pull/6054)) + ## [0.5.0] ### Changed diff --git a/packages/delegation-controller/package.json b/packages/delegation-controller/package.json index 1491e917fa7..6575b65b807 100644 --- a/packages/delegation-controller/package.json +++ b/packages/delegation-controller/package.json @@ -48,7 +48,7 @@ }, "dependencies": { "@metamask/base-controller": "^8.0.1", - "@metamask/utils": "^11.2.0" + "@metamask/utils": "^11.4.2" }, "devDependencies": { "@metamask/accounts-controller": "^31.0.0", diff --git a/packages/eip1193-permission-middleware/CHANGELOG.md b/packages/eip1193-permission-middleware/CHANGELOG.md index 56ef6c9816a..63221b520f0 100644 --- a/packages/eip1193-permission-middleware/CHANGELOG.md +++ b/packages/eip1193-permission-middleware/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +- Bump `@metamask/utils` from `^11.2.0` to `^11.4.2` ([#6054](https://github.com/MetaMask/core/pull/6054)) + ## [1.0.0] ### Changed diff --git a/packages/eip1193-permission-middleware/package.json b/packages/eip1193-permission-middleware/package.json index 5784257f698..26ce19044f8 100644 --- a/packages/eip1193-permission-middleware/package.json +++ b/packages/eip1193-permission-middleware/package.json @@ -51,7 +51,7 @@ "@metamask/controller-utils": "^11.10.0", "@metamask/json-rpc-engine": "^10.0.3", "@metamask/permission-controller": "^11.0.6", - "@metamask/utils": "^11.2.0", + "@metamask/utils": "^11.4.2", "lodash": "^4.17.21" }, "devDependencies": { diff --git a/packages/ens-controller/CHANGELOG.md b/packages/ens-controller/CHANGELOG.md index 79fe2c5f311..959169c3565 100644 --- a/packages/ens-controller/CHANGELOG.md +++ b/packages/ens-controller/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +- Bump `@metamask/utils` from `^11.2.0` to `^11.4.2` ([#6054](https://github.com/MetaMask/core/pull/6054)) + ## [17.0.0] ### Changed diff --git a/packages/ens-controller/package.json b/packages/ens-controller/package.json index b1326c84043..97b8ddf97fc 100644 --- a/packages/ens-controller/package.json +++ b/packages/ens-controller/package.json @@ -50,7 +50,7 @@ "@ethersproject/providers": "^5.7.0", "@metamask/base-controller": "^8.0.1", "@metamask/controller-utils": "^11.10.0", - "@metamask/utils": "^11.2.0", + "@metamask/utils": "^11.4.2", "punycode": "^2.1.1" }, "devDependencies": { diff --git a/packages/eth-json-rpc-provider/CHANGELOG.md b/packages/eth-json-rpc-provider/CHANGELOG.md index 8fbfd25f1a2..965be852d6f 100644 --- a/packages/eth-json-rpc-provider/CHANGELOG.md +++ b/packages/eth-json-rpc-provider/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +- Bump `@metamask/utils` from `^11.2.0` to `^11.4.2` ([#6054](https://github.com/MetaMask/core/pull/6054)) + ## [4.1.8] ### Changed diff --git a/packages/eth-json-rpc-provider/package.json b/packages/eth-json-rpc-provider/package.json index 48402ea0ead..83ae61908f3 100644 --- a/packages/eth-json-rpc-provider/package.json +++ b/packages/eth-json-rpc-provider/package.json @@ -55,7 +55,7 @@ "@metamask/json-rpc-engine": "^10.0.3", "@metamask/rpc-errors": "^7.0.2", "@metamask/safe-event-emitter": "^3.0.0", - "@metamask/utils": "^11.2.0", + "@metamask/utils": "^11.4.2", "uuid": "^8.3.2" }, "devDependencies": { diff --git a/packages/gas-fee-controller/CHANGELOG.md b/packages/gas-fee-controller/CHANGELOG.md index 51ccad5208a..b7201aa5b19 100644 --- a/packages/gas-fee-controller/CHANGELOG.md +++ b/packages/gas-fee-controller/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +- Bump `@metamask/utils` from `^11.2.0` to `^11.4.2` ([#6054](https://github.com/MetaMask/core/pull/6054)) + ## [24.0.0] ### Changed diff --git a/packages/gas-fee-controller/package.json b/packages/gas-fee-controller/package.json index a395708bb01..f5958aeeead 100644 --- a/packages/gas-fee-controller/package.json +++ b/packages/gas-fee-controller/package.json @@ -52,7 +52,7 @@ "@metamask/eth-query": "^4.0.0", "@metamask/ethjs-unit": "^0.3.0", "@metamask/polling-controller": "^14.0.0", - "@metamask/utils": "^11.2.0", + "@metamask/utils": "^11.4.2", "@types/bn.js": "^5.1.5", "@types/uuid": "^8.3.0", "bn.js": "^5.2.1", diff --git a/packages/json-rpc-engine/CHANGELOG.md b/packages/json-rpc-engine/CHANGELOG.md index 3db58459f2e..0065a98ee1f 100644 --- a/packages/json-rpc-engine/CHANGELOG.md +++ b/packages/json-rpc-engine/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +- Bump `@metamask/utils` from `^11.2.0` to `^11.4.2` ([#6054](https://github.com/MetaMask/core/pull/6054)) + ## [10.0.3] ### Changed diff --git a/packages/json-rpc-engine/package.json b/packages/json-rpc-engine/package.json index 725b32e1ce2..4832ebde112 100644 --- a/packages/json-rpc-engine/package.json +++ b/packages/json-rpc-engine/package.json @@ -58,7 +58,7 @@ "dependencies": { "@metamask/rpc-errors": "^7.0.2", "@metamask/safe-event-emitter": "^3.0.0", - "@metamask/utils": "^11.2.0" + "@metamask/utils": "^11.4.2" }, "devDependencies": { "@lavamoat/allow-scripts": "^3.0.4", diff --git a/packages/json-rpc-middleware-stream/CHANGELOG.md b/packages/json-rpc-middleware-stream/CHANGELOG.md index b29d8795893..f342aabd1a9 100644 --- a/packages/json-rpc-middleware-stream/CHANGELOG.md +++ b/packages/json-rpc-middleware-stream/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +- Bump `@metamask/utils` from `^11.2.0` to `^11.4.2` ([#6054](https://github.com/MetaMask/core/pull/6054)) + ## [8.0.7] ### Changed diff --git a/packages/json-rpc-middleware-stream/package.json b/packages/json-rpc-middleware-stream/package.json index 09dbb570a55..1b5db8e8d49 100644 --- a/packages/json-rpc-middleware-stream/package.json +++ b/packages/json-rpc-middleware-stream/package.json @@ -49,7 +49,7 @@ "dependencies": { "@metamask/json-rpc-engine": "^10.0.3", "@metamask/safe-event-emitter": "^3.0.0", - "@metamask/utils": "^11.2.0", + "@metamask/utils": "^11.4.2", "readable-stream": "^3.6.2" }, "devDependencies": { diff --git a/packages/keyring-controller/CHANGELOG.md b/packages/keyring-controller/CHANGELOG.md index 42f1cc61b54..176cb1debbb 100644 --- a/packages/keyring-controller/CHANGELOG.md +++ b/packages/keyring-controller/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +- Bump `@metamask/utils` from `^11.2.0` to `^11.4.2` ([#6054](https://github.com/MetaMask/core/pull/6054)) + ## [22.1.0] ### Added diff --git a/packages/keyring-controller/package.json b/packages/keyring-controller/package.json index edffaa1b9ab..df4f784d4e0 100644 --- a/packages/keyring-controller/package.json +++ b/packages/keyring-controller/package.json @@ -56,7 +56,7 @@ "@metamask/eth-simple-keyring": "^10.0.0", "@metamask/keyring-api": "^18.0.0", "@metamask/keyring-internal-api": "^6.2.0", - "@metamask/utils": "^11.2.0", + "@metamask/utils": "^11.4.2", "async-mutex": "^0.5.0", "ethereumjs-wallet": "^1.0.1", "immer": "^9.0.6", diff --git a/packages/message-manager/CHANGELOG.md b/packages/message-manager/CHANGELOG.md index ec85cd0feee..425b7044f21 100644 --- a/packages/message-manager/CHANGELOG.md +++ b/packages/message-manager/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +- Bump `@metamask/utils` from `^11.2.0` to `^11.4.2` ([#6054](https://github.com/MetaMask/core/pull/6054)) - Bump `@metamask/base-controller` from ^8.0.0 to ^8.0.1 ([#5722](https://github.com/MetaMask/core/pull/5722)) - Bump `@metamask/controller-utils` to `^11.10.0` ([#5935](https://github.com/MetaMask/core/pull/5935), [#5583](https://github.com/MetaMask/core/pull/5583), [#5765](https://github.com/MetaMask/core/pull/5765), [#5812](https://github.com/MetaMask/core/pull/5812)) diff --git a/packages/message-manager/package.json b/packages/message-manager/package.json index 262f469734c..9b31d515a94 100644 --- a/packages/message-manager/package.json +++ b/packages/message-manager/package.json @@ -50,7 +50,7 @@ "@metamask/base-controller": "^8.0.1", "@metamask/controller-utils": "^11.10.0", "@metamask/eth-sig-util": "^8.2.0", - "@metamask/utils": "^11.2.0", + "@metamask/utils": "^11.4.2", "@types/uuid": "^8.3.0", "jsonschema": "^1.4.1", "uuid": "^8.3.2" diff --git a/packages/multichain-api-middleware/CHANGELOG.md b/packages/multichain-api-middleware/CHANGELOG.md index 2cde32a4a23..acce455a90e 100644 --- a/packages/multichain-api-middleware/CHANGELOG.md +++ b/packages/multichain-api-middleware/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +- Bump `@metamask/utils` from `^11.2.0` to `^11.4.2` ([#6054](https://github.com/MetaMask/core/pull/6054)) + ## [1.0.0] ### Changed diff --git a/packages/multichain-api-middleware/package.json b/packages/multichain-api-middleware/package.json index 35894228b00..dc6fe37ff1a 100644 --- a/packages/multichain-api-middleware/package.json +++ b/packages/multichain-api-middleware/package.json @@ -54,7 +54,7 @@ "@metamask/network-controller": "^24.0.0", "@metamask/permission-controller": "^11.0.6", "@metamask/rpc-errors": "^7.0.2", - "@metamask/utils": "^11.2.0", + "@metamask/utils": "^11.4.2", "@open-rpc/meta-schema": "^1.14.6", "@open-rpc/schema-utils-js": "^2.0.5", "jsonschema": "^1.4.1" diff --git a/packages/multichain-network-controller/CHANGELOG.md b/packages/multichain-network-controller/CHANGELOG.md index b1323454ad7..e3bc2111566 100644 --- a/packages/multichain-network-controller/CHANGELOG.md +++ b/packages/multichain-network-controller/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +- Bump `@metamask/utils` from `^11.2.0` to `^11.4.2` ([#6054](https://github.com/MetaMask/core/pull/6054)) + ## [0.9.0] ### Changed diff --git a/packages/multichain-network-controller/package.json b/packages/multichain-network-controller/package.json index ad6dd90b6c9..c01cbfed5cc 100644 --- a/packages/multichain-network-controller/package.json +++ b/packages/multichain-network-controller/package.json @@ -52,7 +52,7 @@ "@metamask/keyring-api": "^18.0.0", "@metamask/keyring-internal-api": "^6.2.0", "@metamask/superstruct": "^3.1.0", - "@metamask/utils": "^11.2.0", + "@metamask/utils": "^11.4.2", "@solana/addresses": "^2.0.0", "lodash": "^4.17.21" }, diff --git a/packages/multichain-transactions-controller/CHANGELOG.md b/packages/multichain-transactions-controller/CHANGELOG.md index 188da6e3ae5..3bd77dc5ed0 100644 --- a/packages/multichain-transactions-controller/CHANGELOG.md +++ b/packages/multichain-transactions-controller/CHANGELOG.md @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - **BREAKING:** Bump peer dependency `@metamask/snaps-controllers` from `^12.0.0` to `^14.0.0` ([#6035](https://github.com/MetaMask/core/pull/6035)) - Bump `@metamask/snaps-sdk` from `^7.1.0` to `^9.0.0` ([#6035](https://github.com/MetaMask/core/pull/6035)) - Bump `@metamask/snaps-utils` from `^9.4.0` to `^11.0.0` ([#6035](https://github.com/MetaMask/core/pull/6035)) +- Bump `@metamask/utils` from `^11.2.0` to `^11.4.2` ([#6054](https://github.com/MetaMask/core/pull/6054)) ## [3.0.0] diff --git a/packages/multichain-transactions-controller/package.json b/packages/multichain-transactions-controller/package.json index 28d54f4d589..15a7816072a 100644 --- a/packages/multichain-transactions-controller/package.json +++ b/packages/multichain-transactions-controller/package.json @@ -54,7 +54,7 @@ "@metamask/polling-controller": "^14.0.0", "@metamask/snaps-sdk": "^9.0.0", "@metamask/snaps-utils": "^11.0.0", - "@metamask/utils": "^11.2.0", + "@metamask/utils": "^11.4.2", "@types/uuid": "^8.3.0", "immer": "^9.0.6", "uuid": "^8.3.2" diff --git a/packages/name-controller/CHANGELOG.md b/packages/name-controller/CHANGELOG.md index 5e7924b462a..ef8ae0c6ebe 100644 --- a/packages/name-controller/CHANGELOG.md +++ b/packages/name-controller/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +- Bump `@metamask/utils` from `^11.2.0` to `^11.4.2` ([#6054](https://github.com/MetaMask/core/pull/6054)) - Bump `@metamask/base-controller` from ^8.0.0 to ^8.0.1 ([#5722](https://github.com/MetaMask/core/pull/5722)) - Bump `@metamask/controller-utils` to `^11.10.0` ([#5935](https://github.com/MetaMask/core/pull/5935), [#5583](https://github.com/MetaMask/core/pull/5583), [#5765](https://github.com/MetaMask/core/pull/5765), [#5812](https://github.com/MetaMask/core/pull/5812)) diff --git a/packages/name-controller/package.json b/packages/name-controller/package.json index 95b0da1e9ba..dcb38ed7d25 100644 --- a/packages/name-controller/package.json +++ b/packages/name-controller/package.json @@ -50,7 +50,7 @@ "dependencies": { "@metamask/base-controller": "^8.0.1", "@metamask/controller-utils": "^11.10.0", - "@metamask/utils": "^11.2.0", + "@metamask/utils": "^11.4.2", "async-mutex": "^0.5.0" }, "devDependencies": { diff --git a/packages/network-controller/CHANGELOG.md b/packages/network-controller/CHANGELOG.md index d8e3d1c8897..9c86c197755 100644 --- a/packages/network-controller/CHANGELOG.md +++ b/packages/network-controller/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +- Bump `@metamask/utils` from `^11.2.0` to `^11.4.2` ([#6054](https://github.com/MetaMask/core/pull/6054)) - Requests to an RPC endpoint that returns a 502 response ("bad gateway") will now be retried ([#5923](https://github.com/MetaMask/core/pull/5923)) - All JSON-RPC errors that represent 4xx and 5xx responses from RPC endpoints now include the HTTP status code under `data.httpStatus` ([#5923](https://github.com/MetaMask/core/pull/5923)) - 3xx responses from RPC endpoints are no longer treated as errors ([#5923](https://github.com/MetaMask/core/pull/5923)) diff --git a/packages/network-controller/package.json b/packages/network-controller/package.json index bd2cf1f6182..5c3173eb219 100644 --- a/packages/network-controller/package.json +++ b/packages/network-controller/package.json @@ -57,7 +57,7 @@ "@metamask/json-rpc-engine": "^10.0.3", "@metamask/rpc-errors": "^7.0.2", "@metamask/swappable-obj-proxy": "^2.3.0", - "@metamask/utils": "^11.2.0", + "@metamask/utils": "^11.4.2", "async-mutex": "^0.5.0", "fast-deep-equal": "^3.1.3", "immer": "^9.0.6", diff --git a/packages/notification-services-controller/CHANGELOG.md b/packages/notification-services-controller/CHANGELOG.md index deb012e6035..422f283dfdd 100644 --- a/packages/notification-services-controller/CHANGELOG.md +++ b/packages/notification-services-controller/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +- Bump `@metamask/utils` from `^11.2.0` to `^11.4.2` ([#6054](https://github.com/MetaMask/core/pull/6054)) + ## [12.0.0] ### Changed diff --git a/packages/notification-services-controller/package.json b/packages/notification-services-controller/package.json index 0103d2bce47..582a587c9f4 100644 --- a/packages/notification-services-controller/package.json +++ b/packages/notification-services-controller/package.json @@ -112,7 +112,7 @@ "@contentful/rich-text-html-renderer": "^16.5.2", "@metamask/base-controller": "^8.0.1", "@metamask/controller-utils": "^11.10.0", - "@metamask/utils": "^11.2.0", + "@metamask/utils": "^11.4.2", "bignumber.js": "^9.1.2", "firebase": "^11.2.0", "loglevel": "^1.8.1", diff --git a/packages/permission-controller/CHANGELOG.md b/packages/permission-controller/CHANGELOG.md index 0d7390a7eee..117fa511c87 100644 --- a/packages/permission-controller/CHANGELOG.md +++ b/packages/permission-controller/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +- Bump `@metamask/utils` from `^11.2.0` to `^11.4.2` ([#6054](https://github.com/MetaMask/core/pull/6054)) - Bump `@metamask/base-controller` from ^8.0.0 to ^8.0.1 ([#5722](https://github.com/MetaMask/core/pull/5722)) - Bump `@metamask/controller-utils` to `^11.10.0` ([#5935](https://github.com/MetaMask/core/pull/5935), [#5583](https://github.com/MetaMask/core/pull/5583), [#5765](https://github.com/MetaMask/core/pull/5765), [#5812](https://github.com/MetaMask/core/pull/5812)) diff --git a/packages/permission-controller/package.json b/packages/permission-controller/package.json index 638f41b984a..d5b2055f18e 100644 --- a/packages/permission-controller/package.json +++ b/packages/permission-controller/package.json @@ -51,7 +51,7 @@ "@metamask/controller-utils": "^11.10.0", "@metamask/json-rpc-engine": "^10.0.3", "@metamask/rpc-errors": "^7.0.2", - "@metamask/utils": "^11.2.0", + "@metamask/utils": "^11.4.2", "@types/deep-freeze-strict": "^1.1.0", "deep-freeze-strict": "^1.1.1", "immer": "^9.0.6", diff --git a/packages/permission-log-controller/CHANGELOG.md b/packages/permission-log-controller/CHANGELOG.md index 4b9521ae226..61c32b71e79 100644 --- a/packages/permission-log-controller/CHANGELOG.md +++ b/packages/permission-log-controller/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +- Bump `@metamask/utils` from `^11.2.0` to `^11.4.2` ([#6054](https://github.com/MetaMask/core/pull/6054)) - Bump `@metamask/base-controller` from ^8.0.0 to ^8.0.1 ([#5722](https://github.com/MetaMask/core/pull/5722)) ## [3.0.3] diff --git a/packages/permission-log-controller/package.json b/packages/permission-log-controller/package.json index 9301b272078..c5713fa5399 100644 --- a/packages/permission-log-controller/package.json +++ b/packages/permission-log-controller/package.json @@ -49,7 +49,7 @@ "dependencies": { "@metamask/base-controller": "^8.0.1", "@metamask/json-rpc-engine": "^10.0.3", - "@metamask/utils": "^11.2.0" + "@metamask/utils": "^11.4.2" }, "devDependencies": { "@metamask/auto-changelog": "^3.4.4", diff --git a/packages/polling-controller/CHANGELOG.md b/packages/polling-controller/CHANGELOG.md index 5d2c17fcb35..2918a94b0e0 100644 --- a/packages/polling-controller/CHANGELOG.md +++ b/packages/polling-controller/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +- Bump `@metamask/utils` from `^11.2.0` to `^11.4.2` ([#6054](https://github.com/MetaMask/core/pull/6054)) + ## [14.0.0] ### Changed diff --git a/packages/polling-controller/package.json b/packages/polling-controller/package.json index c94ba852284..38d7534f3f6 100644 --- a/packages/polling-controller/package.json +++ b/packages/polling-controller/package.json @@ -49,7 +49,7 @@ "dependencies": { "@metamask/base-controller": "^8.0.1", "@metamask/controller-utils": "^11.10.0", - "@metamask/utils": "^11.2.0", + "@metamask/utils": "^11.4.2", "@types/uuid": "^8.3.0", "fast-json-stable-stringify": "^2.1.0", "uuid": "^8.3.2" diff --git a/packages/preferences-controller/package.json b/packages/preferences-controller/package.json index fd154f0641c..37e95c81a18 100644 --- a/packages/preferences-controller/package.json +++ b/packages/preferences-controller/package.json @@ -53,7 +53,7 @@ "devDependencies": { "@metamask/auto-changelog": "^3.4.4", "@metamask/keyring-controller": "^22.1.0", - "@metamask/utils": "^11.2.0", + "@metamask/utils": "^11.4.2", "@types/jest": "^27.4.1", "deepmerge": "^4.2.2", "jest": "^27.5.1", diff --git a/packages/rate-limit-controller/CHANGELOG.md b/packages/rate-limit-controller/CHANGELOG.md index e4e3fa2a33c..13561236ed7 100644 --- a/packages/rate-limit-controller/CHANGELOG.md +++ b/packages/rate-limit-controller/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +- Bump `@metamask/utils` from `^11.2.0` to `^11.4.2` ([#6054](https://github.com/MetaMask/core/pull/6054)) - Bump `@metamask/base-controller` from ^8.0.0 to ^8.0.1 ([#5722](https://github.com/MetaMask/core/pull/5722)) ## [6.0.3] diff --git a/packages/rate-limit-controller/package.json b/packages/rate-limit-controller/package.json index f708c54a229..b1152a48046 100644 --- a/packages/rate-limit-controller/package.json +++ b/packages/rate-limit-controller/package.json @@ -49,7 +49,7 @@ "dependencies": { "@metamask/base-controller": "^8.0.1", "@metamask/rpc-errors": "^7.0.2", - "@metamask/utils": "^11.2.0" + "@metamask/utils": "^11.4.2" }, "devDependencies": { "@metamask/auto-changelog": "^3.4.4", diff --git a/packages/remote-feature-flag-controller/CHANGELOG.md b/packages/remote-feature-flag-controller/CHANGELOG.md index 424ffa72e1b..6f72667d7f0 100644 --- a/packages/remote-feature-flag-controller/CHANGELOG.md +++ b/packages/remote-feature-flag-controller/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +- Bump `@metamask/utils` from `^11.2.0` to `^11.4.2` ([#6054](https://github.com/MetaMask/core/pull/6054)) - Bump `@metamask/base-controller` from ^8.0.0 to ^8.0.1 ([#5722](https://github.com/MetaMask/core/pull/5722)) - Bump `@metamask/controller-utils` to `^11.10.0` ([#5935](https://github.com/MetaMask/core/pull/5935), [#5583](https://github.com/MetaMask/core/pull/5583), [#5765](https://github.com/MetaMask/core/pull/5765), [#5812](https://github.com/MetaMask/core/pull/5812)) diff --git a/packages/remote-feature-flag-controller/package.json b/packages/remote-feature-flag-controller/package.json index fed6f94a5d0..fdeced918fe 100644 --- a/packages/remote-feature-flag-controller/package.json +++ b/packages/remote-feature-flag-controller/package.json @@ -49,7 +49,7 @@ "dependencies": { "@metamask/base-controller": "^8.0.1", "@metamask/controller-utils": "^11.10.0", - "@metamask/utils": "^11.2.0", + "@metamask/utils": "^11.4.2", "uuid": "^8.3.2" }, "devDependencies": { diff --git a/packages/sample-controllers/CHANGELOG.md b/packages/sample-controllers/CHANGELOG.md index 05e3e3be42e..fdc72c4e67e 100644 --- a/packages/sample-controllers/CHANGELOG.md +++ b/packages/sample-controllers/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +- Bump `@metamask/utils` from `^11.2.0` to `^11.4.2` ([#6054](https://github.com/MetaMask/core/pull/6054)) + ## [1.0.0] ### Changed diff --git a/packages/sample-controllers/package.json b/packages/sample-controllers/package.json index 5a1db1ae530..8ff13038148 100644 --- a/packages/sample-controllers/package.json +++ b/packages/sample-controllers/package.json @@ -48,7 +48,7 @@ }, "dependencies": { "@metamask/base-controller": "^8.0.1", - "@metamask/utils": "^11.2.0" + "@metamask/utils": "^11.4.2" }, "devDependencies": { "@metamask/auto-changelog": "^3.4.4", diff --git a/packages/seedless-onboarding-controller/CHANGELOG.md b/packages/seedless-onboarding-controller/CHANGELOG.md index 66aa056f134..412745a1cd4 100644 --- a/packages/seedless-onboarding-controller/CHANGELOG.md +++ b/packages/seedless-onboarding-controller/CHANGELOG.md @@ -39,6 +39,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - explicitly requring unlocked controller - **BREAKING** Changed data structure of return values from `fetchAllSecretData`. ([#6047](https://github.com/MetaMask/core/pull/6047)) - Now returns `SecretMetadata[]` object instead of `Record` +- Bump `@metamask/utils` from `^11.2.0` to `^11.4.2` ([#6054](https://github.com/MetaMask/core/pull/6054)) ### Removed diff --git a/packages/seedless-onboarding-controller/package.json b/packages/seedless-onboarding-controller/package.json index c90895e2413..9d917825d4a 100644 --- a/packages/seedless-onboarding-controller/package.json +++ b/packages/seedless-onboarding-controller/package.json @@ -50,7 +50,7 @@ "@metamask/auth-network-utils": "^0.3.0", "@metamask/base-controller": "^8.0.1", "@metamask/toprf-secure-backup": "^0.4.0", - "@metamask/utils": "^11.2.0", + "@metamask/utils": "^11.4.2", "async-mutex": "^0.5.0" }, "devDependencies": { diff --git a/packages/selected-network-controller/CHANGELOG.md b/packages/selected-network-controller/CHANGELOG.md index 2478aac8702..5de1a4c893a 100644 --- a/packages/selected-network-controller/CHANGELOG.md +++ b/packages/selected-network-controller/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +- Bump `@metamask/utils` from `^11.2.0` to `^11.4.2` ([#6054](https://github.com/MetaMask/core/pull/6054)) + ## [23.0.0] ### Changed diff --git a/packages/selected-network-controller/package.json b/packages/selected-network-controller/package.json index 18eddb1045a..f5d8dece213 100644 --- a/packages/selected-network-controller/package.json +++ b/packages/selected-network-controller/package.json @@ -50,7 +50,7 @@ "@metamask/base-controller": "^8.0.1", "@metamask/json-rpc-engine": "^10.0.3", "@metamask/swappable-obj-proxy": "^2.3.0", - "@metamask/utils": "^11.2.0" + "@metamask/utils": "^11.4.2" }, "devDependencies": { "@metamask/auto-changelog": "^3.4.4", diff --git a/packages/signature-controller/CHANGELOG.md b/packages/signature-controller/CHANGELOG.md index d8cb10a4d24..120bd3594a9 100644 --- a/packages/signature-controller/CHANGELOG.md +++ b/packages/signature-controller/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +- Bump `@metamask/utils` from `^11.2.0` to `^11.4.2` ([#6054](https://github.com/MetaMask/core/pull/6054)) + ## [31.0.0] ### Changed diff --git a/packages/signature-controller/package.json b/packages/signature-controller/package.json index 26e4ace980f..b7e2882bd6c 100644 --- a/packages/signature-controller/package.json +++ b/packages/signature-controller/package.json @@ -50,7 +50,7 @@ "@metamask/base-controller": "^8.0.1", "@metamask/controller-utils": "^11.10.0", "@metamask/eth-sig-util": "^8.2.0", - "@metamask/utils": "^11.2.0", + "@metamask/utils": "^11.4.2", "jsonschema": "^1.4.1", "lodash": "^4.17.21", "uuid": "^8.3.2" diff --git a/packages/token-search-discovery-controller/CHANGELOG.md b/packages/token-search-discovery-controller/CHANGELOG.md index 3051ddb28ed..1a5e44195a8 100644 --- a/packages/token-search-discovery-controller/CHANGELOG.md +++ b/packages/token-search-discovery-controller/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +- Bump `@metamask/utils` from `^11.2.0` to `^11.4.2` ([#6054](https://github.com/MetaMask/core/pull/6054)) + ## [3.3.0] ### Added diff --git a/packages/token-search-discovery-controller/package.json b/packages/token-search-discovery-controller/package.json index 539594226da..e070b8ccd51 100644 --- a/packages/token-search-discovery-controller/package.json +++ b/packages/token-search-discovery-controller/package.json @@ -48,7 +48,7 @@ }, "dependencies": { "@metamask/base-controller": "^8.0.1", - "@metamask/utils": "^11.2.0" + "@metamask/utils": "^11.4.2" }, "devDependencies": { "@metamask/auto-changelog": "^3.4.4", diff --git a/packages/transaction-controller/CHANGELOG.md b/packages/transaction-controller/CHANGELOG.md index 1e189e0e80d..55231b4c2a1 100644 --- a/packages/transaction-controller/CHANGELOG.md +++ b/packages/transaction-controller/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +- Bump `@metamask/utils` from `^11.2.0` to `^11.4.2` ([#6054](https://github.com/MetaMask/core/pull/6054)) + ## [58.1.0] ### Added diff --git a/packages/transaction-controller/package.json b/packages/transaction-controller/package.json index 37e6a016c11..814ca1ec86a 100644 --- a/packages/transaction-controller/package.json +++ b/packages/transaction-controller/package.json @@ -60,7 +60,7 @@ "@metamask/metamask-eth-abis": "^3.1.1", "@metamask/nonce-tracker": "^6.0.0", "@metamask/rpc-errors": "^7.0.2", - "@metamask/utils": "^11.2.0", + "@metamask/utils": "^11.4.2", "async-mutex": "^0.5.0", "bn.js": "^5.2.1", "eth-method-registry": "^4.0.0", diff --git a/packages/user-operation-controller/CHANGELOG.md b/packages/user-operation-controller/CHANGELOG.md index e5f6b535dc6..f757baf4f7c 100644 --- a/packages/user-operation-controller/CHANGELOG.md +++ b/packages/user-operation-controller/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +- Bump `@metamask/utils` from `^11.2.0` to `^11.4.2` ([#6054](https://github.com/MetaMask/core/pull/6054)) + ## [37.0.0] ### Changed diff --git a/packages/user-operation-controller/package.json b/packages/user-operation-controller/package.json index e37cc2561f2..1644bebc7e5 100644 --- a/packages/user-operation-controller/package.json +++ b/packages/user-operation-controller/package.json @@ -54,7 +54,7 @@ "@metamask/polling-controller": "^14.0.0", "@metamask/rpc-errors": "^7.0.2", "@metamask/superstruct": "^3.1.0", - "@metamask/utils": "^11.2.0", + "@metamask/utils": "^11.4.2", "bn.js": "^5.2.1", "immer": "^9.0.6", "lodash": "^4.17.21", diff --git a/yarn.lock b/yarn.lock index 127b0f0b124..6de65e8115b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2491,7 +2491,7 @@ __metadata: "@metamask/snaps-controllers": "npm:^14.0.1" "@metamask/snaps-sdk": "npm:^9.0.0" "@metamask/snaps-utils": "npm:^11.0.0" - "@metamask/utils": "npm:^11.2.0" + "@metamask/utils": "npm:^11.4.2" "@types/jest": "npm:^27.4.1" "@types/readable-stream": "npm:^2.3.0" deepmerge: "npm:^4.2.2" @@ -2531,7 +2531,7 @@ __metadata: "@metamask/auto-changelog": "npm:^3.4.4" "@metamask/base-controller": "npm:^8.0.1" "@metamask/controller-utils": "npm:^11.10.0" - "@metamask/utils": "npm:^11.2.0" + "@metamask/utils": "npm:^11.4.2" "@types/jest": "npm:^27.4.1" deepmerge: "npm:^4.2.2" jest: "npm:^27.5.1" @@ -2589,7 +2589,7 @@ __metadata: "@metamask/auto-changelog": "npm:^3.4.4" "@metamask/base-controller": "npm:^8.0.1" "@metamask/rpc-errors": "npm:^7.0.2" - "@metamask/utils": "npm:^11.2.0" + "@metamask/utils": "npm:^11.4.2" "@types/jest": "npm:^27.4.1" deepmerge: "npm:^4.2.2" jest: "npm:^27.5.1" @@ -2638,7 +2638,7 @@ __metadata: "@metamask/snaps-sdk": "npm:^9.0.0" "@metamask/snaps-utils": "npm:^11.0.0" "@metamask/transaction-controller": "npm:^58.1.0" - "@metamask/utils": "npm:^11.2.0" + "@metamask/utils": "npm:^11.4.2" "@types/bn.js": "npm:^5.1.5" "@types/jest": "npm:^27.4.1" "@types/lodash": "npm:^4.14.191" @@ -2741,7 +2741,7 @@ __metadata: dependencies: "@metamask/auto-changelog": "npm:^3.4.4" "@metamask/json-rpc-engine": "npm:^10.0.3" - "@metamask/utils": "npm:^11.2.0" + "@metamask/utils": "npm:^11.4.2" "@types/jest": "npm:^27.4.1" "@types/sinon": "npm:^9.0.10" deepmerge: "npm:^4.2.2" @@ -2780,7 +2780,7 @@ __metadata: "@metamask/snaps-controllers": "npm:^14.0.1" "@metamask/superstruct": "npm:^3.1.0" "@metamask/transaction-controller": "npm:^58.1.0" - "@metamask/utils": "npm:^11.2.0" + "@metamask/utils": "npm:^11.4.2" "@types/jest": "npm:^27.4.1" bignumber.js: "npm:^9.1.2" deepmerge: "npm:^4.2.2" @@ -2820,7 +2820,7 @@ __metadata: "@metamask/snaps-controllers": "npm:^14.0.1" "@metamask/superstruct": "npm:^3.1.0" "@metamask/transaction-controller": "npm:^58.1.0" - "@metamask/utils": "npm:^11.2.0" + "@metamask/utils": "npm:^11.4.2" "@types/jest": "npm:^27.4.1" bignumber.js: "npm:^9.1.2" deepmerge: "npm:^4.2.2" @@ -2857,7 +2857,7 @@ __metadata: resolution: "@metamask/build-utils@workspace:packages/build-utils" dependencies: "@metamask/auto-changelog": "npm:^3.4.4" - "@metamask/utils": "npm:^11.2.0" + "@metamask/utils": "npm:^11.4.2" "@types/eslint": "npm:^8.44.7" "@types/jest": "npm:^27.4.1" deepmerge: "npm:^4.2.2" @@ -2880,7 +2880,7 @@ __metadata: "@metamask/network-controller": "npm:^24.0.0" "@metamask/permission-controller": "npm:^11.0.6" "@metamask/rpc-errors": "npm:^7.0.2" - "@metamask/utils": "npm:^11.2.0" + "@metamask/utils": "npm:^11.4.2" "@types/jest": "npm:^27.4.1" deepmerge: "npm:^4.2.2" jest: "npm:^27.5.1" @@ -2923,14 +2923,14 @@ __metadata: resolution: "@metamask/controller-utils@workspace:packages/controller-utils" dependencies: "@babel/runtime": "npm:^7.23.9" - "@ethereumjs/util": "npm:^9.1.0" "@metamask/auto-changelog": "npm:^3.4.4" "@metamask/eth-query": "npm:^4.0.0" "@metamask/ethjs-unit": "npm:^0.3.0" - "@metamask/utils": "npm:^11.2.0" + "@metamask/utils": "npm:^11.4.2" "@spruceid/siwe-parser": "npm:2.1.0" "@types/bn.js": "npm:^5.1.5" "@types/jest": "npm:^27.4.1" + "@types/lodash": "npm:^4.14.191" bignumber.js: "npm:^9.1.2" bn.js: "npm:^5.2.1" cockatiel: "npm:^3.1.2" @@ -2939,6 +2939,7 @@ __metadata: fast-deep-equal: "npm:^3.1.3" jest: "npm:^27.5.1" jest-environment-jsdom: "npm:^27.5.1" + lodash: "npm:^4.17.21" nock: "npm:^13.3.1" sinon: "npm:^9.2.4" ts-jest: "npm:^27.1.4" @@ -2967,7 +2968,7 @@ __metadata: "@metamask/eth-block-tracker": "npm:^12.0.1" "@metamask/eth-json-rpc-provider": "npm:^4.1.8" "@metamask/json-rpc-engine": "npm:^10.0.3" - "@metamask/utils": "npm:^11.2.0" + "@metamask/utils": "npm:^11.4.2" "@ts-bridge/cli": "npm:^0.6.1" "@types/jest": "npm:^27.4.1" "@types/lodash": "npm:^4.14.191" @@ -3043,7 +3044,7 @@ __metadata: "@metamask/auto-changelog": "npm:^3.4.4" "@metamask/base-controller": "npm:^8.0.1" "@metamask/keyring-controller": "npm:^22.1.0" - "@metamask/utils": "npm:^11.2.0" + "@metamask/utils": "npm:^11.4.2" "@ts-bridge/cli": "npm:^0.6.1" "@types/jest": "npm:^27.4.1" deepmerge: "npm:^4.2.2" @@ -3095,7 +3096,7 @@ __metadata: "@metamask/json-rpc-engine": "npm:^10.0.3" "@metamask/permission-controller": "npm:^11.0.6" "@metamask/rpc-errors": "npm:^7.0.2" - "@metamask/utils": "npm:^11.2.0" + "@metamask/utils": "npm:^11.4.2" "@types/jest": "npm:^27.4.1" deepmerge: "npm:^4.2.2" jest: "npm:^27.5.1" @@ -3116,7 +3117,7 @@ __metadata: "@metamask/base-controller": "npm:^8.0.1" "@metamask/controller-utils": "npm:^11.10.0" "@metamask/network-controller": "npm:^24.0.0" - "@metamask/utils": "npm:^11.2.0" + "@metamask/utils": "npm:^11.4.2" "@types/jest": "npm:^27.4.1" deepmerge: "npm:^4.2.2" jest: "npm:^27.5.1" @@ -3293,7 +3294,7 @@ __metadata: "@metamask/json-rpc-engine": "npm:^10.0.3" "@metamask/rpc-errors": "npm:^7.0.2" "@metamask/safe-event-emitter": "npm:^3.0.0" - "@metamask/utils": "npm:^11.2.0" + "@metamask/utils": "npm:^11.4.2" "@types/jest": "npm:^27.4.1" deepmerge: "npm:^4.2.2" ethers: "npm:^6.12.0" @@ -3548,7 +3549,7 @@ __metadata: "@metamask/ethjs-unit": "npm:^0.3.0" "@metamask/network-controller": "npm:^24.0.0" "@metamask/polling-controller": "npm:^14.0.0" - "@metamask/utils": "npm:^11.2.0" + "@metamask/utils": "npm:^11.4.2" "@types/bn.js": "npm:^5.1.5" "@types/jest": "npm:^27.4.1" "@types/jest-when": "npm:^2.7.3" @@ -3579,7 +3580,7 @@ __metadata: "@metamask/auto-changelog": "npm:^3.4.4" "@metamask/rpc-errors": "npm:^7.0.2" "@metamask/safe-event-emitter": "npm:^3.0.0" - "@metamask/utils": "npm:^11.2.0" + "@metamask/utils": "npm:^11.4.2" "@types/jest": "npm:^27.4.1" deepmerge: "npm:^4.2.2" jest: "npm:^27.5.1" @@ -3597,7 +3598,7 @@ __metadata: "@metamask/auto-changelog": "npm:^3.4.4" "@metamask/json-rpc-engine": "npm:^10.0.3" "@metamask/safe-event-emitter": "npm:^3.0.0" - "@metamask/utils": "npm:^11.2.0" + "@metamask/utils": "npm:^11.4.2" "@types/jest": "npm:^27.4.1" "@types/readable-stream": "npm:^2.3.0" deepmerge: "npm:^4.2.2" @@ -3659,7 +3660,7 @@ __metadata: "@metamask/keyring-internal-api": "npm:^6.2.0" "@metamask/keyring-utils": "npm:^3.0.0" "@metamask/scure-bip39": "npm:^2.1.1" - "@metamask/utils": "npm:^11.2.0" + "@metamask/utils": "npm:^11.4.2" "@types/jest": "npm:^27.4.1" async-mutex: "npm:^0.5.0" deepmerge: "npm:^4.2.2" @@ -3756,7 +3757,7 @@ __metadata: "@metamask/base-controller": "npm:^8.0.1" "@metamask/controller-utils": "npm:^11.10.0" "@metamask/eth-sig-util": "npm:^8.2.0" - "@metamask/utils": "npm:^11.2.0" + "@metamask/utils": "npm:^11.4.2" "@types/jest": "npm:^27.4.1" "@types/uuid": "npm:^8.3.0" deepmerge: "npm:^4.2.2" @@ -3792,7 +3793,7 @@ __metadata: "@metamask/permission-controller": "npm:^11.0.6" "@metamask/rpc-errors": "npm:^7.0.2" "@metamask/safe-event-emitter": "npm:^3.0.0" - "@metamask/utils": "npm:^11.2.0" + "@metamask/utils": "npm:^11.4.2" "@open-rpc/meta-schema": "npm:^1.14.6" "@open-rpc/schema-utils-js": "npm:^2.0.5" "@types/jest": "npm:^27.4.1" @@ -3819,7 +3820,7 @@ __metadata: "@metamask/keyring-internal-api": "npm:^6.2.0" "@metamask/network-controller": "npm:^24.0.0" "@metamask/superstruct": "npm:^3.1.0" - "@metamask/utils": "npm:^11.2.0" + "@metamask/utils": "npm:^11.4.2" "@solana/addresses": "npm:^2.0.0" "@types/jest": "npm:^27.4.1" "@types/lodash": "npm:^4.14.191" @@ -3854,7 +3855,7 @@ __metadata: "@metamask/snaps-controllers": "npm:^14.0.1" "@metamask/snaps-sdk": "npm:^9.0.0" "@metamask/snaps-utils": "npm:^11.0.0" - "@metamask/utils": "npm:^11.2.0" + "@metamask/utils": "npm:^11.4.2" "@types/jest": "npm:^27.4.1" "@types/uuid": "npm:^8.3.0" deepmerge: "npm:^4.2.2" @@ -3878,7 +3879,7 @@ __metadata: "@metamask/auto-changelog": "npm:^3.4.4" "@metamask/base-controller": "npm:^8.0.1" "@metamask/controller-utils": "npm:^11.10.0" - "@metamask/utils": "npm:^11.2.0" + "@metamask/utils": "npm:^11.4.2" "@types/jest": "npm:^27.4.1" async-mutex: "npm:^0.5.0" deepmerge: "npm:^4.2.2" @@ -3907,7 +3908,7 @@ __metadata: "@metamask/json-rpc-engine": "npm:^10.0.3" "@metamask/rpc-errors": "npm:^7.0.2" "@metamask/swappable-obj-proxy": "npm:^2.3.0" - "@metamask/utils": "npm:^11.2.0" + "@metamask/utils": "npm:^11.4.2" "@types/jest": "npm:^27.4.1" "@types/jest-when": "npm:^2.7.3" "@types/lodash": "npm:^4.14.191" @@ -3959,7 +3960,7 @@ __metadata: "@metamask/controller-utils": "npm:^11.10.0" "@metamask/keyring-controller": "npm:^22.1.0" "@metamask/profile-sync-controller": "npm:^19.0.0" - "@metamask/utils": "npm:^11.2.0" + "@metamask/utils": "npm:^11.4.2" "@types/jest": "npm:^27.4.1" "@types/readable-stream": "npm:^2.3.0" bignumber.js: "npm:^9.1.2" @@ -4021,7 +4022,7 @@ __metadata: "@metamask/controller-utils": "npm:^11.10.0" "@metamask/json-rpc-engine": "npm:^10.0.3" "@metamask/rpc-errors": "npm:^7.0.2" - "@metamask/utils": "npm:^11.2.0" + "@metamask/utils": "npm:^11.4.2" "@types/deep-freeze-strict": "npm:^1.1.0" "@types/jest": "npm:^27.4.1" deep-freeze-strict: "npm:^1.1.1" @@ -4045,7 +4046,7 @@ __metadata: "@metamask/auto-changelog": "npm:^3.4.4" "@metamask/base-controller": "npm:^8.0.1" "@metamask/json-rpc-engine": "npm:^10.0.3" - "@metamask/utils": "npm:^11.2.0" + "@metamask/utils": "npm:^11.4.2" "@types/deep-freeze-strict": "npm:^1.1.0" "@types/jest": "npm:^27.4.1" deep-freeze-strict: "npm:^1.1.1" @@ -4091,7 +4092,7 @@ __metadata: "@metamask/base-controller": "npm:^8.0.1" "@metamask/controller-utils": "npm:^11.10.0" "@metamask/network-controller": "npm:^24.0.0" - "@metamask/utils": "npm:^11.2.0" + "@metamask/utils": "npm:^11.4.2" "@types/jest": "npm:^27.4.1" "@types/uuid": "npm:^8.3.0" deepmerge: "npm:^4.2.2" @@ -4126,7 +4127,7 @@ __metadata: "@metamask/base-controller": "npm:^8.0.1" "@metamask/controller-utils": "npm:^11.10.0" "@metamask/keyring-controller": "npm:^22.1.0" - "@metamask/utils": "npm:^11.2.0" + "@metamask/utils": "npm:^11.4.2" "@types/jest": "npm:^27.4.1" deepmerge: "npm:^4.2.2" jest: "npm:^27.5.1" @@ -4211,7 +4212,7 @@ __metadata: "@metamask/auto-changelog": "npm:^3.4.4" "@metamask/base-controller": "npm:^8.0.1" "@metamask/rpc-errors": "npm:^7.0.2" - "@metamask/utils": "npm:^11.2.0" + "@metamask/utils": "npm:^11.4.2" "@types/jest": "npm:^27.4.1" deepmerge: "npm:^4.2.2" jest: "npm:^27.5.1" @@ -4230,7 +4231,7 @@ __metadata: "@metamask/auto-changelog": "npm:^3.4.4" "@metamask/base-controller": "npm:^8.0.1" "@metamask/controller-utils": "npm:^11.10.0" - "@metamask/utils": "npm:^11.2.0" + "@metamask/utils": "npm:^11.4.2" "@types/jest": "npm:^27.4.1" deepmerge: "npm:^4.2.2" jest: "npm:^27.5.1" @@ -4268,7 +4269,7 @@ __metadata: "@metamask/base-controller": "npm:^8.0.1" "@metamask/controller-utils": "npm:^11.10.0" "@metamask/network-controller": "npm:^24.0.0" - "@metamask/utils": "npm:^11.2.0" + "@metamask/utils": "npm:^11.4.2" "@types/jest": "npm:^27.4.1" deepmerge: "npm:^4.2.2" jest: "npm:^27.5.1" @@ -4304,7 +4305,7 @@ __metadata: "@metamask/browser-passworder": "npm:^4.3.0" "@metamask/keyring-controller": "npm:^22.1.0" "@metamask/toprf-secure-backup": "npm:^0.4.0" - "@metamask/utils": "npm:^11.2.0" + "@metamask/utils": "npm:^11.4.2" "@noble/ciphers": "npm:^0.5.2" "@noble/curves": "npm:^1.2.0" "@noble/hashes": "npm:^1.4.0" @@ -4334,7 +4335,7 @@ __metadata: "@metamask/network-controller": "npm:^24.0.0" "@metamask/permission-controller": "npm:^11.0.6" "@metamask/swappable-obj-proxy": "npm:^2.3.0" - "@metamask/utils": "npm:^11.2.0" + "@metamask/utils": "npm:^11.4.2" "@types/jest": "npm:^27.4.1" deepmerge: "npm:^4.2.2" immer: "npm:^9.0.6" @@ -4365,7 +4366,7 @@ __metadata: "@metamask/keyring-controller": "npm:^22.1.0" "@metamask/logging-controller": "npm:^6.0.4" "@metamask/network-controller": "npm:^24.0.0" - "@metamask/utils": "npm:^11.2.0" + "@metamask/utils": "npm:^11.4.2" "@types/jest": "npm:^27.4.1" deepmerge: "npm:^4.2.2" jest: "npm:^27.5.1" @@ -4533,7 +4534,7 @@ __metadata: dependencies: "@metamask/auto-changelog": "npm:^3.4.4" "@metamask/base-controller": "npm:^8.0.1" - "@metamask/utils": "npm:^11.2.0" + "@metamask/utils": "npm:^11.4.2" "@types/jest": "npm:^27.4.1" deepmerge: "npm:^4.2.2" jest: "npm:^27.5.1" @@ -4590,7 +4591,7 @@ __metadata: "@metamask/nonce-tracker": "npm:^6.0.0" "@metamask/remote-feature-flag-controller": "npm:^1.6.0" "@metamask/rpc-errors": "npm:^7.0.2" - "@metamask/utils": "npm:^11.2.0" + "@metamask/utils": "npm:^11.4.2" "@types/bn.js": "npm:^5.1.5" "@types/jest": "npm:^27.4.1" "@types/node": "npm:^16.18.54" @@ -4637,7 +4638,7 @@ __metadata: "@metamask/rpc-errors": "npm:^7.0.2" "@metamask/superstruct": "npm:^3.1.0" "@metamask/transaction-controller": "npm:^58.1.0" - "@metamask/utils": "npm:^11.2.0" + "@metamask/utils": "npm:^11.4.2" "@types/jest": "npm:^27.4.1" bn.js: "npm:^5.2.1" deepmerge: "npm:^4.2.2" @@ -4659,9 +4660,9 @@ __metadata: languageName: unknown linkType: soft -"@metamask/utils@npm:^11.0.1, @metamask/utils@npm:^11.1.0, @metamask/utils@npm:^11.2.0, @metamask/utils@npm:^11.4.0": - version: 11.4.0 - resolution: "@metamask/utils@npm:11.4.0" +"@metamask/utils@npm:^11.0.1, @metamask/utils@npm:^11.1.0, @metamask/utils@npm:^11.4.0, @metamask/utils@npm:^11.4.2": + version: 11.4.2 + resolution: "@metamask/utils@npm:11.4.2" dependencies: "@ethereumjs/tx": "npm:^4.2.0" "@metamask/superstruct": "npm:^3.1.0" @@ -4669,10 +4670,11 @@ __metadata: "@scure/base": "npm:^1.1.3" "@types/debug": "npm:^4.1.7" debug: "npm:^4.3.4" + lodash.memoize: "npm:^4.1.2" pony-cause: "npm:^2.1.10" semver: "npm:^7.5.4" uuid: "npm:^9.0.1" - checksum: 10/7c976268e944b542b5e936bae89f58a50eef58501bd3512944995c6d416cb1a7dd3f712aec8c7ca0969dcee889ab963b815fbc3e863dc80ccf16e9258eaec3ff + checksum: 10/63415da3479f7022bc98e63d0f68a53ef31b2ef3d459eb3f81d62140f510ebba937c7034dd63cde6b2d5faf74250081903cc8009a174a9984d2fec1d0be04b8d languageName: node linkType: hard @@ -5599,9 +5601,9 @@ __metadata: linkType: hard "@types/lodash@npm:^4.14.191": - version: 4.17.7 - resolution: "@types/lodash@npm:4.17.7" - checksum: 10/b8177f19cf962414a66989837481b13f546afc2e98e8d465bec59e6ac03a59c584eb7053ce511cde3a09c5f3096d22a5ae22cfb56b23f3b0da75b0743b6b1a44 + version: 4.17.20 + resolution: "@types/lodash@npm:4.17.20" + checksum: 10/8cd8ad3bd78d2e06a93ae8d6c9907981d5673655fec7cb274a4d9a59549aab5bb5b3017361280773b8990ddfccf363e14d1b37c97af8a9fe363de677f9a61524 languageName: node linkType: hard @@ -11552,7 +11554,7 @@ __metadata: languageName: node linkType: hard -"lodash.memoize@npm:4.x": +"lodash.memoize@npm:4.x, lodash.memoize@npm:^4.1.2": version: 4.1.2 resolution: "lodash.memoize@npm:4.1.2" checksum: 10/192b2168f310c86f303580b53acf81ab029761b9bd9caa9506a019ffea5f3363ea98d7e39e7e11e6b9917066c9d36a09a11f6fe16f812326390d8f3a54a1a6da