Skip to content

Commit 711bf5d

Browse files
authored
Release/8.0.0 (#42)
* Normalise viem peer dependency to 2.31.4 * Initialize Release 8.0.0 * Update Release 8.0.0 * Update changelogs * Standardise artifacts across packages
1 parent c392873 commit 711bf5d

File tree

12 files changed

+110
-394
lines changed

12 files changed

+110
-394
lines changed

CHANGELOG.md

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

88
## [Unreleased]
99

10+
## [8.0.0]
11+
1012
## [7.0.0]
1113

12-
[Unreleased]: https://github.com/MetaMask/delegation-toolkit/compare/delegator-sdk-monorepo@7.0.0...HEAD
14+
[Unreleased]: https://github.com/MetaMask/delegation-toolkit/compare/delegator-sdk-monorepo@8.0.0...HEAD
15+
[8.0.0]: https://github.com/MetaMask/delegation-toolkit/compare/delegator-sdk-monorepo@7.0.0...delegator-sdk-monorepo@8.0.0
1316
[7.0.0]: https://github.com/MetaMask/delegation-toolkit/releases/tag/delegator-sdk-monorepo@7.0.0

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "delegator-sdk-monorepo",
3-
"version": "7.0.0",
3+
"version": "8.0.0",
44
"license": "(MIT-0 OR Apache-2.0)",
55
"private": true,
66
"repository": {
@@ -51,7 +51,7 @@
5151
"prettier": "^3.3.3",
5252
"turbo": "latest",
5353
"typescript": "5.0.4",
54-
"viem": "^2.31.4",
54+
"viem": "2.31.4",
5555
"webauthn-p256": "^0.0.10"
5656
},
5757
"packageManager": "yarn@4.2.2",

packages/delegation-abis/package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "0.11.0",
44
"description": "ABIs mapped to versions of the Delegation Framework contracts",
55
"license": "(MIT-0 OR Apache-2.0)",
6+
"type": "module",
67
"keywords": [
78
"MetaMask",
89
"Ethereum"
@@ -18,7 +19,7 @@
1819
"author": "MetaMask <hello@metamask.io>",
1920
"sideEffects": false,
2021
"contributors": [],
21-
"main": "./dist/index.js",
22+
"main": "./dist/index.cjs",
2223
"module": "./dist/index.mjs",
2324
"types": "./dist/index.d.ts",
2425
"files": [
@@ -28,11 +29,11 @@
2829
"exports": {
2930
".": {
3031
"require": {
31-
"types": "./dist/index.d.ts",
32-
"default": "./dist/index.js"
32+
"types": "./dist/index.d.cts",
33+
"default": "./dist/index.cjs"
3334
},
3435
"import": {
35-
"types": "./dist/index.d.mts",
36+
"types": "./dist/index.d.ts",
3637
"default": "./dist/index.mjs"
3738
}
3839
},
Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,12 @@
1+
import type { Options } from 'tsup';
12
import config from '../../shared/config/base.tsup.config';
2-
export default config;
3+
4+
const options: Options = {
5+
...config,
6+
entry: ['src/index.ts'],
7+
dts: {
8+
entry: ['src/index.ts'],
9+
},
10+
};
11+
12+
export default options;

packages/delegation-core/CHANGELOG.md

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

88
## [Unreleased]
99

10+
## [0.2.0-rc.1]
11+
12+
### Added
13+
14+
- Added a Nonce caveat enforcer terms builder `createNonceTerms` ([#44](https://github.com/metamask/delegation-toolkit/pull/44))
15+
16+
### Changed
17+
18+
- The configuration parameter `callData` is now `calldata` in `createExactCalldataTerms` argument type. ([#24](https://github.com/metamask/delegation-toolkit/pull/24))
19+
- The package is explictly marked as ESM via `type: module`; with CJS compatibility maintained with dual export. ([#27](https://github.com/metamask/delegation-toolkit/pull/27))
20+
1021
## [0.1.0]
1122

1223
### Changed
1324

1425
- Add @metamask/delegation-core package, providing utility types, delegation hashing, and terms encoding for a limited set of caveat enforcers.
1526

16-
[Unreleased]: https://github.com/metamask/delegation-toolkit/compare/@metamask/delegation-core@0.1.0...HEAD
27+
[Unreleased]: https://github.com/metamask/delegation-toolkit/compare/@metamask/delegation-core@0.2.0-rc.1...HEAD
28+
[0.2.0-rc.1]: https://github.com/metamask/delegation-toolkit/compare/@metamask/delegation-core@0.1.0...@metamask/delegation-core@0.2.0-rc.1
1729
[0.1.0]: https://github.com/metamask/delegation-toolkit/releases/tag/@metamask/delegation-core@0.1.0

packages/delegation-core/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metamask/delegation-core",
3-
"version": "0.1.0",
3+
"version": "0.2.0-rc.1",
44
"description": "Low level core functionality for interacting with the Delegation Framework",
55
"license": "(MIT-0 OR Apache-2.0)",
66
"type": "module",
@@ -20,7 +20,7 @@
2020
"sideEffects": false,
2121
"contributors": [],
2222
"main": "./dist/index.cjs",
23-
"module": "./dist/index.js",
23+
"module": "./dist/index.mjs",
2424
"types": "./dist/index.d.ts",
2525
"files": [
2626
"dist/**",
@@ -34,7 +34,7 @@
3434
},
3535
"import": {
3636
"types": "./dist/index.d.ts",
37-
"default": "./dist/index.js"
37+
"default": "./dist/index.mjs"
3838
}
3939
},
4040
"./package.json": "./package.json"

packages/delegation-deployments/package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "0.12.0",
44
"description": "A history of deployments of the Delegation Framework",
55
"license": "(MIT-0 OR Apache-2.0)",
6+
"type": "module",
67
"keywords": [
78
"MetaMask",
89
"Ethereum"
@@ -15,7 +16,7 @@
1516
"type": "git",
1617
"url": "https://github.com/metamask/delegation-toolkit.git"
1718
},
18-
"main": "./dist/index.js",
19+
"main": "./dist/index.cjs",
1920
"module": "./dist/index.mjs",
2021
"types": "./dist/index.d.ts",
2122
"files": [
@@ -25,11 +26,11 @@
2526
"exports": {
2627
".": {
2728
"require": {
28-
"types": "./dist/index.d.ts",
29-
"default": "./dist/index.js"
29+
"types": "./dist/index.d.cts",
30+
"default": "./dist/index.cjs"
3031
},
3132
"import": {
32-
"types": "./dist/index.d.mts",
33+
"types": "./dist/index.d.ts",
3334
"default": "./dist/index.mjs"
3435
}
3536
},
Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,12 @@
1+
import type { Options } from 'tsup';
12
import config from '../../shared/config/base.tsup.config';
2-
export default config;
3+
4+
const options: Options = {
5+
...config,
6+
entry: ['src/index.ts'],
7+
dts: {
8+
entry: ['src/index.ts'],
9+
},
10+
};
11+
12+
export default options;

packages/delegation-toolkit/CHANGELOG.md

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

88
## [Unreleased]
99

10-
[Unreleased]: https://github.com/metamask/delegation-toolkit/
10+
## [0.13.0-rc.1]
11+
12+
### Changed
13+
14+
- The `startTime` parameter is now optional when requesting permissions through the experimental `erc7715ProviderActions`.
15+
- The Viem peer dependency is now `viem@^2.31.4`. ([#22](https://github.com/metamask/delegation-toolkit/pull/22))
16+
- Individual constants like `SINGLE_DEFAULT_MODE` are now replaced with the `ExecutionMode` enum. ([#16](https://github.com/metamask/delegation-toolkit/pull/16))
17+
- `allowInsecureUnrestrictedDelegation: true` is now required when creating or signing a delegation with no caveats. ([#24](https://github.com/metamask/delegation-toolkit/pull/24))
18+
- `CaveatBuilder` now accepts a single caveat configuration object instead of positional arguments. ([#24](https://github.com/metamask/delegation-toolkit/pull/24))
19+
- The test runner is now Vitest, with Hardhat removed entirely. ([#27](https://github.com/metamask/delegation-toolkit/pull/27))
20+
21+
### Fixed
22+
23+
- Fixed a bug where `sendTransactionWithDelegation` failed whenever `value` was specified in the parameters. ([#30](https://github.com/metamask/delegation-toolkit/pull/30))
24+
25+
[Unreleased]: https://github.com/metamask/delegation-toolkit/compare/@metamask/delegation-toolkit@0.13.0-rc.1...HEAD
26+
[0.13.0-rc.1]: https://github.com/metamask/delegation-toolkit/releases/tag/@metamask/delegation-toolkit@0.13.0-rc.1

packages/delegation-toolkit/package.json

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metamask/delegation-toolkit",
3-
"version": "0.12.0",
3+
"version": "0.13.0-rc.1",
44
"type": "module",
55
"description": "The Delegation Toolkit built on top of Viem - a library for interacting with DeleGator Smart Accounts",
66
"license": "(MIT-0 OR Apache-2.0)",
@@ -20,57 +20,58 @@
2020
"dist/**",
2121
"dist/"
2222
],
23-
"main": "./dist/index.js",
23+
"main": "./dist/index.cjs",
24+
"module": "./dist/index.mjs",
2425
"types": "./dist/index.d.ts",
2526
"exports": {
2627
".": {
2728
"require": {
28-
"types": "./dist/index.d.ts",
29+
"types": "./dist/index.d.cts",
2930
"default": "./dist/index.cjs"
3031
},
3132
"import": {
32-
"types": "./dist/index.d.mts",
33-
"default": "./dist/index.js"
33+
"types": "./dist/index.d.ts",
34+
"default": "./dist/index.mjs"
3435
}
3536
},
3637
"./utils": {
3738
"require": {
38-
"types": "./dist/utils/index.d.ts",
39+
"types": "./dist/utils/index.d.cts",
3940
"default": "./dist/utils/index.cjs"
4041
},
4142
"import": {
42-
"types": "./dist/utils/index.d.mts",
43-
"default": "./dist/utils/index.js"
43+
"types": "./dist/utils/index.d.ts",
44+
"default": "./dist/utils/index.mjs"
4445
}
4546
},
4647
"./contracts": {
4748
"require": {
48-
"types": "./dist/contracts/index.d.ts",
49+
"types": "./dist/contracts/index.d.cts",
4950
"default": "./dist/contracts/index.cjs"
5051
},
5152
"import": {
52-
"types": "./dist/contracts/index.d.mts",
53-
"default": "./dist/contracts/index.js"
53+
"types": "./dist/contracts/index.d.ts",
54+
"default": "./dist/contracts/index.mjs"
5455
}
5556
},
5657
"./actions": {
5758
"require": {
58-
"types": "./dist/actions/index.d.ts",
59+
"types": "./dist/actions/index.d.cts",
5960
"default": "./dist/actions/index.cjs"
6061
},
6162
"import": {
62-
"types": "./dist/actions/index.d.mts",
63-
"default": "./dist/actions/index.js"
63+
"types": "./dist/actions/index.d.ts",
64+
"default": "./dist/actions/index.mjs"
6465
}
6566
},
6667
"./experimental": {
6768
"require": {
68-
"types": "./dist/experimental/index.d.ts",
69+
"types": "./dist/experimental/index.d.cts",
6970
"default": "./dist/experimental/index.cjs"
7071
},
7172
"import": {
72-
"types": "./dist/experimental/index.d.mts",
73-
"default": "./dist/experimental/index.js"
73+
"types": "./dist/experimental/index.d.ts",
74+
"default": "./dist/experimental/index.mjs"
7475
}
7576
},
7677
"./package.json": "./package.json"
@@ -113,7 +114,7 @@
113114
},
114115
"dependencies": {
115116
"@metamask/delegation-abis": "^0.11.0",
116-
"@metamask/delegation-core": "^0.1.0",
117+
"@metamask/delegation-core": "^0.2.0-rc.1",
117118
"@metamask/delegation-deployments": "^0.12.0",
118119
"buffer": "^6.0.3",
119120
"webauthn-p256": "^0.0.10"

0 commit comments

Comments
 (0)