@firebase/firestore 1.14.0-canary.fc3d5396 → 1.14.0

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.
Files changed (64) hide show
  1. package/CHANGELOG.md +0 -4
  2. package/dist/dist/index.esm2017.d.ts +2 -2
  3. package/dist/dist/index.memory.esm2017.d.ts +2 -2
  4. package/dist/index.cjs.js +3540 -3559
  5. package/dist/index.cjs.js.map +1 -1
  6. package/dist/index.esm.js +3707 -3726
  7. package/dist/index.esm.js.map +1 -1
  8. package/dist/index.esm2017.js +4191 -4245
  9. package/dist/index.esm2017.js.map +1 -1
  10. package/dist/index.memory.cjs.js +2502 -2571
  11. package/dist/index.memory.cjs.js.map +1 -1
  12. package/dist/index.memory.esm.js +2623 -2692
  13. package/dist/index.memory.esm.js.map +1 -1
  14. package/dist/index.memory.esm2017.js +2590 -2649
  15. package/dist/index.memory.esm2017.js.map +1 -1
  16. package/dist/index.memory.node.cjs.js +2677 -2800
  17. package/dist/index.memory.node.cjs.js.map +1 -1
  18. package/dist/index.memory.node.esm2017.js +2469 -2563
  19. package/dist/index.memory.node.esm2017.js.map +1 -1
  20. package/dist/index.node.cjs.js +2823 -2895
  21. package/dist/index.node.cjs.js.map +1 -1
  22. package/dist/index.node.esm2017.js +2558 -2639
  23. package/dist/index.node.esm2017.js.map +1 -1
  24. package/dist/lib/src/core/component_provider.d.ts +20 -29
  25. package/dist/lib/src/core/transaction_runner.d.ts +1 -1
  26. package/dist/lib/src/local/indexeddb_persistence.d.ts +2 -2
  27. package/dist/lib/src/local/memory_persistence.d.ts +0 -1
  28. package/dist/lib/src/local/persistence.d.ts +0 -2
  29. package/dist/lib/src/platform/platform.d.ts +5 -0
  30. package/dist/lib/src/platform_browser/browser_platform.d.ts +1 -0
  31. package/dist/lib/src/platform_node/node_platform.d.ts +1 -0
  32. package/dist/lib/src/util/assert.d.ts +2 -5
  33. package/dist/lib/src/util/async_queue.d.ts +1 -18
  34. package/dist/lib/test/integration/api_internal/transaction.test.d.ts +1 -1
  35. package/dist/lib/test/unit/bootstrap.d.ts +1 -1
  36. package/dist/lib/test/unit/remote/{serializer.browser.test.d.ts → serializer.test.d.ts} +1 -1
  37. package/dist/lib/test/unit/specs/spec_builder.d.ts +0 -4
  38. package/dist/lib/test/unit/specs/spec_test_runner.d.ts +0 -2
  39. package/dist/lib/test/{unit/remote/serializer.node.test.d.ts → util/node_helpers.d.ts} +1 -1
  40. package/dist/lib/test/util/test_platform.d.ts +1 -0
  41. package/dist/src/core/component_provider.d.ts +20 -29
  42. package/dist/src/core/transaction_runner.d.ts +1 -1
  43. package/dist/src/local/indexeddb_persistence.d.ts +2 -2
  44. package/dist/src/local/memory_persistence.d.ts +0 -1
  45. package/dist/src/local/persistence.d.ts +0 -2
  46. package/dist/src/platform/platform.d.ts +5 -0
  47. package/dist/src/platform_browser/browser_platform.d.ts +1 -0
  48. package/dist/src/platform_node/node_platform.d.ts +1 -0
  49. package/dist/src/util/assert.d.ts +2 -5
  50. package/dist/src/util/async_queue.d.ts +1 -18
  51. package/dist/test/integration/api_internal/transaction.test.d.ts +1 -1
  52. package/dist/test/unit/bootstrap.d.ts +1 -1
  53. package/dist/test/unit/remote/{serializer.browser.test.d.ts → serializer.test.d.ts} +1 -1
  54. package/dist/test/unit/specs/spec_builder.d.ts +0 -4
  55. package/dist/test/unit/specs/spec_test_runner.d.ts +0 -2
  56. package/dist/test/{unit/remote/serializer.node.test.d.ts → util/node_helpers.d.ts} +1 -1
  57. package/dist/test/util/test_platform.d.ts +1 -0
  58. package/package.json +12 -12
  59. package/dist/lib/test/unit/remote/serializer.helper.d.ts +0 -25
  60. package/dist/lib/test/unit/specs/recovery_spec.test.d.ts +0 -17
  61. package/dist/lib/test/unit/specs/spec_test_components.d.ts +0 -60
  62. package/dist/test/unit/remote/serializer.helper.d.ts +0 -25
  63. package/dist/test/unit/specs/recovery_spec.test.d.ts +0 -17
  64. package/dist/test/unit/specs/spec_test_components.d.ts +0 -60
