@naturalcycles/firestore-lib 2.0.2 → 2.1.1

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.
@@ -2,7 +2,7 @@ import type { Firestore, Query, Transaction } from '@google-cloud/firestore';
2
2
  import type { CommonDB, CommonDBOptions, CommonDBSaveOptions, CommonDBStreamOptions, CommonDBSupport, CommonDBTransactionOptions, DBQuery, DBTransaction, DBTransactionFn, RunQueryResult } from '@naturalcycles/db-lib';
3
3
  import { BaseCommonDB } from '@naturalcycles/db-lib';
4
4
  import type { ObjectWithId, StringMap } from '@naturalcycles/js-lib';
5
- import type { ReadableTyped } from '@naturalcycles/nodejs-lib';
5
+ import type { ReadableTyped } from '@naturalcycles/nodejs-lib/stream';
6
6
  export interface FirestoreDBCfg {
7
7
  firestore: Firestore;
8
8
  }
package/package.json CHANGED
@@ -5,15 +5,18 @@
5
5
  "@google-cloud/firestore": "^7",
6
6
  "@naturalcycles/db-lib": "^10",
7
7
  "@naturalcycles/js-lib": "^15",
8
- "@naturalcycles/nodejs-lib": "^14",
8
+ "@naturalcycles/nodejs-lib": "^15",
9
9
  "tslib": "^2"
10
10
  },
11
11
  "devDependencies": {
12
12
  "@naturalcycles/dev-lib": "*",
13
- "@types/node": "^22",
14
- "dotenv": "^16",
13
+ "@types/node": "^24",
14
+ "dotenv": "^17",
15
15
  "firebase-admin": "^13"
16
16
  },
17
+ "exports": {
18
+ ".": "./dist/index.js"
19
+ },
17
20
  "files": [
18
21
  "dist",
19
22
  "src",
@@ -35,7 +38,7 @@
35
38
  "engines": {
36
39
  "node": ">=22.12.0"
37
40
  },
38
- "version": "2.0.2",
41
+ "version": "2.1.1",
39
42
  "description": "Firestore implementation of CommonDB interface",
40
43
  "author": "Natural Cycles Team",
41
44
  "license": "MIT",
@@ -44,7 +47,8 @@
44
47
  "test": "dev-lib test",
45
48
  "lint": "dev-lib lint",
46
49
  "bt": "dev-lib bt",
47
- "lbt": "dev-lib lbt",
48
- "check": "dev-lib lbt"
50
+ "clean": "dev-lib clean",
51
+ "typecheck": "dev-lib typecheck",
52
+ "check": "dev-lib check"
49
53
  }
50
54
  }
@@ -30,7 +30,7 @@ import {
30
30
  _stringMapEntries,
31
31
  pMap,
32
32
  } from '@naturalcycles/js-lib'
33
- import type { ReadableTyped } from '@naturalcycles/nodejs-lib'
33
+ import type { ReadableTyped } from '@naturalcycles/nodejs-lib/stream'
34
34
  import { escapeDocId, unescapeDocId } from './firestore.util.js'
35
35
  import { dbQueryToFirestoreQuery } from './query.util.js'
36
36