@metamask/snaps-jest 1.0.0 → 2.0.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.
package/CHANGELOG.md CHANGED
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [2.0.0]
10
+ ### Changed
11
+ - **BREAKING:** Bump minimum Node.js version to `^18.16.0` ([#1741](https://github.com/MetaMask/snaps/pull/1741))
12
+
9
13
  ## [1.0.0]
10
14
  ### Changed
11
15
  - Initial stable release from main branch ([#1757](https://github.com/MetaMask/snaps/pull/1757))
@@ -28,7 +32,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
28
32
  - The version of the package no longer needs to match the version of all other
29
33
  MetaMask Snaps packages.
30
34
 
31
- [Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-jest@1.0.0...HEAD
35
+ [Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-jest@2.0.0...HEAD
36
+ [2.0.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-jest@1.0.0...@metamask/snaps-jest@2.0.0
32
37
  [1.0.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-jest@0.37.5-flask.1...@metamask/snaps-jest@1.0.0
33
38
  [0.37.5-flask.1]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-jest@0.37.4-flask.1...@metamask/snaps-jest@0.37.5-flask.1
34
39
  [0.37.4-flask.1]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-jest@0.37.3-flask.1...@metamask/snaps-jest@0.37.4-flask.1
@@ -47,6 +47,9 @@ export declare function sendTransaction(page: Page, options: Partial<Transaction
47
47
  value: string;
48
48
  type: import("@metamask/snaps-ui").NodeType.Text;
49
49
  markdown?: boolean | undefined;
50
+ } | {
51
+ value: string;
52
+ type: import("@metamask/snaps-ui").NodeType.Image;
50
53
  };
51
54
  }>;
52
55
  /**
@@ -85,6 +85,9 @@ export declare const InterfaceStruct: import("superstruct").Struct<{
85
85
  value: string;
86
86
  type: import("@metamask/snaps-ui").NodeType.Text;
87
87
  markdown?: boolean | undefined;
88
+ } | {
89
+ value: string;
90
+ type: import("@metamask/snaps-ui").NodeType.Image;
88
91
  } | undefined;
89
92
  }, {
90
93
  content: import("superstruct").Struct<import("@metamask/snaps-ui").Panel | {
@@ -101,6 +104,9 @@ export declare const InterfaceStruct: import("superstruct").Struct<{
101
104
  value: string;
102
105
  type: import("@metamask/snaps-ui").NodeType.Text;
103
106
  markdown?: boolean | undefined;
107
+ } | {
108
+ value: string;
109
+ type: import("@metamask/snaps-ui").NodeType.Image;
104
110
  } | undefined, null>;
105
111
  }>;
106
112
  export declare const SnapResponseStruct: import("superstruct").Struct<{
@@ -129,6 +135,9 @@ export declare const SnapResponseStruct: import("superstruct").Struct<{
129
135
  value: string;
130
136
  type: import("@metamask/snaps-ui").NodeType.Text;
131
137
  markdown?: boolean | undefined;
138
+ } | {
139
+ value: string;
140
+ type: import("@metamask/snaps-ui").NodeType.Image;
132
141
  } | undefined;
133
142
  }, {
134
143
  id: import("superstruct").Struct<string, null>;
@@ -164,5 +173,8 @@ export declare const SnapResponseStruct: import("superstruct").Struct<{
164
173
  value: string;
165
174
  type: import("@metamask/snaps-ui").NodeType.Text;
166
175
  markdown?: boolean | undefined;
176
+ } | {
177
+ value: string;
178
+ type: import("@metamask/snaps-ui").NodeType.Image;
167
179
  } | undefined, null>;
168
180
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask/snaps-jest",
3
- "version": "1.0.0",
3
+ "version": "2.0.0",
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
  "sideEffects": false,
6
6
  "main": "./dist/cjs/index.js",
@@ -37,11 +37,11 @@
37
37
  "@jest/environment": "^29.5.0",
38
38
  "@jest/expect": "^29.5.0",
39
39
  "@jest/globals": "^29.5.0",
40
- "@metamask/rpc-methods": "^2.0.0",
41
- "@metamask/snaps-execution-environments": "^2.0.0",
42
- "@metamask/snaps-simulator": "^1.0.0",
43
- "@metamask/snaps-ui": "^2.0.0",
44
- "@metamask/snaps-utils": "^2.0.0",
40
+ "@metamask/rpc-methods": "^3.0.0",
41
+ "@metamask/snaps-execution-environments": "^3.0.0",
42
+ "@metamask/snaps-simulator": "^2.0.0",
43
+ "@metamask/snaps-ui": "^3.0.0",
44
+ "@metamask/snaps-utils": "^3.0.0",
45
45
  "@metamask/utils": "^8.1.0",
46
46
  "express": "^4.18.2",
47
47
  "jest-environment-node": "^29.5.0",
@@ -52,8 +52,8 @@
52
52
  "webdriverio": "^8.15.9"
53
53
  },
54
54
  "devDependencies": {
55
- "@lavamoat/allow-scripts": "^2.3.1",
56
- "@metamask/auto-changelog": "^3.1.0",
55
+ "@lavamoat/allow-scripts": "^2.5.1",
56
+ "@metamask/auto-changelog": "^3.3.0",
57
57
  "@metamask/eslint-config": "^12.1.0",
58
58
  "@metamask/eslint-config-jest": "^12.1.0",
59
59
  "@metamask/eslint-config-nodejs": "^12.1.0",
@@ -82,6 +82,9 @@
82
82
  "rimraf": "^4.1.2",
83
83
  "typescript": "~4.8.4"
84
84
  },
85
+ "engines": {
86
+ "node": "^18.16 || >=20"
87
+ },
85
88
  "publishConfig": {
86
89
  "access": "public",
87
90
  "registry": "https://registry.npmjs.org/"