@kubb/core 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/core",
3
- "version": "5.0.0-beta.55",
3
+ "version": "5.0.0-beta.57",
4
4
  "description": "Core engine for Kubb's plugin-based code generation system. Provides the plugin driver, file manager, defineConfig, and build orchestration used by every Kubb plugin.",
5
5
  "keywords": [
6
6
  "code-generator",
@@ -56,14 +56,14 @@
56
56
  "registry": "https://registry.npmjs.org/"
57
57
  },
58
58
  "dependencies": {
59
- "@kubb/ast": "5.0.0-beta.55"
59
+ "@kubb/ast": "5.0.0-beta.57"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@internals/utils": "0.0.0",
63
- "@kubb/renderer-jsx": "5.0.0-beta.55"
63
+ "@kubb/renderer-jsx": "5.0.0-beta.57"
64
64
  },
65
65
  "peerDependencies": {
66
- "@kubb/renderer-jsx": "5.0.0-beta.55"
66
+ "@kubb/renderer-jsx": "5.0.0-beta.57"
67
67
  },
68
68
  "engines": {
69
69
  "node": ">=22"
@@ -1,7 +1,7 @@
1
1
  import path from 'node:path'
2
2
  import { camelCase, pascalCase, toFilePath } from '@internals/utils'
3
3
  import type { FileNode, InputMeta, Node, OperationNode, SchemaNode } from '@kubb/ast'
4
- import { createFile, isOperationNode, isSchemaNode } from '@kubb/ast'
4
+ import { createFile, operationDef, schemaDef } from '@kubb/ast'
5
5
  import { Diagnostics } from './diagnostics.ts'
6
6
  import type { PluginFactoryOptions } from './definePlugin.ts'
7
7
  import type { Config, Group, Output } from './types.ts'
@@ -331,7 +331,7 @@ function computeOptions<TOptions>(
331
331
  include: Array<PatternFilter> | undefined,
332
332
  override: Array<PatternOverride<TOptions>>,
333
333
  ): TOptions | null {
334
- if (isOperationNode(node)) {
334
+ if (operationDef.is(node)) {
335
335
  if (exclude.some(({ type, pattern }) => matchesOperationPattern(node, type, pattern))) return null
336
336
  if (include && !include.some(({ type, pattern }) => matchesOperationPattern(node, type, pattern))) return null
337
337
 
@@ -340,7 +340,7 @@ function computeOptions<TOptions>(
340
340
  return { ...options, ...overrideOptions }
341
341
  }
342
342
 
343
- if (isSchemaNode(node)) {
343
+ if (schemaDef.is(node)) {
344
344
  if (exclude.some(({ type, pattern }) => matchesSchemaPattern(node, type, pattern) === true)) return null
345
345
  if (include) {
346
346
  const results = include.map(({ type, pattern }) => matchesSchemaPattern(node, type, pattern))
package/src/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { AsyncEventEmitter } from '@internals/utils'
1
+ export { AsyncEventEmitter, Url } from '@internals/utils'
2
2
  export * as ast from '@kubb/ast'
3
3
  export { createAdapter } from './createAdapter.ts'
4
4
  export { Diagnostics } from './diagnostics.ts'