@metamask/snaps-cli 6.3.3 → 6.3.4
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 +75 -1
- package/package.json +30 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
# Changelog
|
|
2
|
+
|
|
2
3
|
All notable changes to this project will be documented in this file.
|
|
3
4
|
|
|
4
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
@@ -6,43 +7,66 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
6
7
|
|
|
7
8
|
## [Unreleased]
|
|
8
9
|
|
|
10
|
+
## [6.3.4]
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Bump `@metamask/snaps-sdk` to `^6.7.0` ([#2770](https://github.com/MetaMask/snaps/pull/2770))
|
|
15
|
+
- Bump `@metamask/snaps-utils` to `^8.3.0` ([#2770](https://github.com/MetaMask/snaps/pull/2770))
|
|
16
|
+
|
|
9
17
|
## [6.3.3]
|
|
18
|
+
|
|
10
19
|
### Fixed
|
|
20
|
+
|
|
11
21
|
- Fix invalid types in type declaration in some cases ([#2714](https://github.com/MetaMask/snaps/pull/2714))
|
|
12
22
|
|
|
13
23
|
## [6.3.2]
|
|
24
|
+
|
|
14
25
|
### Fixed
|
|
26
|
+
|
|
15
27
|
- Fix ESM version of the package ([#2682](https://github.com/MetaMask/snaps/pull/2682))
|
|
16
28
|
- This fixes the ESM version of the package to be fully compliant with the ESM
|
|
17
29
|
standard.
|
|
18
30
|
- Bump `@metamask/utils` from `^9.1.0` to `^9.2.1` ([#2680](https://github.com/MetaMask/snaps/pull/2680))
|
|
19
31
|
|
|
20
32
|
## [6.3.1]
|
|
33
|
+
|
|
21
34
|
### Fixed
|
|
35
|
+
|
|
22
36
|
- Hide browserlist warning where applicable ([#2664](https://github.com/MetaMask/snaps/pull/2664))
|
|
23
37
|
|
|
24
38
|
## [6.3.0]
|
|
39
|
+
|
|
25
40
|
### Changed
|
|
41
|
+
|
|
26
42
|
- Improve manifest validation output ([#2572](https://github.com/MetaMask/snaps/pull/2572))
|
|
27
43
|
- Replace `superstruct` with ESM-compatible fork `@metamask/superstruct` ([#2445](https://github.com/MetaMask/snaps/pull/2445))
|
|
28
44
|
|
|
29
45
|
## [6.2.1]
|
|
46
|
+
|
|
30
47
|
### Fixed
|
|
48
|
+
|
|
31
49
|
- Improve validation of `endowment:rpc` ([#2512](https://github.com/MetaMask/snaps/pull/2512))
|
|
32
50
|
|
|
33
51
|
## [6.2.0]
|
|
52
|
+
|
|
34
53
|
### Added
|
|
54
|
+
|
|
35
55
|
- Add support for building Snaps with JSX ([#2258](https://github.com/MetaMask/snaps/pull/2258))
|
|
36
56
|
- It's now possible to use JSX components from `@metamask/snaps-sdk` to build
|
|
37
57
|
user interfaces for Snaps.
|
|
38
58
|
|
|
39
59
|
## [6.1.1]
|
|
60
|
+
|
|
40
61
|
### Fixed
|
|
62
|
+
|
|
41
63
|
- Disable `topLevelAwait` configuration option ([#2358](https://github.com/MetaMask/snaps/pull/2358))
|
|
42
64
|
- Before this the CLI would produce invalid builds when using top-level await.
|
|
43
65
|
|
|
44
66
|
## [6.1.0]
|
|
67
|
+
|
|
45
68
|
### Added
|
|
69
|
+
|
|
46
70
|
- Add support for importing SVG, PNG, and JPEG files directly ([#2284](https://github.com/MetaMask/snaps/pull/2284))
|
|
47
71
|
- You can now import these files using a regular import declaration when using the Webpack-based config.
|
|
48
72
|
- To opt out of this feature (i.e., to use custom image loading logic), add the following to your config:
|
|
@@ -55,116 +79,164 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
55
79
|
```
|
|
56
80
|
|
|
57
81
|
### Changed
|
|
82
|
+
|
|
58
83
|
- Update CLI docs link ([#2294](https://github.com/MetaMask/snaps/pull/2294))
|
|
59
84
|
|
|
60
85
|
### Fixed
|
|
86
|
+
|
|
61
87
|
- Fix detection of minimum Node.js version ([#2292](https://github.com/MetaMask/snaps/pull/2292))
|
|
62
88
|
|
|
63
89
|
## [6.0.2]
|
|
90
|
+
|
|
64
91
|
### Fixed
|
|
92
|
+
|
|
65
93
|
- Publish `.browserslistrc` ([#2227](https://github.com/MetaMask/snaps/pull/2227))
|
|
66
94
|
|
|
67
95
|
## [6.0.1]
|
|
96
|
+
|
|
68
97
|
### Fixed
|
|
98
|
+
|
|
69
99
|
- Fix minor build configuration problems ([#2220](https://github.com/MetaMask/snaps/pull/2220))
|
|
70
100
|
|
|
71
101
|
## [6.0.0]
|
|
102
|
+
|
|
72
103
|
### Changed
|
|
104
|
+
|
|
73
105
|
- **BREAKING:** Update ESM build to be fully compliant with the ESM standard ([#2210](https://github.com/MetaMask/snaps/pull/2210))
|
|
74
106
|
- **BREAKING:** Change config to use Webpack by default ([#2214](https://github.com/MetaMask/snaps/pull/2214))
|
|
75
107
|
- You can still use Browserify by specifying `bundler: 'browserify'`.
|
|
76
108
|
|
|
77
109
|
## [5.1.1]
|
|
110
|
+
|
|
78
111
|
### Fixed
|
|
112
|
+
|
|
79
113
|
- Support new lines in CLI message formatting ([#2194](https://github.com/MetaMask/snaps/pull/2194))
|
|
80
114
|
|
|
81
115
|
## [5.1.0]
|
|
116
|
+
|
|
82
117
|
### Changed
|
|
118
|
+
|
|
83
119
|
- Optimize CLI Webpack configuration ([#2175](https://github.com/MetaMask/snaps/pull/2175))
|
|
84
120
|
- This can reduce the size of Snaps in certain cases.
|
|
85
121
|
- Show Webpack compilation warnings in CLI ([#2186](https://github.com/MetaMask/snaps/pull/2186), [#2192](https://github.com/MetaMask/snaps/pull/2192))
|
|
86
122
|
- Add a warning when no icon is found and when icon is not square ([#2185](https://github.com/MetaMask/snaps/pull/2185))
|
|
87
123
|
|
|
88
124
|
## [5.0.0]
|
|
125
|
+
|
|
89
126
|
### Changed
|
|
127
|
+
|
|
90
128
|
- **BREAKING:** Disable source maps by default ([#2166](https://github.com/MetaMask/snaps/pull/2166))
|
|
91
129
|
- This slightly speeds up the build process.
|
|
92
130
|
- You can enable source maps again by setting `sourceMap: true` in your Snap config.
|
|
93
131
|
- Set `output.chunkFormat` to `commonjs` by default ([#2136](https://github.com/MetaMask/snaps/pull/2136))
|
|
94
132
|
|
|
95
133
|
## [4.0.1]
|
|
134
|
+
|
|
96
135
|
### Fixed
|
|
136
|
+
|
|
97
137
|
- Fix missing `global` during snap evaluation ([#2072](https://github.com/MetaMask/snaps/pull/2072))
|
|
98
138
|
|
|
99
139
|
## [4.0.0]
|
|
140
|
+
|
|
100
141
|
### Changed
|
|
142
|
+
|
|
101
143
|
- **BREAKING:** Synchronously initialize WASM modules ([#2024](https://github.com/MetaMask/snaps/pull/2024))
|
|
102
144
|
- When the `experimental.wasm` flag in the Snaps CLI is enabled, the WASM module will now be synchronously initialized, rather than being inlined as a Uint8Array.
|
|
103
145
|
|
|
104
146
|
## [3.0.5]
|
|
147
|
+
|
|
105
148
|
### Fixed
|
|
149
|
+
|
|
106
150
|
- Include Snap icon in allowed server paths ([#2003](https://github.com/MetaMask/snaps/pull/2003))
|
|
107
151
|
|
|
108
152
|
## [3.0.4]
|
|
153
|
+
|
|
109
154
|
### Fixed
|
|
155
|
+
|
|
110
156
|
- Only serve Snap files from CLI ([#1979](https://github.com/MetaMask/snaps/pull/1979))
|
|
111
157
|
|
|
112
158
|
## [3.0.3]
|
|
159
|
+
|
|
113
160
|
### Changed
|
|
161
|
+
|
|
114
162
|
- Bump several MetaMask dependencies ([#1964](https://github.com/MetaMask/snaps/pull/1964))
|
|
115
163
|
|
|
116
164
|
### Fixed
|
|
165
|
+
|
|
117
166
|
- Fix issues generating checksum with binary auxiliary files ([#1975](https://github.com/MetaMask/snaps/pull/1975))
|
|
118
167
|
|
|
119
168
|
## [3.0.2]
|
|
169
|
+
|
|
120
170
|
### Changed
|
|
171
|
+
|
|
121
172
|
- Use `@metamask/snaps-sdk` package ([#1951](https://github.com/MetaMask/snaps/pull/1951))
|
|
122
173
|
- This package replaces the `@metamask/snaps-types` and
|
|
123
174
|
`@metamask/snaps-ui` packages.
|
|
124
175
|
|
|
125
176
|
## [3.0.1]
|
|
177
|
+
|
|
126
178
|
### Changed
|
|
179
|
+
|
|
127
180
|
- Bump Babel packages from `^7.20.12` to `^7.23.2` ([#1862](https://github.com/MetaMask/snaps/pull/1862))
|
|
128
181
|
- Update multiple MetaMask dependencies ([#1841](https://github.com/MetaMask/snaps/pull/1841))
|
|
129
182
|
|
|
130
183
|
## [3.0.0]
|
|
184
|
+
|
|
131
185
|
### Changed
|
|
186
|
+
|
|
132
187
|
- **BREAKING:** Bump minimum Node.js version to `^18.16.0` ([#1741](https://github.com/MetaMask/snaps/pull/1741))
|
|
133
188
|
|
|
134
189
|
## [2.0.2]
|
|
190
|
+
|
|
135
191
|
### Fixed
|
|
192
|
+
|
|
136
193
|
- Fix Webpack being unable to find `swc-loader` in some cases ([#1798](https://github.com/MetaMask/snaps/pull/1798))
|
|
137
194
|
- Check minimum Node version in CLI ([#1797](https://github.com/MetaMask/snaps/pull/1797))
|
|
138
195
|
|
|
139
196
|
## [2.0.1]
|
|
197
|
+
|
|
140
198
|
### Fixed
|
|
199
|
+
|
|
141
200
|
- Disable the `fullySpecified` rule for `.js` imports in the default Webpack config ([#1780](https://github.com/MetaMask/snaps/pull/1780))
|
|
142
201
|
|
|
143
202
|
## [2.0.0]
|
|
203
|
+
|
|
144
204
|
### Changed
|
|
205
|
+
|
|
145
206
|
- Initial stable release from main branch ([#1757](https://github.com/MetaMask/snaps/pull/1757))
|
|
146
207
|
|
|
147
208
|
## [0.38.4-flask.1]
|
|
209
|
+
|
|
148
210
|
### Changed
|
|
211
|
+
|
|
149
212
|
- Bump `metamask/utils` and `metamask/snaps-registry` ([#1738](https://github.com/MetaMask/snaps/pull/1738), [#1694](https://github.com/MetaMask/snaps/pull/1694))
|
|
150
213
|
|
|
151
214
|
## [0.38.3-flask.1]
|
|
215
|
+
|
|
152
216
|
### Fixed
|
|
217
|
+
|
|
153
218
|
- Remove unused dependencies ([#1680](https://github.com/MetaMask/snaps/pull/1680))
|
|
154
219
|
|
|
155
220
|
## [0.38.2-flask.1]
|
|
221
|
+
|
|
156
222
|
### Added
|
|
223
|
+
|
|
157
224
|
- Add `polyfills` option to Webpack configuration ([#1650](https://github.com/MetaMask/snaps/pull/1650))
|
|
158
225
|
|
|
159
226
|
### Fixed
|
|
227
|
+
|
|
160
228
|
- Fix breaking change to SWC causing the CLI to break ([#1677](https://github.com/MetaMask/snaps/pull/1677))
|
|
161
229
|
|
|
162
230
|
## [0.38.1-flask.1]
|
|
231
|
+
|
|
163
232
|
### Changed
|
|
233
|
+
|
|
164
234
|
- Update all examples to use Webpack ([#1632](https://github.com/MetaMask/snaps/pull/1632))
|
|
165
235
|
|
|
166
236
|
## [0.38.0-flask.1]
|
|
237
|
+
|
|
167
238
|
### Added
|
|
239
|
+
|
|
168
240
|
- Add support for bundling with Webpack ([#1521](https://github.com/MetaMask/snaps/pull/1521))
|
|
169
241
|
- For backwards compatibility, the Webpack bundler is opt-in. To use it, add
|
|
170
242
|
`"bundler": "webpack"` to your snap configuration file, and follow the new
|
|
@@ -177,11 +249,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
177
249
|
- Support TypeScript snap configuration files ([#1521](https://github.com/MetaMask/snaps/pull/1521))
|
|
178
250
|
|
|
179
251
|
### Changed
|
|
252
|
+
|
|
180
253
|
- Release package independently ([#1600](https://github.com/MetaMask/snaps/pull/1600))
|
|
181
254
|
- The version of the package no longer needs to match the version of all other
|
|
182
255
|
MetaMask Snaps packages.
|
|
183
256
|
|
|
184
|
-
[Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-cli@6.3.
|
|
257
|
+
[Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-cli@6.3.4...HEAD
|
|
258
|
+
[6.3.4]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-cli@6.3.3...@metamask/snaps-cli@6.3.4
|
|
185
259
|
[6.3.3]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-cli@6.3.2...@metamask/snaps-cli@6.3.3
|
|
186
260
|
[6.3.2]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-cli@6.3.1...@metamask/snaps-cli@6.3.2
|
|
187
261
|
[6.3.1]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-cli@6.3.0...@metamask/snaps-cli@6.3.1
|
package/package.json
CHANGED
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metamask/snaps-cli",
|
|
3
|
-
"version": "6.3.
|
|
4
|
-
"description": "A CLI for developing MetaMask Snaps
|
|
3
|
+
"version": "6.3.4",
|
|
4
|
+
"description": "A CLI for developing MetaMask Snaps",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"MetaMask",
|
|
7
|
+
"Snaps",
|
|
8
|
+
"Ethereum"
|
|
9
|
+
],
|
|
10
|
+
"homepage": "https://github.com/MetaMask/snaps/tree/main/packages/snaps-cli#readme",
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/MetaMask/snaps/issues"
|
|
13
|
+
},
|
|
5
14
|
"repository": {
|
|
6
15
|
"type": "git",
|
|
7
16
|
"url": "https://github.com/MetaMask/snaps.git"
|
|
@@ -33,22 +42,26 @@
|
|
|
33
42
|
".browserslistrc"
|
|
34
43
|
],
|
|
35
44
|
"scripts": {
|
|
36
|
-
"build": "ts-bridge --project tsconfig.build.json --verbose --no-references
|
|
45
|
+
"build": "ts-bridge --project tsconfig.build.json --verbose --clean --no-references",
|
|
37
46
|
"build:chmod": "chmod +x ./dist/main.mjs && chmod +x ./dist/main.js",
|
|
47
|
+
"build:post": "yarn build:chmod && yarn build:readme",
|
|
38
48
|
"build:readme": "node ./scripts/updateReadme.js",
|
|
39
49
|
"build:watch": "tsc-watch --onSuccess 'yarn build:chmod'",
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"lint:
|
|
50
|
+
"changelog:update": "../../scripts/update-changelog.sh @metamask/snaps-cli",
|
|
51
|
+
"changelog:validate": "../../scripts/validate-changelog.sh @metamask/snaps-cli",
|
|
52
|
+
"lint": "yarn lint:eslint && yarn lint:misc --check && yarn changelog:validate && yarn lint:dependencies",
|
|
53
|
+
"lint:ci": "yarn lint",
|
|
54
|
+
"lint:dependencies": "depcheck",
|
|
45
55
|
"lint:eslint": "eslint . --cache --ext js,ts,jsx,tsx",
|
|
46
|
-
"lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" --ignore-path ../../.gitignore",
|
|
47
|
-
"lint": "yarn lint:eslint && yarn lint:misc --check && yarn lint:changelog && yarn lint:dependencies",
|
|
48
56
|
"lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write",
|
|
57
|
+
"lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" --ignore-path ../../.gitignore",
|
|
49
58
|
"publish:preview": "yarn npm publish --tag preview",
|
|
50
|
-
"
|
|
51
|
-
"
|
|
59
|
+
"since-latest-release": "../../scripts/since-latest-release.sh",
|
|
60
|
+
"test": "jest --reporters=jest-silent-reporter",
|
|
61
|
+
"test:clean": "jest --clearCache",
|
|
62
|
+
"test:post": "jest-it-up",
|
|
63
|
+
"test:verbose": "jest --verbose",
|
|
64
|
+
"test:watch": "jest --watch"
|
|
52
65
|
},
|
|
53
66
|
"dependencies": {
|
|
54
67
|
"@babel/core": "^7.23.2",
|
|
@@ -59,8 +72,8 @@
|
|
|
59
72
|
"@babel/plugin-transform-runtime": "^7.13.2",
|
|
60
73
|
"@babel/preset-env": "^7.23.2",
|
|
61
74
|
"@babel/preset-typescript": "^7.23.2",
|
|
62
|
-
"@metamask/snaps-sdk": "^6.
|
|
63
|
-
"@metamask/snaps-utils": "^8.
|
|
75
|
+
"@metamask/snaps-sdk": "^6.7.0",
|
|
76
|
+
"@metamask/snaps-utils": "^8.3.0",
|
|
64
77
|
"@metamask/snaps-webpack-plugin": "^4.1.2",
|
|
65
78
|
"@metamask/superstruct": "^3.1.0",
|
|
66
79
|
"@metamask/utils": "^9.2.1",
|
|
@@ -131,9 +144,10 @@
|
|
|
131
144
|
"execa": "^5.1.1",
|
|
132
145
|
"jest": "^29.0.2",
|
|
133
146
|
"jest-it-up": "^2.0.0",
|
|
147
|
+
"jest-silent-reporter": "^0.6.0",
|
|
134
148
|
"memfs": "^3.4.13",
|
|
135
|
-
"prettier": "^2.
|
|
136
|
-
"prettier-plugin-packagejson": "^2.2
|
|
149
|
+
"prettier": "^2.8.8",
|
|
150
|
+
"prettier-plugin-packagejson": "^2.5.2",
|
|
137
151
|
"ts-node": "^10.9.1",
|
|
138
152
|
"tsc-watch": "^4.5.0",
|
|
139
153
|
"typescript": "~5.3.3"
|