@entropic-bond/firebase 1.13.5 → 1.13.7
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.
- package/lib/auth/firebase-auth.d.ts +2 -3
- package/lib/cloud-functions/firebase-cloud-functions.d.ts +1 -2
- package/lib/cloud-functions/firebase-cloud-functions.spec.d.ts +0 -1
- package/lib/cloud-storage/firebase-cloud-storage.d.ts +1 -2
- package/lib/entropic-bond-firebase.js +9722 -9339
- package/lib/entropic-bond-firebase.js.map +1 -1
- package/lib/entropic-bond-firebase.umd.cjs +301 -272
- package/lib/entropic-bond-firebase.umd.cjs.map +1 -1
- package/lib/firebase-helper.d.ts +0 -1
- package/lib/mocks/test-user.d.ts +0 -1
- package/lib/store/firebase-datasource.d.ts +4 -3
- package/package.json +10 -9
package/lib/firebase-helper.d.ts
CHANGED
package/lib/mocks/test-user.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { EmulatorConfig } from '../firebase-helper';
|
|
2
|
-
import { Collections, DataSource, DocumentObject, QueryObject, QueryOperator } from 'entropic-bond';
|
|
3
1
|
import { WhereFilterOp } from 'firebase/firestore';
|
|
4
|
-
|
|
2
|
+
import { Collections, DataSource, DocumentChangeListerner, DocumentObject, QueryObject, QueryOperator, Unsubscriber } from 'entropic-bond';
|
|
3
|
+
import { EmulatorConfig } from '../firebase-helper';
|
|
5
4
|
export declare class FirebaseDatasource extends DataSource {
|
|
6
5
|
constructor(emulator?: EmulatorConfig);
|
|
7
6
|
findById(id: string, collectionName: string): Promise<DocumentObject>;
|
|
@@ -10,6 +9,8 @@ export declare class FirebaseDatasource extends DataSource {
|
|
|
10
9
|
count(queryObject: QueryObject<DocumentObject>, collectionName: string): Promise<number>;
|
|
11
10
|
delete(id: string, collectionName: string): Promise<void>;
|
|
12
11
|
next(maxDocs?: number): Promise<DocumentObject[]>;
|
|
12
|
+
onCollectionChange(query: QueryObject<DocumentObject>, collectionName: string, listener: DocumentChangeListerner<DocumentObject>): Unsubscriber;
|
|
13
|
+
onDocumentChange(documentPath: string, documentId: string, listener: DocumentChangeListerner<DocumentObject>): Unsubscriber;
|
|
13
14
|
private queryObjectToQueryConstraints;
|
|
14
15
|
toFirebaseOperator(operator: QueryOperator): WhereFilterOp;
|
|
15
16
|
private getFromQuery;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entropic-bond/firebase",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.13.
|
|
4
|
+
"version": "1.13.7",
|
|
5
5
|
"description": "Firebase plugins for Entropic Bond",
|
|
6
6
|
"main": "./lib/entropic-bond-firebase.umd.cjs",
|
|
7
7
|
"module": "./lib/entropic-bond-firebase.js",
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
]
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
|
+
"test-vi": "vitest",
|
|
35
36
|
"test": "npm run install-functions-dependencies && firebase emulators:exec --project demo-test vitest",
|
|
36
37
|
"build": "tsc -p tsconfig-build.json && vite build",
|
|
37
38
|
"prepare": "npm run build",
|
|
@@ -55,17 +56,17 @@
|
|
|
55
56
|
"devDependencies": {
|
|
56
57
|
"@semantic-release/changelog": "^6.0.3",
|
|
57
58
|
"@semantic-release/git": "^10.0.1",
|
|
58
|
-
"@types/node": "^
|
|
59
|
+
"@types/node": "^22.7.0",
|
|
59
60
|
"git-branch-is": "^4.0.0",
|
|
60
|
-
"husky": "^9.
|
|
61
|
-
"semantic-release": "^
|
|
62
|
-
"typescript": "^5.
|
|
63
|
-
"vite-plugin-dts": "^
|
|
64
|
-
"vitest": "^1.
|
|
61
|
+
"husky": "^9.1.6",
|
|
62
|
+
"semantic-release": "^24.1.1",
|
|
63
|
+
"typescript": "^5.6.2",
|
|
64
|
+
"vite-plugin-dts": "^4.2.2",
|
|
65
|
+
"vitest": "^2.1.1",
|
|
65
66
|
"xhr2": "^0.2.1"
|
|
66
67
|
},
|
|
67
68
|
"dependencies": {
|
|
68
|
-
"entropic-bond": "^1.
|
|
69
|
-
"firebase": "^10.
|
|
69
|
+
"entropic-bond": "^1.53.9",
|
|
70
|
+
"firebase": "^10.13.2"
|
|
70
71
|
}
|
|
71
72
|
}
|