invertase / stripe-firebase-extensions

Repository of Firebase Extensions built by Stripe.
https://firebase.google.com/products/extensions
Apache License 2.0
423 stars 160 forks source link

Upgrade Cloud Functions to v2 (Gen2) #598

Open nilsreichardt opened 5 months ago

nilsreichardt commented 5 months ago

It would be great to be able to upgrade to Cloud Functions v2 because they have less cold starts.

jauntybrain commented 5 months ago

Hi @nilsreichardt!

Unfortunately, Extensions currently support only v1 http-triggered Cloud Fnctions and Firestore triggers.

We are monitoring updates, so v2 functions will be added once Extensions start fully supporting them.

ryanwhitemedia commented 5 months ago

@jauntybrain any update on the node version making the extension deprecated?

pr-Mais commented 5 months ago

@ryanwhitemedia version firestore-stripe-payments@0.3.8 is using node18 and is live.

I'm assuming you're still on the deprecated extension, per this comment the extensions are now on the Invertase publisher.

alexl2012 commented 3 months ago

Any update on this V1 is being decommissioned soon... @jauntybrain

steffdimitrov commented 1 month ago

I've got an email from Firebase with next content:

What you need to know
Starting September 1, 2024, future versions of the gcloud functions deploy CLI command will create Cloud Functions using 2nd generation by default. If you do not wish to create a 2nd generation function, you can override this behavior by using the --no-gen2 CLI [flag](https://notifications.google.com/g/p/ANiao5oFRq6lPtXyWp3-Wxbk8xM2uWHKc69gh0gcPF09Ldp5IC4dZIfl6cZ1CEPBCVH0CD9gibbrx1rgj8N_TxUh5P7xn_184qos7YIvpTDtbmAmlsavR8AqU9HII7SxTB4rRrq8GFnJl3gl-WyLJKdJ4kLTdL3sP-6leC1esPIdsaCtXu_9a249cMYjWItAce281QZ0HYfKvotVJmEk7O6s5y9sHmCmMt1OSEvJ2NKC8ZV2LoI-2YdNvjqfCA).

Additionally, the firebase-functions Node.js SDK will begin defaulting to the v2 API instead of the v1 API. The v2 API is available now at firebase-functions/v2.

Cloud Functions for Firebase has two product versions:

Cloud Functions (1st generation), the original version, used whenever targeting the firebase-functions/v1 SDK.
Cloud Functions (2nd generation), a new version built on Cloud Run and Eventarc providing an enhanced feature set, which has been generally available since 2022.
This is used whenever you need to target the firebase-functions/v2 SDK.

This means that you have to upgrade to gen version 2 or to explicit import from 'firebase-functions/v1' SDK.

Are you going to upgrade to gen2 functions? Please, answer.