@firebase/firestore 3.8.1 → 3.8.2-20230201003102
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/CHANGELOG.md +13 -0
- package/dist/firestore/src/local/remote_document_cache.d.ts +5 -5
- package/dist/firestore/test/unit/local/test_remote_document_cache.d.ts +3 -3
- package/dist/index.cjs.js +20635 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.esm2017.js +29 -27
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +140 -138
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +22 -12
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +22 -12
- package/dist/index.node.mjs.map +1 -1
- package/dist/index.rn.js +29 -27
- package/dist/index.rn.js.map +1 -1
- package/dist/internal.d.ts +3 -3
- package/dist/lite/firestore/src/local/remote_document_cache.d.ts +5 -5
- package/dist/lite/firestore/test/unit/local/test_remote_document_cache.d.ts +3 -3
- package/dist/lite/index.browser.esm2017.js +2 -2
- package/dist/lite/index.browser.esm2017.js.map +1 -1
- package/dist/lite/index.browser.esm5.js +2 -2
- package/dist/lite/index.browser.esm5.js.map +1 -1
- package/dist/lite/index.cjs.js +6954 -0
- package/dist/lite/index.cjs.js.map +1 -0
- package/dist/lite/index.node.cjs.js +2 -2
- package/dist/lite/index.node.mjs +2 -2
- package/dist/lite/index.node.mjs.map +1 -1
- package/dist/lite/index.rn.esm2017.js +2 -2
- package/dist/lite/index.rn.esm2017.js.map +1 -1
- package/dist/lite/packages/firestore/src/local/remote_document_cache.d.ts +5 -5
- package/dist/lite/packages/firestore/test/unit/local/test_remote_document_cache.d.ts +3 -3
- package/dist/packages/firestore/src/local/remote_document_cache.d.ts +5 -5
- package/dist/packages/firestore/test/unit/local/test_remote_document_cache.d.ts +3 -3
- package/dist/private.d.ts +3 -3
- package/package.json +17 -9
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
-
import {
|
|
17
|
+
import { Query } from '../core/query';
|
|
18
|
+
import { DocumentKeySet, MutableDocumentMap, OverlayMap } from '../model/collections';
|
|
18
19
|
import { MutableDocument } from '../model/document';
|
|
19
20
|
import { DocumentKey } from '../model/document_key';
|
|
20
21
|
import { IndexOffset } from '../model/field_index';
|
|
21
|
-
import { ResourcePath } from '../model/path';
|
|
22
22
|
import { IndexManager } from './index_manager';
|
|
23
23
|
import { PersistencePromise } from './persistence_promise';
|
|
24
24
|
import { PersistenceTransaction } from './persistence_transaction';
|
|
@@ -50,13 +50,13 @@ export interface RemoteDocumentCache {
|
|
|
50
50
|
*/
|
|
51
51
|
getEntries(transaction: PersistenceTransaction, documentKeys: DocumentKeySet): PersistencePromise<MutableDocumentMap>;
|
|
52
52
|
/**
|
|
53
|
-
* Returns the documents
|
|
53
|
+
* Returns the documents matching the given query
|
|
54
54
|
*
|
|
55
|
-
* @param
|
|
55
|
+
* @param query - The query to match documents against.
|
|
56
56
|
* @param offset - The offset to start the scan at (exclusive).
|
|
57
57
|
* @returns The set of matching documents.
|
|
58
58
|
*/
|
|
59
|
-
|
|
59
|
+
getDocumentsMatchingQuery(transaction: PersistenceTransaction, query: Query, offset: IndexOffset, mutatedDocs: OverlayMap): PersistencePromise<MutableDocumentMap>;
|
|
60
60
|
/**
|
|
61
61
|
* Looks up the next `limit` documents for a collection group based on the
|
|
62
62
|
* provided offset. The ordering is based on the document's read time and key.
|
|
@@ -14,15 +14,15 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
+
import { Query } from '../../../src/core/query';
|
|
17
18
|
import { SnapshotVersion } from '../../../src/core/snapshot_version';
|
|
18
19
|
import { IndexManager } from '../../../src/local/index_manager';
|
|
19
20
|
import { Persistence } from '../../../src/local/persistence';
|
|
20
21
|
import { RemoteDocumentChangeBuffer } from '../../../src/local/remote_document_change_buffer';
|
|
21
|
-
import { DocumentKeySet, MutableDocumentMap } from '../../../src/model/collections';
|
|
22
|
+
import { DocumentKeySet, MutableDocumentMap, OverlayMap } from '../../../src/model/collections';
|
|
22
23
|
import { MutableDocument } from '../../../src/model/document';
|
|
23
24
|
import { DocumentKey } from '../../../src/model/document_key';
|
|
24
25
|
import { IndexOffset } from '../../../src/model/field_index';
|
|
25
|
-
import { ResourcePath } from '../../../src/model/path';
|
|
26
26
|
/**
|
|
27
27
|
* A wrapper around a RemoteDocumentCache that automatically creates a
|
|
28
28
|
* transaction around every operation to reduce test boilerplate.
|
|
@@ -45,7 +45,7 @@ export declare class TestRemoteDocumentCache {
|
|
|
45
45
|
removeEntry(documentKey: DocumentKey, version?: SnapshotVersion): Promise<void>;
|
|
46
46
|
getEntry(documentKey: DocumentKey): Promise<MutableDocument>;
|
|
47
47
|
getEntries(documentKeys: DocumentKeySet): Promise<MutableDocumentMap>;
|
|
48
|
-
|
|
48
|
+
getDocumentsMatchingQuery(query: Query, offset: IndexOffset, mutatedDocs: OverlayMap): Promise<MutableDocumentMap>;
|
|
49
49
|
getAllFromCollectionGroup(collectionGroup: string, offset: IndexOffset, limit: number): Promise<MutableDocumentMap>;
|
|
50
50
|
getSize(): Promise<number>;
|
|
51
51
|
newChangeBuffer(options?: {
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
-
import {
|
|
17
|
+
import { Query } from '../core/query';
|
|
18
|
+
import { DocumentKeySet, MutableDocumentMap, OverlayMap } from '../model/collections';
|
|
18
19
|
import { MutableDocument } from '../model/document';
|
|
19
20
|
import { DocumentKey } from '../model/document_key';
|
|
20
21
|
import { IndexOffset } from '../model/field_index';
|
|
21
|
-
import { ResourcePath } from '../model/path';
|
|
22
22
|
import { IndexManager } from './index_manager';
|
|
23
23
|
import { PersistencePromise } from './persistence_promise';
|
|
24
24
|
import { PersistenceTransaction } from './persistence_transaction';
|
|
@@ -50,13 +50,13 @@ export interface RemoteDocumentCache {
|
|
|
50
50
|
*/
|
|
51
51
|
getEntries(transaction: PersistenceTransaction, documentKeys: DocumentKeySet): PersistencePromise<MutableDocumentMap>;
|
|
52
52
|
/**
|
|
53
|
-
* Returns the documents
|
|
53
|
+
* Returns the documents matching the given query
|
|
54
54
|
*
|
|
55
|
-
* @param
|
|
55
|
+
* @param query - The query to match documents against.
|
|
56
56
|
* @param offset - The offset to start the scan at (exclusive).
|
|
57
57
|
* @returns The set of matching documents.
|
|
58
58
|
*/
|
|
59
|
-
|
|
59
|
+
getDocumentsMatchingQuery(transaction: PersistenceTransaction, query: Query, offset: IndexOffset, mutatedDocs: OverlayMap): PersistencePromise<MutableDocumentMap>;
|
|
60
60
|
/**
|
|
61
61
|
* Looks up the next `limit` documents for a collection group based on the
|
|
62
62
|
* provided offset. The ordering is based on the document's read time and key.
|
|
@@ -14,15 +14,15 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
+
import { Query } from '../../../src/core/query';
|
|
17
18
|
import { SnapshotVersion } from '../../../src/core/snapshot_version';
|
|
18
19
|
import { IndexManager } from '../../../src/local/index_manager';
|
|
19
20
|
import { Persistence } from '../../../src/local/persistence';
|
|
20
21
|
import { RemoteDocumentChangeBuffer } from '../../../src/local/remote_document_change_buffer';
|
|
21
|
-
import { DocumentKeySet, MutableDocumentMap } from '../../../src/model/collections';
|
|
22
|
+
import { DocumentKeySet, MutableDocumentMap, OverlayMap } from '../../../src/model/collections';
|
|
22
23
|
import { MutableDocument } from '../../../src/model/document';
|
|
23
24
|
import { DocumentKey } from '../../../src/model/document_key';
|
|
24
25
|
import { IndexOffset } from '../../../src/model/field_index';
|
|
25
|
-
import { ResourcePath } from '../../../src/model/path';
|
|
26
26
|
/**
|
|
27
27
|
* A wrapper around a RemoteDocumentCache that automatically creates a
|
|
28
28
|
* transaction around every operation to reduce test boilerplate.
|
|
@@ -45,7 +45,7 @@ export declare class TestRemoteDocumentCache {
|
|
|
45
45
|
removeEntry(documentKey: DocumentKey, version?: SnapshotVersion): Promise<void>;
|
|
46
46
|
getEntry(documentKey: DocumentKey): Promise<MutableDocument>;
|
|
47
47
|
getEntries(documentKeys: DocumentKeySet): Promise<MutableDocumentMap>;
|
|
48
|
-
|
|
48
|
+
getDocumentsMatchingQuery(query: Query, offset: IndexOffset, mutatedDocs: OverlayMap): Promise<MutableDocumentMap>;
|
|
49
49
|
getAllFromCollectionGroup(collectionGroup: string, offset: IndexOffset, limit: number): Promise<MutableDocumentMap>;
|
|
50
50
|
getSize(): Promise<number>;
|
|
51
51
|
newChangeBuffer(options?: {
|
package/dist/private.d.ts
CHANGED
|
@@ -4541,13 +4541,13 @@ declare interface RemoteDocumentCache {
|
|
|
4541
4541
|
*/
|
|
4542
4542
|
getEntries(transaction: PersistenceTransaction, documentKeys: DocumentKeySet): PersistencePromise<MutableDocumentMap>;
|
|
4543
4543
|
/**
|
|
4544
|
-
* Returns the documents
|
|
4544
|
+
* Returns the documents matching the given query
|
|
4545
4545
|
*
|
|
4546
|
-
* @param
|
|
4546
|
+
* @param query - The query to match documents against.
|
|
4547
4547
|
* @param offset - The offset to start the scan at (exclusive).
|
|
4548
4548
|
* @returns The set of matching documents.
|
|
4549
4549
|
*/
|
|
4550
|
-
|
|
4550
|
+
getDocumentsMatchingQuery(transaction: PersistenceTransaction, query: Query_2, offset: IndexOffset, mutatedDocs: OverlayMap): PersistencePromise<MutableDocumentMap>;
|
|
4551
4551
|
/**
|
|
4552
4552
|
* Looks up the next `limit` documents for a collection group based on the
|
|
4553
4553
|
* provided offset. The ordering is based on the document's read time and key.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firebase/firestore",
|
|
3
|
-
"version": "3.8.
|
|
3
|
+
"version": "3.8.2-20230201003102",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=10.10.0"
|
|
6
6
|
},
|
|
@@ -56,7 +56,11 @@
|
|
|
56
56
|
},
|
|
57
57
|
"react-native": "./dist/index.rn.js",
|
|
58
58
|
"esm5": "./dist/index.esm5.js",
|
|
59
|
-
"default": "./dist/index.esm2017.js"
|
|
59
|
+
"default": "./dist/index.esm2017.js",
|
|
60
|
+
"browser": {
|
|
61
|
+
"require": "./dist/index.cjs.js",
|
|
62
|
+
"import": "./dist/index.esm2017.js"
|
|
63
|
+
}
|
|
60
64
|
},
|
|
61
65
|
"./lite": {
|
|
62
66
|
"types": "./dist/lite/index.d.ts",
|
|
@@ -66,7 +70,11 @@
|
|
|
66
70
|
},
|
|
67
71
|
"react-native": "./dist/lite/index.rn.esm2017.js",
|
|
68
72
|
"esm5": "./dist/lite/index.browser.esm5.js",
|
|
69
|
-
"default": "./dist/lite/index.browser.esm2017.js"
|
|
73
|
+
"default": "./dist/lite/index.browser.esm2017.js",
|
|
74
|
+
"browser": {
|
|
75
|
+
"require": "./dist/lite/index.cjs.js",
|
|
76
|
+
"import": "./dist/lite/index.browser.esm2017.js"
|
|
77
|
+
}
|
|
70
78
|
},
|
|
71
79
|
"./package.json": "./package.json"
|
|
72
80
|
},
|
|
@@ -82,9 +90,9 @@
|
|
|
82
90
|
"lite/package.json"
|
|
83
91
|
],
|
|
84
92
|
"dependencies": {
|
|
85
|
-
"@firebase/component": "0.6.
|
|
93
|
+
"@firebase/component": "0.6.2-20230201003102",
|
|
86
94
|
"@firebase/logger": "0.4.0",
|
|
87
|
-
"@firebase/util": "1.9.
|
|
95
|
+
"@firebase/util": "1.9.1-20230201003102",
|
|
88
96
|
"@firebase/webchannel-wrapper": "0.9.0",
|
|
89
97
|
"@grpc/grpc-js": "~1.7.0",
|
|
90
98
|
"@grpc/proto-loader": "^0.6.13",
|
|
@@ -92,12 +100,12 @@
|
|
|
92
100
|
"tslib": "^2.1.0"
|
|
93
101
|
},
|
|
94
102
|
"peerDependencies": {
|
|
95
|
-
"@firebase/app": "0.
|
|
103
|
+
"@firebase/app": "0.9.2-20230201003102"
|
|
96
104
|
},
|
|
97
105
|
"devDependencies": {
|
|
98
|
-
"@firebase/app": "0.9.
|
|
99
|
-
"@firebase/app-compat": "0.2.
|
|
100
|
-
"@firebase/auth": "0.21.
|
|
106
|
+
"@firebase/app": "0.9.2-20230201003102",
|
|
107
|
+
"@firebase/app-compat": "0.2.2-20230201003102",
|
|
108
|
+
"@firebase/auth": "0.21.2-20230201003102",
|
|
101
109
|
"@rollup/plugin-alias": "3.1.9",
|
|
102
110
|
"@rollup/plugin-json": "4.1.0",
|
|
103
111
|
"@types/eslint": "7.29.0",
|