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