@kubb/plugin-ts 5.5.0-canary.20261111T122006 → 5.5.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.
@@ -53,9 +53,9 @@ Clear schema descriptions with a [macro](https://kubb.dev/docs/5.x/reference/plu
53
53
 
54
54
  ```typescript [kubb.config.ts]
55
55
  import { pluginTs } from '@kubb/plugin-ts'
56
- import { ast } from 'kubb/kit'
56
+ import { defineMacro } from 'kubb/kit'
57
57
 
58
- const dropDescriptions = ast.defineMacro({
58
+ const dropDescriptions = defineMacro({
59
59
  name: 'drop-descriptions',
60
60
  schema(node) {
61
61
  return 'description' in node && node.description
package/docs/options.md CHANGED
@@ -236,7 +236,7 @@ Uses `tags: Array<string>`, which reads better for complex elements like `Array<
236
236
 
237
237
  ### operations
238
238
 
239
- Whether each operation gets its own types file (`AddPetOptions`, `AddPetResponses`, `AddPetStatus200`, `AddPetPath`).
239
+ Whether each operation gets its own types file (`AddPetOptions`, `AddPetResponses`, `AddPetStatus200`, `AddPetPath`). A response that declares `headers` also gets a type for them, such as `ListPetsStatus200Headers`.
240
240
 
241
241
  | | |
242
242
  | -------- | ---------------------- |
@@ -278,6 +278,7 @@ type ResolverTsPatch = {
278
278
  }
279
279
  response?: {
280
280
  status?(node: OperationNode, statusCode: StatusCode): string // → 'ListPetsStatus200'
281
+ headers?(node: OperationNode, statusCode: StatusCode): string // → 'ListPetsStatus200Headers'
281
282
  options?(node: OperationNode): string // → 'ListPetsOptions'
282
283
  responses?(node: OperationNode): string // → 'ListPetsResponses'
283
284
  response?(node: OperationNode): string // → 'ListPetsResponse'
@@ -18,7 +18,7 @@
18
18
  }
19
19
  ],
20
20
  "compatibility": {
21
- "kubb": ">=5.16.0",
21
+ "kubb": ">=5.18.4",
22
22
  "node": ">=22.22"
23
23
  },
24
24
  "options": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/plugin-ts",
3
- "version": "5.5.0-canary.20261111T122006",
3
+ "version": "5.5.0",
4
4
  "description": "Generate TypeScript types, interfaces, and enums with Kubb. The base plugin other Kubb plugins build on for type safety.",
5
5
  "keywords": [
6
6
  "code-generation",
@@ -67,18 +67,18 @@
67
67
  "registry": "https://registry.npmjs.org/"
68
68
  },
69
69
  "dependencies": {
70
- "@kubb/kit": "^5.18.2",
71
- "@kubb/renderer-jsx": "^5.18.2",
70
+ "@kubb/kit": "^5.18.6",
71
+ "@kubb/renderer-jsx": "^5.18.6",
72
72
  "yuku-codegen": "^0.19.0"
73
73
  },
74
74
  "devDependencies": {
75
- "@internals/shared": "0.1.0-canary.20261111T122006",
76
- "@internals/utils": "0.1.0-canary.20261111T122006",
77
- "@kubb/parser-ts": "^5.18.2",
75
+ "@internals/shared": "0.0.0",
76
+ "@internals/utils": "0.0.0",
77
+ "@kubb/parser-ts": "^5.18.6",
78
78
  "typescript": "^7.0.2"
79
79
  },
80
80
  "peerDependencies": {
81
- "@kubb/parser-ts": "^5.18.2",
81
+ "@kubb/parser-ts": "^5.18.6",
82
82
  "@typescript/typescript6": "^6.0.2",
83
83
  "typescript": ">=5.0.0"
84
84
  },