@firebase/firestore-compat 0.3.18 → 0.3.19-20231010210210

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/dist/index.cjs.js CHANGED
@@ -12,7 +12,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
12
12
  var firebase__default = /*#__PURE__*/_interopDefaultLegacy(firebase);
13
13
 
14
14
  const name = "@firebase/firestore-compat";
15
- const version = "0.3.18";
15
+ const version = "0.3.19-20231010210210";
16
16
 
17
17
  /**
18
18
  * @license
@@ -4,7 +4,7 @@ import { getModularInstance } from '@firebase/util';
4
4
  import { Component } from '@firebase/component';
5
5
 
6
6
  const name = "@firebase/firestore-compat";
7
- const version = "0.3.18";
7
+ const version = "0.3.19-20231010210210";
8
8
 
9
9
  /**
10
10
  * @license
@@ -5,7 +5,7 @@ import { getModularInstance } from '@firebase/util';
5
5
  import { Component } from '@firebase/component';
6
6
 
7
7
  const name = "@firebase/firestore-compat";
8
- const version = "0.3.18";
8
+ const version = "0.3.19-20231010210210";
9
9
 
10
10
  /**
11
11
  * @license
@@ -12,7 +12,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
12
12
  var firebase__default = /*#__PURE__*/_interopDefaultLegacy(firebase);
13
13
 
14
14
  const name = "@firebase/firestore-compat";
15
- const version = "0.3.18";
15
+ const version = "0.3.19-20231010210210";
16
16
 
17
17
  /**
18
18
  * @license
package/dist/index.rn.js CHANGED
@@ -4,7 +4,7 @@ import { getModularInstance } from '@firebase/util';
4
4
  import { Component } from '@firebase/component';
5
5
 
6
6
  const name = "@firebase/firestore-compat";
7
- const version = "0.3.18";
7
+ const version = "0.3.19-20231010210210";
8
8
 
9
9
  /**
10
10
  * @license
@@ -4,7 +4,7 @@ import { getModularInstance } from '@firebase/util';
4
4
  import { Component } from '@firebase/component';
5
5
 
6
6
  const name = "@firebase/firestore-compat";
7
- const version = "0.3.18";
7
+ const version = "0.3.19-20231010210210";
8
8
 
9
9
  /**
10
10
  * @license
@@ -49,7 +49,7 @@ declare module '@firebase/app-compat' {
49
49
  }
50
50
 
51
51
  import { FirebaseApp as FirebaseAppCompat } from "@firebase/app-compat";
52
- import { type DocumentData, type WithFieldValue, type DocumentReference, type CollectionReference, type Query, type EmulatorMockTokenOptions, type PersistenceSettings, type AggregateQuerySnapshot, type AggregateField, type DocumentSnapshot, type QuerySnapshot, type Firestore, type PersistentCacheIndexManager, type FirestoreSettings, type LoadBundleTask, type FirestoreError, type Unsubscribe, type SnapshotListenOptions, type QueryCompositeFilterConstraint, type QueryNonFilterConstraint, type QueryConstraint, type Transaction, type TransactionOptions, type PartialWithFieldValue, type SetOptions, type IndexConfiguration, type UpdateData, type FieldPath, type WriteBatch } from "@firebase/firestore";
52
+ import { type DocumentData, type WithFieldValue, type DocumentReference, type CollectionReference, type Query, type EmulatorMockTokenOptions, type PersistenceSettings, type AggregateSpec, type AggregateQuerySnapshot, type AggregateField, type DocumentSnapshot, type QuerySnapshot, type Firestore, type PersistentCacheIndexManager, type FirestoreSettings, type LoadBundleTask, type FirestoreError, type Unsubscribe, type SnapshotListenOptions, type QueryCompositeFilterConstraint, type QueryNonFilterConstraint, type QueryConstraint, type Transaction, type TransactionOptions, type PartialWithFieldValue, type SetOptions, type IndexConfiguration, type UpdateData, type FieldPath, type WriteBatch } from "@firebase/firestore";
53
53
  declare module "@firebase/firestore" {
54
54
  function addDoc<AppModelType, DbModelType extends DocumentData>(reference: types.CollectionReference<AppModelType, DbModelType>, data: WithFieldValue<AppModelType>): Promise<DocumentReference<AppModelType, DbModelType>>;
55
55
  function clearIndexedDbPersistence(firestore: types.FirebaseFirestore): Promise<void>;
@@ -68,6 +68,7 @@ declare module "@firebase/firestore" {
68
68
  function enableIndexedDbPersistence(firestore: types.FirebaseFirestore, persistenceSettings?: PersistenceSettings): Promise<void>;
69
69
  function enableMultiTabIndexedDbPersistence(firestore: types.FirebaseFirestore): Promise<void>;
70
70
  function enableNetwork(firestore: types.FirebaseFirestore): Promise<void>;
71
+ function getAggregateFromServer<AggregateSpecType extends AggregateSpec, AppModelType, DbModelType extends DocumentData>(query: types.Query<AppModelType, DbModelType>, aggregateSpec: AggregateSpecType): Promise<AggregateQuerySnapshot<AggregateSpecType, AppModelType, DbModelType>>;
71
72
  function getCountFromServer<AppModelType, DbModelType extends DocumentData>(query: types.Query<AppModelType, DbModelType>): Promise<AggregateQuerySnapshot<{
72
73
  count: AggregateField<number>;
73
74
  }, AppModelType, DbModelType>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firebase/firestore-compat",
3
- "version": "0.3.18",
3
+ "version": "0.3.19-20231010210210",
4
4
  "description": "The Cloud Firestore component of the Firebase JS SDK.",
5
5
  "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
6
6
  "main": "dist/index.node.cjs.js",
@@ -36,9 +36,9 @@
36
36
  "build:console": "node tools/console.build.js",
37
37
  "build:deps": "lerna run --scope @firebase/firestore-compat --include-dependencies build",
38
38
  "build:release": "yarn build && yarn add-compat-overloads",
39
- "test": "run-s lint test:all",
39
+ "test": "run-s --npm-path npm lint test:all",
40
40
  "test:ci": "node ../../scripts/run_tests_in_ci.js -s test:all",
41
- "test:all": "run-p test:browser test:node",
41
+ "test:all": "run-p --npm-path npm test:browser test:node",
42
42
  "test:browser": "karma start --single-run",
43
43
  "test:node": "mocha --require babel-register.js --require src/index.node.ts --timeout 5000 'test/*.test.ts'",
44
44
  "add-compat-overloads": "ts-node-script ../../scripts/build/create-overloads.ts -i ../firestore/dist/index.d.ts -o dist/src/index.d.ts -a -r Firestore:types.FirebaseFirestore -r CollectionReference:types.CollectionReference -r DocumentReference:types.DocumentReference -r Query:types.Query -r FirebaseApp:FirebaseAppCompat --moduleToEnhance @firebase/firestore"
@@ -48,7 +48,7 @@
48
48
  },
49
49
  "dependencies": {
50
50
  "@firebase/component": "0.6.4",
51
- "@firebase/firestore": "4.2.0",
51
+ "@firebase/firestore": "4.3.0-20231010210210",
52
52
  "@firebase/util": "1.9.3",
53
53
  "@firebase/firestore-types": "3.0.0",
54
54
  "tslib": "^2.1.0"