• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jhheider / edikt / 29128170084
96%

Build:
DEFAULT BRANCH: main
Ran 10 Jul 2026 10:36PM UTC
Jobs 1
Files 46
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Jul 2026 10:35PM UTC coverage: 96.127% (-0.005%) from 96.132%
29128170084

push

github

web-flow
fix(jsonc): edit comma correctness — multi-del + trailing commas (#50)

* fixes a bug with multiple successive del() ops

* fix(jsonc): never manufacture an invalid trailing comma on edit

Appending a new last key/element to a multi-line JSON object/array stamped
a comma after it, and deleting the last object member left the previous
member's separator comma dangling before `}`. Both produce invalid strict
JSON; JSON5/JSONC tolerate trailing commas, so edikt's own lenient reader
round-tripped the damage and it stayed hidden until a strict consumer
(Claude Desktop, serde_json, python json) rejected the file.

Fix, format-preserving: the last appended element only gets a trailing
comma when the container was already trailing-comma style; deleting a last
member with no comma of its own strips the previous member's now-dangling
comma (mirroring delete_element for arrays). A container that already uses
trailing commas keeps that style. Adds tests for both bugs and both
preservation cases, asserting exact bytes (stronger than the lenient parser
that hid the bug).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0157vKUFSTQFdfCK3nLrxyqK

* release: bump edikt-jsonc and edikt to 0.2.2 (trailing-comma fix)

Patch bump for the JSONC edit comma-correctness fix: edikt-jsonc 0.2.1 ->
0.2.2, the edikt binary 0.2.1 -> 0.2.2, and the workspace dep pointer to
match so the published binary requires the fixed crate.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0157vKUFSTQFdfCK3nLrxyqK

---------

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>

69 of 72 new or added lines in 4 files covered. (95.83%)

9605 of 9992 relevant lines covered (96.13%)

85.06 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
98.28
-0.95% crates/edikt-jsonc/src/edit.rs
Jobs
ID Job ID Ran Files Coverage
1 29128170084.1 10 Jul 2026 10:36PM UTC 46
96.13
GitHub Action Run
Source Files on build 29128170084
  • Tree
  • List 46
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #29128170084
  • 0b6f9d29 on github
  • Prev Build on main (#28850275931)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc