Skip to content

Commit e87b47c

Browse files
authored
Passing Admin SDK version to RTDB client (#212)
* Passing Admin SDK version to RTDB client * Using the latest RTDB code * Updated changelog
1 parent f66ee3c commit e87b47c

File tree

4 files changed

+39
-20
lines changed

4 files changed

+39
-20
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Unreleased
22

3-
-
3+
- [changed] Upgraded Realtime Database client to v0.1.11.
4+
- [changed] Modified the Realtime Database client integration to report the
5+
correct user agent header.
46

57
# v5.9.0
68

package-lock.json

Lines changed: 32 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@
4949
],
5050
"types": "./lib/index.d.ts",
5151
"dependencies": {
52-
"@firebase/app": "^0.1.1",
53-
"@firebase/database": "^0.1.3",
52+
"@firebase/app": "^0.1.10",
53+
"@firebase/database": "^0.1.11",
5454
"@google-cloud/firestore": "^0.11.2",
5555
"@google-cloud/storage": "^1.6.0",
5656
"@types/google-cloud__storage": "^1.1.7",

src/database/database.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ export class DatabaseService implements FirebaseServiceInterface {
6666
let db: Database = this.INTERNAL.databases[dbUrl];
6767
if (typeof db === 'undefined') {
6868
const rtdb = require('@firebase/database');
69-
db = rtdb.initStandalone(this.appInternal, dbUrl).instance;
69+
const { version } = require('../../package.json');
70+
db = rtdb.initStandalone(this.appInternal, dbUrl, version).instance;
7071
this.INTERNAL.databases[dbUrl] = db;
7172
}
7273
return db;

0 commit comments

Comments
 (0)