redux-thunk
npmv3.1.0TypeScriptThunk middleware for Redux.
Adopt with care
redux-thunk is usable, with caveats. Last published 1010 days ago.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- DMaintenance: grade D, Poor — a real concern.
Last published 1010 days ago.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 26 KB installed.
- ASupply chain: grade A, Excellent.
No install scripts, 5 maintainers, and a contained dependency surface.
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding redux-thunk to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- No constraint declared
- Module format
- ESM + CommonJS
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the redux-thunk README.
import { configureStore } from '@reduxjs/toolkit'
import todosReducer from './features/todos/todosSlice'
import filtersReducer from './features/filters/filtersSlice'
const store = configureStore({
reducer: {
todos: todosReducer,
filters: filtersReducer
}
})
// The thunk middleware was automatically addedredux-thunk vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| redux-thunkthis page | 0 | 1 | MIT | 2 years ago |
| redux | 42.3M | 5 | MIT | 13 days ago |
| cors | 76M | 6 | MIT | 13 days ago |
| reselect | 45.7M | 1 | MIT | 14 days ago |
| @reduxjs/toolkit | 27.7M | 2 | MIT | 13 days ago |
| koa | 8.4M | 0 | MIT | 13 days ago |
Dependencies
Declared by redux-thunk v3.1.0. Runtime dependencies are installed with the package; dev dependencies are not.
Peer (1)
Dev (11)
Used by
Popular packages that depend on redux-thunk.
Relationship graph
Dependencies (left) and dependents (right) of redux-thunk.
Frequently installed together
React is a JavaScript library for building user interfaces.
Official React bindings for Redux
An extremely fast JavaScript and CSS bundler and minifier.
A light-weight module that brings Fetch API to node.js
React package for working with the DOM.
An AST-based pattern checker for JavaScript.
TypeScript definitions for react-dom
Prettier is an opinionated code formatter
Promise based HTTP client for the browser and node.js
A family of specs for interoperable TypeScript
Next generation testing framework powered by Vite
TypeScript Execute (tsx): Node.js enhanced with esbuild to run TypeScript & ESM files
Release history
No releases in the last two years, typically about 65 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 3.1.0latest | 2 years ago | 26 KB | MIT |
| 3.0.1 | 2 years ago | 28 KB | MIT |
| 3.0.0 | 2 years ago | 28 KB | MIT |
| 3.0.0-rc.0 | 2 years ago | 28 KB | MIT |
| 3.0.0-beta.0 | 3 years ago | 28 KB | MIT |
| 3.0.0-alpha.3 | 3 years ago | 28 KB | MIT |
| 3.0.0-alpha.2 | 3 years ago | 28 KB | MIT |
| 3.0.0-alpha.1 | 3 years ago | 32 KB | MIT |
| 3.0.0-alpha.0 | 3 years ago | 32 KB | MIT |
| 2.4.2 | 3 years ago | 31 KB | MIT |
| 2.4.1 | 4 years ago | 31 KB | MIT |
| 2.4.0 | 4 years ago | 31 KB | MIT |
| 2.3.0 | 8 years ago | 17 KB | MIT |
| 2.2.0 | 9 years ago | — | MIT |
| 2.1.2 | 9 years ago | — | MIT |
Overview
redux-thunk is an npm package that thunk middleware for Redux. It has 1 known dependents in the graph. The latest version is 3.1.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need thunk middleware for Redux and value a focused solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Frequently asked questions
Should I use redux-thunk?
redux-thunk is usable, with caveats. Last published 1010 days ago.
How do I install redux-thunk?
Run `npm install redux-thunk` to add redux-thunk to your npm project.
What license is redux-thunk released under?
redux-thunk is distributed under the MIT license.
How popular is redux-thunk?
npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on redux-thunk.
Is redux-thunk still maintained?
The most recent release of redux-thunk (v3.1.0) was published 2 years ago.
Does redux-thunk run install scripts?
No. redux-thunk does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.