Skip to content

feat: support inserting missing keys inside inline tables - #74

Merged
tylerbutler merged 1 commit into
mainfrom
tylerbutler-inline-table-insertion
Nov 7, 2026
Merged

tylerbutler merged 1 commit into
mainfrom
tylerbutler-inline-table-insertion

Conversation

@tylerbutler

@tylerbutler tylerbutler commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Allow set_* helpers to insert missing keys inside existing inline tables, including nested, dotted, and quoted paths.
  • Preserve internal comments and unrelated values during edits. Reject blocked paths and ambiguous paths through arrays of tables with KeyConflict.
  • Keep the existing public error variant for compatibility. Update API guidance, README, contributor instructions, and the changelog fragment.

Closes #65

Behavior boundary

The setters reject paths through arrays of tables instead of selecting a record by document order. Indexed record editing remains unsupported. Inline tables without comments can use normalized spacing; commented tables retain their existing source around the edit. No parser changes or new dependencies.

@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Changelog check

package fragments version
tomlet ✅ 3 1.4.1 → 1.5.0

Release preview

tomlet 1.4.1 → 1.5.0

v1.5.0 - 2026-11-07

Added

  • Support inserting missing keys inside existing inline tables with set_* helpers, including nested and dotted paths. Preserve internal comments during edits and reject ambiguous paths through arrays of tables with KeyConflict.

Fixed

  • Decode basic-string escapes and multiline string values in accessors and decoders while preserving source text for round trips.
  • Fix inserting keys into implicit parent tables when only child tables or arrays of tables exist.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Failed ❌

View logs ↗
f77b351 2026-11-07T01:05:18.239Z View logs ↗

@tylerbutler tylerbutler changed the title Support inserting missing keys inside inline tables feat: support inserting missing keys inside inline tables Nov 7, 2026
@tylerbutler
tylerbutler merged commit 2b5200c into main Nov 7, 2026
6 of 8 checks passed
@tylerbutler
tylerbutler deleted the tylerbutler-inline-table-insertion branch November 7, 2026 01:10
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.

Support inserting missing keys inside existing inline tables

1 participant