MyGit

v2.0.0

reduxjs/redux-thunk

版本发布时间: 2016-03-06 21:07:11

reduxjs/redux-thunk最新发布版本:v3.1.0(2023-12-04 21:57:13)

Note: this release was botched. Read the notes here but install 2.0.1 (or later) instead :sweat_smile: .

Breaking Changes

If you used Redux Thunk from npm in CommonJS environment, you need to add .default to your requires:

- var ReduxThunk = require('redux-thunk')
+ var ReduxThunk = require('redux-thunk').default

If you used ES modules, you’re already all good:

import ReduxThunk from 'redux-thunk' // no changes here 😀

New Features

UMD build

Like with CommonJS build, you will need to grab the middleware from .default export:

var ReduxThunk = window.ReduxThunk.default

Grab the UMD build on npmcdn.

ES modules build

Rollup users can now use redux-thunk directly without commonjs plugin.

相关地址:原始地址 下载(tar) 下载(zip)

查看:2016-03-06发行的版本