-
-
Notifications
You must be signed in to change notification settings - Fork 256
feat: Add StorageService for offloading large controller data #7192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
278eaa9
feat: Add StorageService for offloading large controller data
andrepimenta e844fdd
refactor(storage-service): Move getAllKeys/clear logic to adapters
andrepimenta 19c7d6f
refactor: Adapters now build storage keys (not core)
andrepimenta 5fedbc0
refactor(storage-service): delegate key building and serialization to…
andrepimenta 5af0861
docs(storage-service): update CHANGELOG for initial release
andrepimenta de5388c
docs(storage-service): fix CHANGELOG format
andrepimenta e493d3e
docs(storage-service): update README with current API and precise met…
andrepimenta 81100c2
build: add storage-service to tsconfig.build.json
andrepimenta f5c5aec
Merge branch 'main' into storage-service
andrepimenta 04939f6
docs(storage-service): add JSDoc guidance for large value storage
andrepimenta 3fe4314
Update packages/storage-service/src/StorageService.ts
andrepimenta 84adfd5
Update packages/storage-service/src/StorageService.ts
andrepimenta 7ac8bfc
refactor(storage-service): remove itemRemoved events, keep only itemSet
andrepimenta 24b150e
Merge branch 'storage-service' of https://github.com/MetaMask/core in…
andrepimenta 65efd41
chore(storage-service): add dual MIT+Apache2 license
andrepimenta 60efad1
refactor(storage-service): use unknown instead of generic types
andrepimenta 2222e57
refactor(storage-service): use generate-method-action-types pattern
andrepimenta ce68a05
Update packages/storage-service/package.json
andrepimenta afde837
docs(storage-service): simplify README to focus on usage
andrepimenta ae501a3
Merge branch 'storage-service' of https://github.com/MetaMask/core in…
andrepimenta 81c9cf8
docs(storage-service): simplify CHANGELOG for initial release
andrepimenta 625eee6
fix(storage-service): change event payload order to [key, value]
andrepimenta bda7243
Merge branch 'main' into storage-service
andrepimenta d3a7e4e
Fix prettier
andrepimenta 389e50a
Merge branch 'storage-service' of https://github.com/MetaMask/core in…
andrepimenta 3aeafac
Fix keywords
andrepimenta c46e2e2
Update packages/storage-service/package.json
andrepimenta 1b48670
test(storage-service): add tests for itemSet event
andrepimenta 8050f20
Merge branch 'storage-service' of https://github.com/MetaMask/core in…
andrepimenta 9a65054
refactor(storage-service): use Json type instead of unknown
andrepimenta d6fe459
chore(storage-service): add CODEOWNERS and teams.json entries
andrepimenta 5b4faeb
Update packages/storage-service/src/StorageService.ts
andrepimenta 363533a
Update packages/storage-service/src/InMemoryStorageAdapter.ts
andrepimenta f5ccb18
Update packages/storage-service/src/InMemoryStorageAdapter.ts
andrepimenta b5c5d79
feat(storage-service): add StorageGetResult type for getItem responses
andrepimenta 8557995
Merge branch 'storage-service' of https://github.com/MetaMask/core in…
andrepimenta 7ccd865
Update packages/storage-service/CHANGELOG.md
andrepimenta a139816
fix(storage-service): fix prettier formatting in test
andrepimenta 5598df9
Merge branch 'storage-service' of https://github.com/MetaMask/core in…
andrepimenta bbd8e39
Merge branch 'main' into storage-service
andrepimenta cf634fb
Prettier fix
andrepimenta 6bf384a
Fix return types on StorageServiceGetItemAction
andrepimenta File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
docs(storage-service): add JSDoc guidance for large value storage
- Add warnings that service is designed for large values (100KB+) - Add examples of good vs bad usage patterns - Discourage many small key-value pairs in favor of single large objects
- Loading branch information
commit 04939f6e3e3990d8de8efe04e71ebb395d64efa6
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.