# What changed in @scalar/snippetz

> 42 changes in @scalar/snippetz 0.9 to 0.10 from its official release notes, upgrade guides and advisories: 1 breaking, 2 new APIs and options. Each one cited. Sources checked 2026-10-25. HTML: https://unstale.sh/npm/@scalar/snippetz/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## @scalar/snippetz 0.10

### New APIs and options

- HTTP clients can set the multipart boundary. (0.10.6) — [release notes](https://github.com/scalar/scalar/blob/efb009aff3e0dd32bce9399bf71fa99bb8818ac9/packages/snippetz/CHANGELOG.md#0106)
- The exported type accepts custom method strings while retaining known-method editor completion; consumers must handle unknown methods because the type is not exhaustive over fixed HTTP methods. (0.10.1) — [release notes](https://github.com/scalar/scalar/blob/efb009aff3e0dd32bce9399bf71fa99bb8818ac9/packages/snippetz/CHANGELOG.md#0101)

### Behavior and default changes

- Authored arrays and objects are framed as stream records, while authored wire-format strings remain unchanged. (0.10.0) — [release notes](https://github.com/scalar/scalar/blob/efb009aff3e0dd32bce9399bf71fa99bb8818ac9/packages/snippetz/CHANGELOG.md#0100)
- Browser XHR and jQuery examples set explicit Cookie headers through document.cookie and enable credentialed requests, including when no structured HAR cookies are supplied. (0.10.0) — [release notes](https://github.com/scalar/scalar/blob/efb009aff3e0dd32bce9399bf71fa99bb8818ac9/packages/snippetz/CHANGELOG.md#0100)
- Cookie serialization uses semicolon-separated entries without percent-encoding in requests and code examples. (0.10.0) — [release notes](https://github.com/scalar/scalar/blob/efb009aff3e0dd32bce9399bf71fa99bb8818ac9/packages/snippetz/CHANGELOG.md#0100)
- Generated and structured examples are framed as JSON Lines, JSON Sequence, or server-sent events while explicit wire-format strings are preserved. (0.10.0) — [release notes](https://github.com/scalar/scalar/blob/efb009aff3e0dd32bce9399bf71fa99bb8818ac9/packages/snippetz/CHANGELOG.md#0100)
- Streaming media type detection and format selection are shared between cURL snippets and streaming example serialization. (0.10.0) — [release notes](https://github.com/scalar/scalar/blob/efb009aff3e0dd32bce9399bf71fa99bb8818ac9/packages/snippetz/CHANGELOG.md#0100)

### Fixes and other changes

- HTTP/1.1 snippets now keep the port in the Host header, so a request to http://localhost:8080/api shows Host: localhost:8080. (0.10.10) — [release notes](https://github.com/scalar/scalar/blob/efb009aff3e0dd32bce9399bf71fa99bb8818ac9/packages/snippetz/CHANGELOG.md#01010)
- Rejected debounced callbacks are now handled. (0.10.8) — [release notes](https://github.com/scalar/scalar/blob/efb009aff3e0dd32bce9399bf71fa99bb8818ac9/packages/snippetz/CHANGELOG.md#0108)
- Streaming writes are now awaited. (0.10.8) — [release notes](https://github.com/scalar/scalar/blob/efb009aff3e0dd32bce9399bf71fa99bb8818ac9/packages/snippetz/CHANGELOG.md#0108)
- Ruby code examples honor OpenAPI 3.2 allowReserved for path parameters while escaping forbidden path characters and preserving the encoded path. (0.10.7) — [release notes](https://github.com/scalar/scalar/blob/efb009aff3e0dd32bce9399bf71fa99bb8818ac9/packages/snippetz/CHANGELOG.md#0107)
- Generated clj-http code examples keep line breaks and unusual header or query names valid. (0.10.7) — [release notes](https://github.com/scalar/scalar/blob/efb009aff3e0dd32bce9399bf71fa99bb8818ac9/packages/snippetz/CHANGELOG.md#0107)
- The dart/http example escapes strings and sends text bodies. (0.10.7) — [release notes](https://github.com/scalar/scalar/blob/efb009aff3e0dd32bce9399bf71fa99bb8818ac9/packages/snippetz/CHANGELOG.md#0107)
- HTTP/1.1 examples send bodies for JSON media types with parameters or a +json suffix, and for plain text bodies. (0.10.7) — [release notes](https://github.com/scalar/scalar/blob/efb009aff3e0dd32bce9399bf71fa99bb8818ac9/packages/snippetz/CHANGELOG.md#0107)
- Generated C# HttpClient code examples escape quotes, backslashes, and line breaks. (0.10.7) — [release notes](https://github.com/scalar/scalar/blob/efb009aff3e0dd32bce9399bf71fa99bb8818ac9/packages/snippetz/CHANGELOG.md#0107)
- Generated php/curl examples escape quotes and backslashes in request bodies. (0.10.7) — [release notes](https://github.com/scalar/scalar/blob/efb009aff3e0dd32bce9399bf71fa99bb8818ac9/packages/snippetz/CHANGELOG.md#0107)
- The php/guzzle example keeps every value of a repeated form field. (0.10.7) — [release notes](https://github.com/scalar/scalar/blob/efb009aff3e0dd32bce9399bf71fa99bb8818ac9/packages/snippetz/CHANGELOG.md#0107)
- Python examples send bodies for JSON media types with parameters or a +json suffix, and for plain text bodies. (0.10.7) — [release notes](https://github.com/scalar/scalar/blob/efb009aff3e0dd32bce9399bf71fa99bb8818ac9/packages/snippetz/CHANGELOG.md#0107)
- Code examples using client query maps keep parameter values raw, and snippet URLs encode values once when constructed. (0.10.7) — [release notes](https://github.com/scalar/scalar/blob/efb009aff3e0dd32bce9399bf71fa99bb8818ac9/packages/snippetz/CHANGELOG.md#0107)
- R httr2 examples escape quotes and backslashes in header, query, and form values so values such as an ETag produce valid R code. (0.10.7) — [release notes](https://github.com/scalar/scalar/blob/efb009aff3e0dd32bce9399bf71fa99bb8818ac9/packages/snippetz/CHANGELOG.md#0107)
- Generated code examples read actual file bytes across code example targets. (0.10.6) — [release notes](https://github.com/scalar/scalar/blob/efb009aff3e0dd32bce9399bf71fa99bb8818ac9/packages/snippetz/CHANGELOG.md#0106)
- Generated code examples preserve multipart file metadata, including for arrays and composed schemas. (0.10.6) — [release notes](https://github.com/scalar/scalar/blob/efb009aff3e0dd32bce9399bf71fa99bb8818ac9/packages/snippetz/CHANGELOG.md#0106)
- Generated code examples preserve typed text fields without converting them into file attachments. (0.10.6) — [release notes](https://github.com/scalar/scalar/blob/efb009aff3e0dd32bce9399bf71fa99bb8818ac9/packages/snippetz/CHANGELOG.md#0106)
- OpenAPI 3.2 additionalOperations are supported in operation storage, navigation, documentation, callbacks, and the API client. (0.10.1) — [release notes](https://github.com/scalar/scalar/blob/efb009aff3e0dd32bce9399bf71fa99bb8818ac9/packages/snippetz/CHANGELOG.md#0101)
- Custom method spelling is preserved when displaying and sending requests and generating code samples; custom-method requests use generic client APIs. (0.10.1) — [release notes](https://github.com/scalar/scalar/blob/efb009aff3e0dd32bce9399bf71fa99bb8818ac9/packages/snippetz/CHANGELOG.md#0101)
- Request snippets preserve nested arrays and escape string values. (0.10.1) — [release notes](https://github.com/scalar/scalar/blob/efb009aff3e0dd32bce9399bf71fa99bb8818ac9/packages/snippetz/CHANGELOG.md#0101)
- Generated snippets explain when RestSharp cannot represent a method. (0.10.1) — [release notes](https://github.com/scalar/scalar/blob/efb009aff3e0dd32bce9399bf71fa99bb8818ac9/packages/snippetz/CHANGELOG.md#0101)
- Invalid explode: false declarations produce one console warning per parameter name and use the expanded fallback consistently for requests and snippets. (0.10.0) — [release notes](https://github.com/scalar/scalar/blob/efb009aff3e0dd32bce9399bf71fa99bb8818ac9/packages/snippetz/CHANGELOG.md#0100)
- Supported streaming media types use --data-binary to make framed body handling explicit. (0.10.0) — [release notes](https://github.com/scalar/scalar/blob/efb009aff3e0dd32bce9399bf71fa99bb8818ac9/packages/snippetz/CHANGELOG.md#0100)
- JSON media-type detection is shared across curl, wget, and RestSharp snippets. (0.10.0) — [release notes](https://github.com/scalar/scalar/blob/efb009aff3e0dd32bce9399bf71fa99bb8818ac9/packages/snippetz/CHANGELOG.md#0100)
- Streaming item schemas are supported in the workspace store, request body examples, and API reference schema views. (0.10.0) — [release notes](https://github.com/scalar/scalar/blob/efb009aff3e0dd32bce9399bf71fa99bb8818ac9/packages/snippetz/CHANGELOG.md#0100)
- Generated falsy examples 0, false, and empty strings are preserved for non-streaming bodies. (0.10.0) — [release notes](https://github.com/scalar/scalar/blob/efb009aff3e0dd32bce9399bf71fa99bb8818ac9/packages/snippetz/CHANGELOG.md#0100)
- SSE records with no valid fields are omitted, with one console warning per serialization call reporting the omitted count. (0.10.0) — [release notes](https://github.com/scalar/scalar/blob/efb009aff3e0dd32bce9399bf71fa99bb8818ac9/packages/snippetz/CHANGELOG.md#0100)

## @scalar/snippetz 0.9

### Breaking changes

- A plugin’s client type is now constrained by its target, so mismatched clients and display titles where lowercase client IDs are expected produce TypeScript errors. (0.9.24) — [release notes](https://github.com/scalar/scalar/blob/efb009aff3e0dd32bce9399bf71fa99bb8818ac9/packages/snippetz/CHANGELOG.md#0924)

### Behavior and default changes

- Generated curl commands add --globoff when URLs contain square brackets or curly braces in the query string, so bracket-notation parameters and glob-set values can be pasted into a shell and run. (0.9.31) — [release notes](https://github.com/scalar/scalar/blob/efb009aff3e0dd32bce9399bf71fa99bb8818ac9/packages/snippetz/CHANGELOG.md#0931)
- JSON bodies in the C/libcurl snippet are pretty-printed across multiple lines instead of being crammed onto a single line. (0.9.17) — [release notes](https://github.com/scalar/scalar/blob/efb009aff3e0dd32bce9399bf71fa99bb8818ac9/packages/snippetz/CHANGELOG.md#0917)

### Fixes and other changes

- AsyncAPI broker credentials are preserved separately from HTTP authentication schemes. (0.9.31) — [release notes](https://github.com/scalar/scalar/blob/efb009aff3e0dd32bce9399bf71fa99bb8818ac9/packages/snippetz/CHANGELOG.md#0931)
- JSON form fields are sent without an upload filename. (0.9.31) — [release notes](https://github.com/scalar/scalar/blob/efb009aff3e0dd32bce9399bf71fa99bb8818ac9/packages/snippetz/CHANGELOG.md#0931)
- Multipart array properties are sent as separate parts with the same field name, with encoding applied to each item; generated code snippets match. (0.9.31) — [release notes](https://github.com/scalar/scalar/blob/efb009aff3e0dd32bce9399bf71fa99bb8818ac9/packages/snippetz/CHANGELOG.md#0931)
- Array values, JSON item content types, and uploaded files are preserved after form edits. (0.9.31) — [release notes](https://github.com/scalar/scalar/blob/efb009aff3e0dd32bce9399bf71fa99bb8818ac9/packages/snippetz/CHANGELOG.md#0931)
- Header lookup includes missing values and handles them during PowerShell snippet generation. (0.9.31) — [release notes](https://github.com/scalar/scalar/blob/efb009aff3e0dd32bce9399bf71fa99bb8818ac9/packages/snippetz/CHANGELOG.md#0931)
- Fields and files are preserved in request history. (0.9.31) — [release notes](https://github.com/scalar/scalar/blob/efb009aff3e0dd32bce9399bf71fa99bb8818ac9/packages/snippetz/CHANGELOG.md#0931)
