Skip to content
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

feat(firestore-send-email): migrate to v2 cloud function #2359

Draft
wants to merge 10 commits into
base: next
Choose a base branch
from

Conversation

CorieW
Copy link
Contributor

@CorieW CorieW commented Mar 28, 2025

Resolves #2002

need to test

@cabljac cabljac requested a review from Copilot March 31, 2025 10:40
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR migrates the firestore-send-email extension to use the v2 Cloud Function trigger and supports non-default Firestore databases. The changes include updates to type definitions, modifications in index.ts to adopt Firestore v2 APIs, and corresponding updates in configuration, documentation, and changelog.

Reviewed Changes

Copilot reviewed 7 out of 10 changed files in this pull request and generated no comments.

Show a summary per file
File Description
functions/src/types.ts Added new config fields for Firestore instance identification and region.
functions/src/index.ts Modified Firestore API usages and trigger setup to support v2 functions and types.
functions/src/config.ts Added new configuration properties for database and databaseRegion.
extension.yaml Updated function type to firebaseextensions.v1beta.v2function, version bump, and config.
README.md Updated documentation to reflect new Firestore instance configuration parameters.
POSTINSTALL.md Updated instructions for accessing non-default Firestore databases post-installation.
CHANGELOG.md Documented version bump and migration to v2 Firestore trigger.
Files not reviewed (3)
  • project/.firebaserc: Language not supported
  • project/.gitignore: Language not supported
  • project/firebase.json: Language not supported

@CorieW CorieW force-pushed the @invertase/firestore-send-email-v2 branch from 2e69f51 to ca73458 Compare March 31, 2025 11:59
@CorieW CorieW force-pushed the @invertase/firestore-send-email-v2 branch from 99bc96a to a719342 Compare March 31, 2025 12:54
@CorieW CorieW force-pushed the @invertase/firestore-send-email-v2 branch from a719342 to b75d88a Compare March 31, 2025 12:59
fix: add defaults to config.ts to make tests run
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.

🐛 firestore-send-email Migrate to v2 cloud function
2 participants