typespec-hono 0.21.0 → 0.22.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.
Files changed (2) hide show
  1. package/dist/src/app.js +2 -2
  2. package/package.json +2 -2
package/dist/src/app.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { renderSecurity } from "./security.js";
2
- import { isRawBinaryMediaType, objectKey, } from "typespec-http-zod";
2
+ import { isRawBinaryMediaType, jsDocComment, objectKey, } from "typespec-http-zod";
3
3
  /**
4
4
  * The header every emitted file carries.
5
5
  *
@@ -758,7 +758,7 @@ type Fields<T> = string extends keyof T ? ([T[string]] extends [never] ? unknown
758
758
  ? body
759
759
  : `${body} & ${envelopeType}`;
760
760
  const signature = `ctx: Ctx, input: ${input ?? EMPTY_INPUT}`;
761
- const doc = route.summary === undefined ? "" : `\t/** ${route.summary} */\n`;
761
+ const doc = jsDocComment(route.summary, "\t");
762
762
  return `${doc}\t${route.operationId}(${signature}): Awaitable<Result<${output}>>;`;
763
763
  });
764
764
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "typespec-hono",
3
- "version": "0.21.0",
3
+ "version": "0.22.0",
4
4
  "description": "TypeSpec emitter: generate a Hono server, and the Zod validators it enforces, from an HTTP service definition, agreeing with the OpenAPI document @typespec/openapi3 publishes from the same source.",
5
5
  "keywords": [
6
6
  "cloudflare-workers",
@@ -44,7 +44,7 @@
44
44
  "provenance": true
45
45
  },
46
46
  "dependencies": {
47
- "typespec-http-zod": "^0.24.0"
47
+ "typespec-http-zod": "^0.25.0"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@hono/zod-openapi": "^1.4.0",