Skip to content

Commit 327bdda

Browse files
feat: parse nested tabular arrays in list items with bare hyphen (spec v2.1)
1 parent 3389179 commit 327bdda

File tree

13 files changed

+741
-695
lines changed

13 files changed

+741
-695
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
[![CI](https://github.com/toon-format/toon/actions/workflows/ci.yml/badge.svg)](https://github.com/toon-format/toon/actions)
66
[![npm version](https://img.shields.io/npm/v/@toon-format/toon.svg)](https://www.npmjs.com/package/@toon-format/toon)
7-
[![SPEC v2.0](https://img.shields.io/badge/spec-v2.0-lightgray)](https://github.com/toon-format/spec)
7+
[![SPEC v2.1](https://img.shields.io/badge/spec-v2.1-lightgray)](https://github.com/toon-format/spec)
88
[![npm downloads (total)](https://img.shields.io/npm/dt/@toon-format/toon.svg)](https://www.npmjs.com/package/@toon-format/toon)
99
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE)
1010

@@ -872,12 +872,12 @@ Comprehensive guides, references, and resources to help you get the most out of
872872

873873
- [API Reference](https://toonformat.dev/reference/api) – TypeScript/JavaScript encode/decode API
874874
- [Syntax Cheatsheet](https://toonformat.dev/reference/syntax-cheatsheet) – Quick format lookup
875-
- [Specification v2.0](https://github.com/toon-format/spec/blob/main/SPEC.md) – Normative rules for implementers
875+
- [Specification v2.1](https://github.com/toon-format/spec/blob/main/SPEC.md) – Normative rules for implementers
876876

877877
## Other Implementations
878878

879879
> [!NOTE]
880-
> When implementing TOON in other languages, please follow the [Specification](https://github.com/toon-format/spec/blob/main/SPEC.md) (currently v2.0) to ensure compatibility across implementations. The [conformance tests](https://github.com/toon-format/spec/tree/main/tests) provide language-agnostic test fixtures that validate your implementations.
880+
> When implementing TOON in other languages, please follow the [Specification](https://github.com/toon-format/spec/blob/main/SPEC.md) (currently v2.1) to ensure compatibility across implementations. The [conformance tests](https://github.com/toon-format/spec/tree/main/tests) provide language-agnostic test fixtures that validate your implementations.
881881
882882
### Official Implementations
883883

SPEC.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The TOON specification has moved to a dedicated repository: [github.com/toon-for
44

55
## Current Version
66

7-
**Version 2.0** (2025-11-10)
7+
**Version 2.1** (2025-11-23)
88

99
## Quick Links
1010

benchmarks/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@
88
"fetch:github-repos": "tsx scripts/fetch-github-repos.ts"
99
},
1010
"devDependencies": {
11-
"@ai-sdk/anthropic": "^2.0.44",
12-
"@ai-sdk/google": "^2.0.31",
13-
"@ai-sdk/openai": "^2.0.65",
11+
"@ai-sdk/anthropic": "^2.0.45",
12+
"@ai-sdk/google": "^2.0.42",
13+
"@ai-sdk/openai": "^2.0.71",
1414
"@ai-sdk/provider": "^2.0.0",
15-
"@ai-sdk/xai": "^2.0.32",
15+
"@ai-sdk/xai": "^2.0.35",
1616
"@clack/prompts": "^0.11.0",
1717
"@faker-js/faker": "^10.1.0",
18-
"ai": "^5.0.92",
18+
"ai": "^5.0.101",
1919
"csv-stringify": "^6.6.0",
20-
"fast-xml-parser": "^5.3.1",
20+
"fast-xml-parser": "^5.3.2",
2121
"gpt-tokenizer": "^3.4.0",
2222
"ofetch": "^1.5.1",
2323
"p-map": "^7.0.4",
24-
"p-queue": "^9.0.0",
25-
"unstorage": "^1.17.2",
24+
"p-queue": "^9.0.1",
25+
"unstorage": "^1.17.3",
2626
"yaml": "^2.8.1"
2727
}
2828
}

docs/.vitepress/theme/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const config: Theme = {
1010
extends: DefaultTheme,
1111
enhanceApp({ app }) {
1212
app.config.globalProperties.$spec = {
13-
version: '2.0',
13+
version: '2.1',
1414
}
1515
app.component('CopyOrDownloadAsMarkdownButtons', CopyOrDownloadAsMarkdownButtons)
1616
},

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ hero:
2020
text: CLI
2121
link: /cli/
2222
- theme: alt
23-
text: Spec v2.0
23+
text: Spec v2.1
2424
link: /reference/spec
2525

2626
features:

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"preview": "vitepress preview"
99
},
1010
"devDependencies": {
11-
"unocss": "^66.5.6",
11+
"unocss": "^66.5.9",
1212
"vitepress": "^1.6.4",
1313
"vitepress-plugin-llms": "^1.9.3"
1414
}

docs/reference/spec.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ You don't need this page to *use* TOON. It's mainly for implementers and contrib
99
1010
## Current Version
1111

12-
**Spec v{{ $spec.version }}** (2025-11-10) is the current stable version.
12+
**Spec v{{ $spec.version }}** (2025-11-23) is the current stable version.
1313

1414
The spec defines a provisional media type and file extension in §18.2:
1515

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"type": "module",
44
"version": "1.3.0",
55
"private": true,
6-
"packageManager": "pnpm@10.21.0",
6+
"packageManager": "pnpm@10.23.0",
77
"scripts": {
88
"build": "pnpm -r --filter=./packages/** run build",
99
"automd": "automd",
@@ -18,13 +18,13 @@
1818
},
1919
"devDependencies": {
2020
"@antfu/eslint-config": "^6.2.0",
21-
"@types/node": "^24.10.0",
21+
"@types/node": "^24.10.1",
2222
"automd": "^0.4.2",
2323
"bumpp": "^10.3.1",
2424
"eslint": "^9.39.1",
25-
"tsdown": "^0.16.2",
25+
"tsdown": "^0.16.6",
2626
"tsx": "^4.20.6",
2727
"typescript": "^5.9.3",
28-
"vitest": "^4.0.8"
28+
"vitest": "^4.0.13"
2929
}
3030
}

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@toon-format/cli",
33
"type": "module",
44
"version": "1.3.0",
5-
"packageManager": "pnpm@10.21.0",
5+
"packageManager": "pnpm@10.23.0",
66
"description": "CLI for JSON ↔ TOON conversion using @toon-format/toon",
77
"author": "Johann Schopplich <[email protected]>",
88
"license": "MIT",

packages/toon/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@toon-format/toon",
33
"type": "module",
44
"version": "1.3.0",
5-
"packageManager": "pnpm@10.21.0",
5+
"packageManager": "pnpm@10.23.0",
66
"description": "Token-Oriented Object Notation (TOON) – Compact, human-readable, schema-aware encoding of JSON for LLM prompts",
77
"author": "Johann Schopplich <[email protected]>",
88
"license": "MIT",
@@ -38,6 +38,6 @@
3838
"test": "vitest"
3939
},
4040
"devDependencies": {
41-
"@toon-format/spec": "^2.0.1"
41+
"@toon-format/spec": "^2.1.0"
4242
}
4343
}

0 commit comments

Comments
 (0)