Registry / storage / redux-storage-engine-indexed-db

redux-storage-engine-indexed-db

JSON →
library1.0.0jsnpmunverified

Engine for redux-storage that uses IndexedDB as the underlying storage backend. Version 1.0.0 is the latest and final release; the package is no longer maintained. It provides a simple API to create an engine with a custom store name. This library is tied to the deprecated redux-storage ecosystem and should not be used in new projects. Alternatives include redux-persist with indexeddb adapter.

npm install redux-storage-engine-indexed-db
INSTALL
IMPORT
SIG · REDUX-STORAGE-ENGI
R
redux-storage-engine-indexed-db
storagejavascriptv1.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import createEngine from 'redux-storage-engine-indexed-db'
import { createEngine } from 'redux-storage-engine-indexed-db'
The package exports a single default function; named import breaks.
default (CommonJS)
const createEngine = require('redux-storage-engine-indexed-db')
const { createEngine } = require('redux-storage-engine-indexed-db')
CommonJS require returns the default function; destructuring fails.
type import
No types provided; use @ts-ignore or create custom type
import type createEngine from 'redux-storage-engine-indexed-db'
Package has no TypeScript declarations; type import is invalid.

Shows how to create the IndexedDB engine, attach it as redux-storage middleware, and load/save state.

import createEngine from 'redux-storage-engine-indexed-db'; import { createStore, applyMiddleware } from 'redux'; import * as storage from 'redux-storage'; import reducer from './reducer'; const engine = createEngine('my-app'); const storageMiddleware = storage.createMiddleware(engine); const store = createStore( reducer, applyMiddleware(storageMiddleware) ); // Load persisted state storage.createLoader(engine)(store); // Save state on changes (manual or via redux-storage decorator)
Debug
Known issues
deprecatedThis package is abandoned. redux-storage is deprecated in favor of redux-persist.
fix
Migrate to redux-persist with its indexeddb adapter.
affects: <=1.0.0
gotchaDefault export is a function that takes a string (store name). No validation; empty string can cause silent failures.
fix
Always provide a non-empty string for store name.
affects: <=1.0.0
gotchaThe engine does not handle IndexedDB versioning or schema migrations; it will use default version 1.
fix
Be aware that changing the state shape may require manual migration or clearing IndexedDB.
affects: <=1.0.0
gotchaThis package is not compatible with modern bundlers expecting ESM exports; it uses CommonJS internally.
fix
Use bundler that handles CommonJS; consider alternative if ESM required.
affects: <=1.0.0
Errors
Common errors & fixes
Uncaught TypeError: createEngine is not a function
Importing as named export instead of default import.
fix
Use 'import createEngine from 'redux-storage-engine-indexed-db'' (no curly braces).
Error: Cannot find module 'redux-storage'
Missing peer dependency redux-storage.
fix
Run 'npm install redux-storage'.
Failed to execute 'transaction' on 'IDBDatabase': Invalid store name
Empty string or invalid IndexedDB store name passed to createEngine.
fix
Pass a non-empty string (e.g., 'myStore').
TypeError: Cannot read properties of undefined (reading 'getItem')
Engine created without proper initialization or redux-storage not set up correctly.
fix
Ensure redux-storage middleware is applied and engine is created before use.
Upgrade
Version history
1.0.0latest on npm
Audit
Dependencies
redux-storagerequiredPeer dependency; the engine must be used with redux-storage middleware
Agent activity
25 hits · last 30 days
node
22
Amazon
1
Resources
redux-storage-engine-indexed-db — npm install redux-storage-engine-indexed-db · libregistry