Skip to content

Release Notes v3.1.0

Choose a tag to compare

@hideokamoto hideokamoto released this 27 Dec 07:38
· 122 commits to main since this release

Release Notes v3.1.0

πŸŽ‰ New Features

New Components

  • stripe-payment-element: Added Stripe Payment Element component

    • Includes Checkout Session support
    • Adopts service architecture pattern
  • stripe-express-checkout-element: Added Express Checkout Element component

    • Supports fast checkout methods like Apple Pay and Google Pay
  • stripe-address-element: Added Stripe Address Element component

    • Provides address input form
    • Adopts service pattern
  • stripe-currency-selector: Added Stripe Currency Selector Element component

    • Provides currency selection functionality
  • stripe-link-authentication-element: Added Stripe Link Authentication Element component

    • Supports authentication via Stripe Link

πŸ”’ Security Fixes

This release fixes security vulnerabilities in dependencies.

Fixed Vulnerabilities

  • glob package command injection vulnerability (High severity)

  • brace-expansion package ReDoS vulnerability (Low severity)

  • tmp package symbolic link vulnerability (Low severity)

    • Fixed vulnerability in tmp <=0.2.3
    • Added overrides section to package.json to override tmp with a safe version (^0.2.5)
    • GHSA-52f5-9888-hmc6

πŸ§ͺ Test Improvements

  • Separated unit tests and component tests
  • Added unit tests for each component and service
  • Improved test runner (cross-platform support)

πŸ› οΈ Other Improvements

Bug Fixes

  • Fixed issue where stripeAccount prop was ignored when set before publishableKey
  • Fixed event handling and store management in Stripe Link Authentication Element
  • Prevented duplicate form submissions in Payment Element
  • Fixed TypeScript errors

Refactoring

  • Unified lifecycle methods to componentWillRender
  • Moved inline styles to SCSS for better maintainability
  • Improved error handling
  • Extracted common findElement utility

Development Environment Improvements

  • Migrated ESLint config to flat config format (ESLint 9 support)
  • Improved GitHub Actions workflow (faster feedback)
  • Updated styles to match current Stripe SDK design
  • Removed deprecated SASS imports

πŸ“¦ Upgrade Instructions

npm install stripe-pwa-elements@3.1.0

or

npm update stripe-pwa-elements

Full Changelog: v3.0.0...v3.1.0