Skip to content

v2.0.0

Compare
Choose a tag to compare
@softbeehive softbeehive released this 13 Jan 09:29
· 5 commits to main since this release

What's changed?

v2.0.0 is a major update that introduces changes in default choices due to the evolution of Stripe.js. It was designed with stability in mind, ensuring that your upgrade should be smooth and simple.

Upgrade guide

Breaking changes

ES modules are the de facto standard. Vite is expected to drop CommonJS support in 2025. Do not upgrade if you are using "require" instead of "import."

  • Added npm type module
  • Removed CommonJS export

Features

  • Backward-compatible; old implementations should work seamlessly
  • Payment Element is the new default
  • Improved TypeScript support
  • Added new examples for Payment, Card, and Express Checkout
  • Refined documentation

Fixes

  • Added missing event listeners for: loaderror, loaderstart
  • Added "@stripe/stripe-js" as a dependency

Full Changelog: v1.0.4...v2.0.0