---
title: "@toon-format/toon 4.1.1 Breaking Changes on npm | Since.dev"
description: "What each @toon-format/toon release removed, renamed or changed: 31 breaking changes in 5 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/@toon-format/toon
last_updated: 2026-12-04
---

# @toon-format/toon breaking changes

@toon-format/toon 4.1.1 (August 5, 2026) is its newest release with breaking changes, 3 of them. The first: Raw strings after a byte-order mark with a comment marker are now rejected in @toon-format/toon 4.1.1. Every breaking API change we have recorded in @toon-format/toon on npm: 31 breaking changes in 5 versions. Below, its 5 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `4.4.0`, released October 8, 2026. [Source repository](https://github.com/toon-format/toon)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [2.3.1](#v-2-3-1) to [4.1.1](#v-4-1-1): 27 breaking changes in 3 versions.
- From [2.3.0](#v-2-3-0) to [4.1.1](#v-4-1-1): 28 breaking changes in 4 versions.

## @toon-format/toon 4.1.1 breaking changes

@toon-format/toon 4.1.1, released August 5, 2026: 3 breaking changes.

- **Behavior changed**  

A raw string whose comment marker follows a byte-order mark is now rejected instead of accepted. Code parsing such input will now get an error. [github.com](https://github.com/toon-format/toon/releases/tag/v4.1.1)
- **Behavior changed**  

A line indented with a tab that starts with a hash is now treated as content rather than ignored as a comment. Documents relying on the old comment handling will parse differently. [github.com](https://github.com/toon-format/toon/releases/tag/v4.1.1)
- **Behavior changed**  

Diagnostic messages from the CLI are written to stderr, so stdout carries only results. Scripts that read diagnostics from stdout must read stderr instead. [github.com](https://github.com/toon-format/toon/releases/tag/v4.1.1)

## @toon-format/toon 4.1.0 breaking changes

@toon-format/toon 4.1.0, released July 26, 2026: 8 breaking changes.

- **Removed** `ResolvedDecodeOptions.indent`  

ResolvedDecodeOptions.indent was removed in @toon-format/toon 4.1.0 [npmjs.com](https://www.npmjs.com/package/@toon-format/toon/v/4.1.0)
- **Removed** `ResolvedEncodeOptions.indent`  

ResolvedEncodeOptions.indent was removed in @toon-format/toon 4.1.0 [npmjs.com](https://www.npmjs.com/package/@toon-format/toon/v/4.1.0)
- **Behavior changed**  

Leaf fields with no cell are now left out of decoded objects rather than set to undefined. Code that checks for the key or its undefined value may behave differently. [github.com](https://github.com/toon-format/toon/releases/tag/v4.1.0)
- **Behavior changed**  

In strict mode the CLI now fails on ill-formed UTF-8 input instead of accepting it. Callers feeding such input in strict mode will see an error. [github.com](https://github.com/toon-format/toon/releases/tag/v4.1.0)
- **Behavior changed**  

Input with a bare token line outside root primitive position that used to decode is now rejected. Code decoding such input must fix the input. [github.com](https://github.com/toon-format/toon/releases/tag/v4.1.0)
- **Behavior changed**  

Input with unpaired surrogates or invalid delimiters that used to encode now throws an error. Code that relies on those inputs encoding must be changed. [github.com](https://github.com/toon-format/toon/releases/tag/v4.1.0)
- **Signature changed** `ResolvedDecodeOptions`  

Was type ResolvedDecodeOptions = Readonly\<Required\<DecodeOptions>>; now type ResolvedDecodeOptions = Readonly\<Required\<Omit\<DecodeOptions, "indent">>>. [npmjs.com](https://www.npmjs.com/package/@toon-format/toon/v/4.1.0)
- **Signature changed** `ResolvedEncodeOptions`  

Was type ResolvedEncodeOptions = Readonly\<Required\<Omit\<EncodeOptions, "replacer">>> & Pick\<EncodeOptions, "replacer">; now type ResolvedEncodeOptions = Readonly\<Required\<Omit\<EncodeOptions, "replacer" | "indent">>> & Pick\<EncodeOptions... [npmjs.com](https://www.npmjs.com/package/@toon-format/toon/v/4.1.0)

## @toon-format/toon 4.0.0 breaking changes

@toon-format/toon 4.0.0, released July 22, 2026: 16 breaking changes.

- **Removed**  

The release removes key folding and path expansion. Code relying on these encoding or decoding behaviors must be updated. [github.com](https://github.com/toon-format/toon/releases/tag/v4.0.0)
- **Removed** `DecodeOptions.expandPaths`  

DecodeOptions.expandPaths was removed in @toon-format/toon 4.0.0 [npmjs.com](https://www.npmjs.com/package/@toon-format/toon/v/4.0.0)
- **Removed** `DecodeStreamOptions.expandPaths`  

DecodeStreamOptions.expandPaths was removed in @toon-format/toon 4.0.0 [npmjs.com](https://www.npmjs.com/package/@toon-format/toon/v/4.0.0)
- **Removed** `EncodeOptions.flattenDepth`  

EncodeOptions.flattenDepth was removed in @toon-format/toon 4.0.0 [npmjs.com](https://www.npmjs.com/package/@toon-format/toon/v/4.0.0)
- **Removed** `EncodeOptions.keyFolding`  

EncodeOptions.keyFolding was removed in @toon-format/toon 4.0.0 [npmjs.com](https://www.npmjs.com/package/@toon-format/toon/v/4.0.0)
- **Removed** `ResolvedDecodeOptions.expandPaths`  

ResolvedDecodeOptions.expandPaths was removed in @toon-format/toon 4.0.0 [npmjs.com](https://www.npmjs.com/package/@toon-format/toon/v/4.0.0)
- **Removed** `ResolvedEncodeOptions.flattenDepth`  

ResolvedEncodeOptions.flattenDepth was removed in @toon-format/toon 4.0.0 [npmjs.com](https://www.npmjs.com/package/@toon-format/toon/v/4.0.0)
- **Removed** `ResolvedEncodeOptions.keyFolding`  

ResolvedEncodeOptions.keyFolding was removed in @toon-format/toon 4.0.0 [npmjs.com](https://www.npmjs.com/package/@toon-format/toon/v/4.0.0)
- **Behavior changed**  

The encoder now quotes leading-plus numeric-like strings, so output for such values changes. [github.com](https://github.com/toon-format/toon/releases/tag/v4.0.0)
- **Behavior changed**  

Strict-mode decoding now rejects over-indented orphan lines and trailing root content that were previously accepted. [github.com](https://github.com/toon-format/toon/releases/tag/v4.0.0)

And 6 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## @toon-format/toon 2.3.1 breaking changes

@toon-format/toon 2.3.1, released July 16, 2026: 1 breaking change.

- **Signature changed** `DELIMITERS`  

Was const DELIMITERS: {readonly comma: ", "; readonly tab: " "; readonly pipe: "|";}; now const DELIMITERS: {readonly comma: ", "; readonly tab: "\\t"; readonly pipe: "|";}. [npmjs.com](https://www.npmjs.com/package/@toon-format/toon/v/2.3.1)

## @toon-format/toon 2.3.0 breaking changes

@toon-format/toon 2.3.0, released May 20, 2026: 3 breaking changes.

- **Behavior changed**  

Array headers containing a whitespace gap are now rejected per the spec, so input that was accepted before will now fail to decode. [github.com](https://github.com/toon-format/toon/releases/tag/v2.3.0)
- **Behavior changed**  

Strict mode adds error coverage for more inputs, so input that decoded before may now throw. Check decoding code that relies on lenient parsing. [github.com](https://github.com/toon-format/toon/releases/tag/v2.3.0)
- **Behavior changed**  

Empty arrays are emitted in the canonical form key: \[\], so encoded output for empty arrays changes. Code that matches the previous output text may need updating. [github.com](https://github.com/toon-format/toon/releases/tag/v2.3.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
