react-native-async-storage / async-storage

An asynchronous, persistent, key-value storage system for React Native.
https://react-native-async-storage.github.io/async-storage/
MIT License
4.61k stars 459 forks source link

feat(api): AsyncStorage interfaces #1016

Closed krizzu closed 7 months ago

krizzu commented 8 months ago

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 extending StorageExtension.

Model

The interface provides a way to define user's own model, for type safety

krizzu commented 7 months ago

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:

krizzu commented 7 months ago

For review: main change is within api package, everything else is adjustment for package name changes. @tido64 This one is good for review/discussion

AsyncStorageBot commented 7 months ago

:tada: This PR is included in version 1.19.7 :tada:

The release is available on:

Your semantic-release bot :package::rocket: