@firebase/firestore 4.6.3-canary.e7260e23d → 4.6.3-canary.ed1c99379
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 +10 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm2017.js +10 -6
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +12 -8
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +9 -3
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +9 -3
- package/dist/index.node.mjs.map +1 -1
- package/dist/index.rn.js +10 -6
- package/dist/index.rn.js.map +1 -1
- package/dist/lite/index.browser.esm2017.js +2 -2
- package/dist/lite/index.browser.esm5.js +2 -2
- package/dist/lite/index.cjs.js +2 -2
- package/dist/lite/index.node.cjs.js +2 -2
- package/dist/lite/index.node.mjs +2 -2
- package/dist/lite/index.rn.esm2017.js +2 -2
- package/package.json +9 -9
package/dist/index.cjs.js
CHANGED
|
@@ -71,7 +71,7 @@ User.MOCK_USER = new User("mock-user");
|
|
|
71
71
|
* See the License for the specific language governing permissions and
|
|
72
72
|
* limitations under the License.
|
|
73
73
|
*/
|
|
74
|
-
let b = "10.12.2-canary.
|
|
74
|
+
let b = "10.12.2-canary.ed1c99379";
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* @license
|
|
@@ -16465,11 +16465,15 @@ async function __PRIVATE_syncEngineEmitNewSnapsAndNotifyLocalStore(e, t, n) {
|
|
|
16465
16465
|
const r = __PRIVATE_debugCast(e), i = [], s = [], o = [];
|
|
16466
16466
|
r.ba.isEmpty() || (r.ba.forEach(((e, _) => {
|
|
16467
16467
|
o.push(r.Ba(_, t, n).then((e => {
|
|
16468
|
+
var t;
|
|
16468
16469
|
// If there are changes, or we are handling a global snapshot, notify
|
|
16469
16470
|
// secondary clients to update query state.
|
|
16470
|
-
|
|
16471
|
-
|
|
16472
|
-
|
|
16471
|
+
if ((e || n) && r.isPrimaryClient) {
|
|
16472
|
+
// Query state is set to `current` if:
|
|
16473
|
+
// - There is a view change and it is up-to-date, or,
|
|
16474
|
+
// - There is a global snapshot, the Target is current, and no changes to be resolved
|
|
16475
|
+
const i = e ? !e.fromCache : null === (t = null == n ? void 0 : n.targetChanges.get(_.targetId)) || void 0 === t ? void 0 : t.current;
|
|
16476
|
+
r.sharedClientState.updateQueryState(_.targetId, i ? "current" : "not-current");
|
|
16473
16477
|
}
|
|
16474
16478
|
// Update views if there are actual changes.
|
|
16475
16479
|
if (e) {
|
|
@@ -21994,9 +21998,9 @@ let ve = null;
|
|
|
21994
21998
|
return r = Object.assign({
|
|
21995
21999
|
useFetchStreams: t
|
|
21996
22000
|
}, r), s._setSettings(r), s;
|
|
21997
|
-
}), "PUBLIC").setMultipleInstances(!0)), app.registerVersion(S, "4.6.3-canary.
|
|
22001
|
+
}), "PUBLIC").setMultipleInstances(!0)), app.registerVersion(S, "4.6.3-canary.ed1c99379", e),
|
|
21998
22002
|
// BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
|
|
21999
|
-
app.registerVersion(S, "4.6.3-canary.
|
|
22003
|
+
app.registerVersion(S, "4.6.3-canary.ed1c99379", "cjs2017");
|
|
22000
22004
|
}();
|
|
22001
22005
|
|
|
22002
22006
|
exports.AbstractUserDataWriter = AbstractUserDataWriter;
|