Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Releases: jonkoops/use-promise

v3.2.0

23 May 12:54
Compare
Choose a tag to compare

New Features ✨

  • Package is now published under the @jonkoops organization on NPM (see migration guide).

Migration 🚚

Since the municipality of Amsterdam no longer has any interest in maintaining this library it has been moved to a new organization. The package has been renamed as follows:

  • @amsterdam/use-promise ➡️ @jonkoops/use-promise

To upgrade your project run the following commands:

npm uninstall @amsterdam/use-promise
npm install @jonkoops/use-promise

v3.1.0

18 Apr 17:28
Compare
Choose a tag to compare

New Features ✨

  • Added support for React 18.

v3.0.1

18 Aug 11:38
Compare
Choose a tag to compare

Bugfixes 🐞

  • Include main field in package file for tooling that does not understand the exports field.

v3.0.0

18 Aug 11:02
Compare
Choose a tag to compare

Breaking Changes 💥

  • Support for CommonJS modules has been removed.

v2.1.0

21 Apr 12:43
Compare
Choose a tag to compare

This new release introduces support for more versions of Node, including version 16.

New Features ✨

  • Node version restrictions have been lifted, you can use any Node version 12 and above.

v2.0.0

29 Mar 10:34
Compare
Choose a tag to compare

This new release introduces a way to cancel fetch requests, for more information check out the new Cancelling Fetch Requests guide.

New Features ✨

  • Cancelling fetch requests based on the lifecycle of usePromise is now possible, check out the new Cancelling Fetch Requests guide.
  • There are now isPending(), isFulfilled() and isRejected() utility functions to check the status of the result, reducing boilerplate code in your statements.
  • New and improved documentation with guides on different topics.

Breaking Changes 💥

  • The error field on the rejected result has been renamed to reason to align with the defaults from Promise.allSettled
  • The PromiseStatus enum is no longer present, check the status of the result with isPending(), isFulfilled() and isRejected() functions instead.

v1.0.0

28 Mar 18:01
Compare
Choose a tag to compare
Add publish config