autotel-adapters 0.2.4 → 0.2.6

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/dist/hono.d.cts CHANGED
@@ -1,9 +1,8 @@
1
1
  import { AdapterToolkit } from './core.cjs';
2
- import { R as RequestLoggerOptions, a as RequestLogger } from './index.d-DgrxjJLc.cjs';
2
+ import * as autotel from 'autotel';
3
3
  import { Context } from 'hono';
4
- import 'autotel';
5
4
 
6
- declare const useLogger: (context?: Context<any, any, {}> | undefined, requestLoggerOptions?: RequestLoggerOptions) => RequestLogger;
5
+ declare const useLogger: (context?: Context<any, any, {}> | undefined, requestLoggerOptions?: autotel.RequestLoggerOptions) => autotel.RequestLogger;
7
6
  declare const honoToolkit: AdapterToolkit<Context<any, any, {}>>;
8
7
 
9
8
  export { honoToolkit, useLogger };
package/dist/hono.d.ts CHANGED
@@ -1,9 +1,8 @@
1
1
  import { AdapterToolkit } from './core.js';
2
- import { R as RequestLoggerOptions, a as RequestLogger } from './index.d-DgrxjJLc.js';
2
+ import * as autotel from 'autotel';
3
3
  import { Context } from 'hono';
4
- import 'autotel';
5
4
 
6
- declare const useLogger: (context?: Context<any, any, {}> | undefined, requestLoggerOptions?: RequestLoggerOptions) => RequestLogger;
5
+ declare const useLogger: (context?: Context<any, any, {}> | undefined, requestLoggerOptions?: autotel.RequestLoggerOptions) => autotel.RequestLogger;
7
6
  declare const honoToolkit: AdapterToolkit<Context<any, any, {}>>;
8
7
 
9
8
  export { honoToolkit, useLogger };
package/dist/index.d.cts CHANGED
@@ -5,5 +5,4 @@ export { createCloudflareAdapter, withAutotelFetch } from './cloudflare.cjs';
5
5
  export { honoToolkit } from './hono.cjs';
6
6
  export { tanstackToolkit } from './tanstack.cjs';
7
7
  export { DrainPipelineOptions, ParsedError, PipelineDrainFn, RequestLogSnapshot, RequestLogger, RequestLoggerOptions, StructuredError, StructuredErrorInput } from 'autotel';
8
- import './index.d-DgrxjJLc.cjs';
9
8
  import 'hono';
package/dist/index.d.ts CHANGED
@@ -5,5 +5,4 @@ export { createCloudflareAdapter, withAutotelFetch } from './cloudflare.js';
5
5
  export { honoToolkit } from './hono.js';
6
6
  export { tanstackToolkit } from './tanstack.js';
7
7
  export { DrainPipelineOptions, ParsedError, PipelineDrainFn, RequestLogSnapshot, RequestLogger, RequestLoggerOptions, StructuredError, StructuredErrorInput } from 'autotel';
8
- import './index.d-DgrxjJLc.js';
9
8
  import 'hono';
@@ -1,11 +1,10 @@
1
1
  import { AdapterToolkit } from './core.cjs';
2
- import { R as RequestLoggerOptions, a as RequestLogger } from './index.d-DgrxjJLc.cjs';
3
- import 'autotel';
2
+ import * as autotel from 'autotel';
4
3
 
5
4
  declare const useLogger: (context?: {
6
5
  pathname?: string;
7
6
  method?: string;
8
- } | undefined, requestLoggerOptions?: RequestLoggerOptions) => RequestLogger;
7
+ } | undefined, requestLoggerOptions?: autotel.RequestLoggerOptions) => autotel.RequestLogger;
9
8
  declare const tanstackToolkit: AdapterToolkit<{
10
9
  pathname?: string;
11
10
  method?: string;
@@ -1,11 +1,10 @@
1
1
  import { AdapterToolkit } from './core.js';
2
- import { R as RequestLoggerOptions, a as RequestLogger } from './index.d-DgrxjJLc.js';
3
- import 'autotel';
2
+ import * as autotel from 'autotel';
4
3
 
5
4
  declare const useLogger: (context?: {
6
5
  pathname?: string;
7
6
  method?: string;
8
- } | undefined, requestLoggerOptions?: RequestLoggerOptions) => RequestLogger;
7
+ } | undefined, requestLoggerOptions?: autotel.RequestLoggerOptions) => autotel.RequestLogger;
9
8
  declare const tanstackToolkit: AdapterToolkit<{
10
9
  pathname?: string;
11
10
  method?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autotel-adapters",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
4
4
  "description": "Framework adapters and composable DX helpers for autotel",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -49,15 +49,15 @@
49
49
  "README.md"
50
50
  ],
