Skip to content

Commit af93e7a

Browse files
authored
Merge branch 'main' into test-on-node-18
2 parents c10fbb5 + def4667 commit af93e7a

File tree

26 files changed

+99
-109
lines changed

26 files changed

+99
-109
lines changed

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "root",
3-
"version": "0.13.0",
3+
"version": "0.14.0",
44
"private": true,
55
"repository": {
66
"type": "git",
@@ -38,9 +38,6 @@
3838
],
3939
"!(CHANGELOG).{json,yml,md}": [
4040
"prettier --write"
41-
],
42-
"CHANGELOG.md": [
43-
"auto-changelog validate --file"
4441
]
4542
},
4643
"devDependencies": {

packages/cli/CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [0.14.0]
10+
### Changed
11+
- **BREAKING:** Increase TypeScript compilation target to ES2020 ([#449](https://github.com/MetaMask/snaps-skunkworks/pull/449))
12+
- This should not be breaking for consumers on any non-deprecated browser or Node.js version.
13+
914
## [0.13.0]
1015
### Changed
1116
- No changes this release.
@@ -173,7 +178,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
173178
- Example snaps ([#72](https://github.com/MetaMask/snaps-skunkworks/pull/72))
174179
- The examples now live in their own package, [`@metamask/snap-examples`](https://npmjs.com/package/@metamask/snap-examples).
175180

176-
[Unreleased]: https://github.com/MetaMask/snaps-skunkworks/compare/v0.13.0...HEAD
181+
[Unreleased]: https://github.com/MetaMask/snaps-skunkworks/compare/v0.14.0...HEAD
182+
[0.14.0]: https://github.com/MetaMask/snaps-skunkworks/compare/v0.13.0...v0.14.0
177183
[0.13.0]: https://github.com/MetaMask/snaps-skunkworks/compare/v0.12.0...v0.13.0
178184
[0.12.0]: https://github.com/MetaMask/snaps-skunkworks/compare/v0.11.1...v0.12.0
179185
[0.11.1]: https://github.com/MetaMask/snaps-skunkworks/compare/v0.11.0...v0.11.1

packages/cli/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metamask/snaps-cli",
3-
"version": "0.13.0",
3+
"version": "0.14.0",
44
"description": "A CLI for developing MetaMask Snaps.",
55
"repository": {
66
"type": "git",
@@ -47,8 +47,8 @@
4747
"@babel/plugin-transform-runtime": "^7.16.7",
4848
"@babel/preset-env": "^7.16.7",
4949
"@chainsafe/strip-comments": "^1.0.5",
50-
"@metamask/snap-controllers": "^0.13.0",
51-
"@metamask/snaps-browserify-plugin": "^0.13.0",
50+
"@metamask/snap-controllers": "^0.14.0",
51+
"@metamask/snaps-browserify-plugin": "^0.14.0",
5252
"babelify": "^10.0.0",
5353
"browserify": "^17.0.0",
5454
"chokidar": "^3.0.2",

packages/controllers/CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [0.14.0]
10+
### Changed
11+
- **BREAKING:** Increase TypeScript compilation target to ES2020 ([#449](https://github.com/MetaMask/snaps-skunkworks/pull/449))
12+
- This should not be breaking for consumers on any non-deprecated browser or Node.js version.
13+
914
## [0.13.0]
1015
### Added
1116
- Add long-running endowment permission ([#386](https://github.com/MetaMask/snaps-skunkworks/pull/386))
@@ -265,7 +270,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
265270
### Added
266271
- First semi-stable release.
267272

268-
[Unreleased]: https://github.com/MetaMask/snaps-skunkworks/compare/v0.13.0...HEAD
273+
[Unreleased]: https://github.com/MetaMask/snaps-skunkworks/compare/v0.14.0...HEAD
274+
[0.14.0]: https://github.com/MetaMask/snaps-skunkworks/compare/v0.13.0...v0.14.0
269275
[0.13.0]: https://github.com/MetaMask/snaps-skunkworks/compare/v0.12.0...v0.13.0
270276
[0.12.0]: https://github.com/MetaMask/snaps-skunkworks/compare/v0.11.1...v0.12.0
271277
[0.11.1]: https://github.com/MetaMask/snaps-skunkworks/compare/v0.11.0...v0.11.1

packages/controllers/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metamask/snap-controllers",
3-
"version": "0.13.0",
3+
"version": "0.14.0",
44
"description": "Controllers for MetaMask Snaps.",
55
"repository": {
66
"type": "git",
@@ -33,7 +33,7 @@
3333
},
3434
"dependencies": {
3535
"@metamask/controllers": "^29.0.1",
36-
"@metamask/execution-environments": "^0.13.0",
36+
"@metamask/execution-environments": "^0.14.0",
3737
"@metamask/object-multiplex": "^1.1.0",
3838
"@metamask/obs-store": "^7.0.0",
3939
"@metamask/post-message-stream": "4.0.0",
@@ -58,7 +58,7 @@
5858
"devDependencies": {
5959
"@jest-runner/electron": "^3.0.1",
6060
"@json-schema-tools/transpiler": "^1.10.2",
61-
"@metamask/snap-types": "^0.13.0",
61+
"@metamask/snap-types": "^0.14.0",
6262
"@metamask/template-snap": "^0.7.0",
6363
"@types/concat-stream": "^1.6.1",
6464
"@types/gunzip-maybe": "^1.4.0",

packages/examples/CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [0.14.0]
10+
### Changed
11+
- No changes this release.
12+
913
## [0.13.0]
1014
### Changed
1115
- No changes this release.
@@ -120,7 +124,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
120124
- This package was previously a subset of [`snaps-cli`](https://github.com/MetaMask/snaps-cli/tree/main/examples), which has been renamed to [`@metamask/snaps-cli`](https://npmjs.com/package/@metamask/snaps-cli).
121125
- Some examples have been deleted because they were outdated.
122126

123-
[Unreleased]: https://github.com/MetaMask/snaps-skunkworks/compare/v0.13.0...HEAD
127+
[Unreleased]: https://github.com/MetaMask/snaps-skunkworks/compare/v0.14.0...HEAD
128+
[0.14.0]: https://github.com/MetaMask/snaps-skunkworks/compare/v0.13.0...v0.14.0
124129
[0.13.0]: https://github.com/MetaMask/snaps-skunkworks/compare/v0.12.0...v0.13.0
125130
[0.12.0]: https://github.com/MetaMask/snaps-skunkworks/compare/v0.11.1...v0.12.0
126131
[0.11.1]: https://github.com/MetaMask/snaps-skunkworks/compare/v0.11.0...v0.11.1

packages/examples/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metamask/snap-examples",
3-
"version": "0.13.0",
3+
"version": "0.14.0",
44
"description": "Example MetaMask Snaps.",
55
"repository": {
66
"type": "git",
@@ -33,7 +33,7 @@
3333
"@metamask/eslint-config-jest": "^8.0.0",
3434
"@metamask/eslint-config-nodejs": "^8.0.0",
3535
"@metamask/eslint-config-typescript": "^8.0.0",
36-
"@metamask/snaps-cli": "^0.13.0",
36+
"@metamask/snaps-cli": "^0.14.0",
3737
"@types/jest": "^26.0.13",
3838
"@typescript-eslint/eslint-plugin": "^5.19.0",
3939
"@typescript-eslint/parser": "^5.19.0",

packages/execution-environments/CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [0.14.0]
10+
### Changed
11+
- **BREAKING:** Increase TypeScript compilation target to ES2020 ([#449](https://github.com/MetaMask/snaps-skunkworks/pull/449))
12+
- This should not be breaking for consumers on any non-deprecated browser or Node.js version.
13+
914
## [0.13.0]
1015
### Changed
1116
- **BREAKING:** Change `execution-environment` build output ([#424](https://github.com/MetaMask/snaps-skunkworks/pull/424))
@@ -69,7 +74,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6974
- Previously, default endowments were specified in the execution environment itself. Now, all endowments must be specified in the `executeSnap` RPC parameters, except for the `wallet` API object.
7075
- Add endowments to the global `self` in addition to `window` ([#263](https://github.com/MetaMask/snaps-skunkworks/pull/263))
7176

72-
[Unreleased]: https://github.com/MetaMask/snaps-skunkworks/compare/v0.13.0...HEAD
77+
[Unreleased]: https://github.com/MetaMask/snaps-skunkworks/compare/v0.14.0...HEAD
78+
[0.14.0]: https://github.com/MetaMask/snaps-skunkworks/compare/v0.13.0...v0.14.0
7379
[0.13.0]: https://github.com/MetaMask/snaps-skunkworks/compare/v0.12.0...v0.13.0
7480
[0.12.0]: https://github.com/MetaMask/snaps-skunkworks/compare/v0.11.1...v0.12.0
7581
[0.11.1]: https://github.com/MetaMask/snaps-skunkworks/compare/v0.11.0...v0.11.1

packages/execution-environments/jest.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ module.exports = {
77
coverageThreshold: {
88
global: {
99
branches: 34.69,
10-
functions: 38.89,
11-
lines: 34.62,
12-
statements: 34.98,
10+
functions: 35.29,
11+
lines: 32,
12+
statements: 32.41,
1313
},
1414
},
1515
moduleFileExtensions: ['js', 'json', 'jsx', 'ts', 'tsx', 'node'],

packages/execution-environments/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metamask/execution-environments",
3-
"version": "0.13.0",
3+
"version": "0.14.0",
44
"description": "Snap sandbox environments for executing SES javascript",
55
"repository": {
66
"type": "git",
@@ -37,7 +37,7 @@
3737
"@metamask/object-multiplex": "^1.2.0",
3838
"@metamask/post-message-stream": "^4.0.0",
3939
"@metamask/providers": "^8.1.1",
40-
"@metamask/snap-types": "^0.13.0",
40+
"@metamask/snap-types": "^0.14.0",
4141
"eth-rpc-errors": "^4.0.3",
4242
"pump": "^3.0.0",
4343
"ses": "^0.15.15",

packages/execution-environments/src/common/endowments/index.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ describe('createEndowments', () => {
2727

2828
it('handles factory endowments', () => {
2929
const mockWallet = { foo: Symbol('bar') };
30-
const { endowments } = createEndowments(mockWallet as any, ['WebAssembly']);
30+
const { endowments } = createEndowments(mockWallet as any, ['setTimeout']);
3131

3232
expect(endowments).toStrictEqual({
3333
wallet: mockWallet,
34-
WebAssembly: expect.objectContaining(WebAssembly),
34+
setTimeout: expect.any(Function),
3535
});
36-
expect(endowments.WebAssembly).not.toBe(WebAssembly);
36+
expect(endowments.setTimeout).not.toBe(setTimeout);
3737
});
3838

3939
it('handles some endowments from the same factory', () => {
@@ -80,17 +80,17 @@ describe('createEndowments', () => {
8080
Math,
8181
setTimeout: expect.any(Function),
8282
clearTimeout: expect.any(Function),
83-
WebAssembly: { ...WebAssembly },
83+
WebAssembly,
8484
});
8585

8686
expect(endowments.wallet).toBe(mockWallet);
8787
expect(endowments.Buffer).toBe(Buffer);
88-
expect(endowments.Math).toBe(Math);
8988
expect(endowments.console).toBe(console);
89+
expect(endowments.Math).toBe(Math);
90+
expect(endowments.WebAssembly).toBe(WebAssembly);
9091

9192
expect(endowments.clearTimeout).not.toBe(clearTimeout);
9293
expect(endowments.setTimeout).not.toBe(setTimeout);
93-
expect(endowments.WebAssembly).not.toBe(WebAssembly);
9494
});
9595

9696
it('throws for unknown endowments', () => {

packages/execution-environments/src/common/endowments/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { rootRealmGlobal } from '../globalObject';
33
import buffer from './buffer';
44
import timeout from './timeout';
55
import interval from './interval';
6-
import wasm from './wasm';
76

87
type EndowmentFactoryResult = {
98
teardownFunction?: () => void;
@@ -15,7 +14,7 @@ type EndowmentFactoryResult = {
1514
* the same factory function, but we only call each factory once for each snap.
1615
* See {@link createEndowments} for details.
1716
*/
18-
const endowmentFactories = [buffer, timeout, interval, wasm].reduce(
17+
const endowmentFactories = [buffer, timeout, interval].reduce(
1918
(factories, builder) => {
2019
builder.names.forEach((name) => {
2120
factories.set(name, builder.factory);

packages/execution-environments/src/common/endowments/wasm.test.ts

Lines changed: 0 additions & 30 deletions
This file was deleted.

packages/execution-environments/src/common/endowments/wasm.ts

Lines changed: 0 additions & 34 deletions
This file was deleted.

packages/plugin-browserify/CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [0.14.0]
10+
### Fixed
11+
- Actually publish package contents ([#449](https://github.com/MetaMask/snaps-skunkworks/pull/449))
12+
- Package contents were omitted from the previous version due to a build failure.
13+
914
## [0.13.0]
1015
### Changed
1116
- No changes this release.
@@ -14,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1419
### Added
1520
- Initial release ([#410](https://github.com/MetaMask/snaps-skunkworks/pull/410), [#421](https://github.com/MetaMask/snaps-skunkworks/pull/421))
1621

17-
[Unreleased]: https://github.com/MetaMask/snaps-skunkworks/compare/v0.13.0...HEAD
22+
[Unreleased]: https://github.com/MetaMask/snaps-skunkworks/compare/v0.14.0...HEAD
23+
[0.14.0]: https://github.com/MetaMask/snaps-skunkworks/compare/v0.13.0...v0.14.0
1824
[0.13.0]: https://github.com/MetaMask/snaps-skunkworks/compare/v0.12.0...v0.13.0
1925
[0.12.0]: https://github.com/MetaMask/snaps-skunkworks/releases/tag/v0.12.0

packages/plugin-browserify/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metamask/snaps-browserify-plugin",
3-
"version": "0.13.0",
3+
"version": "0.14.0",
44
"keywords": [
55
"browserify-plugin"
66
],
@@ -30,7 +30,7 @@
3030
"publish": "../../scripts/publish-package.sh"
3131
},
3232
"dependencies": {
33-
"@metamask/snap-utils": "^0.13.0"
33+
"@metamask/snap-utils": "^0.14.0"
3434
},
3535
"devDependencies": {
3636
"@types/browserify": "^12.0.37",

packages/plugin-rollup/CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [0.14.0]
10+
### Fixed
11+
- Actually publish package contents ([#449](https://github.com/MetaMask/snaps-skunkworks/pull/449))
12+
- Package contents were omitted from the previous version due to a build failure.
13+
914
## [0.13.0]
1015
### Added
1116
- Initial release ([#431](https://github.com/MetaMask/snaps-skunkworks/pull/431))
1217

13-
[Unreleased]: https://github.com/MetaMask/snaps-skunkworks/compare/v0.13.0...HEAD
18+
[Unreleased]: https://github.com/MetaMask/snaps-skunkworks/compare/v0.14.0...HEAD
19+
[0.14.0]: https://github.com/MetaMask/snaps-skunkworks/compare/v0.13.0...v0.14.0
1420
[0.13.0]: https://github.com/MetaMask/snaps-skunkworks/releases/tag/v0.13.0

packages/plugin-rollup/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metamask/rollup-plugin-snaps",
3-
"version": "0.13.0",
3+
"version": "0.14.0",
44
"keywords": [
55
"rollup",
66
"rollup-plugin"
@@ -31,7 +31,7 @@
3131
"publish": "../../scripts/publish-package.sh"
3232
},
3333
"dependencies": {
34-
"@metamask/snap-utils": "^0.13.0"
34+
"@metamask/snap-utils": "^0.14.0"
3535
},
3636
"devDependencies": {
3737
"@rollup/plugin-virtual": "^2.1.0",

0 commit comments

Comments
 (0)