@kubb/plugin-vue-query 5.14.0-canary.20261124T205532 → 5.14.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.cjs CHANGED
@@ -36,7 +36,7 @@ var compatibility = {
36
36
  "node": ">=22.22"
37
37
  };
38
38
  // package.json
39
- var version = "5.14.0-canary.20261124T205532";
39
+ var version = "5.14.0";
40
40
  // ../../internals/ast/src/http/requestBody.ts
41
41
  /** The schema of the first request body entry, else `undefined` when the operation takes no body. */
42
42
  function getSchema(node) {
@@ -51,7 +51,7 @@ const classByRange = /* @__PURE__ */ new Map([
51
51
  ["5xx", 5]
52
52
  ]);
53
53
  /** The class digit of a status code or range: `2` for `201` and `2xx`, `null` for `default`. */
54
- function statusClass(input) {
54
+ function getClass(input) {
55
55
  const statusCode = typeof input === "object" ? input.statusCode : input;
56
56
  const rangeClass = classByRange.get(String(statusCode));
57
57
  if (rangeClass) return rangeClass;
@@ -59,10 +59,10 @@ function statusClass(input) {
59
59
  return Number.isNaN(code) ? null : Math.floor(code / 100);
60
60
  }
61
61
  function isSuccess(statusCode) {
62
- return statusClass(statusCode) === 2;
62
+ return getClass(statusCode) === 2;
63
63
  }
64
64
  function isError(statusCode) {
65
- const code = statusClass(statusCode);
65
+ const code = getClass(statusCode);
66
66
  return code !== null && code >= 4;
67
67
  }
68
68
  // ../../internals/ast/src/http/responses.ts
@@ -272,12 +272,6 @@ function resolveClient(options) {
272
272
  help: "Add `@kubb/plugin-fetch`, `@kubb/plugin-axios`, `@kubb/plugin-ky`, or `@kubb/plugin-client` to `plugins` so the generated code has an HTTP client to call."
273
273
  };
274
274
  }
275
- /**
276
- * Resolves the contract client during a consumer plugin's setup hook.
277
- * It extracts the plugin names from the raw `plugins` config and applies {@link resolveClient}.
278
- * On a misconfiguration it throws a config diagnostic tagged with `plugin`, so every consumer
279
- * fails fast with the same message.
280
- */
281
275
  function resolveContractClient(options) {
282
276
  const { plugin, client, plugins = [] } = options;
283
277
  const resolved = resolveClient({
@@ -312,7 +306,8 @@ const consumerBindings = /* @__PURE__ */ new Set([
312
306
  "res",
313
307
  "pageParam",
314
308
  "queryKey",
315
- "mutationKey"
309
+ "mutationKey",
310
+ "withQueryKey"
316
311
  ]);
317
312
  function isRelativeImport(importPath) {
318
313
  return importPath.startsWith(".");