Skip to content

Commit

Permalink
Address PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
tohhsinpei committed Nov 10, 2022
1 parent a20a324 commit bb3c4ed
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changeset/empty-doors-brush.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@firebase/database': patch
'@firebase/database-compat': patch
---

Use new wire protocol parameters for startAfter, endBefore.
6 changes: 4 additions & 2 deletions scripts/emulator-testing/emulators/database-emulator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,18 @@ import { Emulator } from './emulator';

import rulesJSON from '../../../config/database.rules.json';

const DATABASE_EMULATOR_VERSION = '4.11.0';

export class DatabaseEmulator extends Emulator {
namespace: string;

constructor(port = 8088, namespace = 'test-emulator') {
super(
'firebase-database-emulator-v4.11.0.jar',
`firebase-database-emulator-v${DATABASE_EMULATOR_VERSION}.jar`,
// Use locked version of emulator for test to be deterministic.
// The latest version can be found from database emulator doc:
// https://firebase.google.com/docs/database/security/test-rules-emulator
'https://storage.googleapis.com/firebase-preview-drop/emulator/firebase-database-emulator-v4.11.0.jar',
`https://storage.googleapis.com/firebase-preview-drop/emulator/firebase-database-emulator-v${DATABASE_EMULATOR_VERSION}.jar`,
port
);
this.namespace = namespace;
Expand Down

0 comments on commit bb3c4ed

Please sign in to comment.