Skip to content

v1.0.0

Choose a tag to compare

@flovouin flovouin released this 09 Jun 07:08
· 19 commits to main since this release
daac392

Breaking changes:

  • Rewrite the TypeScriptGetDecoratorRendererForGoogleFirestore and TypeScriptGetDecoratorRendererForGoogleSpanner workspace functions (and the underlying GoogleFirestoreRenderer / GoogleSpannerRenderer classes) as ModelGenerateTypeScriptDecoratorsForGoogleFirestore and ModelGenerateTypeScriptDecoratorsForGoogleSpanner, following the @causa/workspace-typescript breaking change that replaces TypeScriptGetDecoratorRenderer with the schema-based ModelGenerateTypeScriptDecorators function.

Features:

  • Add the google.pubSub.backfillPublishOptions configuration to override the Pub/Sub publish options used when backfilling events.
  • Add the google.cloudRun.eventBackfillServiceCloneConfig configuration. When set, project-scoped backfill triggers deploy a temporary internal-ingress copy of the Cloud Run service (one per trigger) instead of sending events to the live service, isolating the backfill load and scaling from production. The minInstanceCount, maxInstanceCount, and requestConcurrency properties override the scaling of the copy, which is deleted during backfill cleanup.
  • Implement EventTopicBrokerWaitForProcessing for Pub/Sub, polling Cloud Monitoring metrics until all temporary subscriptions of the targeted backfill are drained.
  • Add the google.firestore.emulator.port, google.pubSub.emulator.port, google.firebaseStorage.emulator.port, google.identityPlatform.emulator.port, google.spanner.emulator.grpcPort, and google.spanner.emulator.httpPort configurations to override the host ports bound by the emulators, enabling several workspaces to run their emulators in parallel on the same machine.
  • Implement ModelSchemaExtractDatabase for the google.spanner and google.firestore engines, deriving database bindings from the googleSpannerTable and googleFirestoreCollection Causa extensions.

Chore:

  • Adapt to @causa/workspace's removal of the context argument from _call and _supports. The context is now read from this._context in all function implementations and deferred calls.
  • Adapt to @causa/workspace-core's removal of BackfillEvent.key. The Pub/Sub publisher no longer forwards an ordering key.
  • Replace js-yaml with yaml in the schema transformation script.