@metamask/snaps-jest 8.13.0 → 8.14.1

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.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [8.14.1]
11
+
12
+ ### Fixed
13
+
14
+ - Pass proper origin to handlers ([#3292](https://github.com/MetaMask/snaps/pull/3292))
15
+
16
+ ## [8.14.0]
17
+
18
+ ### Added
19
+
20
+ - Add support for `getMnemonicSeed` hook required by latest RPC methods ([#3220](https://github.com/MetaMask/snaps/pull/3220))
21
+
22
+ ### Changed
23
+
24
+ - Bump `express` to `^4.21.2` ([#3196](https://github.com/MetaMask/snaps/pull/3196))
25
+
10
26
  ## [8.13.0]
11
27
 
12
28
  ### Added
@@ -347,7 +363,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
347
363
  - The version of the package no longer needs to match the version of all other
348
364
  MetaMask Snaps packages.
349
365
 
350
- [Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-jest@8.13.0...HEAD
366
+ [Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-jest@8.14.1...HEAD
367
+ [8.14.1]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-jest@8.14.0...@metamask/snaps-jest@8.14.1
368
+ [8.14.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-jest@8.13.0...@metamask/snaps-jest@8.14.0
351
369
  [8.13.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-jest@8.12.0...@metamask/snaps-jest@8.13.0
352
370
  [8.12.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-jest@8.11.0...@metamask/snaps-jest@8.12.0
353
371
  [8.11.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-jest@8.10.0...@metamask/snaps-jest@8.11.0
@@ -1,14 +1,14 @@
1
1
  import type { Infer } from "@metamask/superstruct";
2
2
  declare const SnapsEnvironmentOptionsStruct: import("@metamask/superstruct").Struct<{
3
3
  server: {
4
- port: number;
5
4
  enabled: boolean;
5
+ port: number;
6
6
  root: string;
7
7
  };
8
8
  }, {
9
9
  server: import("@metamask/superstruct").Struct<{
10
- port: number;
11
10
  enabled: boolean;
11
+ port: number;
12
12
  root: string;
13
13
  }, {
14
14
  enabled: import("@metamask/superstruct").Struct<boolean, null>;
@@ -52,8 +52,8 @@ export type SnapsEnvironmentOptions = Infer<typeof SnapsEnvironmentOptionsStruct
52
52
  */
53
53
  export declare function getOptions(testEnvironmentOptions: Record<string, unknown>): {
54
54
  server: {
55
- port: number;
56
55
  enabled: boolean;
56
+ port: number;
57
57
  root: string;
58
58
  };
59
59
  };
@@ -1,14 +1,14 @@
1
1
  import type { Infer } from "@metamask/superstruct";
2
2
  declare const SnapsEnvironmentOptionsStruct: import("@metamask/superstruct").Struct<{
3
3
  server: {
4
- port: number;
5
4
  enabled: boolean;
5
+ port: number;
6
6
  root: string;
7
7
  };
8
8
  }, {
9
9
  server: import("@metamask/superstruct").Struct<{
10
- port: number;
11
10
  enabled: boolean;
11
+ port: number;
12
12
  root: string;
13
13
  }, {
14
14
  enabled: import("@metamask/superstruct").Struct<boolean, null>;
@@ -52,8 +52,8 @@ export type SnapsEnvironmentOptions = Infer<typeof SnapsEnvironmentOptionsStruct
52
52
  */
53
53
  export declare function getOptions(testEnvironmentOptions: Record<string, unknown>): {
54
54
  server: {
55
- port: number;
56
55
  enabled: boolean;
56
+ port: number;
57
57
  root: string;
58
58
  };
59
59
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask/snaps-jest",
3
- "version": "8.13.0",
3
+ "version": "8.14.1",
4
4
  "description": "A Jest preset for end-to-end testing MetaMask Snaps, including a Jest environment, and a set of Jest matchers",
5
5
  "keywords": [
6
6
  "MetaMask",
@@ -60,12 +60,12 @@
60
60
  "@jest/environment": "^29.5.0",
61
61
  "@jest/expect": "^29.5.0",
62
62
  "@jest/globals": "^29.5.0",
63
- "@metamask/snaps-controllers": "^10.0.1",
64
- "@metamask/snaps-sdk": "^6.19.0",
65
- "@metamask/snaps-simulation": "^2.3.0",
66
- "@metamask/superstruct": "^3.1.0",
63
+ "@metamask/snaps-controllers": "^11.2.0",
64
+ "@metamask/snaps-sdk": "^6.22.0",
65
+ "@metamask/snaps-simulation": "^2.4.1",
66
+ "@metamask/superstruct": "^3.2.1",
67
67
  "@metamask/utils": "^11.2.0",
68
- "express": "^4.18.2",
68
+ "express": "^4.21.2",
69
69
  "jest-environment-node": "^29.5.0",
70
70
  "jest-matcher-utils": "^29.5.0",
71
71
  "redux": "^4.2.1"
@@ -73,8 +73,8 @@
73
73
  "devDependencies": {
74
74
  "@jest/types": "^29.6.3",
75
75
  "@lavamoat/allow-scripts": "^3.0.4",
76
- "@metamask/auto-changelog": "^4.1.0",
77
- "@metamask/snaps-utils": "^9.0.1",
76
+ "@metamask/auto-changelog": "^5.0.1",
77
+ "@metamask/snaps-utils": "^9.2.0",
78
78
  "@swc/core": "1.3.78",
79
79
  "@swc/jest": "^0.2.26",
80
80
  "@ts-bridge/cli": "^0.6.1",