@kubb/core 5.0.0-beta.95 → 5.0.0-beta.96

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/mocks.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { t as __name } from "./rolldown-runtime-C0LytTxp.js";
2
- import { A as Generator, F as Parser, N as KubbDriver, Rt as Adapter, W as NormalizedPlugin, X as PluginFactoryOptions, r as Config, zt as AdapterFactoryOptions } from "./types-Bl0feoGY.js";
2
+ import { A as Generator, F as Parser, N as KubbDriver, Rt as Adapter, W as NormalizedPlugin, X as PluginFactoryOptions, r as Config, zt as AdapterFactoryOptions } from "./types-DQlIpfWN.js";
3
3
  import { FileNode, InputMeta, Macro, OperationNode, SchemaNode } from "@kubb/ast";
4
4
  //#region src/mocks.d.ts
5
5
  /**
@@ -1204,13 +1204,20 @@ declare class Resolver {
1204
1204
  */
1205
1205
  imports(options: ResolveImportsOptions): Array<ImportNode>;
1206
1206
  /**
1207
- * Merges `override` over `base` and returns a new resolver with helpers re-bound. Top-level
1208
- * keys replace, and a namespace (or `file`) merges per method, so overriding `query.name`
1209
- * keeps the base `query.keyName`. Used when applying `setResolver` partial overrides. Reads a
1210
- * resolver's options through the shared brand rather than `instanceof`, so a `file` override
1211
- * survives even when `base` and `override` come from different `@kubb/core` copies.
1207
+ * Folds each `override` over `base`, left to right, and returns a new resolver with helpers
1208
+ * re-bound. Top-level keys replace, and a namespace (or `file`) merges per method, so overriding
1209
+ * `query.name` keeps the base `query.keyName`. The last override wins per key. Used when applying
1210
+ * `setResolver` partial overrides, and to compose shared resolver fragments without spreading each
1211
+ * namespace by hand. Reads a resolver's options through the shared brand rather than `instanceof`,
1212
+ * so a `file` override survives even when `base` and `override` come from different `@kubb/core`
1213
+ * copies.
1214
+ *
1215
+ * @example Fold several partial overrides onto a resolver
1216
+ * ```ts
1217
+ * const resolver = Resolver.merge(defaultResolver, sharedNamingPatch, { name: (name) => name.toUpperCase() })
1218
+ * ```
1212
1219
  */
1213
- static merge<T extends Resolver>(base: T, override: ResolverPatch<T> | Resolver): T;
1220
+ static merge<T extends Resolver>(base: T, ...overrides: Array<ResolverPatch<T> | Resolver>): T;
1214
1221
  }
1215
1222
  //#endregion
1216
1223
  //#region src/definePlugin.d.ts
@@ -2819,4 +2826,4 @@ type BuildOutput = {
2819
2826
  };
2820
2827
  //#endregion
2821
2828
  export { definePlugin as $, Generator as A, DiagnosticSeverity as At, Include as B, AdapterSource as Bt, KubbWarnContext as C, UserReporter as Ct, CreateKubbOptions as D, DiagnosticDoc as Dt, UserConfig as E, Diagnostic as Et, Parser as F, SerializedDiagnostic as Ft, Output as G, KubbPluginSetupContext as H, defineParser as I, UpdateDiagnostic as It, Override as J, OutputMode as K, Exclude$1 as L, Hookable as Lt, defineGenerator as M, PerformanceDiagnostic as Mt, KubbDriver as N, ProblemCode as Nt, Kubb$1 as O, DiagnosticKind as Ot, FileManagerHooks as P, ProblemDiagnostic as Pt, ResolvePluginOptions as Q, Filter as R, Adapter as Rt, KubbSuccessContext as S, ReporterName as St, PostGenerateCommand as T, logLevel as Tt, KubbPluginStartContext as U, KubbPluginEndContext as V, createAdapter as Vt, NormalizedPlugin as W, PluginFactoryOptions as X, Plugin as Y, PluginName as Z, KubbHookStartContext as _, Storage as _t, KubbBuildEndContext as a, ResolveOptionsContext as at, KubbLifecycleStartContext as b, Reporter as bt, KubbErrorContext as c, ResolverDefault as ct, KubbFilesProcessingStartContext as d, ResolverFilePathParams as dt, BannerMeta as et, KubbFilesProcessingUpdateContext as f, ResolverPatch as ft, KubbHookLineContext as g, createRenderer as gt, KubbHookEndContext as h, RendererFactory as ht, Input as i, ResolveImportsOptions as it, GeneratorContext as j, Diagnostics as jt, createKubb as k, DiagnosticLocation as kt, KubbFileProcessingUpdate as l, ResolverFile as lt, KubbGenerationStartContext as m, Renderer as mt, CLIOptions as n, ResolveBannerFile as nt, KubbBuildStartContext as o, ResolvePathOptions as ot, KubbGenerationEndContext as p, ResolverPathParams as pt, OutputOptions as q, Config as r, ResolveFileOptions as rt, KubbDiagnosticContext as s, Resolver as st, BuildOutput as t, ResolveBannerContext as tt, KubbFilesProcessingEndContext as u, ResolverFileParams as ut, KubbHooks as v, createStorage as vt, PossibleConfig as w, createReporter as wt, KubbPluginsEndContext as x, ReporterContext as xt, KubbInfoContext as y, GenerationResult as yt, Group as z, AdapterFactoryOptions as zt };
2822
- //# sourceMappingURL=types-Bl0feoGY.d.ts.map
2829
+ //# sourceMappingURL=types-DQlIpfWN.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/core",
3
- "version": "5.0.0-beta.95",
3
+ "version": "5.0.0-beta.96",
4
4
  "description": "Core engine for Kubb. Provides the plugin driver, file manager and build orchestration used by every Kubb plugin.",
5
5
  "keywords": [
6
6
  "code-generator",
@@ -55,7 +55,7 @@
55
55
  "registry": "https://registry.npmjs.org/"
56
56
  },
57
57
  "dependencies": {
58
- "@kubb/ast": "5.0.0-beta.95"
58
+ "@kubb/ast": "5.0.0-beta.96"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@internals/utils": "0.0.0"