@causa/runtime-google 0.33.1 → 0.35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/README.md +14 -2
  2. package/dist/app-check/guard.js +4 -2
  3. package/dist/identity-platform/identity-platform.strategy.js +4 -2
  4. package/dist/pubsub/publisher.d.ts +7 -13
  5. package/dist/pubsub/publisher.js +27 -17
  6. package/dist/pubsub/publisher.module.js +1 -2
  7. package/dist/spanner/entity-manager.d.ts +22 -18
  8. package/dist/spanner/entity-manager.js +6 -6
  9. package/dist/spanner/index.d.ts +1 -1
  10. package/dist/transaction/firestore-pubsub/runner.js +4 -2
  11. package/dist/transaction/index.d.ts +3 -0
  12. package/dist/transaction/index.js +3 -0
  13. package/dist/transaction/spanner-outbox/event.d.ts +27 -0
  14. package/dist/transaction/spanner-outbox/event.js +63 -0
  15. package/dist/transaction/spanner-outbox/index.d.ts +5 -0
  16. package/dist/transaction/spanner-outbox/index.js +4 -0
  17. package/dist/transaction/spanner-outbox/module.d.ts +28 -0
  18. package/dist/transaction/spanner-outbox/module.js +91 -0
  19. package/dist/transaction/spanner-outbox/runner.d.ts +19 -0
  20. package/dist/transaction/spanner-outbox/runner.js +31 -0
  21. package/dist/transaction/spanner-outbox/sender.d.ts +95 -0
  22. package/dist/transaction/spanner-outbox/sender.js +150 -0
  23. package/dist/transaction/spanner-pubsub/index.d.ts +0 -2
  24. package/dist/transaction/spanner-pubsub/index.js +0 -2
  25. package/dist/transaction/spanner-pubsub/runner.d.ts +3 -3
  26. package/dist/transaction/spanner-pubsub/runner.js +12 -27
  27. package/dist/transaction/{spanner-pubsub/state-transaction.d.ts → spanner-state-transaction.d.ts} +4 -5
  28. package/dist/transaction/{spanner-pubsub/state-transaction.js → spanner-state-transaction.js} +2 -3
  29. package/dist/transaction/spanner-transaction.d.ts +16 -0
  30. package/dist/transaction/spanner-transaction.js +20 -0
  31. package/dist/transaction/spanner-utils.d.ts +9 -0
  32. package/dist/transaction/spanner-utils.js +31 -0
  33. package/package.json +11 -11
  34. package/dist/transaction/spanner-pubsub/transaction.d.ts +0 -17
  35. package/dist/transaction/spanner-pubsub/transaction.js +0 -21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@causa/runtime-google",
3
- "version": "0.33.1",
3
+ "version": "0.35.0",
4
4
  "description": "An extension to the Causa runtime SDK (`@causa/runtime`), providing Google-specific features.",
5
5
  "repository": "github:causa-io/runtime-typescript-google",
6
6
  "license": "ISC",
@@ -29,21 +29,21 @@
29
29
  "test:cov": "npm run test -- --coverage"
30
30
  },
31
31
  "dependencies": {
32
- "@causa/runtime": ">= 0.23.0 < 1.0.0",
32
+ "@causa/runtime": ">= 0.24.1 < 1.0.0",
33
33
  "@google-cloud/precise-date": "^4.0.0",
34
34
  "@google-cloud/pubsub": "^4.9.0",
35
35
  "@google-cloud/spanner": "^7.16.0",
36
36
  "@google-cloud/tasks": "^5.5.1",
37
37
  "@grpc/grpc-js": "^1.12.2",
38
- "@nestjs/common": "^10.4.8",
38
+ "@nestjs/common": "^10.4.12",
39
39
  "@nestjs/config": "^3.3.0",
40
- "@nestjs/core": "^10.4.8",
40
+ "@nestjs/core": "^10.4.12",
41
41
  "@nestjs/passport": "^10.0.3",
42
42
  "@nestjs/terminus": "^10.2.3",
43
43
  "class-transformer": "^0.5.1",
44
44
  "class-validator": "^0.14.1",
45
45
  "express": "^4.21.1",
46
- "firebase-admin": "^13.0.0",
46
+ "firebase-admin": "^13.0.1",
47
47
  "jsonwebtoken": "^9.0.2",
48
48
  "nestjs-pino": "^4.1.0",
49
49
  "passport-http-bearer": "^1.0.1",
@@ -51,18 +51,18 @@
51
51
  "reflect-metadata": "^0.2.2"
52
52
  },
