hono-problem-details 0.10.0 → 0.11.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/README.md +46 -2
- package/dist/{chunk-BBJKRRB3.js → chunk-4SQFFZU6.js} +1 -1
- package/dist/{chunk-VPS467Z5.js → chunk-URAOTABQ.js} +1 -0
- package/dist/index.js +1 -1
- package/dist/integrations/openapi-json-schema.cjs +127 -0
- package/dist/integrations/openapi-json-schema.d.cts +40 -0
- package/dist/integrations/openapi-json-schema.d.ts +40 -0
- package/dist/integrations/openapi-json-schema.js +45 -0
- package/dist/integrations/standard-schema.js +2 -2
- package/dist/integrations/valibot.js +2 -2
- package/dist/integrations/zod.js +2 -2
- package/package.json +21 -6
package/README.md
CHANGED
|
@@ -37,7 +37,7 @@ can all agree on.
|
|
|
37
37
|
- **Hono native** — `app.onError` handler with RFC-compliant defaults
|
|
38
38
|
- **Zod integration** — `@hono/zod-validator` hook for validation errors
|
|
39
39
|
- **Valibot integration** — `@hono/valibot-validator` hook for validation errors
|
|
40
|
-
- **OpenAPI integration** — `@hono/zod-openapi` schemas for API documentation
|
|
40
|
+
- **OpenAPI integration** — `@hono/zod-openapi` schemas for API documentation, plus dependency-free plain JSON Schema helpers for non-Zod stacks
|
|
41
41
|
- **OpenTelemetry integration** — `@opentelemetry/api` for automatically injecting trace information.
|
|
42
42
|
- **Standard Schema** — `@hono/standard-validator` hook (works with any schema library)
|
|
43
43
|
- **Type-safe** — full TypeScript support with inference
|
|
@@ -54,7 +54,7 @@ npm install hono-problem-details
|
|
|
54
54
|
### Requirements
|
|
55
55
|
|
|
56
56
|
- Hono `>= 4.12.27` (peer dependency; floor raised for upstream security fixes)
|
|
57
|
-
- TypeScript `>= 5.0` — the published `.d.ts` files are CI-tested against TS 5.0, 5.4, 5.7, 5.9, and
|
|
57
|
+
- TypeScript `>= 5.0` — the published `.d.ts` files are CI-tested against TS 5.0, 5.4, 5.7, 5.9, 6.0, and 7.0 (native compiler). Older TS versions may work but are not verified.
|
|
58
58
|
- Node.js `>= 22` (Node 20 reached end-of-life in April 2026; v0.6.0 raised the floor)
|
|
59
59
|
|
|
60
60
|
## Quick Start
|
|
@@ -452,6 +452,50 @@ const errorWithExtensions = createProblemDetailsSchema(
|
|
|
452
452
|
> See [ADR-0004](./docs/adr/0004-defer-openapi-schema-construction-via-factory.md)
|
|
453
453
|
> for the bundler-related reason this changed.
|
|
454
454
|
|
|
455
|
+
### Without Zod: plain JSON Schema
|
|
456
|
+
|
|
457
|
+
Not on Zod? `hono-problem-details/openapi-json-schema` emits the same Problem Details
|
|
458
|
+
schema as **plain JSON Schema** (draft 2020-12, the OpenAPI 3.1 base dialect) with zero
|
|
459
|
+
dependencies. It works with any documentation layer that accepts raw JSON Schema — e.g.
|
|
460
|
+
[`hono-openapi`](https://github.com/rhinobase/hono-openapi) on a Valibot, ArkType, or
|
|
461
|
+
typia stack:
|
|
462
|
+
|
|
463
|
+
```ts
|
|
464
|
+
import { describeRoute } from "hono-openapi";
|
|
465
|
+
import {
|
|
466
|
+
problemDetailsJsonSchema,
|
|
467
|
+
problemDetailsResponseJsonSchema,
|
|
468
|
+
} from "hono-problem-details/openapi-json-schema";
|
|
469
|
+
|
|
470
|
+
app.post(
|
|
471
|
+
"/reservations",
|
|
472
|
+
describeRoute({
|
|
473
|
+
responses: {
|
|
474
|
+
409: problemDetailsResponseJsonSchema(409, "Slot already taken"),
|
|
475
|
+
422: problemDetailsResponseJsonSchema(422),
|
|
476
|
+
},
|
|
477
|
+
}),
|
|
478
|
+
// ...
|
|
479
|
+
);
|
|
480
|
+
|
|
481
|
+
// Need the schema itself? With typed extension members:
|
|
482
|
+
const schema = problemDetailsJsonSchema({
|
|
483
|
+
extensions: {
|
|
484
|
+
conflictingResources: { type: "array", items: { type: "string" } },
|
|
485
|
+
},
|
|
486
|
+
});
|
|
487
|
+
// Use: problemDetailsResponseJsonSchema(409, "Slot already taken", schema)
|
|
488
|
+
```
|
|
489
|
+
|
|
490
|
+
Extension members merge at the top level, and standard RFC 9457 fields win on key
|
|
491
|
+
collision — the same rule the Zod helpers and the runtime follow
|
|
492
|
+
([ADR-0002](./docs/adr/0002-extension-flatten-with-standard-field-precedence.md)).
|
|
493
|
+
Keys the runtime strips as prototype-pollution guards (`__proto__`, `constructor`,
|
|
494
|
+
`prototype`) are excluded too, so the schema never documents a member that real
|
|
495
|
+
responses omit. Each call returns a fresh object with extension schemas cloned, so
|
|
496
|
+
you can safely tweak the result (e.g. push extra keys into `required`) without
|
|
497
|
+
affecting other call sites or your own input.
|
|
498
|
+
|
|
455
499
|
## Localization
|
|
456
500
|
|
|
457
501
|
Use the `localize` callback to translate `title` and `detail` based on the request context.
|
package/dist/index.js
CHANGED
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/integrations/openapi-json-schema.ts
|
|
21
|
+
var openapi_json_schema_exports = {};
|
|
22
|
+
__export(openapi_json_schema_exports, {
|
|
23
|
+
problemDetailsJsonSchema: () => problemDetailsJsonSchema,
|
|
24
|
+
problemDetailsResponseJsonSchema: () => problemDetailsResponseJsonSchema
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(openapi_json_schema_exports);
|
|
27
|
+
|
|
28
|
+
// src/status.ts
|
|
29
|
+
var STATUS_PHRASES = {
|
|
30
|
+
400: "Bad Request",
|
|
31
|
+
401: "Unauthorized",
|
|
32
|
+
402: "Payment Required",
|
|
33
|
+
403: "Forbidden",
|
|
34
|
+
404: "Not Found",
|
|
35
|
+
405: "Method Not Allowed",
|
|
36
|
+
406: "Not Acceptable",
|
|
37
|
+
407: "Proxy Authentication Required",
|
|
38
|
+
408: "Request Timeout",
|
|
39
|
+
409: "Conflict",
|
|
40
|
+
410: "Gone",
|
|
41
|
+
411: "Length Required",
|
|
42
|
+
412: "Precondition Failed",
|
|
43
|
+
413: "Content Too Large",
|
|
44
|
+
414: "URI Too Long",
|
|
45
|
+
415: "Unsupported Media Type",
|
|
46
|
+
416: "Range Not Satisfiable",
|
|
47
|
+
417: "Expectation Failed",
|
|
48
|
+
418: "I'm a Teapot",
|
|
49
|
+
421: "Misdirected Request",
|
|
50
|
+
422: "Unprocessable Content",
|
|
51
|
+
423: "Locked",
|
|
52
|
+
424: "Failed Dependency",
|
|
53
|
+
425: "Too Early",
|
|
54
|
+
426: "Upgrade Required",
|
|
55
|
+
428: "Precondition Required",
|
|
56
|
+
429: "Too Many Requests",
|
|
57
|
+
431: "Request Header Fields Too Large",
|
|
58
|
+
451: "Unavailable For Legal Reasons",
|
|
59
|
+
500: "Internal Server Error",
|
|
60
|
+
501: "Not Implemented",
|
|
61
|
+
502: "Bad Gateway",
|
|
62
|
+
503: "Service Unavailable",
|
|
63
|
+
504: "Gateway Timeout",
|
|
64
|
+
505: "HTTP Version Not Supported",
|
|
65
|
+
506: "Variant Also Negotiates",
|
|
66
|
+
507: "Insufficient Storage",
|
|
67
|
+
508: "Loop Detected",
|
|
68
|
+
510: "Not Extended",
|
|
69
|
+
511: "Network Authentication Required"
|
|
70
|
+
};
|
|
71
|
+
var STATUS_SLUGS = Object.fromEntries(
|
|
72
|
+
Object.entries(STATUS_PHRASES).map(([code, phrase]) => [
|
|
73
|
+
Number(code),
|
|
74
|
+
phrase.toLowerCase().replace(/'/g, "").replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "")
|
|
75
|
+
])
|
|
76
|
+
);
|
|
77
|
+
function statusToPhrase(status) {
|
|
78
|
+
return STATUS_PHRASES[status];
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// src/utils.ts
|
|
82
|
+
var DANGEROUS_KEYS = /* @__PURE__ */ new Set(["__proto__", "constructor", "prototype"]);
|
|
83
|
+
var FALLBACK_BODY = JSON.stringify({
|
|
84
|
+
type: "about:blank",
|
|
85
|
+
status: 500,
|
|
86
|
+
title: "Internal Server Error"
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
// src/integrations/openapi-json-schema.ts
|
|
90
|
+
var STANDARD_FIELD_KEYS = /* @__PURE__ */ new Set(["type", "status", "title", "detail", "instance"]);
|
|
91
|
+
function problemDetailsJsonSchema(options) {
|
|
92
|
+
const properties = {
|
|
93
|
+
type: { type: "string", description: "Problem type URI", examples: ["about:blank"] },
|
|
94
|
+
status: { type: "integer", description: "HTTP status code", examples: [400] },
|
|
95
|
+
title: {
|
|
96
|
+
type: "string",
|
|
97
|
+
description: "Short summary of the problem type",
|
|
98
|
+
examples: ["Bad Request"]
|
|
99
|
+
},
|
|
100
|
+
detail: { type: "string", description: "Human-readable explanation" },
|
|
101
|
+
instance: { type: "string", description: "URI identifying the occurrence" }
|
|
102
|
+
};
|
|
103
|
+
for (const [key, schema] of Object.entries(options?.extensions ?? {})) {
|
|
104
|
+
if (!STANDARD_FIELD_KEYS.has(key) && !DANGEROUS_KEYS.has(key)) {
|
|
105
|
+
properties[key] = structuredClone(schema);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
return {
|
|
109
|
+
title: "ProblemDetails",
|
|
110
|
+
type: "object",
|
|
111
|
+
properties,
|
|
112
|
+
required: ["type", "status", "title"]
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
function problemDetailsResponseJsonSchema(status, description, schema) {
|
|
116
|
+
return {
|
|
117
|
+
content: {
|
|
118
|
+
"application/problem+json": { schema: schema ?? problemDetailsJsonSchema() }
|
|
119
|
+
},
|
|
120
|
+
description: description ?? statusToPhrase(status) ?? "Error"
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
124
|
+
0 && (module.exports = {
|
|
125
|
+
problemDetailsJsonSchema,
|
|
126
|
+
problemDetailsResponseJsonSchema
|
|
127
|
+
});
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
type JsonSchemaObject = Record<string, unknown>;
|
|
2
|
+
type ProblemDetailsJsonSchema = {
|
|
3
|
+
title: "ProblemDetails";
|
|
4
|
+
type: "object";
|
|
5
|
+
properties: Record<string, JsonSchemaObject>;
|
|
6
|
+
required: string[];
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Build the RFC 9457 Problem Details schema as plain JSON Schema
|
|
10
|
+
* (draft 2020-12, the OpenAPI 3.1 base dialect), for stacks that document
|
|
11
|
+
* responses without Zod (hono-openapi, Valibot, ArkType, typia, ...).
|
|
12
|
+
*
|
|
13
|
+
* Extensions are merged at top level per RFC 9457 §3.1, and **standard fields
|
|
14
|
+
* always win** over extension keys that collide (mirroring the runtime spread
|
|
15
|
+
* order in `problemDetails()`). Conflicting extension keys are silently
|
|
16
|
+
* dropped from the schema (see ADR-0002), as are the prototype-pollution
|
|
17
|
+
* guard keys `sanitizeExtensions` strips from every real response.
|
|
18
|
+
*
|
|
19
|
+
* A fresh object is returned on every call, with extension schemas cloned,
|
|
20
|
+
* so callers can safely mutate the result (e.g. append to `required`)
|
|
21
|
+
* without affecting other call sites or their own input.
|
|
22
|
+
*/
|
|
23
|
+
declare function problemDetailsJsonSchema(options?: {
|
|
24
|
+
extensions?: Record<string, JsonSchemaObject>;
|
|
25
|
+
}): ProblemDetailsJsonSchema;
|
|
26
|
+
/**
|
|
27
|
+
* Create an OpenAPI response object for Problem Details as plain JSON Schema.
|
|
28
|
+
* Ready to drop into hono-openapi's describeRoute():
|
|
29
|
+
* responses: { 422: problemDetailsResponseJsonSchema(422) }
|
|
30
|
+
*/
|
|
31
|
+
declare function problemDetailsResponseJsonSchema(status: number, description?: string, schema?: JsonSchemaObject): {
|
|
32
|
+
content: {
|
|
33
|
+
"application/problem+json": {
|
|
34
|
+
schema: JsonSchemaObject;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
description: string;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export { type JsonSchemaObject, type ProblemDetailsJsonSchema, problemDetailsJsonSchema, problemDetailsResponseJsonSchema };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
type JsonSchemaObject = Record<string, unknown>;
|
|
2
|
+
type ProblemDetailsJsonSchema = {
|
|
3
|
+
title: "ProblemDetails";
|
|
4
|
+
type: "object";
|
|
5
|
+
properties: Record<string, JsonSchemaObject>;
|
|
6
|
+
required: string[];
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Build the RFC 9457 Problem Details schema as plain JSON Schema
|
|
10
|
+
* (draft 2020-12, the OpenAPI 3.1 base dialect), for stacks that document
|
|
11
|
+
* responses without Zod (hono-openapi, Valibot, ArkType, typia, ...).
|
|
12
|
+
*
|
|
13
|
+
* Extensions are merged at top level per RFC 9457 §3.1, and **standard fields
|
|
14
|
+
* always win** over extension keys that collide (mirroring the runtime spread
|
|
15
|
+
* order in `problemDetails()`). Conflicting extension keys are silently
|
|
16
|
+
* dropped from the schema (see ADR-0002), as are the prototype-pollution
|
|
17
|
+
* guard keys `sanitizeExtensions` strips from every real response.
|
|
18
|
+
*
|
|
19
|
+
* A fresh object is returned on every call, with extension schemas cloned,
|
|
20
|
+
* so callers can safely mutate the result (e.g. append to `required`)
|
|
21
|
+
* without affecting other call sites or their own input.
|
|
22
|
+
*/
|
|
23
|
+
declare function problemDetailsJsonSchema(options?: {
|
|
24
|
+
extensions?: Record<string, JsonSchemaObject>;
|
|
25
|
+
}): ProblemDetailsJsonSchema;
|
|
26
|
+
/**
|
|
27
|
+
* Create an OpenAPI response object for Problem Details as plain JSON Schema.
|
|
28
|
+
* Ready to drop into hono-openapi's describeRoute():
|
|
29
|
+
* responses: { 422: problemDetailsResponseJsonSchema(422) }
|
|
30
|
+
*/
|
|
31
|
+
declare function problemDetailsResponseJsonSchema(status: number, description?: string, schema?: JsonSchemaObject): {
|
|
32
|
+
content: {
|
|
33
|
+
"application/problem+json": {
|
|
34
|
+
schema: JsonSchemaObject;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
description: string;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export { type JsonSchemaObject, type ProblemDetailsJsonSchema, problemDetailsJsonSchema, problemDetailsResponseJsonSchema };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DANGEROUS_KEYS
|
|
3
|
+
} from "../chunk-URAOTABQ.js";
|
|
4
|
+
import {
|
|
5
|
+
statusToPhrase
|
|
6
|
+
} from "../chunk-P4D7EVU3.js";
|
|
7
|
+
|
|
8
|
+
// src/integrations/openapi-json-schema.ts
|
|
9
|
+
var STANDARD_FIELD_KEYS = /* @__PURE__ */ new Set(["type", "status", "title", "detail", "instance"]);
|
|
10
|
+
function problemDetailsJsonSchema(options) {
|
|
11
|
+
const properties = {
|
|
12
|
+
type: { type: "string", description: "Problem type URI", examples: ["about:blank"] },
|
|
13
|
+
status: { type: "integer", description: "HTTP status code", examples: [400] },
|
|
14
|
+
title: {
|
|
15
|
+
type: "string",
|
|
16
|
+
description: "Short summary of the problem type",
|
|
17
|
+
examples: ["Bad Request"]
|
|
18
|
+
},
|
|
19
|
+
detail: { type: "string", description: "Human-readable explanation" },
|
|
20
|
+
instance: { type: "string", description: "URI identifying the occurrence" }
|
|
21
|
+
};
|
|
22
|
+
for (const [key, schema] of Object.entries(options?.extensions ?? {})) {
|
|
23
|
+
if (!STANDARD_FIELD_KEYS.has(key) && !DANGEROUS_KEYS.has(key)) {
|
|
24
|
+
properties[key] = structuredClone(schema);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
title: "ProblemDetails",
|
|
29
|
+
type: "object",
|
|
30
|
+
properties,
|
|
31
|
+
required: ["type", "status", "title"]
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
function problemDetailsResponseJsonSchema(status, description, schema) {
|
|
35
|
+
return {
|
|
36
|
+
content: {
|
|
37
|
+
"application/problem+json": { schema: schema ?? problemDetailsJsonSchema() }
|
|
38
|
+
},
|
|
39
|
+
description: description ?? statusToPhrase(status) ?? "Error"
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export {
|
|
43
|
+
problemDetailsJsonSchema,
|
|
44
|
+
problemDetailsResponseJsonSchema
|
|
45
|
+
};
|
package/dist/integrations/zod.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hono-problem-details",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "RFC 9457 Problem Details middleware for Hono",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -47,6 +47,16 @@
|
|
|
47
47
|
"default": "./dist/integrations/openapi.cjs"
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
|
+
"./openapi-json-schema": {
|
|
51
|
+
"import": {
|
|
52
|
+
"types": "./dist/integrations/openapi-json-schema.d.ts",
|
|
53
|
+
"default": "./dist/integrations/openapi-json-schema.js"
|
|
54
|
+
},
|
|
55
|
+
"require": {
|
|
56
|
+
"types": "./dist/integrations/openapi-json-schema.d.cts",
|
|
57
|
+
"default": "./dist/integrations/openapi-json-schema.cjs"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
50
60
|
"./standard-schema": {
|
|
51
61
|
"import": {
|
|
52
62
|
"types": "./dist/integrations/standard-schema.d.ts",
|
|
@@ -69,6 +79,9 @@
|
|
|
69
79
|
"openapi": [
|
|
70
80
|
"./dist/integrations/openapi.d.ts"
|
|
71
81
|
],
|
|
82
|
+
"openapi-json-schema": [
|
|
83
|
+
"./dist/integrations/openapi-json-schema.d.ts"
|
|
84
|
+
],
|
|
72
85
|
"standard-schema": [
|
|
73
86
|
"./dist/integrations/standard-schema.d.ts"
|
|
74
87
|
]
|
|
@@ -105,7 +118,7 @@
|
|
|
105
118
|
"@hono/zod-validator": "^0.7.5",
|
|
106
119
|
"@opentelemetry/api": "^1.0.0",
|
|
107
120
|
"@standard-schema/spec": "^1.0.0",
|
|
108
|
-
"hono": ">=4.12.
|
|
121
|
+
"hono": ">=4.12.34",
|
|
109
122
|
"valibot": "^1.0.0",
|
|
110
123
|
"zod": "^3.25.0 || ^4.0.0"
|
|
111
124
|
},
|
|
@@ -136,18 +149,19 @@
|
|
|
136
149
|
}
|
|
137
150
|
},
|
|
138
151
|
"devDependencies": {
|
|
152
|
+
"@arethetypeswrong/cli": "0.18.5",
|
|
139
153
|
"@biomejs/biome": "^2.4.14",
|
|
140
154
|
"@changesets/changelog-github": "0.7.0",
|
|
141
155
|
"@changesets/cli": "2.31.1",
|
|
142
|
-
"@hono/standard-validator": "0.
|
|
156
|
+
"@hono/standard-validator": "0.4.0",
|
|
143
157
|
"@hono/valibot-validator": "^0.6.1",
|
|
144
|
-
"@hono/zod-openapi": "1.
|
|
158
|
+
"@hono/zod-openapi": "1.6.0",
|
|
145
159
|
"@hono/zod-validator": "^0.9.0",
|
|
146
160
|
"@opentelemetry/api": "^1.0.0",
|
|
147
161
|
"@standard-schema/spec": "1.1.0",
|
|
148
162
|
"@vitest/coverage-v8": "^4.1.8",
|
|
149
|
-
"hono": "^4.12.
|
|
150
|
-
"knip": "6.
|
|
163
|
+
"hono": "^4.12.34",
|
|
164
|
+
"knip": "6.32.2",
|
|
151
165
|
"lefthook": "2.1.10",
|
|
152
166
|
"tsup": "^8.0.0",
|
|
153
167
|
"typescript": "^6.0.3",
|
|
@@ -173,6 +187,7 @@
|
|
|
173
187
|
"format": "biome format --write .",
|
|
174
188
|
"typecheck": "tsc --noEmit",
|
|
175
189
|
"test:compat": "tsc -p tsconfig.compat.json",
|
|
190
|
+
"test:attw": "attw --pack .",
|
|
176
191
|
"release": "pnpm build && changeset publish",
|
|
177
192
|
"version-packages": "changeset version && pnpm lint:fix"
|
|
178
193
|
}
|