tidewave 0.5.5 → 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/package.json CHANGED
@@ -1,13 +1,16 @@
1
1
  {
2
2
  "name": "tidewave",
3
- "version": "0.5.5",
4
- "description": "Tidewave for JavaScript/Next.js",
3
+ "version": "0.7.0",
4
+ "description": "Tidewave for JavaScript (Next.js, TanStack, Vite)",
5
5
  "keywords": [
6
6
  "typescript",
7
7
  "documentation",
8
8
  "mcp",
9
9
  "cli",
10
- "tidewave"
10
+ "tidewave",
11
+ "next",
12
+ "vite",
13
+ "tanstack"
11
14
  ],
12
15
  "homepage": "https://tidewave.ai",
13
16
  "repository": {
@@ -44,6 +47,11 @@
44
47
  "import": "./dist/next-js/instrumentation.js",
45
48
  "require": "./dist/next-js/instrumentation.js"
46
49
  },
50
+ "./tanstack": {
51
+ "types": "./dist/tanstack.d.ts",
52
+ "import": "./dist/tanstack.js",
53
+ "require": "./dist/tanstack.js"
54
+ },
47
55
  "./package.json": "./package.json"
48
56
  },
49
57
  "files": [
@@ -54,7 +62,7 @@
54
62
  ],
55
63
  "scripts": {
56
64
  "dist": "bun run clean && bun run build:js && bun run build:types",
57
- "build:js": "bun build --outdir dist --root src --external typescript --external child_process --external module --external @opentelemetry/api --external @opentelemetry/sdk-logs --external @opentelemetry/sdk-trace-base src/next-js/handler.ts src/next-js/instrumentation.ts src/vite-plugin.ts src/evaluation/eval_worker.ts src/cli/index.ts --target node",
65
+ "build:js": "bun build --outdir dist --root src --external typescript --external child_process --external module --external @opentelemetry/api --external @opentelemetry/sdk-logs --external @opentelemetry/sdk-trace-base src/next-js/handler.ts src/next-js/instrumentation.ts src/vite-plugin.ts src/tanstack.ts src/evaluation/eval_worker.ts src/cli/index.ts --target node",
58
66
  "build:types": "tsc -p tsconfig.declarations.json",
59
67
  "dev": "bun run src/cli/index.ts",
60
68
  "test": "bun test",
@@ -93,7 +101,7 @@
93
101
  "next": "^15.5.3",
94
102
  "prettier": "^3.4.2",
95
103
  "vite": "^7.1.5",
96
- "vitest": "^3.2.4"
104
+ "vitest": "^4.1.8"
97
105
  },
98
106
  "peerDependencies": {
99
107
  "typescript": "^5"
@@ -1,6 +0,0 @@
1
- import { type Request, type Response, type NextFn } from '../index';
2
- export declare function handleShell(req: Request, res: Response, next: NextFn): Promise<void>;
3
- export declare function getShellCommand(command: string): {
4
- cmd: string;
5
- args: string[];
6
- };
@@ -1,54 +0,0 @@
1
- export interface StoredLogRecord {
2
- timestamp: string;
3
- severityText: string;
4
- body: string;
5
- attributes?: Record<string, any>;
6
- resource?: Record<string, any>;
7
- }
8
- export interface LogFilterOptions {
9
- tail?: number;
10
- grep?: string;
11
- level?: string;
12
- since?: string;
13
- }
14
- /**
15
- * Standalone circular buffer for storing logs.
16
- * This is a global singleton that is not tied to any logger or exporter.
17
- * Both console.log patches and OpenTelemetry processors write directly to this buffer.
18
- */
19
- export declare class CircularBuffer {
20
- private buffer;
21
- private maxSize;
22
- private writeIndex;
23
- private count;
24
- constructor(maxSize?: number);
25
- /**
26
- * Add a log entry to the circular buffer.
27
- * This method is called directly by console patching and OTel processors.
28
- */
29
- addLog(log: StoredLogRecord): void;
30
- /**
31
- * Get logs from the buffer with optional filtering.
32
- */
33
- getLogs(options?: LogFilterOptions): StoredLogRecord[];
34
- /**
35
- * Get all logs in chronological order.
36
- */
37
- private getAllLogs;
38
- /**
39
- * Get statistics about the buffer usage.
40
- */
41
- getStats(): {
42
- totalLogs: number;
43
- bufferSize: number;
44
- bufferUsage: string;
45
- };
46
- /**
47
- * Clear the buffer.
48
- */
49
- clear(): void;
50
- }
51
- declare global {
52
- var __tidewaveCircularBuffer: CircularBuffer | undefined;
53
- }
54
- export declare const circularBuffer: CircularBuffer;
@@ -1,2 +0,0 @@
1
- export { TidewaveSpanProcessor } from './tidewave-span-processor';
2
- export { TidewaveLogRecordProcessor } from './tidewave-log-record-processor';