51
51
  "dependencies": {
52
- "autotel": "2.25.4"
52
+ "autotel": "2.26.0"
53
53
  },
54
54
  "peerDependencies": {
55
55
  "hono": ">=4.12.9",
56
- "@tanstack/react-start": "^1.167.3",
57
- "@tanstack/solid-start": "^1.167.3",
58
- "next": ">=16.2.1",
56
+ "@tanstack/react-start": "^1.167.16",
57
+ "@tanstack/solid-start": "^1.167.15",
58
+ "next": ">=16.2.3",
59
59
  "h3": "^2.0.0",
60
- "nitropack": "^2.13.2"
60
+ "nitropack": "^2.13.3"
61
61
  },
62
62
  "peerDependenciesMeta": {
63
63
  "hono": {
@@ -80,12 +80,12 @@
80
80
  }
81
81
  },
82
82
  "devDependencies": {
83
- "@types/node": "^25.5.0",
84
- "hono": "^4.12.8",
83
+ "@types/node": "^25.5.2",
84
+ "hono": "^4.12.12",
85
85
  "rimraf": "^6.1.3",
86
86
  "tsup": "^8.5.1",
87
- "typescript": "^5.9.3",
88
- "vitest": "^4.1.0"
87
+ "typescript": "^6.0.2",
88
+ "vitest": "^4.1.3"
89
89
  },
90
90
  "repository": {
91
91
  "type": "git",
@@ -1,21 +0,0 @@
1
- interface RequestLogger {
2
- set(fields: Record<string, unknown>): void;
3
- info(message: string, fields?: Record<string, unknown>): void;
4
- warn(message: string, fields?: Record<string, unknown>): void;
5
- error(error: Error | string, fields?: Record<string, unknown>): void;
6
- getContext(): Record<string, unknown>;
7
- emitNow(overrides?: Record<string, unknown>): RequestLogSnapshot;
8
- }
9
- interface RequestLogSnapshot {
10
- timestamp: string;
11
- traceId: string;
12
- spanId: string;
13
- correlationId: string;
14
- context: Record<string, unknown>;
15
- }
16
- interface RequestLoggerOptions {
17
- /** Callback invoked by emitNow() for manual fan-out. */
18
- onEmit?: (snapshot: RequestLogSnapshot) => void | Promise<void>;
19
- }
20
-
21
- export type { RequestLoggerOptions as R, RequestLogger as a };
@@ -1,21 +0,0 @@
1
- interface RequestLogger {
2
- set(fields: Record<string, unknown>): void;
3
- info(message: string, fields?: Record<string, unknown>): void;
4
- warn(message: string, fields?: Record<string, unknown>): void;
5
- error(error: Error | string, fields?: Record<string, unknown>): void;
6
- getContext(): Record<string, unknown>;
7
- emitNow(overrides?: Record<string, unknown>): RequestLogSnapshot;
8
- }
9
- interface RequestLogSnapshot {
10
- timestamp: string;
11
- traceId: string;
12
- spanId: string;
13
- correlationId: string;
14
- context: Record<string, unknown>;
15
- }
16
- interface RequestLoggerOptions {
17
- /** Callback invoked by emitNow() for manual fan-out. */
18
- onEmit?: (snapshot: RequestLogSnapshot) => void | Promise<void>;
19
- }
20
-
21
- export type { RequestLoggerOptions as R, RequestLogger as a };