@kubb/ast 5.8.3 → 5.9.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.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { n as __name, t as __exportAll } from "./rolldown-runtime-CNktS9qV.js";
2
- import { $ as createJsx, $t as InferSchemaNode, A as createFile, At as EnumSchemaNode, B as ConstNode, Bt as SchemaType, C as inputDef, Ct as ParameterNode, D as SourceNode, Dt as ArraySchemaNode, E as ImportNode, Et as parameterDef, F as importDef, Ft as RefSchemaNode, G as TypeNode, Gt as createSchema, H as JSDocNode, Ht as TimeSchemaNode, I as sourceDef, It as ScalarSchemaNode, J as constDef, Jt as createProperty, K as arrowFunctionDef, Kt as schemaDef, L as ArrowFunctionNode, Lt as ScalarSchemaType, M as createSource, Mt as NumberSchemaNode, N as exportDef, Nt as ObjectSchemaNode, O as UserFileNode, Ot as DateSchemaNode, P as fileDef, Pt as PrimitiveSchemaType, Q as createFunction, Qt as DateTypeOptions, R as BreakNode, Rt as SchemaNode, S as createInput, St as ParameterLocation, T as FileNode, Tt as createParameter, U as JsxNode, Ut as UnionSchemaNode, V as FunctionNode, Vt as StringSchemaNode, W as TextNode, Wt as UrlSchemaNode, X as createBreak, Xt as DateOnlyTypeValue, Y as createArrowFunction, Yt as propertyDef, Z as createConst, Zt as DateTimeTypeValue, _ as OutputNode, _t as createRequestBody, a as Enforce, an as NodeKind, at as typeDef, b as InputMeta, bt as contentDef, c as composeMacros, ct as HttpOperationNode, d as Visitor, dt as operationDef, en as ParserOptions, et as createText, f as VisitorContext, ft as ResponseNode, g as Node, gt as RequestBodyNode, h as transform, ht as responseDef, i as createPrinter, in as BaseNode, it as textDef, j as createImport, jt as IntersectionSchemaNode, k as createExport, kt as DatetimeSchemaNode, l as defineMacro, lt as OperationNode, m as collectSync, mt as createResponse, n as PrinterFactoryOptions, nn as NodeDef, nt as functionDef, o as Macro, on as schemaTypes, ot as GenericOperationNode, p as collect, pt as StatusCode, q as breakDef, qt as PropertyNode, r as PrinterPartial, rn as defineNode, rt as jsxDef, s as applyMacros, st as HttpMethod, t as Printer, tn as DistributiveOmit, tt as createType, u as ParentOf, ut as createOperation, v as createOutput, vt as requestBodyDef, w as ExportNode, wt as ParameterStyle, x as InputNode, xt as createContent, y as outputDef, yt as ContentNode, z as CodeNode, zt as SchemaNodeByType } from "./types-C8GhOW_5.js";
2
+ import { $ as createJsx, $t as InferSchemaNode, A as createFile, At as EnumSchemaNode, B as ConstNode, Bt as SchemaType, C as inputDef, Ct as ParameterNode, D as SourceNode, Dt as ArraySchemaNode, E as ImportNode, Et as parameterDef, F as importDef, Ft as RefSchemaNode, G as TypeNode, Gt as createSchema, H as JSDocNode, Ht as TimeSchemaNode, I as sourceDef, It as ScalarSchemaNode, J as constDef, Jt as createProperty, K as arrowFunctionDef, Kt as schemaDef, L as ArrowFunctionNode, Lt as ScalarSchemaType, M as createSource, Mt as NumberSchemaNode, N as exportDef, Nt as ObjectSchemaNode, O as UserFileNode, Ot as DateSchemaNode, P as fileDef, Pt as PrimitiveSchemaType, Q as createFunction, Qt as DateTypeOptions, R as BreakNode, Rt as SchemaNode, S as createInput, St as ParameterLocation, T as FileNode, Tt as createParameter, U as JsxNode, Ut as UnionSchemaNode, V as FunctionNode, Vt as StringSchemaNode, W as TextNode, Wt as UrlSchemaNode, X as createBreak, Xt as DateOnlyTypeValue, Y as createArrowFunction, Yt as propertyDef, Z as createConst, Zt as DateTimeTypeValue, _ as OutputNode, _t as createRequestBody, a as Enforce, an as NodeKind, at as typeDef, b as InputMeta, bt as contentDef, c as composeMacros, ct as HttpOperationNode, d as Visitor, dt as operationDef, en as ParserOptions, et as createText, f as VisitorContext, ft as ResponseNode, g as Node, gt as RequestBodyNode, h as transform, ht as responseDef, i as createPrinter, in as BaseNode, it as textDef, j as createImport, jt as IntersectionSchemaNode, k as createExport, kt as DatetimeSchemaNode, l as defineMacro, lt as OperationNode, m as collectSync, mt as createResponse, n as PrinterFactoryOptions, nn as NodeDef, nt as functionDef, o as Macro, on as schemaTypes, ot as GenericOperationNode, p as collect, pt as StatusCode, q as breakDef, qt as PropertyNode, r as PrinterPartial, rn as defineNode, rt as jsxDef, s as applyMacros, st as HttpMethod, t as Printer, tn as DistributiveOmit, tt as createType, u as ParentOf, ut as createOperation, v as createOutput, vt as requestBodyDef, w as ExportNode, wt as ParameterStyle, x as InputNode, xt as createContent, y as outputDef, yt as ContentNode, z as CodeNode, zt as SchemaNodeByType } from "./types-uQRsJaXr.js";
3
3
  //#region src/guards.d.ts
