@kubb/ast 5.0.0-beta.55 → 5.0.0-beta.57
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 +2 -2
- package/dist/index.cjs +1710 -1745
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -46
- package/dist/index.js +1682 -1740
- package/dist/index.js.map +1 -1
- package/dist/{types-BL7RpQAE.d.ts → types-C5aVnRE1.d.ts} +1730 -1789
- package/dist/types.d.ts +2 -2
- package/package.json +1 -1
- package/src/dedupe.ts +1 -1
- package/src/factory.ts +3 -763
- package/src/guards.ts +1 -53
- package/src/index.ts +35 -20
- package/src/mocks.ts +6 -1
- package/src/node.ts +128 -0
- package/src/nodes/base.ts +3 -2
- package/src/nodes/code.ts +115 -0
- package/src/nodes/content.ts +19 -0
- package/src/nodes/file.ts +54 -0
- package/src/nodes/function.ts +221 -146
- package/src/nodes/index.ts +11 -3
- package/src/nodes/input.ts +36 -0
- package/src/nodes/operation.ts +59 -1
- package/src/nodes/output.ts +23 -0
- package/src/nodes/parameter.ts +33 -0
- package/src/nodes/property.ts +36 -0
- package/src/nodes/requestBody.ts +23 -1
- package/src/nodes/response.ts +39 -1
- package/src/nodes/schema.ts +72 -0
- package/src/registry.ts +70 -0
- package/src/transformers.ts +2 -2
- package/src/types.ts +5 -3
- package/src/utils/ast.ts +116 -193
- package/src/visitor.ts +3 -47
package/dist/types.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export type { ArraySchemaNode, ArrowFunctionNode, CodeNode, ConstNode, DateSchemaNode, DatetimeSchemaNode, DedupeCanonical, DedupeLookups, DedupePlan, DistributiveOmit, EnumSchemaNode, ExportNode, FileNode, FunctionNode, FunctionNodeType, FunctionParamNode, FunctionParameterNode, FunctionParametersNode, HttpMethod, HttpOperationNode, ImportNode, InferSchemaNode, InputMeta, InputNode, IntersectionSchemaNode, JSDocNode, JsxNode, Node, NodeKind, NumberSchemaNode, ObjectSchemaNode, OperationNode, OperationParamsResolver, OutputNode,
|
|
1
|
+
import { $t as InferSchemaNode, Bt as ScalarSchemaType, Cn as DistributiveOmit, D as DedupeCanonical, Dn as NodeKind, Ft as IntersectionSchemaNode, Gt as TimeSchemaNode, H as HttpOperationNode, Ht as SchemaNodeByType, I as InputMeta, It as NumberSchemaNode, K as ResponseNode, Kt as UnionSchemaNode, L as InputNode, Lt as ObjectSchemaNode, M as Node, Mt as DateSchemaNode, N as OutputNode, Nt as DatetimeSchemaNode, O as DedupeLookups, Pt as EnumSchemaNode, Q as ParameterNode, Rt as PrimitiveSchemaType, S as UserFileNode, St as SourceNode, T as SchemaDialect, U as OperationNode, Ut as SchemaType, V as HttpMethod, Vt as SchemaNode, Wt as StringSchemaNode, Xt as PropertyNode, Y as StatusCode, Z as ParameterLocation, _ as Printer, an as JSDocNode, at as IndexedAccessTypeNode, bt as FileNode, cn as TypeNode, ct as TypeLiteralNode, d as ParentOf, en as ParserOptions, f as Visitor, in as FunctionNode, it as FunctionParametersNode, jt as ArraySchemaNode, k as DedupePlan, nn as CodeNode, nt as FunctionParamNode, on as JsxNode, ot as ObjectBindingPatternNode, p as VisitorContext, qt as UrlSchemaNode, rn as ConstNode, rt as FunctionParameterNode, sn as TextNode, st as TypeExpression, t as OperationParamsResolver, tn as ArrowFunctionNode, tt as FunctionNodeType, v as PrinterFactoryOptions, xt as ImportNode, y as PrinterPartial, yt as ExportNode, zt as RefSchemaNode } from "./types-C5aVnRE1.js";
|
|
2
|
+
export type { ArraySchemaNode, ArrowFunctionNode, CodeNode, ConstNode, DateSchemaNode, DatetimeSchemaNode, DedupeCanonical, DedupeLookups, DedupePlan, DistributiveOmit, EnumSchemaNode, ExportNode, FileNode, FunctionNode, FunctionNodeType, FunctionParamNode, FunctionParameterNode, FunctionParametersNode, HttpMethod, HttpOperationNode, ImportNode, IndexedAccessTypeNode, InferSchemaNode, InputMeta, InputNode, IntersectionSchemaNode, JSDocNode, JsxNode, Node, NodeKind, NumberSchemaNode, ObjectBindingPatternNode, ObjectSchemaNode, OperationNode, OperationParamsResolver, OutputNode, ParameterLocation, ParameterNode, ParentOf, ParserOptions, PrimitiveSchemaType, Printer, PrinterFactoryOptions, PrinterPartial, PropertyNode, RefSchemaNode, ResponseNode, ScalarSchemaType, SchemaDialect, SchemaNode, SchemaNodeByType, SchemaType, SourceNode, StatusCode, StringSchemaNode, TextNode, TimeSchemaNode, TypeExpression, TypeLiteralNode, TypeNode, UnionSchemaNode, UrlSchemaNode, UserFileNode, Visitor, VisitorContext };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/ast",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.57",
|
|
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",
|
package/src/dedupe.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createSchema } from './factory.ts'
|
|
2
1
|
import type { Node, OperationNode, SchemaNode } from './nodes/index.ts'
|
|
2
|
+
import { createSchema } from './nodes/schema.ts'
|
|
3
3
|
import { signatureOf } from './signature.ts'
|
|
4
4
|
import { extractRefName } from './utils/index.ts'
|
|
5
5
|
import { collectLazy, transform } from './visitor.ts'
|