-
Notifications
You must be signed in to change notification settings - Fork 993
Firestore: QoL improvements for converters #5268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 21 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
f5a00fc
WIP: working NestedParial and WithFieldValue
e87b617
add support for TypedUpdateData + sanity tests
fdd432a
add support for WriteBatch and Transaction
01e1529
incremental fixes
1d48049
fix exports/imports for exp and lite
de10404
Merge branch 'master' into bc/types
d2df5e8
Fix docs and imports
21cc4bf
Fixing imports
c5bb26f
move ts-lint
c2e0e38
add comments and skip test
479b6bb
trying fei's rollup hack
1ffaad2
allow skip
eb7d26c
merge and rename
b0568bb
revert rollup changes
826fff2
add integration tests
d94b0f4
Merge branch 'master' into bc/types
0b620ca
revert auth-exp lint
da10a15
resolve comments
cf41539
move helpers types to separate file
a2df21b
add changeset
c11e067
update comments and changeset
706c060
some comment changes
a8123d8
Update API reports
thebrianchen f9d4b3e
fix addDoc test
416850e
Merge branch 'bc/types' of github.com:firebase/firebase-js-sdk into b…
5a175a4
update comments
635c9e3
Merge branch 'master' into bc/types
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| --- | ||
| 'firebase': major | ||
| '@firebase/firestore': major | ||
| --- | ||
|
|
||
| This change contains multiple quality-of-life improvements when using the `FirestoreDataConverter` in `@firebase/firestore/lite` and `@firebase/firestore/exp`: | ||
| - Support for passing in `FieldValue` property values when using a converter (via `WithFieldValue<T>` and `PartialWithFieldValue<T>`). | ||
| - Support for omitting properties in nested fields when performing a set operation with `{merge: true}` with a converter (via `PartialWithFieldValue<T>`). | ||
| - [breaking] Support for typed update operations when using a converter (via the newly typed `UpdateData`). Improperly typed fields in | ||
| update operations on typed document references will no longer compile. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,7 +22,7 @@ import { _FirebaseNamespace } from '@firebase/app-types/private'; | |
| import { Component, ComponentType } from '@firebase/component'; | ||
|
|
||
| import { | ||
| FirebaseFirestore, | ||
| Firestore as FirebaseFirestore, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Intentional?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes. Not sure how this worked in the past, since |
||
| CACHE_SIZE_UNLIMITED, | ||
| GeoPoint, | ||
| Timestamp | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.