@watchtowerobservability/next 0.1.1 → 0.1.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 CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.2 (2026-11-18)
4
+
5
+ - `@watchtowerobservability/next` is now the documented entry point: the README leads with it, `withWatchtower()` (from `/config`; `output: 'standalone'` is handled) and `npx wt-next-doctor` after `next build`. `@watchtowerobservability/node/next` and `/next-build` are deprecated in the node SDK 0.8.1 (still working), and `/config` now wraps `withWatchtower` / `uploadSourcemaps` instead of re-exporting them, so the node SDK's deprecation tags do not show on this package's exports. Works with node 0.7.9 or later; 0.8.1 adds the "loaded too late" warning, the startup status line and `WT_DEBUG`. `register`, `onRequestError` and the edge no-op are unchanged.
6
+
3
7
  ## 0.1.1 (2026-11-16)
4
8
 
5
9
  - 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.
package/README.md CHANGED
@@ -11,6 +11,8 @@ export { register, onRequestError } from '@watchtowerobservability/next';
11
11
  // export const register = () => wt({ redact: 'pii' });
12
12
  ```
13
13
 
14
+ This is the preferred entry point; `@watchtowerobservability/node/next` and `/next-build` are deprecated and still work. After `next build`, run `npx wt-next-doctor`: it checks that `.next/standalone` can load the SDK and each OpenTelemetry package, and exits 1 naming any that fail. `output: 'standalone'` is handled by `withWatchtower` (no `outputFileTracingIncludes` or `serverExternalPackages` of your own; npm, pnpm and monorepos).
15
+
14
16
  ```js
15
17
  // next.config.mjs: standalone works with no other config (node SDK + OpenTelemetry peers traced and externalized)
16
18
  import { withWatchtower } from '@watchtowerobservability/next/config';
package/dist/config.d.ts CHANGED
@@ -1,2 +1,6 @@
1
- export { withWatchtower, uploadSourcemaps } from "@watchtowerobservability/node/next-build";
1
+ import { uploadSourcemaps as upload, withWatchtower as wrap } from "@watchtowerobservability/node/next-build";
2
+ /** Next config wrapper: standalone tracing (`output: 'standalone'` works), externals, release, optional source map upload. */
3
+ export declare const withWatchtower: typeof wrap;
4
+ /** Upload `.next/static/**\/*.map`; the `wt-next-sourcemaps` bin does the same after `next build`. */
5
+ export declare const uploadSourcemaps: typeof upload;
2
6
  export type { WatchtowerNextOptions, SourcemapOptions } from "@watchtowerobservability/node/next-build";
package/dist/config.js CHANGED
@@ -1,2 +1,7 @@
1
1
  // next.config.mjs: import { withWatchtower } from '@watchtowerobservability/next/config';
2
- export { withWatchtower, uploadSourcemaps } from "@watchtowerobservability/node/next-build";
2
+ // Wrapped (not re-exported) so the node SDK's deprecation of its own /next-build entry does not show on these.
3
+ import { uploadSourcemaps as upload, withWatchtower as wrap } from "@watchtowerobservability/node/next-build";
4
+ /** Next config wrapper: standalone tracing (`output: 'standalone'` works), externals, release, optional source map upload. */
5
+ export const withWatchtower = (config, opts) => wrap(config, opts);
6
+ /** Upload `.next/static/**\/*.map`; the `wt-next-sourcemaps` bin does the same after `next build`. */
7
+ export const uploadSourcemaps = (o) => upload(o);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@watchtowerobservability/next",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/watchtowerobservability/watchtower-next.git"