idb-keyval
Advanced tools
Comparing version 3.0.2 to 3.0.3
{ | ||
"name": "idb-keyval", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"description": "A super-simple-small keyval store built on top of IndexedDB", | ||
@@ -5,0 +5,0 @@ "main": "./dist/idb-keyval-cjs.js", |
@@ -102,1 +102,22 @@ # IDB-Keyval | ||
* `dist/idb-keyval-iife.js` can be used in browsers that don't support modules. `idbKeyval` is created as a global. | ||
## Updating from 2.x | ||
2.x exported an object with methods: | ||
```js | ||
// This no longer works in 3.x | ||
import idbKeyval from 'idb-keyval'; | ||
idbKeyval.set('foo', 'bar'); | ||
``` | ||
Whereas in 3.x you import the methods directly: | ||
```js | ||
import { set } from 'idb-keyval'; | ||
set('foo', 'bar'); | ||
``` | ||
This is better for minification, and allows tree shaking. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16573
123