Skip to content

Commit 706c060

Browse files
author
Brian Chen
committed
some comment changes
1 parent c11e067 commit 706c060

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

.changeset/dirty-pandas-pay.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
'@firebase/firestore': major
44
---
55

6-
This change contains multiple quality-of-life improvements when using the `FirestoreDataConverter` in `@firebase/firestore/lite` and `@firebase/firestore/exp`:
6+
This change contains multiple quality-of-life improvements when using the `FirestoreDataConverter` in `@firebase/firestore/lite` and `@firebase/firestore`:
77
- Support for passing in `FieldValue` property values when using a converter (via `WithFieldValue<T>` and `PartialWithFieldValue<T>`).
88
- Support for omitting properties in nested fields when performing a set operation with `{merge: true}` with a converter (via `PartialWithFieldValue<T>`).
99
- [breaking] Support for typed update operations when using a converter (via the newly typed `UpdateData`). Improperly typed fields in

packages/firestore/src/lite/reference.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ export interface DocumentData {
5656
*/
5757
export type PartialWithFieldValue<T> = T extends Primitive
5858
? T
59-
: T extends Map<infer K, infer V>
60-
? Map<PartialWithFieldValue<K>, PartialWithFieldValue<V>>
6159
: T extends {}
6260
? { [K in keyof T]?: PartialWithFieldValue<T[K]> | FieldValue }
6361
: Partial<T>;

packages/firestore/test/lite/integration.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1286,7 +1286,7 @@ describe('withConverter() support', () => {
12861286

12871287
it('supports FieldValues', async () => {
12881288
return withTestDoc(async doc => {
1289-
const ref = doc.withConverter(testConverter);
1289+
const ref = doc.withConverter(testConverterMerge);
12901290

12911291
// Allow Field Values in nested partials.
12921292
await setDoc(
@@ -1317,7 +1317,7 @@ describe('withConverter() support', () => {
13171317

13181318
it('validates types in outer and inner fields', async () => {
13191319
return withTestDoc(async doc => {
1320-
const ref = doc.withConverter(testConverter);
1320+
const ref = doc.withConverter(testConverterMerge);
13211321

13221322
// Check top-level fields.
13231323
await setDoc(
@@ -1359,7 +1359,7 @@ describe('withConverter() support', () => {
13591359

13601360
it('checks for nonexistent properties', async () => {
13611361
return withTestDoc(async doc => {
1362-
const ref = doc.withConverter(testConverter);
1362+
const ref = doc.withConverter(testConverterMerge);
13631363
// Top-level property.
13641364
await setDoc(
13651365
ref,

0 commit comments

Comments
 (0)