@autter/runtime-next 1.4.0 → 1.6.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@autter/runtime-next",
3
- "version": "1.4.0",
4
- "description": "One-command Autter Runtime for Next.js: server OTel, browser tracker, relay route, and React error boundary",
3
+ "version": "1.6.0",
4
+ "description": "One-command Autter Runtime for Next.js: server OTel, request wide events, coded errors, browser tracker, relay route, edge middleware and React error boundary",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "main": "./dist/index.cjs",
@@ -22,6 +22,24 @@
22
22
  "types": "./dist/client.d.ts",
23
23
  "import": "./dist/client.js",
24
24
  "require": "./dist/client.cjs"
25
+ },
26
+ "./edge": {
27
+ "types": "./dist/edge.d.ts",
28
+ "import": "./dist/edge.js",
29
+ "require": "./dist/edge.cjs"
30
+ },
31
+ "./instrumentation": {
32
+ "types": "./dist/instrumentation.d.ts",
33
+ "edge-light": {
34
+ "import": "./dist/instrumentation-edge.js",
35
+ "require": "./dist/instrumentation-edge.cjs"
36
+ },
37
+ "worker": {
38
+ "import": "./dist/instrumentation-edge.js",
39
+ "require": "./dist/instrumentation-edge.cjs"
40
+ },
41
+ "import": "./dist/instrumentation.js",
42
+ "require": "./dist/instrumentation.cjs"
25
43
  }
26
44
  },
27
45
  "files": [
@@ -33,11 +51,13 @@
33
51
  "directory": "packages/runtime-next"
34
52
  },
35
53
  "scripts": {
36
- "build": "tsup"
54
+ "build": "node ../../scripts/ensure-built.mjs runtime-node runtime-edge runtime-browser && node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\" && tsup",
55
+ "test": "npm run build -w @autter/runtime-core && npm run build -w @autter/runtime-node && npm run build -w @autter/runtime-edge && npm run build -w @autter/runtime-browser && npm run build && node --test test/*.test.mjs"
37
56
  },
38
57
  "dependencies": {
39
- "@autter/runtime-browser": "^1.3.3",
40
- "@autter/runtime-node": "^1.4.0"
58
+ "@autter/runtime-browser": "^1.6.0",
59
+ "@autter/runtime-edge": "^1.1.0",
60
+ "@autter/runtime-node": "^1.6.0"
41
61
  },
42
62
  "peerDependencies": {
43
63
  "react": ">=18"
@@ -1,50 +0,0 @@
1
- // src/server.ts
2
- import {
3
- createBrowserRelayFetchHandler,
4
- initAutterServer
5
- } from "@autter/runtime-node";
6
- import {
7
- createRuntimeLogger,
8
- runtimeLogger,
9
- withRuntimeOperation,
10
- flushRuntimeLogs,
11
- runtimeLogStats,
12
- captureException,
13
- captureMessage,
14
- reportOutcome,
15
- withProcessSpan,
16
- withLlmCall,
17
- trackLlmCall,
18
- instrumentLlmClient,
19
- emitLlmSelftestTrace,
20
- makeSafeCapture,
21
- installAutterAutoFlush,
22
- redactAttributes
23
- } from "@autter/runtime-node";
24
- function registerAutter(options) {
25
- return initAutterServer(options);
26
- }
27
- function createAutterRelayRoute(options) {
28
- return { POST: createBrowserRelayFetchHandler(options) };
29
- }
30
-
31
- export {
32
- registerAutter,
33
- createAutterRelayRoute,
34
- createRuntimeLogger,
35
- runtimeLogger,
36
- withRuntimeOperation,
37
- flushRuntimeLogs,
38
- runtimeLogStats,
39
- captureException,
40
- captureMessage,
41
- reportOutcome,
42
- withProcessSpan,
43
- withLlmCall,
44
- trackLlmCall,
45
- instrumentLlmClient,
46
- emitLlmSelftestTrace,
47
- makeSafeCapture,
48
- installAutterAutoFlush,
49
- redactAttributes
50
- };