@ts-kizuna/hono 1.63.1 → 1.64.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/dist/index.cjs CHANGED
@@ -1,22 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  let _ts_kizuna_core_adapter = require("@ts-kizuna/core/adapter");
3
3
  //#region src/server.ts
4
- /**
5
- * A guard per identity, keyed by name. Each receives the handler context, a
6
- * `deny` helper, the matched route's required scopes, and the contract's
7
- * request context, and returns that identity's {@link GuardSuccess} (its
8
- * context and access fields) or a `deny(...)` result. Keying by name lets each guard's return be typed against its own
9
- * identity, so access values narrow without an annotation. An
10
- * authentication-only identity (no context, no access) returns nothing on
11
- * success, or `deny(...)`.
12
- */
13
- /**
14
- * One guard per identity declared on the contract.
15
- */
16
- /**
17
- * The resolver functions for the request context schemas declared on `kizuna`,
18
- * keyed by name. Each runs on every route and returns its schema's value.
19
- */
20
4
  const honoAdapter = (0, _ts_kizuna_core_adapter.createAdapter)({
21
5
  buildHandlerContext: (_adapterRequest, { c }) => ({ c }),
22
6
  respond: (result, { c, formatError, responseValidation }) => {
package/dist/index.mjs CHANGED
@@ -1,21 +1,5 @@
1
1
  import { GUARDS_META, JOBS_META, REQUEST_CONTEXT_META, ROUTER_META, SCHEMES_META, TOOLS_META, createAdapter, createServerSurface, headersToObject, jobRouter, jobRoutes, jobRunnerFrom, parseFetchBody, pluginExportsOf, pluginRouterOf, pluginRoutesOf, renderJsonResult, toolRunnerFrom } from "@ts-kizuna/core/adapter";
2
2
  //#region src/server.ts
3
- /**
4
- * A guard per identity, keyed by name. Each receives the handler context, a
5
- * `deny` helper, the matched route's required scopes, and the contract's
6
- * request context, and returns that identity's {@link GuardSuccess} (its
7
- * context and access fields) or a `deny(...)` result. Keying by name lets each guard's return be typed against its own
8
- * identity, so access values narrow without an annotation. An
9
- * authentication-only identity (no context, no access) returns nothing on
10
- * success, or `deny(...)`.
11
- */
12
- /**
13
- * One guard per identity declared on the contract.
14
- */
15
- /**
16
- * The resolver functions for the request context schemas declared on `kizuna`,
17
- * keyed by name. Each runs on every route and returns its schema's value.
18
- */
19
3
  const honoAdapter = createAdapter({
20
4
  buildHandlerContext: (_adapterRequest, { c }) => ({ c }),
21
5
  respond: (result, { c, formatError, responseValidation }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ts-kizuna/hono",
3
- "version": "1.63.1",
3
+ "version": "1.64.0",
4
4
  "description": "Hono adapter for ts-kizuna",
5
5
  "keywords": [
6
6
  "ts-kizuna",
@@ -57,14 +57,14 @@
57
57
  "peerDependencies": {
58
58
  "hono": "^4.0.0",
59
59
  "zod": "^4.0.0",
60
- "@ts-kizuna/core": "1.63.1"
60
+ "@ts-kizuna/core": "1.64.0"
61
61
  },
62
62
  "devDependencies": {
63
63
  "hono": "^4.7.0",
64
64
  "tsdown": "^0.21.0",
65
65
  "typescript": "^6.0.3",
66
66
  "zod": "^4.0.0",
67
- "@ts-kizuna/core": "1.63.1"
67
+ "@ts-kizuna/core": "1.64.0"
68
68
  },
69
69
  "scripts": {
70
70
  "build": "tsdown src/index.ts --format esm,cjs --dts --clean --external @ts-kizuna/core --external hono --external zod",