@@ -1,25 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2017 Google LLC
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import * as api from '../../../src/protos/firestore_proto_api';
18
- /**
19
- * Runs the serializer test with an optional ProtobufJS verification step
20
- * (only provided in Node).
21
- *
22
- * These tests are initialized in 'serializer.browser.test.ts' and
23
- * 'serializer.node.test.ts'.
24
- */
25
- export declare function serializerTest(protobufJsVerifier?: (jsonValue: api.Value) => void): void;
@@ -1,17 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2020 Google LLC
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- export {};
@@ -1,60 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2020 Google LLC
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import { ComponentConfiguration, IndexedDbComponentProvider, MemoryComponentProvider } from '../../../src/core/component_provider';
18
- import { GarbageCollectionScheduler, Persistence, PersistenceTransaction, PersistenceTransactionMode, PrimaryStateListener, ReferenceDelegate } from '../../../src/local/persistence';
19
- import { ClientId } from '../../../src/local/shared_client_state';
20
- import { User } from '../../../src/auth/user';
21
- import { MutationQueue } from '../../../src/local/mutation_queue';
22
- import { TargetCache } from '../../../src/local/target_cache';
23
- import { RemoteDocumentCache } from '../../../src/local/remote_document_cache';
24
- import { IndexManager } from '../../../src/local/index_manager';
25
- import { PersistencePromise } from '../../../src/local/persistence_promise';
26
- /**
27
- * A test-only persistence implementation that delegates all calls to the
28
- * underlying IndexedDB or Memory-based persistence implementations and is able
29
- * to inject transaction failures.
30
- */
31
- export declare class MockPersistence implements Persistence {
32
- private readonly delegate;
33
- injectFailures: boolean;
34
- constructor(delegate: Persistence);
35
- start(): Promise<void>;
36
- get started(): boolean;
37
- get referenceDelegate(): ReferenceDelegate;
38
- shutdown(): Promise<void>;
39
- setPrimaryStateListener(primaryStateListener: PrimaryStateListener): Promise<void>;
40
- setDatabaseDeletedListener(databaseDeletedListener: () => Promise<void>): void;
41
- setNetworkEnabled(networkEnabled: boolean): void;
42
- getActiveClients(): Promise<ClientId[]>;
43
- getMutationQueue(user: User): MutationQueue;
44
- getTargetCache(): TargetCache;
45
- getRemoteDocumentCache(): RemoteDocumentCache;
46
- getIndexManager(): IndexManager;
47
- runTransaction<T>(action: string, mode: PersistenceTransactionMode, transactionOperation: (transaction: PersistenceTransaction) => PersistencePromise<T>): Promise<T>;
48
- }
49
- export declare class MockIndexedDbComponentProvider extends IndexedDbComponentProvider {
50
- persistence: MockPersistence;
51
- createGarbageCollectionScheduler(cfg: ComponentConfiguration): GarbageCollectionScheduler | null;
52
- createPersistence(cfg: ComponentConfiguration): Persistence;
53
- }
54
- export declare class MockMemoryComponentProvider extends MemoryComponentProvider {
55
- private readonly gcEnabled;
56
- persistence: MockPersistence;
57
- constructor(gcEnabled: boolean);
58
- createGarbageCollectionScheduler(cfg: ComponentConfiguration): GarbageCollectionScheduler | null;
59
- createPersistence(cfg: ComponentConfiguration): Persistence;
60
- }
@@ -1,25 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2017 Google LLC
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import * as api from '../../../src/protos/firestore_proto_api';
18
- /**
19
- * Runs the serializer test with an optional ProtobufJS verification step
20
- * (only provided in Node).
21
- *
22
- * These tests are initialized in 'serializer.browser.test.ts' and
23
- * 'serializer.node.test.ts'.
24
- */
25
- export declare function serializerTest(protobufJsVerifier?: (jsonValue: api.Value) => void): void;
@@ -1,17 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2020 Google LLC
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- export {};
@@ -1,60 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2020 Google LLC
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import { ComponentConfiguration, IndexedDbComponentProvider, MemoryComponentProvider } from '../../../src/core/component_provider';
18
- import { GarbageCollectionScheduler, Persistence, PersistenceTransaction, PersistenceTransactionMode, PrimaryStateListener, ReferenceDelegate } from '../../../src/local/persistence';
19
- import { ClientId } from '../../../src/local/shared_client_state';
20
- import { User } from '../../../src/auth/user';
21
- import { MutationQueue } from '../../../src/local/mutation_queue';
22
- import { TargetCache } from '../../../src/local/target_cache';
23
- import { RemoteDocumentCache } from '../../../src/local/remote_document_cache';
24
- import { IndexManager } from '../../../src/local/index_manager';
25
- import { PersistencePromise } from '../../../src/local/persistence_promise';
26
- /**
27
- * A test-only persistence implementation that delegates all calls to the
28
- * underlying IndexedDB or Memory-based persistence implementations and is able
29
- * to inject transaction failures.
30
- */
31
- export declare class MockPersistence implements Persistence {
32
- private readonly delegate;
33
- injectFailures: boolean;
34
- constructor(delegate: Persistence);
35
- start(): Promise<void>;
36
- get started(): boolean;
37
- get referenceDelegate(): ReferenceDelegate;
38
- shutdown(): Promise<void>;
39
- setPrimaryStateListener(primaryStateListener: PrimaryStateListener): Promise<void>;
40
- setDatabaseDeletedListener(databaseDeletedListener: () => Promise<void>): void;
41
- setNetworkEnabled(networkEnabled: boolean): void;
42
- getActiveClients(): Promise<ClientId[]>;
43
- getMutationQueue(user: User): MutationQueue;
44
- getTargetCache(): TargetCache;
45
- getRemoteDocumentCache(): RemoteDocumentCache;
46
- getIndexManager(): IndexManager;
47
- runTransaction<T>(action: string, mode: PersistenceTransactionMode, transactionOperation: (transaction: PersistenceTransaction) => PersistencePromise<T>): Promise<T>;
48
- }
49
- export declare class MockIndexedDbComponentProvider extends IndexedDbComponentProvider {
50
- persistence: MockPersistence;
51
- createGarbageCollectionScheduler(cfg: ComponentConfiguration): GarbageCollectionScheduler | null;
52
- createPersistence(cfg: ComponentConfiguration): Persistence;
53
- }
54
- export declare class MockMemoryComponentProvider extends MemoryComponentProvider {
55
- private readonly gcEnabled;
56
- persistence: MockPersistence;
57
- constructor(gcEnabled: boolean);
58
- createGarbageCollectionScheduler(cfg: ComponentConfiguration): GarbageCollectionScheduler | null;
59
- createPersistence(cfg: ComponentConfiguration): Persistence;
60
- }