Skip to content

Fix special type quoting to match TOON spec#2

Merged
mattt merged 1 commit into
mainfrom
mattt/spec-compliance
Oct 27, 2025
Merged

Fix special type quoting to match TOON spec#2
mattt merged 1 commit into
mainfrom
mattt/spec-compliance

Conversation

@mattt
Copy link
Copy Markdown
Collaborator

@mattt mattt commented Oct 27, 2025

This PR updates encoding of Date, URL, and Data types to follow the same string quoting rules as the TypeScript reference implementation.

Before:

  • Date: Unquoted at root, quoted in objects
  • URL: Never quoted
  • Data: Unquoted at root, quoted in objects

After:

All three types now pass through encodeStringLiteral() with delimiter-aware quoting rules

@mattt mattt merged commit 643f4f2 into main Oct 27, 2025
3 checks passed
@mattt mattt deleted the mattt/spec-compliance branch October 27, 2025 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant