Skip to content

Commit

Permalink
fix(pkg): Use community AsyncStorage package instead
Browse files Browse the repository at this point in the history
The built-in default was deprecated which caused issues in certain bundlers...
  • Loading branch information
Pkmmte committed Sep 25, 2022
1 parent 65df31d commit 130d2b2
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@waveplay/stashy",
"version": "0.0.0-development",
"license": "MIT",
"private": false,
"description": "Flexible storage for Node, React Native, and the browser",
"repository": {
Expand All @@ -10,7 +11,6 @@
"engines": {
"node": ">=12"
},
"license": "MIT",
"author": "WavePlay <[email protected]> (waveplay.com)",
"contributors": [
"Pkmmte Xeleon <[email protected]>"
Expand Down Expand Up @@ -38,6 +38,7 @@
"semantic-release": "semantic-release"
},
"dependencies": {
"@react-native-async-storage/async-storage": "^1.17.10",
"jotai": "1.8.4",
"nookies": "2.5.2",
"pino": "8.5.0"
Expand Down
2 changes: 1 addition & 1 deletion src/backend/async-storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* © 2022 WavePlay <[email protected]>
*/
import { StashyBackend, StashyBackendInitOptions } from './_base';
import { AsyncStorage } from 'react-native';
import AsyncStorage from '@react-native-async-storage/async-storage';

/**
* Basic AsyncStorage implementation.
Expand Down
19 changes: 19 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,13 @@
dependencies:
"@octokit/openapi-types" "^13.11.0"

"@react-native-async-storage/async-storage@^1.17.10":
version "1.17.10"
resolved "https://registry.yarnpkg.com/@react-native-async-storage/async-storage/-/async-storage-1.17.10.tgz#8d6a4771912be8454a9e215eebd469b1b8e2e638"
integrity sha512-KrR021BmBLsA0TT1AAsfH16bHYy0MSbhdAeBAqpriak3GS1T2alFcdTUvn13p0ZW6FKRD6Bd3ryU2zhU/IYYJQ==
dependencies:
merge-options "^3.0.4"

"@semantic-release/commit-analyzer@^9.0.2":
version "9.0.2"
resolved "https://registry.yarnpkg.com/@semantic-release/commit-analyzer/-/commit-analyzer-9.0.2.tgz#a78e54f9834193b55f1073fa6258eecc9a545e03"
Expand Down Expand Up @@ -3910,6 +3917,11 @@ is-plain-obj@^1.1.0:
resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-1.1.0.tgz#71a50c8429dfca773c92a390a4a03b39fcd51d3e"
integrity sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg==

is-plain-obj@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-2.1.0.tgz#45e42e37fccf1f40da8e5f76ee21515840c09287"
integrity sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==

is-plain-object@^5.0.0:
version "5.0.0"
resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-5.0.0.tgz#4427f50ab3429e9025ea7d52e9043a9ef4159344"
Expand Down Expand Up @@ -4735,6 +4747,13 @@ meow@^8.0.0:
type-fest "^0.18.0"
yargs-parser "^20.2.3"

merge-options@^3.0.4:
version "3.0.4"
resolved "https://registry.yarnpkg.com/merge-options/-/merge-options-3.0.4.tgz#84709c2aa2a4b24c1981f66c179fe5565cc6dbb7"
integrity sha512-2Sug1+knBjkaMsMgf1ctR1Ujx+Ayku4EdJN4Z+C2+JzoeF7A3OZ9KM2GY0CpQS51NR61LTurMJrRKPhSs3ZRTQ==
dependencies:
is-plain-obj "^2.1.0"

merge-stream@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60"
Expand Down

0 comments on commit 130d2b2

Please sign in to comment.