-
Notifications
You must be signed in to change notification settings - Fork 938
Compat and @exp class for DataSnapshot #4686
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
Conversation
|
cc8ff0e
to
a84fde9
Compare
a84fde9
to
6c80894
Compare
import { Reference } from './Reference'; | ||
import { child, Reference } from './Reference'; | ||
import { Node } from '../core/snap/Node'; | ||
import { Index } from '../core/snap/indexes'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is breaking the build because I think it wants indexes/Index
and I guess this shortcut works if a file is named index
but I think it might be case sensitive. Didn't go through the rest of the PR yet, just wanted to put in this comment first because I think it's what's breaking the build.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Fixed this and the tests are passing. I can't come up with a better name for this file, otherwise I would have changed it long ago.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LG other than the build issue (see previous comment).
Binary Size ReportAffected SDKs
Test Logs |
Size Analysis Report |
* Add database@exp API (#4614) * Compat and @exp class for DataSnapshot (#4686) * Add events to database@exp (#4694) * Compat and @exp class for Database (#4705) * Implement Query Compat and query@exp (#4709) * Compat class for Reference (#4719) * OnDisconnect Compat (#4727) * ServerValues compat (#4728) * EnableLogging Compat (#4730) * Remove argument numbers from validation (#4729) * Update changeset * Add database@exp API docs (#4738) * Add Support for API report (#4741) * Update lets-go-travel.md * Update enableLogging
* Add database@exp API (#4614) * Compat and @exp class for DataSnapshot (#4686) * Add events to database@exp (#4694) * Compat and @exp class for Database (#4705) * Implement Query Compat and query@exp (#4709) * Compat class for Reference (#4719) * OnDisconnect Compat (#4727) * ServerValues compat (#4728) * EnableLogging Compat (#4730) * Remove argument numbers from validation (#4729) * Update changeset * Add database@exp API docs (#4738) * Add Support for API report (#4741) * pacakge database compat * export child as a public API * address comments * create database-compat dir * create overloads for database-compat * build database * add database-compat to firebase-exp * fix lint errors * include compat in build * fix typing errors * fix script name * make database types compatible * use modular instance Co-authored-by: Sebastian Schmidt <[email protected]>
This PR creates the Compat class for DataSnapshot, and also adds the
@exp
class at the same time (mostly by moving code).There are a bunch of seemingly unrelated changes, but most of them are meant to remove internal references to the old legacy DataSnapshot from
/core
.The next step would be to do this same change for Reference, since I only converted the code paths that I needed for the conversion.
One extra thing: The current SDK accepts numbers and string in some places for child keys, but this is not documented. I dropped accepting numbers for now.