@firebase/firestore 3.8.4-canary.5ba524313 → 3.8.4-canary.a2505bd72

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.
@@ -19,6 +19,7 @@ import { Query } from '../../../src/core/query';
19
19
  import { Target } from '../../../src/core/target';
20
20
  import { TargetIdGenerator } from '../../../src/core/target_id_generator';
21
21
  import { TargetId } from '../../../src/core/types';
22
+ import { TargetPurpose } from '../../../src/local/target_data';
22
23
  import { Document } from '../../../src/model/document';
23
24
  import { DocumentKey } from '../../../src/model/document_key';
24
25
  import { FieldIndex } from '../../../src/model/field_index';
@@ -34,6 +35,7 @@ export interface LimboMap {
34
35
  }
35
36
  export interface ActiveTargetSpec {
36
37
  queries: SpecQuery[];
38
+ targetPurpose?: TargetPurpose;
37
39
  resumeToken?: string;
38
40
  readTime?: TestSnapshotVersion;
39
41
  }
@@ -139,6 +141,7 @@ export declare class SpecBuilder {
139
141
  /** Overrides the currently expected set of active targets. */
140
142
  expectActiveTargets(...targets: Array<{
141
143
  query: Query;
144
+ targetPurpose?: TargetPurpose;
142
145
  resumeToken?: string;
143
146
  readTime?: TestSnapshotVersion;
144
147
  }>): this;
@@ -28,6 +28,7 @@ import { PersistenceTransaction, PersistenceTransactionMode } from '../../../src
28
28
  import { SharedClientState } from '../../../src/local/shared_client_state';
29
29
  import { Mutation } from '../../../src/model/mutation';
30
30
  import * as api from '../../../src/protos/firestore_proto_api';
31
+ import { ApiClientObjectMap } from '../../../src/protos/firestore_proto_api';
31
32
  import { Connection, Stream } from '../../../src/remote/connection';
32
33
  import { Datastore } from '../../../src/remote/datastore';
33
34
  import { StreamBridge } from '../../../src/remote/stream_bridge';
@@ -102,7 +103,10 @@ export declare class MockConnection implements Connection {
102
103
  * stream, as a mapping from target ID to query Target.
103
104
  */
104
105
  activeTargets: {
105
- [targetId: number]: api.Target;
106
+ [targetId: number]: {
107
+ target: api.Target;
108
+ labels?: ApiClientObjectMap<string>;
109
+ };
106
110
  };
107
111
  /** A Deferred that is resolved once watch opens. */
108
112
  watchOpen: Deferred<void>;
package/dist/index.cjs.js CHANGED
@@ -70,7 +70,7 @@ b.MOCK_USER = new b("mock-user");
70
70
  * See the License for the specific language governing permissions and
71
71
  * limitations under the License.
72
72
  */
73
- let v = "9.17.2-canary.5ba524313";
73
+ let v = "9.17.2-canary.a2505bd72";
74
74
 
75
75
  /**
76
76
  * @license
@@ -11562,8 +11562,10 @@ class Fo {
11562
11562
  // Note: In theory, this should be scheduled on the AsyncQueue since it
11563
11563
  // accesses internal state. We execute this code directly during shutdown
11564
11564
  // to make sure it gets a chance to run.
11565
- this.Pi(), util.isSafari() && navigator.appVersion.match(/Version\/1[45]/) &&
11566
- // On Safari 14 and 15, we do not run any cleanup actions as it might
11565
+ this.Pi();
11566
+ const t = /(?:Version|Mobile)\/1[456]/;
11567
+ util.isSafari() && (navigator.appVersion.match(t) || navigator.userAgent.match(t)) &&
11568
+ // On Safari 14, 15, and 16, we do not run any cleanup actions as it might
11567
11569
  // trigger a bug that prevents Safari from re-opening IndexedDB during
11568
11570
  // the next page load.
11569
11571
  // See https://bugs.webkit.org/show_bug.cgi?id=226547
@@ -20792,9 +20794,9 @@ function Ef(t, e) {
20792
20794
  return s = Object.assign({
20793
20795
  useFetchStreams: e
20794
20796
  }, s), r._setSettings(s), r;
20795
- }), "PUBLIC").setMultipleInstances(!0)), app.registerVersion(P, "3.8.4-canary.5ba524313", t),
20797
+ }), "PUBLIC").setMultipleInstances(!0)), app.registerVersion(P, "3.8.4-canary.a2505bd72", t),
20796
20798
  // BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
20797
- app.registerVersion(P, "3.8.4-canary.5ba524313", "cjs2017");
20799
+ app.registerVersion(P, "3.8.4-canary.a2505bd72", "cjs2017");
20798
20800
  }();
20799
20801
 
20800
20802
  exports.AbstractUserDataWriter = xl;