@kubb/plugin-fetch 5.7.0-canary.20261015T191445 → 5.7.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.js CHANGED
@@ -688,21 +688,23 @@ function toKey(name, location) {
688
688
  return isValidVarName(key) ? key : JSON.stringify(key);
689
689
  }
690
690
  /**
691
- * Serializes one parameter's metadata into a `{ style, explode }` literal, or `null` when the
692
- * parameter carries neither. Path and query carry the serialization `style`; header and cookie use a
693
- * fixed style (`simple` and `form`), so only `explode` is emitted for them.
691
+ * Serializes one parameter's metadata into a `{ style, explode, allowReserved }` literal, or `null`
692
+ * when the parameter carries none. Path and query carry the serialization `style`; header and cookie
693
+ * use a fixed style (`simple` and `form`), so only `explode` is emitted for them. `allowReserved`
694
+ * only applies to query parameters.
694
695
  */
695
696
  function serializeParameter(parameter) {
696
697
  const parts = [];
697
698
  if ((parameter.in === "path" || parameter.in === "query") && parameter.style) parts.push(`style: '${parameter.style}'`);
698
699
  if (parameter.explode !== void 0) parts.push(`explode: ${parameter.explode}`);
700
+ if (parameter.in === "query" && parameter.allowReserved !== void 0) parts.push(`allowReserved: ${parameter.allowReserved}`);
699
701
  return parts.length > 0 ? `{ ${parts.join(", ")} }` : null;
700
702
  }
701
703
  /**
702
704
  * Builds the per-operation `styles` literal from the operation's parameters, grouped by location.
703
705
  * Path entries are keyed by the camelCased name to match the URL template placeholders; query,
704
706
  * header, and cookie entries keep the spec name to match the keys the runtime serializes.
705
- * Only parameters whose source defines `style` or `explode` are emitted, so calls without
707
+ * Only parameters whose source defines `style`, `explode`, or `allowReserved` are emitted, so calls without
706
708
  * serialization metadata keep the runtime defaults and existing output is unchanged. Returns `null`
707
709
  * when no parameter carries metadata.
708
710
  *
@@ -1402,7 +1404,7 @@ var compatibility = {
1402
1404
  };
1403
1405
  //#endregion
1404
1406
  //#region package.json
1405
- var version = "5.7.0-canary.20261015T191445";
1407
+ var version = "5.7.0";
1406
1408
  //#endregion
1407
1409
  //#region src/templates.ts
1408
1410
  /** Absolute path to the fetch client template, copied into `.kubb/client.ts`. */