Skip to content
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

fix: Removing FirebaseServiceInterface and FirebaseServiceInternalsInterface #1128

Merged
merged 3 commits into from
Jan 11, 2021

Conversation

hiranya911
Copy link
Contributor

As a first step towards modularization I'm removing the above 2 internal interfaces. Classes like Auth and RemoteConfig will no longer have to explicitly implement FirebaseServiceInterface or implement a placeholder "Internals" class to support state tear down at app delete. Classes like DatabaseService that has internal state that should be cleaned up can simply implement a delete() method. The FirebaseApp class will look for this method and call it if available during app delete.

At the same time I'm also removing some old, unused code for registering (via monkey patch) services with FirebaseNamespace and calling app hooks. Both these functions haven't been used for quite some time, and now that we are looking at modularization, they won't be useful in the future either.

src/firebase-app.ts Show resolved Hide resolved
@bojeil-google bojeil-google removed their assignment Jan 8, 2021
Copy link
Member

@lahirumaramba lahirumaramba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@hiranya911 hiranya911 merged commit 2f6da89 into master Jan 11, 2021
@hiranya911 hiranya911 deleted the hkj-firebase-service branch January 11, 2021 20:24
BorntraegerMarc pushed a commit to BorntraegerMarc/firebase-admin-node that referenced this pull request Jan 28, 2021
…terface (firebase#1128)

* fix: Removing FirebaseService and FirebaseServiceInterface internal APIs

* chore: Added unit tests for service caching behavior

* fix: Using equal instead of deep.equal for reference tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants