@cnv-vn/track 0.3.0-beta.2 → 0.3.0-beta.20

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # cnv-track.js
2
2
 
3
- > Lightweight, async-first web analytics tracker — **41,7 KB gzipped** (trần 50 KB).
3
+ > Lightweight, async-first web analytics tracker — **50,2 KB gzipped** (trần 60 KB).
4
4
 
5
5
  `cnv-track.js` là Web JS SDK của hệ thống tracking CNV, có vai trò tương đương
6
6
  Google Analytics / Facebook Pixel: nhúng một dòng `<script>` vào website
@@ -101,7 +101,7 @@ Schema mirror nguyên `com.cnv.tracking.dto.SegmentMessage` Java DTO
101
101
  | File | Format | Mục đích |
102
102
  | ------------------------ | :----: | --------------------------------------- |
103
103
  | `dist/cnv-track.js` | IIFE | Debug build, có sourcemap |
104
- | `dist/cnv-track.min.js` | IIFE | **CDN target** — 41,7 KB gz, trần 50 KB |
104
+ | `dist/cnv-track.min.js` | IIFE | **CDN target** — 50,2 KB gz, trần 60 KB |
105
105
  | `dist/cnv-track.esm.js` | ESM | Cho Webpack / Vite / Rollup consumers |
106
106
  | `dist/cnv-track.umd.cjs` | UMD | Legacy CommonJS / AMD / RequireJS |
107
107
  | `dist/types/index.d.ts` | .d.ts | Bundled type declarations |
@@ -264,7 +264,7 @@ cap 100 event, evict batch cũ nhất khi đầy; mọi thao tác storage đều
264
264
  | ------------------------ | ------------------------------------------------------------------- |
265
265
  | Unit test (Sub-task 5.1) | **600 test / 21 file** (Vitest) |
266
266
  | Crash-proof (5.2) | Silent-fail xuyên suốt + `silentFail.test.ts` (môi trường thù địch) |
267
- | Bundle (5.3) | IIFE **41,7 KB gzipped** / 50 KB budget (`size-limit` CI gate) |
267
+ | Bundle (5.3) | IIFE **50,2 KB gzipped** / 60 KB budget (`size-limit` CI gate) |
268
268
  | Async load (5.3) | Snippet `async`+`defer`+`insertBefore` → zero-blocking, CLS = 0 |
269
269
  | Cross-browser (5.3) | Chrome / Edge / Firefox / Safari (ITP) — đủ chuỗi fallback |
270
270