Skip to content
  • 6.1.2
  • fd4e993
  • Compare
    Choose a tag to compare
    Search for a tag
  • 6.1.2
  • fd4e993
  • Compare
    Choose a tag to compare
    Search for a tag

@pburtchaell pburtchaell released this Nov 5, 2019

Fixes

  • #256: Removes the version 6.0.0 warning from production builds
Assets 2

@pburtchaell pburtchaell released this Jun 15, 2019

Fixes

  • #251: URL to documentation incorrectly linked in the source code.
Assets 2
  • 6.1.0
  • 9b3c5c0
  • Compare
    Choose a tag to compare
    Search for a tag
  • 6.1.0
  • 9b3c5c0
  • Compare
    Choose a tag to compare
    Search for a tag

@pburtchaell pburtchaell released this Feb 14, 2019

Fixes

  • #241: ActionType enum was declared as an interface and incorrectly named ActionTypes, not ActionType.
Assets 2
  • 6.0.1
  • 50c7a88
  • Compare
    Choose a tag to compare
    Search for a tag
  • 6.0.1
  • 50c7a88
  • Compare
    Choose a tag to compare
    Search for a tag

@pburtchaell pburtchaell released this Feb 7, 2019

Fixes

  • #237: TypeScript definitions not published to npm
Assets 2
  • 6.0.0
  • 612043c
  • Compare
    Choose a tag to compare
    Search for a tag
  • 6.0.0
  • 612043c
  • Compare
    Choose a tag to compare
    Search for a tag

@pburtchaell pburtchaell released this Feb 3, 2019

Breaking Changes

Previously, the middleware need to be instantiated with an optional configuration.

import promiseMiddleware from 'redux-promise-middleware'

applyMiddleware(
  promiseMiddleware({
    // Optional configuration
  }),
)(createStore)
This implementation enabled custom configuration, but, for most implementations, it is uncessary overhead.

Now, the default export is preconfigured and ready to go.

import promise from 'redux-promise-middleware'

applyMiddleware(
  promise,
)(createStore)

We still support custom configuration. Check the upgrading guide for more help.

Thanks to @rahulbdominic and @zhanyuzhang for assisting on this release.

New

  • Updated TypeScript definitions with more robust types to use for async action creators (#234)
Assets 2
  • 5.1.1
  • a5b052a
  • Compare
    Choose a tag to compare
    Search for a tag
  • 5.1.1
  • a5b052a
  • Compare
    Choose a tag to compare
    Search for a tag

@pburtchaell pburtchaell released this Apr 18, 2018

This release adds Typescript bindings, thanks to @franklixuefei!

Assets 2
  • 5.1.0
  • cfc6300
  • Compare
    Choose a tag to compare
    Search for a tag
  • 5.1.0
  • cfc6300
  • Compare
    Choose a tag to compare
    Search for a tag

@pburtchaell pburtchaell released this Apr 18, 2018

This release adds peer dependency support for Redux 4. This is backwards compatible release, meaning there are no API changes. Should you experience any bugs, please file an issue and we'll get to it!

Assets 2

@pburtchaell pburtchaell released this Nov 19, 2017

Breaking Changes 🔥 🚒

The promiseTypeSeparator config property is now promiseTypeDelimiter.

Why? Because delimiters are one or more characters used to specify the boundaries in strings. It’s a delimiter, not a separator!

applyMiddleware(
  promiseMiddleware({
    promiseTypeDelimiter: '/'
  })
)

With the above configuration, given FOO async action, the type will be appended with a forward slash / delimiter.

{
  type: 'FOO/PENDING'
}

New

  • Async functions—using async/wait—are supported. Thanks to @mikew for the PR!
  • Development dependencies and example project dependencies are upgraded.
  • The middleware code comments were extended to provide a clearer picture of how it works.

Here’s an async/await example:

{
  type: 'TYPE',
  async payload () {
    const fooData = await getFooData();
    const barData = await getBarData(fooData);

    return barData;
  }
}

See the Async/Await guide for more.

Assets 2

@pburtchaell pburtchaell released this Aug 27, 2017

This is a big release that adds new functionality and resolves #159, an outstanding issue from this summer.

Here’s the complete list:

  • Reverts the changes from #126, subsequently released in version 4.3.0.
  • Resolves #159.
  • Adds support for ES6 Modules, thanks to @anajavi. This enables scope hosting on WebPack 3, saving a space and increasing performance.
  • Adds support for custom separators on action types, thanks to @roboslone. Now your actions can be customized to, for example, FOO/FULFILLED or FOO-FULLFILLED instead of FOO_FULFILLED.
  • Updates to WebPack 2, thanks to @GeKorm.
  • Changes UMD paths to dist/umd/redux-promise-middleware.js and dist/umd/redux-promise-middleware.min.js.
Assets 2

@pburtchaell pburtchaell released this May 15, 2017

This release has been deprecated due to breaking changes in error handling.

This release fixes a bug when a dispatch call throws an error in handleFulfill, changing the promise state to rejected. This can happen when a reducer throws an error or a component's render throws as a result of a Redux store update.

Thanks to @danwang for the PR!

Assets 2
You can’t perform that action at this time.