Skip to content

Commit 4e57cac

Browse files
committed
set correct version for firestore compat
1 parent 9cea678 commit 4e57cac

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

packages/firestore/compat/index.node.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,15 @@ import { Firestore, IndexedDbPersistenceProvider } from '../src/api/database';
2424
import { registerBundle } from './bundle';
2525
import { configureForFirebase } from './config';
2626
import { name, version } from './package.json';
27+
import { version as SDK_VERSION } from '../../../packages-exp/firebase-exp/package.json';
28+
import { setSDKVersion } from '../src/core/version';
2729

2830
/**
2931
* Registers the main Firestore Node build with the components framework.
3032
* Persistence can be enabled via `firebase.firestore().enablePersistence()`.
3133
*/
3234
export function registerFirestore(instance: FirebaseNamespace): void {
35+
setSDKVersion(SDK_VERSION);
3336
configureForFirebase(
3437
instance,
3538
(app, firestoreExp) =>

packages/firestore/compat/index.rn.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,14 @@ import { Firestore, IndexedDbPersistenceProvider } from '../src/api/database';
2424
import { registerBundle } from './bundle';
2525
import { configureForFirebase } from './config';
2626
import { name, version } from './package.json';
27-
27+
import { version as SDK_VERSION } from '../../../packages-exp/firebase-exp/package.json';
28+
import { setSDKVersion } from '../src/core/version';
2829
/**
2930
* Registers the main Firestore ReactNative build with the components framework.
3031
* Persistence can be enabled via `firebase.firestore().enablePersistence()`.
3132
*/
3233
export function registerFirestore(instance: FirebaseNamespace): void {
34+
setSDKVersion(version);
3335
configureForFirebase(
3436
instance,
3537
(app, firestoreExp) =>

packages/firestore/compat/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,16 @@ import { Firestore, IndexedDbPersistenceProvider } from '../src/api/database';
2525
import { registerBundle } from './bundle';
2626
import { configureForFirebase } from './config';
2727
import { name, version } from './package.json';
28-
28+
import { version as SDK_VERSION } from '../../../packages-exp/firebase-exp/package.json';
2929
import '../register-module';
30+
import { setSDKVersion } from '../src/core/version';
3031

3132
/**
3233
* Registers the main Firestore build with the components framework.
3334
* Persistence can be enabled via `firebase.firestore().enablePersistence()`.
3435
*/
3536
export function registerFirestore(instance: FirebaseNamespace): void {
37+
setSDKVersion(SDK_VERSION);
3638
configureForFirebase(
3739
instance,
3840
(app, firestoreExp) =>

0 commit comments

Comments
 (0)