web-manager 4.1.33 → 4.1.35
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 +7 -0
- package/CLAUDE.md +8 -4
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -14,6 +14,13 @@ 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.34] - 2026-04-01
|
|
19
|
+
### Changed
|
|
20
|
+
- Bumped `@sentry/browser` from `^10.46.0` to `^10.47.0`.
|
|
21
|
+
- Bumped `lodash` from `^4.17.23` to `^4.18.1`.
|
|
22
|
+
- Improved CLAUDE.md singleton pattern documentation with clearer usage examples and explicit anti-patterns.
|
|
23
|
+
|
|
17
24
|
---
|
|
18
25
|
## [4.1.31] - 2026-03-24
|
|
19
26
|
### Changed
|
package/CLAUDE.md
CHANGED
|
@@ -16,12 +16,16 @@ This document helps AI agents understand the web-manager codebase for effective
|
|
|
16
16
|
## Architecture
|
|
17
17
|
|
|
18
18
|
### Singleton Pattern
|
|
19
|
-
The library exports a singleton `Manager` instance:
|
|
19
|
+
The library exports a singleton `Manager` instance. Import it directly from any file — it's always the same initialized instance:
|
|
20
20
|
```javascript
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
import webManager from 'web-manager';
|
|
22
|
+
|
|
23
|
+
// Same instance everywhere — config, auth, firestore, all ready
|
|
24
|
+
webManager.auth().listen((state) => { ... });
|
|
25
|
+
webManager.utilities().escapeHTML(untrustedText);
|
|
26
|
+
webManager.config.environment; // 'development' or 'production'
|
|
24
27
|
```
|
|
28
|
+
**Do NOT create new instances** (`new Manager()`). UJM and BXM initialize the singleton — every import gets that same object. Do NOT pass `webManager` through function params or store it in module-level variables — just import it.
|
|
25
29
|
|
|
26
30
|
### Directory Structure
|
|
27
31
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "web-manager",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.35",
|
|
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,11 +43,11 @@
|
|
|
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.
|
|
46
|
+
"@sentry/browser": "^10.47.0",
|
|
47
|
+
"chatsy": "^2.0.14",
|
|
48
48
|
"firebase": "^12.11.0",
|
|
49
49
|
"itwcw-package-analytics": "^1.0.8",
|
|
50
|
-
"lodash": "^4.
|
|
50
|
+
"lodash": "^4.18.1"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"mocha": "^11.7.5",
|