4
4
  /**
5
5
  * Narrows a `SchemaNode` to the variant that matches `type`.
@@ -268,7 +268,8 @@ type ParserOptions = {
268
268
  */
269
269
  dateType: DateTimeTypeValue | DateTypeOptions;
270
270
  /**
271
- * How `type: 'integer'` (and `format: 'int64'`) maps to TypeScript.
271
+ * How a schema with `format: 'int64'` or `format: 'uint64'` maps to TypeScript. Other
272
+ * integers always map to `number`.
272
273
  * - `'bigint'` is exact for 64-bit IDs, but does not round-trip through JSON.
273
274
  * - `'number'` fits most JSON APIs. Loses precision above `Number.MAX_SAFE_INTEGER`.
274
275
  *
@@ -2762,4 +2763,4 @@ type PrinterBuilder<T extends PrinterFactoryOptions> = (options: T['options']) =
2762
2763
  declare function createPrinter<T extends PrinterFactoryOptions = PrinterFactoryOptions>(build: PrinterBuilder<T>): (options?: T['options']) => Printer<T>;
2763
2764
  //#endregion
2764
2765
  export { createJsx as $, InferSchemaNode as $t, createFile as A, EnumSchemaNode as At, ConstNode as B, SchemaType as Bt, inputDef as C, ParameterNode as Ct, SourceNode as D, ArraySchemaNode as Dt, ImportNode as E, parameterDef as Et, importDef as F, RefSchemaNode as Ft, TypeNode as G, createSchema as Gt, JSDocNode as H, TimeSchemaNode as Ht, sourceDef as I, ScalarSchemaNode as It, constDef as J, createProperty as Jt, arrowFunctionDef as K, schemaDef as Kt, ArrowFunctionNode as L, ScalarSchemaType as Lt, createSource as M, NumberSchemaNode as Mt, exportDef as N, ObjectSchemaNode as Nt, UserFileNode as O, DateSchemaNode as Ot, fileDef as P, PrimitiveSchemaType as Pt, createFunction as Q, DateTypeOptions as Qt, BreakNode as R, SchemaNode as Rt, createInput as S, ParameterLocation as St, FileNode as T, createParameter as Tt, JsxNode as U, UnionSchemaNode as Ut, FunctionNode as V, StringSchemaNode as Vt, TextNode as W, UrlSchemaNode as Wt, createBreak as X, DateOnlyTypeValue as Xt, createArrowFunction as Y, propertyDef as Yt, createConst as Z, DateTimeTypeValue as Zt, OutputNode as _, createRequestBody as _t, Enforce as a, NodeKind as an, typeDef as at, InputMeta as b, contentDef as bt, composeMacros as c, HttpOperationNode as ct, Visitor as d, operationDef as dt, ParserOptions as en, createText as et, VisitorContext as f, ResponseNode as ft, Node as g, RequestBodyNode as gt, transform as h, responseDef as ht, createPrinter as i, BaseNode as in, textDef as it, createImport as j, IntersectionSchemaNode as jt, createExport as k, DatetimeSchemaNode as kt, defineMacro as l, OperationNode as lt, collectSync as m, createResponse as mt, PrinterFactoryOptions as n, NodeDef as nn, functionDef as nt, Macro as o, schemaTypes as on, GenericOperationNode as ot, collect as p, StatusCode as pt, breakDef as q, PropertyNode as qt, PrinterPartial as r, defineNode as rn, jsxDef as rt, applyMacros as s, HttpMethod as st, Printer as t, DistributiveOmit as tn, createType as tt, ParentOf as u, createOperation as ut, createOutput as v, requestBodyDef as vt, ExportNode as w, ParameterStyle as wt, InputNode as x, createContent as xt, outputDef as y, ContentNode as yt, CodeNode as z, SchemaNodeByType as zt };
2765
- //# sourceMappingURL=types-C8GhOW_5.d.ts.map
2766
+ //# sourceMappingURL=types-uQRsJaXr.d.ts.map
package/dist/types.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { $t as InferSchemaNode, At as EnumSchemaNode, B as ConstNode, Bt as SchemaType, Ct as ParameterNode, D as SourceNode, Dt as ArraySchemaNode, E as ImportNode, Ft as RefSchemaNode, G as TypeNode, H as JSDocNode, Ht as TimeSchemaNode, It as ScalarSchemaNode, L as ArrowFunctionNode, Lt as ScalarSchemaType, Mt as NumberSchemaNode, Nt as ObjectSchemaNode, O as UserFileNode, Ot as DateSchemaNode, Pt as PrimitiveSchemaType, Qt as DateTypeOptions, R as BreakNode, Rt as SchemaNode, St as ParameterLocation, T as FileNode, U as JsxNode, Ut as UnionSchemaNode, V as FunctionNode, Vt as StringSchemaNode, W as TextNode, Wt as UrlSchemaNode, Xt as DateOnlyTypeValue, Zt as DateTimeTypeValue, _ as OutputNode, a as Enforce, an as NodeKind, b as InputMeta, ct as HttpOperationNode, d as Visitor, en as ParserOptions, f as VisitorContext, ft as ResponseNode, g as Node, gt as RequestBodyNode, jt as IntersectionSchemaNode, kt as DatetimeSchemaNode, lt as OperationNode, n as PrinterFactoryOptions, nn as NodeDef, o as Macro, ot as GenericOperationNode, pt as StatusCode, qt as PropertyNode, r as PrinterPartial, st as HttpMethod, t as Printer, tn as DistributiveOmit, u as ParentOf, w as ExportNode, wt as ParameterStyle, x as InputNode, yt as ContentNode, z as CodeNode, zt as SchemaNodeByType } from "./types-C8GhOW_5.js";
1
+ import { $t as InferSchemaNode, At as EnumSchemaNode, B as ConstNode, Bt as SchemaType, Ct as ParameterNode, D as SourceNode, Dt as ArraySchemaNode, E as ImportNode, Ft as RefSchemaNode, G as TypeNode, H as JSDocNode, Ht as TimeSchemaNode, It as ScalarSchemaNode, L as ArrowFunctionNode, Lt as ScalarSchemaType, Mt as NumberSchemaNode, Nt as ObjectSchemaNode, O as UserFileNode, Ot as DateSchemaNode, Pt as PrimitiveSchemaType, Qt as DateTypeOptions, R as BreakNode, Rt as SchemaNode, St as ParameterLocation, T as FileNode, U as JsxNode, Ut as UnionSchemaNode, V as FunctionNode, Vt as StringSchemaNode, W as TextNode, Wt as UrlSchemaNode, Xt as DateOnlyTypeValue, Zt as DateTimeTypeValue, _ as OutputNode, a as Enforce, an as NodeKind, b as InputMeta, ct as HttpOperationNode, d as Visitor, en as ParserOptions, f as VisitorContext, ft as ResponseNode, g as Node, gt as RequestBodyNode, jt as IntersectionSchemaNode, kt as DatetimeSchemaNode, lt as OperationNode, n as PrinterFactoryOptions, nn as NodeDef, o as Macro, ot as GenericOperationNode, pt as StatusCode, qt as PropertyNode, r as PrinterPartial, st as HttpMethod, t as Printer, tn as DistributiveOmit, u as ParentOf, w as ExportNode, wt as ParameterStyle, x as InputNode, yt as ContentNode, z as CodeNode, zt as SchemaNodeByType } from "./types-uQRsJaXr.js";
2
2
  export type { ArraySchemaNode, ArrowFunctionNode, BreakNode, CodeNode, ConstNode, ContentNode, DateOnlyTypeValue, DateSchemaNode, DateTimeTypeValue, DateTypeOptions, DatetimeSchemaNode, DistributiveOmit, Enforce, EnumSchemaNode, ExportNode, FileNode, FunctionNode, GenericOperationNode, HttpMethod, HttpOperationNode, ImportNode, InferSchemaNode, InputMeta, InputNode, IntersectionSchemaNode, JSDocNode, JsxNode, Macro, Node, NodeDef, NodeKind, NumberSchemaNode, ObjectSchemaNode, OperationNode, OutputNode, ParameterLocation, ParameterNode, ParameterStyle, ParentOf, ParserOptions, PrimitiveSchemaType, Printer, PrinterFactoryOptions, PrinterPartial, PropertyNode, RefSchemaNode, RequestBodyNode, ResponseNode, ScalarSchemaNode, ScalarSchemaType, SchemaNode, SchemaNodeByType, SchemaType, SourceNode, StatusCode, StringSchemaNode, TextNode, TimeSchemaNode, TypeNode, UnionSchemaNode, UrlSchemaNode, UserFileNode, Visitor, VisitorContext };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/ast",
3
- "version": "5.8.3",
3
+ "version": "5.9.0",
4
4
  "description": "Spec-agnostic AST layer for Kubb. Defines the node tree, visitor pattern, factory functions, and type guards used across all code generation plugins.",
5
5
  "keywords": [
6
6
  "ast",