@firebase/firestore 3.2.1 → 3.3.0-2021108175111

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 CHANGED
@@ -1,5 +1,21 @@
1
1
  # @firebase/firestore
2
2
 
3
+ ## 3.3.0-2021108175111
4
+
5
+ ### Minor Changes
6
+
7
+ - [`532b3cd93`](https://github.com/firebase/firebase-js-sdk/commit/532b3cd939c5a2c13987a21e38a0a121c5dfca04) [#5675](https://github.com/firebase/firebase-js-sdk/pull/5675) (fixes [#5661](https://github.com/firebase/firebase-js-sdk/issues/5661)) - Expanded `Firestore.WithFieldValue<T>` to include `T`. This allows developers to delegate `WithFieldValue<T>` inside wrappers of type `T` to avoid exposing Firebase types beyond Firebase-specific logic.
8
+
9
+ ### Patch Changes
10
+
11
+ - [`3281315fa`](https://github.com/firebase/firebase-js-sdk/commit/3281315fae9c6f535f9d5052ee17d60861ea569a) [#5708](https://github.com/firebase/firebase-js-sdk/pull/5708) (fixes [#1487](https://github.com/firebase/firebase-js-sdk/issues/1487)) - Update build scripts to work with the exports field
12
+
13
+ - Updated dependencies [[`3281315fa`](https://github.com/firebase/firebase-js-sdk/commit/3281315fae9c6f535f9d5052ee17d60861ea569a)]:
14
+ - @firebase/app@0.7.7-2021108175111
15
+ - @firebase/component@0.5.9-2021108175111
16
+ - @firebase/logger@0.3.2-2021108175111
17
+ - @firebase/util@1.4.2-2021108175111
18
+
3
19
  ## 3.2.1
4
20
 
5
21
  ### Patch Changes
@@ -34,16 +34,16 @@ export interface DocumentData {
34
34
  * Similar to Typescript's `Partial<T>`, but allows nested fields to be
35
35
  * omitted and FieldValues to be passed in as property values.
36
36
  */
37
- export declare type PartialWithFieldValue<T> = T extends Primitive ? T : T extends {} ? {
37
+ export declare type PartialWithFieldValue<T> = Partial<T> | (T extends Primitive ? T : T extends {} ? {
38
38
  [K in keyof T]?: PartialWithFieldValue<T[K]> | FieldValue;
39
- } : Partial<T>;
39
+ } : never);
40
40
  /**
41
41
  * Allows FieldValues to be passed in as a property value while maintaining
42
42
  * type safety.
43
43
  */
44
- export declare type WithFieldValue<T> = T extends Primitive ? T : T extends {} ? {
44
+ export declare type WithFieldValue<T> = T | (T extends Primitive ? T : T extends {} ? {
45
45
  [K in keyof T]: WithFieldValue<T[K]> | FieldValue;
46
- } : Partial<T>;
46
+ } : never);
47
47
  /**
48
48
  * Update data (for use with {@link (updateDoc:1)}) that consists of field paths
49
49
  * (e.g. 'foo' or 'foo.baz') mapped to values. Fields that contain dots
package/dist/index.d.ts CHANGED
@@ -1263,9 +1263,9 @@ export declare type OrderByDirection = 'desc' | 'asc';
1263
1263
  * Similar to Typescript's `Partial<T>`, but allows nested fields to be
1264
1264
  * omitted and FieldValues to be passed in as property values.
1265
1265
  */
1266
- export declare type PartialWithFieldValue<T> = T extends Primitive ? T : T extends {} ? {
1266
+ export declare type PartialWithFieldValue<T> = Partial<T> | (T extends Primitive ? T : T extends {} ? {
1267
1267
  [K in keyof T]?: PartialWithFieldValue<T[K]> | FieldValue;
1268
- } : Partial<T>;
1268
+ } : never);
1269
1269
  /**
1270
1270
  * Settings that can be passed to `enableIndexedDbPersistence()` to configure
1271
1271
  * Firestore persistence.
@@ -1941,9 +1941,9 @@ export declare type WhereFilterOp = '<' | '<=' | '==' | '!=' | '>=' | '>' | 'arr
1941
1941
  * Allows FieldValues to be passed in as a property value while maintaining
1942
1942
  * type safety.
1943
1943
  */
1944
- export declare type WithFieldValue<T> = T extends Primitive ? T : T extends {} ? {
1944
+ export declare type WithFieldValue<T> = T | (T extends Primitive ? T : T extends {} ? {
1945
1945
  [K in keyof T]: WithFieldValue<T[K]> | FieldValue;
1946
- } : Partial<T>;
1946
+ } : never);
1947
1947
  /**
1948
1948
  * A write batch, used to perform multiple writes as a single atomic unit.
1949
1949
  *
@@ -66,7 +66,7 @@ D.MOCK_USER = new D("mock-user");
66
66
  * See the License for the specific language governing permissions and
67
67
  * limitations under the License.
68
68
  */
69
- let C = "9.3.0";
69
+ let C = "9.4.0-2021108175111";
70
70
 
71
71
  /**
72
72
  * @license
@@ -17778,9 +17778,9 @@ function ph(t, e) {
17778
17778
  return n = Object.assign({
17779
17779
  useFetchStreams: e
17780
17780
  }, n), i._setSettings(n), i;
17781
- }), "PUBLIC" /* PUBLIC */)), registerVersion(S, "3.2.1", t),
17781
+ }), "PUBLIC" /* PUBLIC */)), registerVersion(S, "3.3.0-2021108175111", t),
17782
17782
  // BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
