@pl4yzonellc/empire-analytics 0.0.2
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 +28 -0
- package/LICENSE +21 -0
- package/README.md +744 -0
- package/dist/chunk-J5GXHJNU.js +1105 -0
- package/dist/chunk-J5GXHJNU.js.map +1 -0
- package/dist/index.d.ts +200 -0
- package/dist/index.js +117 -0
- package/dist/index.js.map +1 -0
- package/dist/testing/index.d.ts +91 -0
- package/dist/testing/index.js +108 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/types-Bzaq1v4t.d.ts +507 -0
- package/package.json +97 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to `@pl4yzonellc/empire-analytics` are documented here.
|
|
4
|
+
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
5
|
+
|
|
6
|
+
## [0.0.1] - 2026-09-08
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
|
|
10
|
+
- Initial release.
|
|
11
|
+
- Framework-independent `AnalyticsClient` (`initialize`, `track`, `pageView`, `isEnabled`,
|
|
12
|
+
`setEnabled`, `getState`, `destroy`) plus a shared `analytics` singleton and
|
|
13
|
+
`createAnalyticsClient()` factory.
|
|
14
|
+
- Strongly typed event system: `BaseAnalyticsEventMap` catalog (common, lead-generation,
|
|
15
|
+
authentication, ecommerce, engagement) and app extension via module augmentation of
|
|
16
|
+
`AnalyticsEventMap`.
|
|
17
|
+
- Provider abstraction (`AnalyticsAdapter`) with a `PlausibleAdapter`, a `ConsoleAdapter`,
|
|
18
|
+
and support for `provider: 'custom'` adapters.
|
|
19
|
+
- Plausible adapter supports two runtimes via `plausible.mode`: `'cdn'` (hosted script,
|
|
20
|
+
default) and `'package'` (the official `@plausible-analytics/tracker`, an optional peer
|
|
21
|
+
dependency loaded via lazy `import()` — no remote script, no `window.plausible`).
|
|
22
|
+
- Privacy / sanitization layer: always-blocked sensitive keys, optionally-blocked PII,
|
|
23
|
+
value sanitization (functions, symbols, circular refs, depth/size caps), and
|
|
24
|
+
`AnalyticsPrivacyError`.
|
|
25
|
+
- React 19 bindings: `AnalyticsProvider`, `useAnalytics`, `useTrackEvent`, `Track`.
|
|
26
|
+
- Environment-aware enable/disable defaults and debug logging.
|
|
27
|
+
- Test utilities exported from `@pl4yzonellc/empire-analytics/testing`
|
|
28
|
+
(`createMockAnalyticsClient`, `createTestAnalyticsClient`, `MemoryAdapter`).
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 pl4yzonellc
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|