Skip to content

Commit 966bd96

Browse files
authored
Release/5.0.0
Release/5.0.0
2 parents e125765 + 5dfca13 commit 966bd96

File tree

5 files changed

+173
-5
lines changed

5 files changed

+173
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metamask/snap-7715-permissions-monorepo",
3-
"version": "4.0.0",
3+
"version": "5.0.0",
44
"private": true,
55
"description": "Monorepo for 7715 permissions snaps.",
66
"repository": {

packages/gator-permissions-snap/CHANGELOG.md

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

88
## [Unreleased]
99

10+
## [0.3.0]
11+
12+
### Added
13+
14+
- Add hideSnapBranding flag to preinstalled snap manifest
15+
- Add chain metadata for supported testnets
16+
- feat: add lifecycle hooks permission for local development and refactor onInstall handler
17+
- feat(manifest): add environment-based manifest management ([#153](https://github.com/MetaMask/snap-7715-permissions/pull/153))
18+
- Add retry logic to all clients
19+
- Add priceApi response validation
20+
- Add account API client validation and fetch timeout
21+
- feat(ui): add TokenBalanceField component for displaying token balances ([#142](https://github.com/MetaMask/snap-7715-permissions/pull/142))
22+
- feat(ui): add TokenField component for displaying token info ([#136](https://github.com/MetaMask/snap-7715-permissions/pull/136))
23+
- Allow user to select EOA from which to grant the permission ([#125](https://github.com/MetaMask/snap-7715-permissions/pull/125))
24+
- Add the nonce enforcer as a default caveat for all permissions ([#127](https://github.com/MetaMask/snap-7715-permissions/pull/127))
25+
- Async confirmation ([#114](https://github.com/MetaMask/snap-7715-permissions/pull/114))
26+
- Add new permissionsProvider_getGrantedPermissions RPC ([#108](https://github.com/MetaMask/snap-7715-permissions/pull/108))
27+
- Add `erc-20-token-periodic` permission type ([#106](https://github.com/MetaMask/snap-7715-permissions/pull/106))
28+
- Allow setting SUPPORTED_CHAINS, and GATSBY_SUPPORTED_CHAINS (for site package). ([#105](https://github.com/MetaMask/snap-7715-permissions/pull/105))
29+
- Add support for token icons ([#104](https://github.com/MetaMask/snap-7715-permissions/pull/104))
30+
- Add valueLTE caveat to erc20 streaming permission ([#103](https://github.com/MetaMask/snap-7715-permissions/pull/103))
31+
- Feat/ephemeral permission offer registry ([#101](https://github.com/MetaMask/snap-7715-permissions/pull/101))
32+
- Add `erc20-token-stream` permission ([#100](https://github.com/MetaMask/snap-7715-permissions/pull/100))
33+
- Fetch token metadata ([#99](https://github.com/MetaMask/snap-7715-permissions/pull/99))
34+
- Add `native-token-periodic` permission ([#89](https://github.com/MetaMask/snap-7715-permissions/pull/89))
35+
- Add iconAltText to rule icon data
36+
- Add close icon for the input fields
37+
- Add token logo for the input fields
38+
- feat: add native token periodic permission type and handler
39+
- Add tests for ruleModalManager and rules
40+
- Add rules abstraction, somewhat shoehorned into existing baseOrchestrator
41+
42+
### Changed
43+
44+
- Order numerically testnet metadatas
45+
- Provide metadata when signing delegation ([#169](https://github.com/MetaMask/snap-7715-permissions/pull/169))
46+
- Rename RCP Urls To Be Consistent ([#168](https://github.com/MetaMask/snap-7715-permissions/pull/168))
47+
- Refactor getTokenBalance to return bigint zero using 0n and optimize address comparison
48+
- When signing the delegation with eth_signTypedData, provide origin and justification in metadata property on EIP-712 payload
49+
- chore: changed to plural refereces of permissionProvider
50+
- chore: rename rpc urls to be consistent
51+
- feat: remove local development hooks and add InstallButton component
52+
- Disable logging in production ([#161](https://github.com/MetaMask/snap-7715-permissions/pull/161))
53+
- update headers setup for account API and balance formating
54+
- Better makeValidatedRequestWithRetry typings
55+
- clear timeout move to finally block
56+
- account api v2
57+
- refactor retry http logic into helper function
58+
- Schema address validation updates, naming updates and creating httpClient utils to merge duplicating code
59+
- Process permission requests sequentially ([#150](https://github.com/MetaMask/snap-7715-permissions/pull/150))
60+
- try caipAssetType normal and case insesitive lookup as fallback
61+
- chore: remove 'viem' dependency from package.json and related files ([#154](https://github.com/MetaMask/snap-7715-permissions/pull/154))
62+
- Use null where appropriate ([#143](https://github.com/MetaMask/snap-7715-permissions/pull/143))
63+
- refactor(core): validate chain support early in permission request ([#145](https://github.com/MetaMask/snap-7715-permissions/pull/145))
64+
- Change generic errors with snap errors ([#135](https://github.com/MetaMask/snap-7715-permissions/pull/135))
65+
- switch expiry and startTime types to number since we are expecting a timestamp ([#139](https://github.com/MetaMask/snap-7715-permissions/pull/139))
66+
- Update shasum, in preparation for merge to main ([#137](https://github.com/MetaMask/snap-7715-permissions/pull/137))
67+
- Chore/integrate new permission types ([#134](https://github.com/MetaMask/snap-7715-permissions/pull/134))
68+
- Update architecture doc to reflect updated architecture ([#133](https://github.com/MetaMask/snap-7715-permissions/pull/133))
69+
- Update homepage to remove reference to Smart Contract Account. ([#131](https://github.com/MetaMask/snap-7715-permissions/pull/131))
70+
- Return unbind handler when calling `UserEventDispatcher.on()` ([#132](https://github.com/MetaMask/snap-7715-permissions/pull/132))
71+
- Update input validation ([#110](https://github.com/MetaMask/snap-7715-permissions/pull/110))
72+
- Refactor: extract common field components into reusable Field component ([#122](https://github.com/MetaMask/snap-7715-permissions/pull/122))
73+
- Better handle date time ([#115](https://github.com/MetaMask/snap-7715-permissions/pull/115))
74+
- Remove add more rules modal, and replace it with a simple toggle ([#120](https://github.com/MetaMask/snap-7715-permissions/pull/120))
75+
- style: update component class definition to include text color
76+
- style: fix indentation in package.json files and docs
77+
- build: downgrade @types/react from 18.3.23 to 18.2.4
78+
- execute handlers sequentially and function rename
79+
- Make sure events are processes sequentially and that all events are proccessed before granting permission
80+
- make justification optional and show default message in this case
81+
- Update linter rule for empty line is js docs and update comments to have an empty line
82+
- Update message-signing-snap dependency to 1.1.3
83+
- Reduce usage of @metamask/delegation-toolkit and viem ([#107](https://github.com/MetaMask/snap-7715-permissions/pull/107))
84+
- Update snapshots due to layout changes
85+
- Bump the npm_and_yarn group across 1 directory with 3 updates ([#78](https://github.com/MetaMask/snap-7715-permissions/pull/78))
86+
- refactor: reduce boilerplate in permission definitions
87+
- Improve asynchronicity when resolving context for period permissions. Fix various linting issues.
88+
- Use dropdown + explicit seconds for selecting the period duration
89+
- Update packages/gator-permissions-snap/src/permissions/nativeTokenPeriodic/caveats.ts
90+
- Move confirmation wrapper into shared permissionHandlerContent.tsx - title - add more rules button
91+
- Move ruleManager, permissionHandler, ruleModalManager to core
92+
- Remove defunct handlers from confirmation
93+
- Implement handler pattern: - decouple handler out of orchestrator - update naming throughout handlers and orchestrators to be more consistent
94+
- Remove shared rules, move expiry rule back into native token stream
95+
- refactor: extract shared expiry rule, remove defunct permissions/types.ts
96+
- Update tests to match implementation
97+
- Standardise some naming
98+
- Enable linting of tsx files in gator-permissions. Auto fix linting problems.
99+
- Move allSupportedChains itno BaseAccountController as private static member
100+
- Improve profile sync dev experience ([#86](https://github.com/MetaMask/snap-7715-permissions/pull/86))
101+
102+
### Removed
103+
104+
- Remove endowment lifecycle hooks ([#164](https://github.com/MetaMask/snap-7715-permissions/pull/164))
105+
- Remove development constants from production artifacts ([#148](https://github.com/MetaMask/snap-7715-permissions/pull/148))
106+
- Remove unused code and images ([#111](https://github.com/MetaMask/snap-7715-permissions/pull/111))
107+
108+
### Fixed
109+
110+
- Fix Polygon Amoy Testnet incorrectly attributed as Metis Sepolia. Rename BNB to BNB Smart Chain.
111+
- fix: remove conditional iconUrl assignment in getTokenMetadata response
112+
- fix: sanitize icon URL in token metadata response
113+
- Missing runtime verification for api responses ([#158](https://github.com/MetaMask/snap-7715-permissions/pull/158))
114+
- fix mock interfearance in tests
115+
- fix: TokenIcon runtime type enforcement ([#155](https://github.com/MetaMask/snap-7715-permissions/pull/155))
116+
- Missing runtime schema verification for profile sync store/retrieve ([#157](https://github.com/MetaMask/snap-7715-permissions/pull/157))
117+
- Fix misleading debug message ([#156](https://github.com/MetaMask/snap-7715-permissions/pull/156))
118+
- feat: Incorrect token currency shown ([#152](https://github.com/MetaMask/snap-7715-permissions/pull/152))
119+
- Handle Price API errors ([#146](https://github.com/MetaMask/snap-7715-permissions/pull/146))
120+
- fix(gator-permissions-snap): fix return type for account addresses ([#141](https://github.com/MetaMask/snap-7715-permissions/pull/141))
121+
- Validation errors disables grant button ([#126](https://github.com/MetaMask/snap-7715-permissions/pull/126))
122+
- Improve ERC20 token parsing error and fix fetching bug ([#124](https://github.com/MetaMask/snap-7715-permissions/pull/124))
123+
- EOAAccountController should serialize delegation salt as bigint when calling eth_signTypedData_v4 ([#116](https://github.com/MetaMask/snap-7715-permissions/pull/116))
124+
- address potential race condition
125+
- Fix typos ([#98](https://github.com/MetaMask/snap-7715-permissions/pull/98))
126+
10127
## [0.2.1]
11128

12129
### Fixed
@@ -57,7 +174,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
57174
- Ensure create-release-branch cli tool passes ([#54](https://github.com/MetaMask/snap-7715-permissions/pull/54))
58175
- Add changelog scripts ([#55](https://github.com/MetaMask/snap-7715-permissions/pull/55))
59176

60-
[Unreleased]: https://github.com/MetaMask/snap-7715-permissions/compare/@metamask/[email protected]
177+
[Unreleased]: https://github.com/MetaMask/snap-7715-permissions/compare/@metamask/[email protected]
178+
[0.3.0]: https://github.com/MetaMask/snap-7715-permissions/compare/@metamask/[email protected]...@metamask/[email protected]
61179
[0.2.1]: https://github.com/MetaMask/snap-7715-permissions/compare/@metamask/[email protected]...@metamask/[email protected]
62180
[0.2.0]: https://github.com/MetaMask/snap-7715-permissions/compare/@metamask/[email protected]...@metamask/[email protected]
63181
[0.1.0]: https://github.com/MetaMask/snap-7715-permissions/compare/@metamask/[email protected]...@metamask/[email protected]

packages/gator-permissions-snap/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metamask/gator-permissions-snap",
3-
"version": "0.2.1",
3+
"version": "0.3.0",
44
"description": "Grants 7715 permissions from a DeleGator smart account",
55
"homepage": "https://github.com/MetaMask/snap-7715-permissions/tree/main/packages/permissions-kernel-snap#readme",
66
"bugs": {

packages/permissions-kernel-snap/CHANGELOG.md

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

88
## [Unreleased]
99

10+
## [0.3.0]
11+
12+
### Added
13+
14+
- Add hideSnapBranding flag to preinstalled snap manifest
15+
- feat(manifest): add environment-based manifest management ([#153](https://github.com/MetaMask/snap-7715-permissions/pull/153))
16+
- Validate kernel rpc request ([#160](https://github.com/MetaMask/snap-7715-permissions/pull/160))
17+
- Feat/ephemeral permission offer registry ([#101](https://github.com/MetaMask/snap-7715-permissions/pull/101))
18+
- Add `erc20-token-stream` permission ([#100](https://github.com/MetaMask/snap-7715-permissions/pull/100))
19+
- Add `native-token-periodic` permission ([#89](https://github.com/MetaMask/snap-7715-permissions/pull/89))
20+
- Add native token periodic transfer to expected default permissions
21+
- feat: add native token periodic permission type and handler
22+
- Persisting Granted Permissions with MM Profile Sync ([#84](https://github.com/MetaMask/snap-7715-permissions/pull/84))
23+
24+
### Changed
25+
26+
- Rename RPC Urls to have consistent prefixes ([#168](https://github.com/MetaMask/snap-7715-permissions/pull/168))
27+
- Remove unused GATOR_PERMISSIONS_PROVIDER_SNAP_ID and update initialPermissions to disable snaps
28+
- Disable logging in production ([#161](https://github.com/MetaMask/snap-7715-permissions/pull/161))
29+
- getRegisteredPermissionOffers array optimization ([#159](https://github.com/MetaMask/snap-7715-permissions/pull/159))
30+
- Process permission requests sequentially ([#150](https://github.com/MetaMask/snap-7715-permissions/pull/150))
31+
- Use null where appropriate ([#143](https://github.com/MetaMask/snap-7715-permissions/pull/143))
32+
- refactor(core): validate chain support early in permission request ([#145](https://github.com/MetaMask/snap-7715-permissions/pull/145))
33+
- Change generic errors with snap errors ([#135](https://github.com/MetaMask/snap-7715-permissions/pull/135))
34+
- Update shasum, in preparation for merge to main ([#137](https://github.com/MetaMask/snap-7715-permissions/pull/137))
35+
- Chore/integrate new permission types ([#134](https://github.com/MetaMask/snap-7715-permissions/pull/134))
36+
- Update input validation ([#110](https://github.com/MetaMask/snap-7715-permissions/pull/110))
37+
- Downgrade @types/react from 18.3.23 to 18.2.4
38+
- Reduce usage of @metamask/delegation-toolkit and viem ([#107](https://github.com/MetaMask/snap-7715-permissions/pull/107))
39+
- Bump the npm_and_yarn group across 1 directory with 3 updates ([#78](https://github.com/MetaMask/snap-7715-permissions/pull/78))
40+
- Improve profile sync dev experience ([#86](https://github.com/MetaMask/snap-7715-permissions/pull/86))
41+
- Update ARCHITECTURE.md to reflect current state. Update manifest files.
42+
43+
### Removed
44+
45+
- Remove development constants from production artifacts ([#148](https://github.com/MetaMask/snap-7715-permissions/pull/148))
46+
- Remove unused code and images ([#111](https://github.com/MetaMask/snap-7715-permissions/pull/111))
47+
- Remove 'viem' dependency from package.json and related files ([#154](https://github.com/MetaMask/snap-7715-permissions/pull/154))
48+
49+
### Fixed
50+
51+
- fix: TokenIcon runtime type enforcement ([#155](https://github.com/MetaMask/snap-7715-permissions/pull/155))
52+
- feat: Incorrect token currency shown ([#152](https://github.com/MetaMask/snap-7715-permissions/pull/152))
53+
- Prevent prototype pollution ([#147](https://github.com/MetaMask/snap-7715-permissions/pull/147))
54+
- fix(gator-permissions-snap): fix return type for account addresses ([#141](https://github.com/MetaMask/snap-7715-permissions/pull/141))
55+
- Fix typos ([#98](https://github.com/MetaMask/snap-7715-permissions/pull/98))
56+
- Fix linting: - add eslint packages to packages - fix linting errors in gator permissions snap
57+
- Fix issue where accountMeta was not being included on the response object correctly. ([#95](https://github.com/MetaMask/snap-7715-permissions/pull/95))
58+
1059
## [0.2.0]
1160

1261
### Fixed
@@ -35,7 +84,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3584
- Add validate logic for native token stream permission data ([#33](https://github.com/MetaMask/snap-7715-permissions/pull/33))
3685
- Update 7715 types to match mm proposed types ([#30](https://github.com/MetaMask/snap-7715-permissions/pull/30))
3786

38-
[Unreleased]: https://github.com/MetaMask/snap-7715-permissions/compare/@metamask/[email protected]
87+
[Unreleased]: https://github.com/MetaMask/snap-7715-permissions/compare/@metamask/[email protected]
88+
[0.3.0]: https://github.com/MetaMask/snap-7715-permissions/compare/@metamask/[email protected]...@metamask/[email protected]
3989
[0.2.0]: https://github.com/MetaMask/snap-7715-permissions/compare/@metamask/[email protected]...@metamask/[email protected]
4090
[0.1.0]: https://github.com/MetaMask/snap-7715-permissions/compare/@metamask/[email protected]...@metamask/[email protected]
4191
[0.0.1]: https://github.com/MetaMask/snap-7715-permissions/releases/tag/@metamask/[email protected]

packages/permissions-kernel-snap/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metamask/permissions-kernel-snap",
3-
"version": "0.2.0",
3+
"version": "0.3.0",
44
"description": "Manage onchain 7715 permissions",
55
"homepage": "https://github.com/MetaMask/snap-7715-permissions/tree/main/packages/permissions-kernel-snap#readme",
66
"bugs": {

0 commit comments

Comments
 (0)