@kubb/plugin-vue-query 5.5.0-canary.20261014T114046 → 5.5.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
@@ -359,7 +359,7 @@ var compatibility = {
359
359
  };
360
360
  //#endregion
361
361
  //#region package.json
362
- var version = "5.5.0-canary.20261014T114046";
362
+ var version = "5.5.0";
363
363
  //#endregion
364
364
  //#region ../../internals/tanstack-query/src/utils.ts
365
365
  /**
@@ -537,13 +537,14 @@ function resolvePageParamType(node, { resolver, initialPageParam, queryParam })
537
537
  }
538
538
  /**
539
539
  * Applies the shared query defaults during plugin setup: `false` disables query generation, and an
540
- * object merges over `methods: ['GET']` and the plugin's runtime `importPath`.
540
+ * object merges over `methods: ['GET', 'QUERY']` and the plugin's runtime `importPath`. QUERY
541
+ * (RFC 10008) is a safe, idempotent read that carries its input in the body, so it is a query too.
541
542
  */
542
543
  function resolveQueryConfig(query, options) {
543
544
  if (query === false) return false;
544
545
  return {
545
546
  importPath: options.importPath,
546
- methods: ["GET"],
547
+ methods: ["GET", "QUERY"],
547
548
  ...query
548
549
  };
549
550
  }
@@ -812,7 +813,7 @@ const queryKeyTransformer = ({ node, variant }) => {
812
813
  if (isInfinite) urlFields.push("infinite: true");
813
814
  const result = [`{ ${urlFields.join(", ")} }`];
814
815
  if (query.length > 0) result.push("...(query ? [query] : [])");
815
- if (node.requestBody?.content?.[0]?.schema) result.push("...(body ? [body] : [])");
816
+ if (node.requestBody?.content?.[0]?.schema) result.push("...(body !== undefined ? [body] : [])");
816
817
  return result;
817
818
  };
818
819
  //#endregion
@@ -1611,7 +1612,7 @@ const mutationGenerator = (0, kubb_kit.defineGenerator)({
1611
1612
  //#region src/generators/queryGenerator.tsx
1612
1613
  /**
1613
1614
  * Built-in generator for `useQuery` composables. Emits one `useFooQuery`
1614
- * composable per GET operation (configurable via `query.methods`) plus the
1615
+ * composable per GET and QUERY operation (configurable via `query.methods`) plus the
1615
1616
  * matching `fooQueryKey` / `fooQueryOptions` helpers.
1616
1617
  */
1617
1618
  const queryGenerator = (0, kubb_kit.defineGenerator)({