@metamask/transaction-controller 41.0.0 → 41.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/CHANGELOG.md +28 -1
  2. package/README.md +4 -0
  3. package/dist/TransactionController.cjs +2 -0
  4. package/dist/TransactionController.cjs.map +1 -1
  5. package/dist/TransactionController.d.cts +0 -62
  6. package/dist/TransactionController.d.cts.map +1 -1
  7. package/dist/TransactionController.d.mts +0 -62
  8. package/dist/TransactionController.d.mts.map +1 -1
  9. package/dist/TransactionController.mjs +4 -4
  10. package/dist/TransactionController.mjs.map +1 -1
  11. package/dist/gas-flows/OracleLayer1GasFeeFlow.mjs +1 -2
  12. package/dist/gas-flows/OracleLayer1GasFeeFlow.mjs.map +1 -1
  13. package/dist/helpers/GasFeePoller.cjs +2 -0
  14. package/dist/helpers/GasFeePoller.cjs.map +1 -1
  15. package/dist/helpers/GasFeePoller.d.cts.map +1 -1
  16. package/dist/helpers/GasFeePoller.d.mts.map +1 -1
  17. package/dist/helpers/GasFeePoller.mjs +2 -0
  18. package/dist/helpers/GasFeePoller.mjs.map +1 -1
  19. package/dist/helpers/IncomingTransactionHelper.cjs +2 -0
  20. package/dist/helpers/IncomingTransactionHelper.cjs.map +1 -1
  21. package/dist/helpers/IncomingTransactionHelper.d.cts.map +1 -1
  22. package/dist/helpers/IncomingTransactionHelper.d.mts.map +1 -1
  23. package/dist/helpers/IncomingTransactionHelper.mjs +2 -0
  24. package/dist/helpers/IncomingTransactionHelper.mjs.map +1 -1
  25. package/dist/helpers/MethodDataHelper.cjs +2 -0
  26. package/dist/helpers/MethodDataHelper.cjs.map +1 -1
  27. package/dist/helpers/MethodDataHelper.d.cts.map +1 -1
  28. package/dist/helpers/MethodDataHelper.d.mts.map +1 -1
  29. package/dist/helpers/MethodDataHelper.mjs +2 -0
  30. package/dist/helpers/MethodDataHelper.mjs.map +1 -1
  31. package/dist/helpers/PendingTransactionTracker.cjs +2 -0
  32. package/dist/helpers/PendingTransactionTracker.cjs.map +1 -1
  33. package/dist/helpers/PendingTransactionTracker.d.cts.map +1 -1
  34. package/dist/helpers/PendingTransactionTracker.d.mts.map +1 -1
  35. package/dist/helpers/PendingTransactionTracker.mjs +2 -0
  36. package/dist/helpers/PendingTransactionTracker.mjs.map +1 -1
  37. package/dist/types.cjs.map +1 -1
  38. package/dist/types.d.cts +4 -0
  39. package/dist/types.d.cts.map +1 -1
  40. package/dist/types.d.mts +4 -0
  41. package/dist/types.d.mts.map +1 -1
  42. package/dist/types.mjs.map +1 -1
  43. package/package.json +8 -6
package/CHANGELOG.md CHANGED
@@ -7,6 +7,32 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [41.1.0]
11
+
12
+ ### Added
13
+
14
+ - Add optional `destinationChainId` property to `TransactionMeta` to facilitate Bridge transactions ([#4988](https://github.com/MetaMask/core/pull/4988))
15
+
16
+ ### Changed
17
+
18
+ - Bump `@metamask/controller-utils` from `^11.4.3` to `^11.4.4` ([#5012](https://github.com/MetaMask/core/pull/5012))
19
+
20
+ ### Fixed
21
+
22
+ - Make implicit peer dependencies explicit ([#4974](https://github.com/MetaMask/core/pull/4974))
23
+ - Add the following packages as peer dependencies of this package to satisfy peer dependency requirements from other dependencies:
24
+ - `@babel/runtime` `^7.0.0` (required by `@metamask/ethjs-provider-http`)
25
+ - `@metamask/eth-block-tracker` `>=9` (required by `@metamask/nonce-tracker`)
26
+ - These dependencies really should be present in projects that consume this package (e.g. MetaMask clients), and this change ensures that they now are.
27
+ - Furthermore, we are assuming that clients already use these dependencies, since otherwise it would be impossible to consume this package in its entirety or even create a working build. Hence, the addition of these peer dependencies is really a formality and should not be breaking.
28
+ - Correct ESM-compatible build so that imports of the following packages that re-export other modules via `export *` are no longer corrupted: ([#5011](https://github.com/MetaMask/core/pull/5011))
29
+ - `@ethereumjs/common`
30
+ - `@ethereumjs/util`
31
+ - `@metamask/eth-query`
32
+ - `bn.js`
33
+ - `fast-json-patch`
34
+ - `lodash`
35
+
10
36
  ## [41.0.0]
11
37
 
12
38
  ### Added
@@ -1163,7 +1189,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1163
1189
 
1164
1190
  All changes listed after this point were applied to this package following the monorepo conversion.
1165
1191
 
1166
- [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@41.0.0...HEAD
1192
+ [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@41.1.0...HEAD
1193
+ [41.1.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@41.0.0...@metamask/transaction-controller@41.1.0
1167
1194
  [41.0.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@40.1.0...@metamask/transaction-controller@41.0.0
1168
1195
  [40.1.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@40.0.0...@metamask/transaction-controller@40.1.0
1169
1196
  [40.0.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@39.1.0...@metamask/transaction-controller@40.0.0
package/README.md CHANGED
@@ -10,6 +10,10 @@ or
10
10
 
11
11
  `npm install @metamask/transaction-controller`
12
12
 
13
+ ## Compatibility
14
+
15
+ This package relies implicitly upon the `EventEmitter` module. This module is available natively in Node.js, but when using this package for the browser, make sure to use a polyfill such as `events`.
16
+
13
17
  ## Contributing
14
18
 
15
19
  This package is part of a monorepo. Instructions for contributing can be found in the [monorepo README](https://github.com/MetaMask/core#readme).
@@ -27,6 +27,8 @@ const nonce_tracker_1 = require("@metamask/nonce-tracker");
27
27
  const rpc_errors_1 = require("@metamask/rpc-errors");
28
28
  const utils_1 = require("@metamask/utils");
29
29
  const async_mutex_1 = require("async-mutex");
30
+ // This package purposefully relies on Node's EventEmitter module.
31
+ // eslint-disable-next-line import/no-nodejs-modules
30
32
  const events_1 = require("events");
31
33
  const lodash_1 = require("lodash");
32
34
  const uuid_1 = require("uuid");