Commit 794433e
committed
ref(browser): Restructure browser-utils by domain
Reorganize browser-utils/src away from the catch-all metrics/ folder into
clear domains:
- instrumentation/ for event-source hooks (dom, history, location, xhr) plus
the PerformanceObserver layer, renamed from metrics/instrument.ts to
instrumentation/performanceObserver.ts to stop colliding with the folder
- web-vitals/ for web-vital tracking, spans, inp, lcp, reportEvents, and the
browser helpers merged into a single utils.ts
- performance/ for generic performance-entry enrichment: entries, element/
user/resource timing, and shared utils
browserMetrics.ts is split into web-vitals/tracking.ts and performance/
entries.ts, and utils.ts into web-vitals/reportEvents.ts and performance/
utils.ts. Public API (index.ts re-exports) is unchanged; only internal paths
and the test tree move.1 parent 43daa35 commit 794433e
34 files changed
Lines changed: 475 additions & 567 deletions
File tree
- packages/browser-utils
- src
- instrumentation
- metrics/web-vitals-helpers
- performance
- web-vitals
- test
- browser
- instrumentation
- performance
- web-vitals
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
15 | 18 | | |
16 | 19 | | |
17 | 20 | | |
18 | | - | |
| 21 | + | |
19 | 22 | | |
20 | 23 | | |
21 | | - | |
| 24 | + | |
22 | 25 | | |
23 | | - | |
| 26 | + | |
24 | 27 | | |
25 | | - | |
| 28 | + | |
26 | 29 | | |
27 | | - | |
| 30 | + | |
28 | 31 | | |
29 | | - | |
| 32 | + | |
30 | 33 | | |
31 | | - | |
| 34 | + | |
32 | 35 | | |
33 | | - | |
| 36 | + | |
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
37 | | - | |
| 40 | + | |
38 | 41 | | |
39 | 42 | | |
40 | 43 | | |
41 | | - | |
| 44 | + | |
42 | 45 | | |
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
46 | 49 | | |
47 | | - | |
| 50 | + | |
48 | 51 | | |
49 | 52 | | |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 0 additions & 22 deletions
This file was deleted.
Lines changed: 0 additions & 38 deletions
This file was deleted.
Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 0 additions & 42 deletions
This file was deleted.
0 commit comments