-
Notifications
You must be signed in to change notification settings - Fork 190
fix(deps): Update for ES Module compatibility #645
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: next
Are you sure you want to change the base?
Conversation
Added "type": "module" and .js extensions to imports. This aligns the library with requirements for ECMAScript Modules, which are now widely adopted.
Resolves #440. Without these changes, the dependency is unusable in newer versions of Vite. Therefor it prohibits use in Vue, Nuxt 3, SvelteKit, Remix, Analog, Angular, Astro, SolidJS, Qwik City, RedwoodJS. |
No need to be so authoritative. Contributors are welcome to participate in a way that suites their workflow.
Adding this field required updating the Stripe SDK. It was quite out of date.
This fix has been published as See my fork, which additionally updates the package to the latest Stripe API (+ 2 years), uses modular Firebase package ( |
This really helped me! Thanks a lot @trentrand |
* feat: bump to Node.js 20 runtimes * chore: run npm audit fix * chore: rename sensitive example file * chore: add secret file to gitignore * chore(CI): bump node in CI * chore(CI): bump deps in web sdk to fix CI Co-authored-by: Trent Rand <[email protected]>
Sometimes the consumer application would use a different instance of Firebase, and so calls like `parent instanceOf Payment` would fail because the two instances were technically from different modules. The package should now share the consumers instance of Firebase.
You can call `createCheckoutSession` and `createPortalLink` with the metadata parameter, and these will be saved as metadata fields for the created Stripe user.
This reverts commit 25300aa. The previous commit changed import statements for firebase-admin and firebase-functions to default imports, which caused the extension deployment to fail with runtime errors (Cannot read properties of undefined (reading 'auth')). The correct usage is to use namespace imports (import * as admin from 'firebase-admin'). This revert restores the working import style and fixes the deployment issue.
Added "type": "module" and .js extensions to imports. This aligns the library with requirements for ECMAScript Modules, which are now widely adopted.