Skip to content

Releases: wojtekmaj/react-async-button

v3.0.0

21 Mar 08:18
4f56ce9
Compare
Choose a tag to compare

❗️ = breaking change

What's new?

  • ❗️ Dropped CommonJS build, making the package ESM-only. Chances are you're not going to be affected by this change at all, as all common bundlers support ESM out of the box.
    • However, you may encounter issues running unit tests using Jest. Consider migrating to Vitest.

v2.0.0

26 Apr 18:48
3b185d3
Compare
Choose a tag to compare

❗️ = breaking change

What's new?

  • Added support for React 19.

What's changed?

  • ❗️ New JSX transform is now required. Most likely, you’re already using it, but if you’re not, you’ll need to enable it by following the instructions in the linked blog post.
  • ❗️ propTypes were removed. If you’re using propTypes, we recommend migrating to TypeScript or another type-checking solution.

v1.6.0

09 Dec 21:18
de5acc9
Compare
Choose a tag to compare

What's new?

  • Improved developer experience by moving prop documentation to JSDoc. This means that you can now see descriptions, default values, and examples for all props in your IDE.
  • Improved documentation

v1.5.2

18 Oct 12:52
0610568
Compare
Choose a tag to compare

What's new?

v1.5.1

27 Jul 07:29
225086b
Compare
Choose a tag to compare

This is a maintenance release that uses new release workflow. There are no user-facing changes.

v1.5.0

26 Jul 19:24
4fd673d
Compare
Choose a tag to compare

What's new?

  • Added support for native ESM modules (#130).

v1.4.0

21 Jul 18:50
1f5d2f9
Compare
Choose a tag to compare

What's new?

  • Improved RSC compatibility. You no longer need to add 'use client'; to the parent component for this component to work.

Bug fixes

  • @types/react and @types/react-dom are now optional peerDependencies, which eliminates errors caused by duplicate typings.

v1.3.1

29 Jun 08:35
12ee479
Compare
Choose a tag to compare

Bug fixes

  • Improved types to avoid unsafe type assertions.

v1.3.0

12 Jun 12:02
ea75deb
Compare
Choose a tag to compare

What's new?

  • AsyncButtonProps type is now exported for your convenience.
  • Added named export support.

Bug fixes

  • Fixed as and onClick accepted in pendingConfig, successConfig and errorConfig props.
  • Fixed types for onClick prop.

v1.2.1

02 Feb 07:52
8c4ce88
Compare
Choose a tag to compare

Bug fixes

  • Fixed types not picked up correctly by some tools (e.g. Next.js).