diff --git a/CHANGELOG.md b/CHANGELOG.md index d77cf66..91a926e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [Unreleased](https://github.com/Space48/cloud-seed/compare/v4.1.0...HEAD) +## [Unreleased](https://github.com/Space48/cloud-seed/compare/HEAD...v5.0.0) + +### Breaking changes + +- `Firestore` functions `event trigger filter attribute` now includes `database` in addition to `document`. Ensure you update and complete full regression testing of your firestore functions after upgrading + +## [4.1.2](https://github.com/Space48/cloud-seed/compare/v4.1.0...v4.1.2) ### Added @@ -45,7 +51,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Updated package dependencies - Enhanced type safety for environment-specific configurations - ## [v3.0.0](https://github.com/Space48/cloud-seed/compare/v2.1.0...v3.0.0) ### Breaking changes diff --git a/package-lock.json b/package-lock.json index 3f8d415..884abcc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@space48/cloud-seed", - "version": "4.1.2", + "version": "5.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@space48/cloud-seed", - "version": "4.1.2", + "version": "5.0.0", "license": "MIT", "dependencies": { "@cdktf/provider-archive": "^10.3.0", diff --git a/package.json b/package.json index ec6438e..2e48c93 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@space48/cloud-seed", - "version": "4.1.2", + "version": "5.0.0", "description": "Cloud infrastructure automation tool that uses Terraform CDK.", "main": "dist/index.js", "bin": { @@ -59,4 +59,4 @@ "lint-staged": { "*.{js,ts}": "eslint --cache --fix" } -} +} \ No newline at end of file diff --git a/stacks/gcp/GcpStack.ts b/stacks/gcp/GcpStack.ts index 3c2a96f..38b3268 100644 --- a/stacks/gcp/GcpStack.ts +++ b/stacks/gcp/GcpStack.ts @@ -336,9 +336,13 @@ export default class GcpStack extends TerraformStack { retryPolicy, eventFilters: [ { - attribute: "database", + attribute: "document", value: config.document, }, + { + attribute: "database", + value: config.database || "(default)", + }, ], }, }; diff --git a/types/runtime.ts b/types/runtime.ts index f5a5941..414996f 100644 --- a/types/runtime.ts +++ b/types/runtime.ts @@ -60,6 +60,7 @@ export type QueueConfig = { export type FirestoreConfig = { type: "firestore"; document: string; + database?: string; firestoreEvent?: "create" | "write" | "update" | "delete"; } & FunctionConfig;