-
Notifications
You must be signed in to change notification settings - Fork 468
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
feat(api): AsyncStorage interfaces #1016
Conversation
For some reason, I had YN0018 error (wrong checksum) for dependencies, so had to re-run yarn install fresh. Additionally, what has been done in this PR:
|
For review: main change is within |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes sense to me. Thanks for working on it. I left a few nits only.
🎉 This PR is included in version 1.19.7 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Summary
Introducing a core API for Storage implementations -
AsyncStorage
.This interface provides a unified and concise API, extending Web Storage API with additional methods for handling multiple entries at the time.
Extension
If a Storage has capabilities beyond basic, provided by
AsyncStorage
interface, it can be delivered by extendingStorageExtension
.Model
The interface provides a way to define user's own model, for type safety