53
53
  "devDependencies": {
54
- "@nestjs/testing": "^10.4.8",
55
- "@swc/core": "^1.9.2",
54
+ "@nestjs/testing": "^10.4.12",
55
+ "@swc/core": "^1.9.3",
56
56
  "@swc/jest": "^0.2.37",
57
57
  "@tsconfig/node22": "^22.0.0",
58
58
  "@types/jest": "^29.5.14",
59
59
  "@types/jsonwebtoken": "^9.0.7",
60
- "@types/node": "^22.9.0",
60
+ "@types/node": "^22.10.1",
61
61
  "@types/passport-http-bearer": "^1.0.41",
62
62
  "@types/supertest": "^6.0.2",
63
63
  "@types/uuid": "^10.0.0",
64
64
  "dotenv": "^16.4.5",
65
- "eslint": "^9.14.0",
65
+ "eslint": "^9.15.0",
66
66
  "eslint-config-prettier": "^9.1.0",
67
67
  "eslint-plugin-prettier": "^5.2.1",
68
68
  "jest": "^29.7.0",
@@ -71,8 +71,8 @@
71
71
  "supertest": "^7.0.0",
72
72
  "ts-jest": "^29.2.5",
73
73
  "ts-node": "^10.9.2",
74
- "typescript": "^5.6.3",
75
- "typescript-eslint": "^8.14.0",
74
+ "typescript": "^5.7.2",
75
+ "typescript-eslint": "^8.16.0",
76
76
  "uuid": "^11.0.3"
77
77
  }
78
78
  }
@@ -1,17 +0,0 @@
1
- import { BufferEventTransaction, Transaction } from '@causa/runtime';
2
- import { Transaction as SpannerTransaction } from '@google-cloud/spanner';
3
- import { SpannerEntityManager } from '../../spanner/index.js';
4
- import { SpannerStateTransaction } from './state-transaction.js';
5
- /**
6
- * A {@link Transaction} that uses Spanner for state storage and Pub/Sub for event publishing.
7
- */
8
- export declare class SpannerPubSubTransaction extends Transaction<SpannerStateTransaction, BufferEventTransaction> {
9
- /**
10
- * The underlying {@link SpannerTransaction} used by the state transaction.
11
- */
12
- get spannerTransaction(): SpannerTransaction;
13
- /**
14
- * The underlying {@link SpannerEntityManager} used by the state transaction.
15
- */
16
- get entityManager(): SpannerEntityManager;
17
- }
@@ -1,21 +0,0 @@
1
- import { BufferEventTransaction, Transaction } from '@causa/runtime';
2
- import { Transaction as SpannerTransaction } from '@google-cloud/spanner';
3
- import { SpannerEntityManager } from '../../spanner/index.js';
4
- import { SpannerStateTransaction } from './state-transaction.js';
5
- /**
6
- * A {@link Transaction} that uses Spanner for state storage and Pub/Sub for event publishing.
7
- */
8
- export class SpannerPubSubTransaction extends Transaction {
9
- /**
10
- * The underlying {@link SpannerTransaction} used by the state transaction.
11
- */
12
- get spannerTransaction() {
13
- return this.stateTransaction.transaction;
14
- }
15
- /**
16
- * The underlying {@link SpannerEntityManager} used by the state transaction.
17
- */
18
- get entityManager() {
19
- return this.stateTransaction.entityManager;
20
- }
21
- }