@metamask/gator-permissions-snap 0.2.1 → 0.3.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,123 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
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
+
10
127
  ## [0.2.1]
11
128
 
12
129
  ### Fixed
@@ -57,7 +174,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
57
174
  - Ensure create-release-branch cli tool passes ([#54](https://github.com/MetaMask/snap-7715-permissions/pull/54))
58
175
  - Add changelog scripts ([#55](https://github.com/MetaMask/snap-7715-permissions/pull/55))
59
176
 
60
- [Unreleased]: https://github.com/MetaMask/snap-7715-permissions/compare/@metamask/gator-permissions-snap@0.2.1...HEAD
177
+ [Unreleased]: https://github.com/MetaMask/snap-7715-permissions/compare/@metamask/gator-permissions-snap@0.3.0...HEAD
178
+ [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
179
  [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
180
  [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
181
  [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