@watchtowerobservability/next 0.1.0 → 0.1.1
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 +4 -0
- package/README.md +5 -1
- package/package.json +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.1 (2026-11-16)
|
|
4
|
+
|
|
5
|
+
- Needs `@watchtowerobservability/node` 0.7.9 or later: `withWatchtower` standalone builds work under pnpm and in monorepos (each OpenTelemetry peer is traced with its own dependencies), and `wt-next-doctor` checks that each peer loads. See the node SDK changelog.
|
|
6
|
+
|
|
3
7
|
## 0.1.0 (2026-11-15)
|
|
4
8
|
|
|
5
9
|
- First release. `register()` / `onRequestError` for `instrumentation.ts` that are safe in the edge compile (export conditions `edge-light`, `worker`, `browser` resolve a no-op entry; the node SDK is imported only behind `NEXT_RUNTIME === 'nodejs'`); `/config` (`withWatchtower`: standalone tracing, externals, release, source map upload); `/tunnel` (`tunnelHandler` with Origin forwarding and `allowKey`); `/rum` (`<WatchtowerRUM>` with Cookie Munch consent and app router tracking).
|
package/README.md
CHANGED
|
@@ -4,7 +4,11 @@ Watchtower for Next.js (app router, `output: 'standalone'`). Peers: `@watchtower
|
|
|
4
4
|
|
|
5
5
|
```ts
|
|
6
6
|
// instrumentation.ts: safe in the edge compile; the node SDK loads only on the Node.js runtime (WT_INGEST_KEY)
|
|
7
|
+
// One file, no `instrumentation.node.ts` split: the edge-light/worker export conditions resolve a no-op there.
|
|
7
8
|
export { register, onRequestError } from '@watchtowerobservability/next';
|
|
9
|
+
// with options instead of the line above:
|
|
10
|
+
// import { register as wt } from '@watchtowerobservability/next';
|
|
11
|
+
// export const register = () => wt({ redact: 'pii' });
|
|
8
12
|
```
|
|
9
13
|
|
|
10
14
|
```js
|
|
@@ -19,7 +23,7 @@ export default withWatchtower(nextConfig, { sourcemaps: { upload: true, deleteAf
|
|
|
19
23
|
import { WatchtowerRUM } from '@watchtowerobservability/next/rum';
|
|
20
24
|
<WatchtowerRUM rumKey={process.env.NEXT_PUBLIC_WT_KEY!} /> // consent="cookiemunch" (default) | "pending" | "granted"
|
|
21
25
|
```
|
|
22
|
-
It starts the browser SDK once (endpoint `/api/wt`, the tunnel), follows Cookie Munch consent and reports app router route patterns.
|
|
26
|
+
It starts the browser SDK once (endpoint `/api/wt`, the tunnel; `release` defaults to `NEXT_PUBLIC_WT_RELEASE`, which `withWatchtower` sets from `WT_RELEASE` or the CI git sha), follows Cookie Munch consent and reports app router route patterns.
|
|
23
27
|
|
|
24
28
|
```ts
|
|
25
29
|
// app/api/wt/[...path]/route.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@watchtowerobservability/next",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/watchtowerobservability/watchtower-next.git"
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@watchtowerobservability/browser": ">=0.5.5",
|
|
43
|
-
"@watchtowerobservability/node": ">=0.7.
|
|
43
|
+
"@watchtowerobservability/node": ">=0.7.9",
|
|
44
44
|
"next": ">=14",
|
|
45
45
|
"react": ">=18"
|
|
46
46
|
},
|
|
@@ -71,6 +71,8 @@
|
|
|
71
71
|
"@types/react": "18.3.12",
|
|
72
72
|
"@types/react-dom": "^18.3.1",
|
|
73
73
|
"@typescript/native-preview": "7.0.0-dev.20260707.2",
|
|
74
|
+
"@watchtowerobservability/browser": "0.5.8",
|
|
75
|
+
"@watchtowerobservability/node": "0.7.9",
|
|
74
76
|
"happy-dom": "21.0.4",
|
|
75
77
|
"next": "15.5.6",
|
|
76
78
|
"react": "18.3.1",
|