Skip to content

Add events to database@exp #4694

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 2 commits into from
Apr 2, 2021
Merged

Conversation

schmidt-sebastian
Copy link
Contributor

@schmidt-sebastian schmidt-sebastian commented Mar 31, 2021

This adds support for onValue/onChildAdded/off and related methods to database@exp.

Things to note:

  • I replaced all internal references to Query with QueryContext.
  • I moved a bunch of classes around to avoid circular reference issues (DataSnapshot, Reference and Query)
  • I had to add support for the full off method to database@exp as I am otherwise not able to implement the Compat layer without tracking additional state and replicating some of the existing functionality in the SDK.

@changeset-bot
Copy link

changeset-bot bot commented Mar 31, 2021

⚠️ No Changeset found

Latest commit: 038dea4

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@schmidt-sebastian schmidt-sebastian changed the title Mrschmidt/onvalue Add events to database@exp Mar 31, 2021
@schmidt-sebastian schmidt-sebastian marked this pull request as ready for review March 31, 2021 19:47
@schmidt-sebastian schmidt-sebastian requested a review from jsdt as a code owner March 31, 2021 19:47
@google-oss-bot
Copy link
Contributor

Size Analysis Report

Affected Products

Diffs between base commit (4d5906f) and head commit (84a30f8) are too large (474,633 characters) to display.

Please check below links to see details from the original test log.

@schmidt-sebastian schmidt-sebastian merged commit f4410b7 into database-exp-master Apr 2, 2021
@schmidt-sebastian schmidt-sebastian deleted the mrschmidt/onvalue branch April 2, 2021 21:26
Feiyang1 pushed a commit that referenced this pull request Apr 8, 2021
* 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
Feiyang1 added a commit that referenced this pull request Apr 8, 2021
* 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]>
@firebase firebase locked and limited conversation to collaborators May 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants