async-storage

An asynchronous, persistent, key-value storage system for React Native.

MIT License

Downloads
4.5M
Stars
4.5K
Committers
144

Bot releases are hidden (Show)

async-storage - v1.12.1

Published by krizzu about 4 years ago

Fixes

  • tvOS support (#451) 8e6c8cb
  • Autolinking when using Xcode 12 (#442) 0ba7726
  • Android database locale issues (#423) 9823e89
  • Windows errors reported from getAllKeys/clear (#424) b1b5bcf
  • Add flow annotation to index & hooks (#429) 979796c
  • Add useAsyncStorage to async-storage-mock.js (#425) 8bb6640

https://github.com/react-native-community/react-native-async-storage/compare/v1.12.0...v1.12.1

async-storage - v1.12.0

Published by krizzu about 4 years ago

Features

  • Add support for enabled TurboModules in Expo (#418) ae2c675

Docs

Since the last release, many documentation PRs have landed. Thanks everyone for contribution 🎉

https://github.com/react-native-community/react-native-async-storage/compare/v1.11.0...v1.12.0

async-storage - v1.11.0

Published by krizzu over 4 years ago

Features

  • Allow Async Storage to be used in Expo (#368) f9d1924
  • Pods installation on macOS (#365) 22e7583

https://github.com/react-native-community/react-native-async-storage/compare/v1.10.3...v1.11.0

async-storage - v1.10.3

Published by krizzu over 4 years ago

async-storage - v1.10.2

Published by krizzu over 4 years ago

Fixes

  • Windows project imports (#359) 21380a0

Docs

  • docs: Recommend npx pod-install for setup instructions (#358) 998900b

https://github.com/react-native-community/react-native-async-storage/compare/v1.10.1...v1.10.2

async-storage - v1.10.1

Published by krizzu over 4 years ago

Fixes

  • fix: Web and Jest mock compatibility (#351) 85c5278

Chores

  • docs: API clarification (#354) 724bc68
  • docs: update URL of comments of AsyncStorage.js (#348) e315614

https://github.com/react-native-community/react-native-async-storage/compare/v1.10.0...v1.10.1

async-storage - v1.10.0

Published by krizzu over 4 years ago

Features

  • Windows AsyncStorage support (#327) 3dd9e0e

Chores

  • Upgrade sample apps to RN 0.61 (#329) e7e3a4f

https://github.com/react-native-community/react-native-async-storage/compare/v1.9.0...v1.10.0

async-storage - Core - v2.0.0-rc.3

Published by krizzu over 4 years ago

Fixes

  • AsyncStorageFactory types

Chores

  • Updated Mobile example app
async-storage - Legacy Storage - v2.0.0-rc.3

Published by krizzu over 4 years ago

Fixes

  • multiGet/multiSet methods
  • Empty error thrown on calling .clearStorage
async-storage - Web Storage - v2.0.0-rc.3

Published by krizzu over 4 years ago

Chores

  • version update to match Core
async-storage - v1.9.0

Published by krizzu over 4 years ago

Web support added

You can now use Async Storage in your web projects. a99d805431bc59c8a7f5ebbf85f71323c83df122

https://github.com/react-native-community/react-native-async-storage/compare/v1.8.1...v1.9.0

async-storage - v1.8.1

Published by krizzu over 4 years ago

Fixes

  • Create app folder during migration if none exists (#303) 8616cbd

New platform support

  • macOS implementation of AsyncStorage (#296) 05d3939

https://github.com/react-native-community/react-native-async-storage/compare/v1.8.0...v1.8.1

async-storage - v1.8.0

Published by krizzu over 4 years ago

❗️ Features - Possible a Breaking Change for iOS Platform ❗️

Note: If you're planning on upgrade, please use v1.8.1 and up.

  • Moved storage location to Application Support. Read the description below to find out more.
    Thanks @HeyImChris ! (#274) 4e49db6

Fixes

  • Don’t reset the storage when the manifest file cannot be read because of iOS data protection.
    Thanks @aleh ! (#270) 36e9a12

https://github.com/react-native-community/react-native-async-storage/compare/v1.7.1...v1.8.0

(iOS) New Locations for storage - new feature overview

So far, Async Storage has used NSDocumentDirectory (and NSCachesDirectory for tvOS) location to store the manifest file, where all data is saved.

NSDocumentDirectory - This folder is visible on iOS in scenarios where you can view the Files structure. For instance, in Word/PPT/Excel, a user can tap through to this and see a folder titled "RCTAsyncLocalStorage_V1".

NSCachesDirectory - Apple documents this as a location that can get purged in low memory scenarios "the system may delete the Caches directory on rare occasions when the system is very low on disk space."

Those two location are not best place to keep user data. The new location, the Application Support directory (NSApplicationSupportDirectory), is described as "[containing] all app-specific data and support files" and it can safely contain user data. There is not risk of this purging in low memory situations and this isn’t visible to iOS users.

This feature also includes a migration process. On app startup, a check is run to see if Application Support contains the manifest file:
- If it does, do nothing
- if it does not, copy over the manifest from previous location (either NSDocumentDirectory or NSCachesDirectory)

This is considered as breaking change, as some dependencies might still use older version of AS or the one available from the React Native core. In that case, both old and new locations are used, so unexpected behavior might occur. Ideally, you’ll want to make sure that only one version of AS is used within your Application.

Thanks @HeyImChris for implementing this feature!

async-storage - Web Storage - v2.0.0-rc.2

Published by krizzu over 4 years ago

Features

Chore

  • Updated docs to reflect changes
async-storage - Core - v2.0.0-rc.2

Published by krizzu over 4 years ago

Fixes

  • __DEV__ global variable causing issues on web platform
  • default factory options are now correctly applied (enables simple logger and error handler if options are omitted)

Chore

  • Updated docs
async-storage - Legacy Storage - v2.0.0-rc.2

Published by krizzu over 4 years ago

Chore

  • Updated docs
async-storage - v1.7.1

Published by krizzu almost 5 years ago

Fixes

  • incorrect warning for multiRemove call (#268) 3e7fdf3

https://github.com/react-native-community/react-native-async-storage/compare/v1.7.0...v1.7.1

async-storage - Legacy Storage - v2.0.0-rc.1

Published by krizzu almost 5 years ago

Release Candidate for Legacy storage.

async-storage - Web Storage - v2.0.0-rc.1

Published by krizzu almost 5 years ago

Release Candidate for Web storage.

async-storage - Core - v2.0.0-rc.1

Published by krizzu almost 5 years ago

Release candidate for Core.

Package Rankings
Top 0.74% on Npmjs.org
Related Projects