17783
- registerVersion(S, "3.2.1", "esm2017");
17783
+ registerVersion(S, "3.3.0-2021108175111", "esm2017");
17784
17784
  }();
17785
17785
 
17786
17786
  export { nh as AbstractUserDataWriter, Xa as Bytes, xa as CACHE_SIZE_UNLIMITED, Ra as CollectionReference, Ia as DocumentReference, Cu as DocumentSnapshot, Ja as FieldPath, Za as FieldValue, ka as Firestore, j as FirestoreError, tu as GeoPoint, Na as LoadBundleTask, Aa as Query, Fu as QueryConstraint, Nu as QueryDocumentSnapshot, xu as QuerySnapshot, Du as SnapshotMetadata, it as Timestamp, Ih as Transaction, rh as WriteBatch, ha as _DatabaseId, Pt as _DocumentKey, G as _EmptyCredentialsProvider, ft as _FieldPath, ga as _cast, U as _debugAssert, wt as _isBase64Available, F as _logWarn, da as _validateIsNotUsedTogether, gh as addDoc, vh as arrayRemove, Ph as arrayUnion, qa as clearIndexedDbPersistence, ba as collection, Pa as collectionGroup, Ea as connectFirestoreEmulator, mh as deleteDoc, Rh as deleteField, Qa as disableNetwork, va as doc, Ya as documentId, La as enableIndexedDbPersistence, Ba as enableMultiTabIndexedDbPersistence, ja as enableNetwork, Yu as endAt, Ju as endBefore, Fa as ensureFirestoreConfigured, Th as executeWrite, ch as getDoc, uh as getDocFromCache, hh as getDocFromServer, lh as getDocs, fh as getDocsFromCache, dh as getDocsFromServer, Oa as getFirestore, Vh as increment, $a as initializeFirestore, ju as limit, Qu as limitToLast, Ga as loadBundle, za as namedQuery, yh as onSnapshot, ph as onSnapshotsInSync, qu as orderBy, Mu as query, Sa as queryEqual, Va as refEqual, Ah as runTransaction, bh as serverTimestamp, wh as setDoc, k as setLogLevel, $u as snapshotEqual, zu as startAfter, Gu as startAt, Wa as terminate, _h as updateDoc, Ka as waitForPendingWrites, Bu as where, Sh as writeBatch };