@naturalcycles/firestore-lib 2.0.0 → 2.0.2

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.
@@ -41,6 +41,7 @@ export declare class FirestoreDBTransaction implements DBTransaction {
41
41
  db: FirestoreDB;
42
42
  tx: Transaction;
43
43
  constructor(db: FirestoreDB, tx: Transaction);
44
+ commit(): Promise<void>;
44
45
  rollback(): Promise<void>;
45
46
  getByIds<ROW extends ObjectWithId>(table: string, ids: string[], opt?: CommonDBOptions): Promise<ROW[]>;
46
47
  saveBatch<ROW extends ObjectWithId>(table: string, rows: ROW[], opt?: CommonDBSaveOptions<ROW>): Promise<void>;
@@ -193,6 +193,9 @@ export class FirestoreDBTransaction {
193
193
  this.db = db;
194
194
  this.tx = tx;
195
195
  }
196
+ async commit() {
197
+ throw new Error('FirestoreDBTransaction.commit() is not implemented');
198
+ }
196
199
  async rollback() {
197
200
  throw new RollbackError();
198
201
  }
package/package.json CHANGED
@@ -1,28 +1,18 @@
1
1
  {
2
2
  "name": "@naturalcycles/firestore-lib",
3
3
  "type": "module",
4
- "scripts": {
5
- "prepare": "husky",
6
- "build": "dev-lib build",
7
- "test": "dev-lib test",
8
- "lint": "dev-lib lint",
9
- "bt": "dev-lib bt",
10
- "lbt": "dev-lib lbt"
11
- },
12
4
  "dependencies": {
13
- "@google-cloud/firestore": "^7.0.0",
14
- "@naturalcycles/db-lib": "^10.0.2",
15
- "@naturalcycles/js-lib": "^14.6.0",
16
- "@naturalcycles/nodejs-lib": "^13.1.0"
5
+ "@google-cloud/firestore": "^7",
6
+ "@naturalcycles/db-lib": "^10",
7
+ "@naturalcycles/js-lib": "^15",
8
+ "@naturalcycles/nodejs-lib": "^14",
9
+ "tslib": "^2"
17
10
  },
18
11
  "devDependencies": {
19
- "@naturalcycles/dev-lib": "^17.3.0",
20
- "@types/node": "^22.7.5",
21
- "@vitest/coverage-v8": "^3.1.1",
22
- "dotenv": "^16.0.0",
23
- "firebase-admin": "^13.2.0",
24
- "tsx": "^4.19.3",
25
- "vitest": "^3.1.1"
12
+ "@naturalcycles/dev-lib": "*",
13
+ "@types/node": "^22",
14
+ "dotenv": "^16",
15
+ "firebase-admin": "^13"
26
16
  },
27
17
  "files": [
28
18
  "dist",
@@ -39,13 +29,22 @@
39
29
  },
40
30
  "repository": {
41
31
  "type": "git",
42
- "url": "https://github.com/NaturalCycles/firestore-lib"
32
+ "url": "git@github.com:NaturalCycles/js-libs.git",
33
+ "directory": "packages/firestore-lib"
43
34
  },
44
35
  "engines": {
45
36
  "node": ">=22.12.0"
46
37
  },
47
- "version": "2.0.0",
38
+ "version": "2.0.2",
48
39
  "description": "Firestore implementation of CommonDB interface",
49
40
  "author": "Natural Cycles Team",
50
- "license": "MIT"
51
- }
41
+ "license": "MIT",
42
+ "scripts": {
43
+ "build": "dev-lib build",
44
+ "test": "dev-lib test",
45
+ "lint": "dev-lib lint",
46
+ "bt": "dev-lib bt",
47
+ "lbt": "dev-lib lbt",
48
+ "check": "dev-lib lbt"
49
+ }
50
+ }
@@ -333,6 +333,10 @@ export class FirestoreDBTransaction implements DBTransaction {
333
333
  public tx: Transaction,
334
334
  ) {}
335
335
 
336
+ async commit(): Promise<void> {
337
+ throw new Error('FirestoreDBTransaction.commit() is not implemented')
338
+ }
339
+
336
340
  async rollback(): Promise<void> {
337
341
  throw new RollbackError()
338
342
  }