web-manager 4.1.29 → 4.1.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/index.js +2 -2
- package/dist/modules/firestore.js +1 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -14,6 +14,19 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|
|
14
14
|
- `Fixed` for any bug fixes.
|
|
15
15
|
- `Security` in case of vulnerabilities.
|
|
16
16
|
|
|
17
|
+
---
|
|
18
|
+
## [4.1.31] - 2026-03-24
|
|
19
|
+
### Changed
|
|
20
|
+
- Switched from `getFirestore` to `initializeFirestore` in `index.js` to support custom Firestore configuration options.
|
|
21
|
+
- Removed redundant `getFirestore` from firestore module's stored methods since the instance is already initialized in `index.js`.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
## [4.1.30] - 2026-03-20
|
|
25
|
+
### Changed
|
|
26
|
+
- Bumped `@sentry/browser` from `^10.43.0` to `^10.45.0`.
|
|
27
|
+
- Bumped `chatsy` from `^2.0.9` to `^2.0.11`.
|
|
28
|
+
- Bumped `firebase` from `^12.10.0` to `^12.11.0`.
|
|
29
|
+
|
|
17
30
|
---
|
|
18
31
|
## [4.1.29] - 2026-03-19
|
|
19
32
|
### Changed
|
package/dist/index.js
CHANGED
|
@@ -391,7 +391,7 @@ class Manager {
|
|
|
391
391
|
// Dynamically import Firebase v12
|
|
392
392
|
const { initializeApp } = await import('firebase/app');
|
|
393
393
|
const { getAuth, onAuthStateChanged } = await import('firebase/auth');
|
|
394
|
-
const {
|
|
394
|
+
const { initializeFirestore } = await import('firebase/firestore');
|
|
395
395
|
const { getMessaging } = await import('firebase/messaging');
|
|
396
396
|
|
|
397
397
|
// If we're in devmode, set the firebase config authDomain to the current host
|
|
@@ -405,7 +405,7 @@ class Manager {
|
|
|
405
405
|
// Store Firebase references
|
|
406
406
|
this._firebaseApp = app;
|
|
407
407
|
this._firebaseAuth = getAuth(app);
|
|
408
|
-
this._firebaseFirestore =
|
|
408
|
+
this._firebaseFirestore = initializeFirestore(app, {});
|
|
409
409
|
|
|
410
410
|
// Only initialize messaging if service workers are supported
|
|
411
411
|
if ('serviceWorker' in navigator) {
|
|
@@ -30,7 +30,6 @@ class Firestore {
|
|
|
30
30
|
|
|
31
31
|
// Store references for later use
|
|
32
32
|
this._firestoreMethods = {
|
|
33
|
-
getFirestore,
|
|
34
33
|
doc: firestoreDoc,
|
|
35
34
|
collection: firestoreCollection,
|
|
36
35
|
getDoc,
|
|
@@ -47,7 +46,7 @@ class Firestore {
|
|
|
47
46
|
onSnapshot,
|
|
48
47
|
};
|
|
49
48
|
|
|
50
|
-
//
|
|
49
|
+
// Reuse the Firestore instance already initialized in index.js
|
|
51
50
|
this._db = getFirestore(this.manager._firebaseApp);
|
|
52
51
|
|
|
53
52
|
// Connect to Firestore emulator in development
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "web-manager",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.31",
|
|
4
4
|
"description": "Easily access important variables such as the query string, current domain, and current page in a single object.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "src/index.js",
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"@sentry/browser": "Resolved by using OVERRIDES in web-manager (lighthouse is the issue"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@sentry/browser": "^10.
|
|
47
|
-
"chatsy": "^2.0.
|
|
48
|
-
"firebase": "^12.
|
|
46
|
+
"@sentry/browser": "^10.45.0",
|
|
47
|
+
"chatsy": "^2.0.11",
|
|
48
|
+
"firebase": "^12.11.0",
|
|
49
49
|
"itwcw-package-analytics": "^1.0.8",
|
|
50
50
|
"lodash": "^4.17.23"
|
|
51
51
|
},
|