Release Notes v3.1.0
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)
- Fixed vulnerability in
glob10.2.0 - 10.4.5 - GHSA-5j98-mcp5-4vw2
- Fixed vulnerability in
-
brace-expansion package ReDoS vulnerability (Low severity)
- Fixed vulnerability in
brace-expansion1.0.0 - 1.1.11 - GHSA-v6h2-p8h4-qcjw
- Fixed vulnerability in
-
tmp package symbolic link vulnerability (Low severity)
- Fixed vulnerability in
tmp<=0.2.3 - Added
overridessection topackage.jsonto overridetmpwith a safe version (^0.2.5) - GHSA-52f5-9888-hmc6
- Fixed vulnerability in
π§ͺ 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
stripeAccountprop was ignored when set beforepublishableKey - 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
findElementutility
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.0or
npm update stripe-pwa-elementsFull Changelog: v3.0.0...v3.1.0