Andrew Melbourne
Andrew Melbourne

Reputation: 132

What happened to capacitor js storage library?

Plenty of results all over the internet linking to https://capacitorjs.com/docs/apis/storage

The page is gone and the package seems to be deprecated. I can't find any explanation for its disappearance. I also can't determine what's out there that replaces its functionality. I need to access the native storage API's in a capacitor app.

SOLVED: When capacitor 4 came out they renamed the API from @capacitor/storage to @capacitor/preferences. This is documented very poorly. Updated link is here https://capacitorjs.com/docs/apis/preferences

Upvotes: 0

Views: 1687

Answers (1)

Andrew Melbourne
Andrew Melbourne

Reputation: 132

SOLVED: When capacitor 4 came out they removed the @capacitor/storage API and replaced it with a more limited @capacitor/preferences. This change is documented very poorly. The updated link is here https://capacitorjs.com/docs/apis/preferences

Upvotes: 4

Related Questions