Skip to content

Conversation

gelanderosh
Copy link

πŸ”— Linked issue

"Resolves #508 "

❓ Type of change:

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • [ X ] πŸ‘Œ Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • [ X ] ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

This pull request updates the url and type of the exposed stripe instance by the composable, when i followed the guide to implement stripe with nuxt/scripts i detected typescript errors that shouldnt be there, the reason was that the previous versions of stripe's library used to expose the constructor as Stripe, however in the newer versions the type is called StripeConstructor.

The reason im marking it as a breaking change is the fact that stripes api has changed considerably with the newer version, and updating nuxt/scripts would automatically update the library which can cause implementation problems because of the deprecated functions and such.

If this being a breaking change is a problem i can also implement a different script for the newer version of stripe. and maintain the previous as legacy.

Copy link

vercel bot commented Sep 19, 2025

@gelanderosh is attempting to deploy a commit to the Nuxt Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

pkg-pr-new bot commented Sep 19, 2025

Open in StackBlitz

npm i https://pkg.pr.new/nuxt/scripts/@nuxt/scripts@509

commit: 1019b1c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Stripe script needs to be updated.
1 participant