@libo11y/rum-tanstack-router 0.4.0 → 0.7.0
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 +12 -17
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# @libo11y/rum-tanstack-router
|
|
2
2
|
|
|
3
3
|
TanStack Router adapter for
|
|
4
|
-
[`@libo11y/rum`](https://github.com/
|
|
4
|
+
[`@libo11y/rum`](https://github.com/libo11y/libo11y/tree/main/ts/packages/rum).
|
|
5
5
|
It names RUM views by route template, such as `/documents/$docId`, never by
|
|
6
6
|
the URL, and times each soft navigation from its start until the first
|
|
7
7
|
paint after the new route rendered.
|
|
@@ -18,17 +18,10 @@ Its tests run against `@tanstack/router-core` 1.171 and
|
|
|
18
18
|
|
|
19
19
|
## Status
|
|
20
20
|
|
|
21
|
-
The package first ships in `ts/v0.3.0`,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
[`ts/v0.
|
|
25
|
-
whose notes list the exact URLs:
|
|
26
|
-
|
|
27
|
-
```sh
|
|
28
|
-
npm install \
|
|
29
|
-
https://github.com/jamesainslie/libo11y/releases/download/ts/v0.4.0/libo11y-rum-0.4.0.tgz \
|
|
30
|
-
https://github.com/jamesainslie/libo11y/releases/download/ts/v0.4.0/libo11y-rum-tanstack-router-0.4.0.tgz
|
|
31
|
-
```
|
|
21
|
+
The package first ships in `ts/v0.3.0`, releases with `@libo11y/rum` at
|
|
22
|
+
the same version, and is published on npm at `0.7.0` (also attached as a
|
|
23
|
+
tarball to the
|
|
24
|
+
[`ts/v0.7.0` GitHub Release](https://github.com/libo11y/libo11y/releases/tag/ts/v0.7.0)).
|
|
32
25
|
|
|
33
26
|
## Usage
|
|
34
27
|
|
|
@@ -74,13 +67,15 @@ instrumentTanStackRouter(router, telemetry.rum);
|
|
|
74
67
|
|
|
75
68
|
A soft view starts under RUM's default name, the path with ID-like
|
|
76
69
|
segments as `$id`, and takes its route template when the navigation
|
|
77
|
-
resolved.
|
|
78
|
-
|
|
70
|
+
resolved. RUM renames the view's breadcrumb once the route template is
|
|
71
|
+
known.
|
|
79
72
|
|
|
80
73
|
Nothing is recorded while consent is not granted. When consent is granted
|
|
81
|
-
after the router rendered
|
|
82
|
-
|
|
83
|
-
|
|
74
|
+
after the router rendered and the browser is still on that path, RUM
|
|
75
|
+
applies the router's saved route name and render time to the view it
|
|
76
|
+
starts then. If the path changed before consent was granted, that view
|
|
77
|
+
keeps its default name and ends at its 10 second cap, and the next
|
|
78
|
+
navigation is named and timed as usual.
|
|
84
79
|
|
|
85
80
|
## View names
|
|
86
81
|
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** The `@libo11y/rum-tanstack-router` package version. scripts/release.ts keeps it equal to package.json. */
|
|
2
|
-
export declare const VERSION = "0.
|
|
2
|
+
export declare const VERSION = "0.7.0";
|
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** The `@libo11y/rum-tanstack-router` package version. scripts/release.ts keeps it equal to package.json. */
|
|
2
|
-
export const VERSION = "0.
|
|
2
|
+
export const VERSION = "0.7.0";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libo11y/rum-tanstack-router",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "TanStack Router adapter for @libo11y/rum: names views by route template and times soft navigations to the first paint after the new route rendered.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
},
|
|
14
14
|
"repository": {
|
|
15
15
|
"type": "git",
|
|
16
|
-
"url": "git+https://github.com/
|
|
16
|
+
"url": "git+https://github.com/libo11y/libo11y.git",
|
|
17
17
|
"directory": "ts/packages/rum-tanstack-router"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"@libo11y/rum": "0.
|
|
20
|
+
"@libo11y/rum": "0.7.0",
|
|
21
21
|
"@tanstack/router-core": "^1.170.0"
|
|
22
22
|
},
|
|
23
23
|
"peerDependenciesMeta": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@libo11y/rum": "0.
|
|
29
|
+
"@libo11y/rum": "0.7.0",
|
|
30
30
|
"@tanstack/history": "1.162.5",
|
|
31
31
|
"@tanstack/react-router": "1.170.46",
|
|
32
32
|
"@tanstack/router-core": "1.171.39",
|