@kubb/plugin-zod 5.7.0 → 5.8.0-canary.20261024T203516

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
@@ -1685,11 +1685,11 @@ const printerZodMini = kubb_kit.ast.createPrinter((options) => {
1685
1685
  //#endregion
1686
1686
  //#region src/generators/zodGenerator.tsx
1687
1687
  /**
1688
- * The helper an inferred alias is printed with. `'direction'` reads a request (encode) schema from its
1688
+ * The helper an inferred alias is printed with. `'codec'` reads a request (encode) schema from its
1689
1689
  * input and a response (decode) schema from its output; `true` keeps `z.infer` for both.
1690
1690
  */
1691
1691
  function aliasKind(inferred, direction) {
1692
- if (inferred !== "direction") return "infer";
1692
+ if (inferred !== "codec") return "infer";
1693
1693
  return direction === "encode" ? "input" : "output";
1694
1694
  }
1695
1695
  const zodPrinterCache = /* @__PURE__ */ new WeakMap();
@@ -2152,7 +2152,7 @@ var compatibility = {
2152
2152
  };
2153
2153
  //#endregion
2154
2154
  //#region package.json
2155
- var version = "5.7.0";
2155
+ var version = "5.8.0-canary.20261024T203516";
2156
2156
  //#endregion
2157
2157
  //#region src/resolvers/resolverZod.ts
2158
2158
  /**
@@ -2263,7 +2263,7 @@ const pluginZod = (0, kubb_kit.defineExtension)({
2263
2263
  group: createGroupConfig(group),
2264
2264
  importPath,
2265
2265
  coercion,
2266
- inferred,
2266
+ inferred: inferred === "direction" ? "codec" : inferred,
2267
2267
  guidType,
2268
2268
  regexType,
2269
2269
  oneOfType,