1.10.0 • Published 1 month ago

@plasmohq/storage v1.10.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

@plasmohq/storage

@plasmohq/storage is an utility library from plasmo that abstract away the persistent storage API available to browser extension. It fallbacks to localstorage in context where the extension storage API is not available, allowing for state sync between popup - options - contents - background.

This library will enable the storage permission automatically if used with the Plasmo framework

Documentation

Visit: https://docs.plasmo.com/framework/storage

Firefox

To use the storage API on Firefox during development you need to add an addon ID to your manifest, otherwise, you will get this error:

Error: The storage API will not work with a temporary addon ID. Please add an explicit addon ID to your manifest. For more information see https://mzl.la/3lPk1aE.

To add an addon ID to your manifest, add this to your package.json:

"manifest": {
  "browser_specific_settings": {
    "gecko": {
      "id": "your-id@example.com"
    }
  }
}

During development, you may use any ID. If you have published your extension, you can use the ID assigned by Mozilla Addons.

Usage Examples

Why?

To boldly go where no one has gone before

License

MIT 🖖 Plasmo Corp.

1.10.0

1 month ago

1.9.3

3 months ago

1.9.2

3 months ago

1.9.1

4 months ago

1.8.1

7 months ago

1.8.0

9 months ago

1.9.0

6 months ago

1.7.2

10 months ago

1.7.1

10 months ago

1.7.0

10 months ago

1.6.2

11 months ago

1.6.1

12 months ago

1.6.0

1 year ago

1.2.3

1 year ago

1.4.0

1 year ago

1.2.2

1 year ago

1.5.0

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.1

1 year ago

1.2.0

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

0.14.0

1 year ago

0.13.1

1 year ago

0.15.0

1 year ago

0.13.0

2 years ago

0.12.2

2 years ago

0.11.0

2 years ago

0.12.0

2 years ago

0.11.1

2 years ago

0.12.1

2 years ago

0.10.0

2 years ago

0.9.0

2 years ago

0.9.1

2 years ago

0.8.2

2 years ago

0.8.1

2 years ago

0.6.3

2 years ago

0.8.0

2 years ago

0.6.2

2 years ago

0.6.4

2 years ago

0.7.0

2 years ago

0.6.1

2 years ago

0.5.2

2 years ago

0.6.0

2 years ago

0.5.1

2 years ago

0.4.0

2 years ago

0.3.0

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago