npms-io / npms-www

The https://npms.io website
MIT License
245 stars 35 forks source link

Update redux-promise-middleware to the latest version 🚀 #207

Closed greenkeeper[bot] closed 5 years ago

greenkeeper[bot] commented 6 years ago

Version 5.0.0 of redux-promise-middleware was just published.

Dependency redux-promise-middleware
Current Version 4.4.2
Type dependency

The version 5.0.0 is not covered by your current version range.

If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.

It might be worth looking into these changes and trying to get this project onto the latest version of redux-promise-middleware.

If you have a solid test suite and good coverage, a passing build is a strong indicator that you can take advantage of these changes directly by merging the proposed change into your project. If the build fails or you don’t have such unconditional trust in your tests, this branch is a great starting point for you to work on the update.


Release Notes Version 5.0.0

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. Thank you to @mikew for adding this!
  • 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.


Lastly, as this is a major release, please report any issues you encounter!

Commits

The new version differs by 8 commits.

See the full diff

FAQ and help There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html). If those don’t help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new).

Your Greenkeeper bot :palm_tree:

greenkeeper[bot] commented 6 years ago

Version 5.1.0 just got published.

Update to this version instead 🚀

Commits

The new version differs by 11 commits.

See the full diff

greenkeeper[bot] commented 6 years ago

Version 5.1.1 just got published.

Update to this version instead 🚀

Release Notes Version 5.1.1

This release adds Typescript bindings, thanks to @franklixuefei.

Commits

The new version differs by 3 commits.

  • ef188d2 Release version 5.1.1
  • 18566cf Create Typescript Definitions (#200)
  • 1c55d30 Update README.md (#209)

See the full diff