@metamask/message-manager
Advanced tools
Comparing version 7.3.8 to 7.3.9
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
@@ -9,4 +10,13 @@ | ||
## [7.3.9] | ||
### Changed | ||
- Remove dependency `ethereumjs-util` ([#3943](https://github.com/MetaMask/core/pull/3943)) | ||
- Bump `@metamask/controller-utils` to `^8.0.4` ([#4007](https://github.com/MetaMask/core/pull/4007)) | ||
## [7.3.8] | ||
### Changed | ||
- Bump `@metamask/utils` to `^8.3.0` ([#3769](https://github.com/MetaMask/core/pull/3769)) | ||
@@ -17,3 +27,5 @@ - Bump `@metamask/base-controller` to `^4.1.1` ([#3760](https://github.com/MetaMask/core/pull/3760), [#3821](https://github.com/MetaMask/core/pull/3821)) | ||
## [7.3.7] | ||
### Changed | ||
- Bump `@metamask/base-controller` to `^4.0.1` ([#3695](https://github.com/MetaMask/core/pull/3695)) | ||
@@ -24,3 +36,5 @@ - Bump `@metamask/controller-utils` to `^8.0.1` ([#3695](https://github.com/MetaMask/core/pull/3695), [#3678](https://github.com/MetaMask/core/pull/3678), [#3667](https://github.com/MetaMask/core/pull/3667), [#3580](https://github.com/MetaMask/core/pull/3580)) | ||
## [7.3.6] | ||
### Changed | ||
- Bump `@metamask/utils` to ^8.2.0 ([#1957](https://github.com/MetaMask/core/pull/1957)) | ||
@@ -32,3 +46,5 @@ - Bump `@metamask/base-controller` to ^4.0.0 ([#2063](https://github.com/MetaMask/core/pull/2063)) | ||
## [7.3.5] | ||
### Changed | ||
- Bump dependency on `@metamask/utils` to ^8.1.0 ([#1639](https://github.com/MetaMask/core/pull/1639)) | ||
@@ -39,18 +55,27 @@ - Bump dependency on `@metamask/base-controller` to ^3.2.3 | ||
### Fixed | ||
- Fix `prepMessageForSigning` in all message managers to handle frozen `messageParams` ([#1733](https://github.com/MetaMask/core/pull/1733)) | ||
## [7.3.4] | ||
### Changed | ||
- Update TypeScript to v4.8.x ([#1718](https://github.com/MetaMask/core/pull/1718)) | ||
## [7.3.3] | ||
### Changed | ||
- Bump dependency on `@metamask/controller-utils` to ^5.0.0 | ||
## [7.3.2] | ||
### Changed | ||
- Bump @metamask/eth-sig-util from 6.0.0 to 7.0.0 ([#1669](https://github.com/MetaMask/core/pull/1669)) | ||
## [7.3.1] | ||
### Changed | ||
- Bump dependency on `@metamask/base-controller` to ^3.2.1 | ||
@@ -60,30 +85,45 @@ - Bump dependency on `@metamask/controller-utils` to ^4.3.2 | ||
## [7.3.0] | ||
### Changed | ||
- Add Blockaid validation response to messages ([#1541](https://github.com/MetaMask/core/pull/1541)) | ||
## [7.2.0] | ||
### Changed | ||
- Update `@metamask/utils` to `^6.2.0` ([#1514](https://github.com/MetaMask/core/pull/1514)) | ||
## [7.1.0] | ||
### Changed | ||
- Replace eth-sig-util with @metamask/eth-sig-util ([#1483](https://github.com/MetaMask/core/pull/1483)) | ||
## [7.0.2] | ||
### Fixed | ||
- Avoid race condition when creating typed messages ([#1467](https://github.com/MetaMask/core/pull/1467)) | ||
## [7.0.1] | ||
### Fixed | ||
- eth_signTypedData_v4 and v3 should take an object as well as string for data parameter. ([#1438](https://github.com/MetaMask/core/pull/1438)) | ||
## [7.0.0] | ||
### Added | ||
- Added `waitForFinishStatus` to `AbstractMessageManager` which is waiting for the message to be proccesed and resolve. ([#1377](https://github.com/MetaMask/core/pull/1377)) | ||
### Changed | ||
- **BREAKING:** Removed `addUnapprovedMessageAsync` methods from `PersonalMessageManager`, `TypedMessageManager` and `MessageManager` because it's not consumed by `SignatureController` anymore. ([#1377](https://github.com/MetaMask/core/pull/1377)) | ||
## [6.0.0] | ||
### Added | ||
- Add `getAllMessages` and `setMetadata` methods to message managers ([#1364](https://github.com/MetaMask/core/pull/1364)) | ||
@@ -96,2 +136,3 @@ - A new optional `metadata` property has been added to the message type as well | ||
### Changed | ||
- **BREAKING:** The `getCurrentChainId` constructor parameter for each message manager now expects a `Hex` return type rather than a decimal string ([#1367](https://github.com/MetaMask/core/pull/1367)) | ||
@@ -102,7 +143,11 @@ - Note that while every message manager class accepts this as a constructor parameter, it's only used by the `TypedMessageManager` at the moment | ||
## [5.0.0] | ||
### Fixed | ||
- **BREAKING:** Add chain validation to `eth_signTypedData_v4` signature requests ([#1331](https://github.com/MetaMask/core/pull/1331)) | ||
## [4.0.0] | ||
### Changed | ||
- **BREAKING:** Change type of `securityProviderResponse` to `Record` ([#1214](https://github.com/MetaMask/core/pull/1214)) | ||
@@ -112,4 +157,6 @@ - **BREAKING:** Update to Node 16 ([#1262](https://github.com/MetaMask/core/pull/1262)) | ||
## [3.1.1] | ||
### Fixed | ||
- Ensure message updates get saved in state even when they aren't emitted right away ([#1245](https://github.com/MetaMask/core/pull/1245)) | ||
- Ensure message updates get saved in state even when they aren't emitted right away ([#1245](https://github.com/MetaMask/core/pull/1245)) | ||
- The `updateMessage` method included in each message manager accepted an `emitUpdate` boolean argument that would enable to caller to prevent that update from updating the badge (which displays the count of pending confirmations). Unfortunately this option would also prevent the update from being saved in state. | ||
@@ -119,7 +166,11 @@ - This method has been updated to ensure message updates are saved in state, even when the badge update event is suppressed | ||
## [3.1.0] | ||
### Added | ||
- Add DecryptMessageManager ([#1149](https://github.com/MetaMask/core/pull/1149)) | ||
## [3.0.0] | ||
### Added | ||
- Add EncryptionPublicKeyManager ([#1144](https://github.com/MetaMask/core/pull/1144)) | ||
@@ -129,10 +180,15 @@ - Add security provider request to AbstractMessageManager ([#1145](https://github.com/MetaMask/core/pull/1145)) | ||
### Changed | ||
- **BREAKING:** The methods `addMessage` and `addUnapprovedMessage` on each "message manager" controller are now asynchronous ([#1145](https://github.com/MetaMask/core/pull/1145)) | ||
## [2.1.0] | ||
### Added | ||
- Add SIWE detection support for PersonalMessageManager ([#1139](https://github.com/MetaMask/core/pull/1139)) | ||
## [2.0.0] | ||
### Removed | ||
- **BREAKING:** Remove `isomorphic-fetch` ([#1106](https://github.com/MetaMask/controllers/pull/1106)) | ||
@@ -142,3 +198,5 @@ - Consumers must now import `isomorphic-fetch` or another polyfill themselves if they are running in an environment without `fetch` | ||
## [1.0.2] | ||
### Changed | ||
- Rename this repository to `core` ([#1031](https://github.com/MetaMask/controllers/pull/1031)) | ||
@@ -148,9 +206,15 @@ - Update `@metamask/controller-utils` package ([#1041](https://github.com/MetaMask/controllers/pull/1041)) | ||
## [1.0.1] | ||
### Changed | ||
- Relax dependencies on `@metamask/base-controller` and `@metamask/controller-utils` (use `^` instead of `~`) ([#998](https://github.com/MetaMask/core/pull/998)) | ||
## [1.0.0] | ||
### Added | ||
- Initial release | ||
- As a result of converting our shared controllers repo into a monorepo ([#831](https://github.com/MetaMask/core/pull/831)), we've created this package from select parts of [`@metamask/controllers` v33.0.0](https://github.com/MetaMask/core/tree/v33.0.0), namely: | ||
- Everything in `src/message-manager` | ||
@@ -161,3 +225,4 @@ - Message manager-related functions in `src/util.ts` and accompanying tests | ||
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/message-manager@7.3.8...HEAD | ||
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/message-manager@7.3.9...HEAD | ||
[7.3.9]: https://github.com/MetaMask/core/compare/@metamask/message-manager@7.3.8...@metamask/message-manager@7.3.9 | ||
[7.3.8]: https://github.com/MetaMask/core/compare/@metamask/message-manager@7.3.7...@metamask/message-manager@7.3.8 | ||
@@ -164,0 +229,0 @@ [7.3.7]: https://github.com/MetaMask/core/compare/@metamask/message-manager@7.3.6...@metamask/message-manager@7.3.7 |
@@ -14,3 +14,3 @@ import type { Hex } from '@metamask/utils'; | ||
*/ | ||
export declare function normalizeMessageData(data: string): string; | ||
export declare function normalizeMessageData(data: string): `0x${string}`; | ||
/** | ||
@@ -17,0 +17,0 @@ * Validates a PersonalMessageParams and MessageParams objects for required properties and throws in |
@@ -6,3 +6,3 @@ "use strict"; | ||
const eth_sig_util_1 = require("@metamask/eth-sig-util"); | ||
const ethereumjs_util_1 = require("ethereumjs-util"); | ||
const utils_1 = require("@metamask/utils"); | ||
const jsonschema_1 = require("jsonschema"); | ||
@@ -30,5 +30,5 @@ const hexRe = /^[0-9A-Fa-f]+$/gu; | ||
try { | ||
const stripped = (0, ethereumjs_util_1.stripHexPrefix)(data); | ||
const stripped = (0, utils_1.remove0x)(data); | ||
if (stripped.match(hexRe)) { | ||
return (0, ethereumjs_util_1.addHexPrefix)(stripped); | ||
return (0, utils_1.add0x)(stripped); | ||
} | ||
@@ -39,3 +39,3 @@ } | ||
} | ||
return (0, ethereumjs_util_1.bufferToHex)(Buffer.from(data, 'utf8')); | ||
return (0, utils_1.bytesToHex)(Buffer.from(data, 'utf8')); | ||
} | ||
@@ -42,0 +42,0 @@ exports.normalizeMessageData = normalizeMessageData; |
{ | ||
"name": "@metamask/message-manager", | ||
"version": "7.3.8", | ||
"version": "7.3.9", | ||
"description": "Stores and manages interactions with signing requests", | ||
@@ -35,7 +35,6 @@ "keywords": [ | ||
"@metamask/base-controller": "^4.1.1", | ||
"@metamask/controller-utils": "^8.0.2", | ||
"@metamask/controller-utils": "^8.0.4", | ||
"@metamask/eth-sig-util": "^7.0.1", | ||
"@metamask/utils": "^8.3.0", | ||
"@types/uuid": "^8.3.0", | ||
"ethereumjs-util": "^7.0.10", | ||
"jsonschema": "^1.2.4", | ||
@@ -42,0 +41,0 @@ "uuid": "^8.3.2" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
163799
7
- Removedethereumjs-util@^7.0.10
- Removed@types/bn.js@5.1.6(transitive)
- Removed@types/node@22.10.1(transitive)
- Removed@types/pbkdf2@3.1.2(transitive)
- Removed@types/secp256k1@4.0.6(transitive)
- Removedbase-x@3.0.10(transitive)
- Removedblakejs@1.2.1(transitive)
- Removedbn.js@4.12.1(transitive)
- Removedbrorand@1.1.0(transitive)
- Removedbrowserify-aes@1.2.0(transitive)
- Removedbs58@4.0.1(transitive)
- Removedbs58check@2.1.2(transitive)
- Removedbuffer-xor@1.0.3(transitive)
- Removedcipher-base@1.0.6(transitive)
- Removedcreate-hash@1.2.0(transitive)
- Removedcreate-hmac@1.1.7(transitive)
- Removedelliptic@6.6.1(transitive)
- Removedethereum-cryptography@0.1.3(transitive)
- Removedethereumjs-util@7.1.5(transitive)
- Removedevp_bytestokey@1.0.3(transitive)
- Removedhash-base@3.1.0(transitive)
- Removedhash.js@1.1.7(transitive)
- Removedhmac-drbg@1.0.1(transitive)
- Removedinherits@2.0.4(transitive)
- Removedkeccak@3.0.4(transitive)
- Removedmd5.js@1.3.5(transitive)
- Removedminimalistic-assert@1.0.1(transitive)
- Removedminimalistic-crypto-utils@1.0.1(transitive)
- Removednode-addon-api@2.0.25.1.0(transitive)
- Removednode-gyp-build@4.8.4(transitive)
- Removedpbkdf2@3.1.2(transitive)
- Removedrandombytes@2.1.0(transitive)
- Removedreadable-stream@3.6.2(transitive)
- Removedripemd160@2.0.2(transitive)
- Removedrlp@2.2.7(transitive)
- Removedsafe-buffer@5.2.1(transitive)
- Removedscrypt-js@3.0.1(transitive)
- Removedsecp256k1@4.0.4(transitive)
- Removedsetimmediate@1.0.5(transitive)
- Removedsha.js@2.4.11(transitive)
- Removedstring_decoder@1.3.0(transitive)
- Removedundici-types@6.20.0(transitive)
- Removedutil-deprecate@1.0.2(transitive)