Skip to content

Commit 1a5b37e

Browse files
leomp12claude
andcommitted
fix!: restore setup() signature (dbFilename, disableUpdates, firestoreDb)
Reverts the breaking signature change introduced in 2.0.0. Apps were calling setup(null, false, firestoreDb) — the old contract must be preserved. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 847b223 commit 1a5b37e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ let client, setup
4545
// handle new promise
4646
const promise = new Promise((resolve, reject) => {
4747
// setup database and table
48-
setup = (firestoreDb, disableUpdates) => {
48+
// eslint-disable-next-line no-unused-vars
49+
setup = (dbFilename, disableUpdates, firestoreDb) => {
4950
const table = 'ecomplus_app_auth'
5051

5152
// setup instance client object
@@ -63,7 +64,6 @@ const promise = new Promise((resolve, reject) => {
6364
debug('Starting E-Com Plus App SDK with Firestore')
6465
}
6566

66-
// Firestore client is supposed to be ready
6767
// collectionReference as db
6868
client.db = client.collRef = firestoreDb.collection(table)
6969

0 commit comments

Comments
 (0)