Socket
Socket
Sign inDemoInstall

idb-keyval

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

idb-keyval - npm Package Compare versions

Comparing version 3.0.2 to 3.0.3

2

package.json
{
"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.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc