Skip to content

Commit 1d4b6de

Browse files
committed
Bump version to 0.13.0
1 parent 224d9a9 commit 1d4b6de

3 files changed

Lines changed: 24 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,27 @@
11
# Changes
22

3+
### 2026-06-12 (0.13.0)
4+
5+
* Repair `#` hash line comments, like in Python, YAML, or Hjson:
6+
`{"a": 1 # comment\n}``{"a":1}`, `{ # note\n "a": 1}`
7+
`{"a":1}`, `# lead\n{"a": 1}``{"a":1}`. Divergence from upstream
8+
[jsonrepair](https://github.com/josdejong/jsonrepair) (v3.14.0
9+
raises on all of these), commented at the site. Recognition is
10+
context-aware so unquoted values starting with `#` keep repairing
11+
into strings — `{"color": #ff0000}``{"color":"#ff0000"}`,
12+
`{#tag: 1}``{"#tag":1}`, `#standalone``"#standalone"` — where
13+
Python's `json_repair` silently loses them (`{"color": ""}`).
14+
Where a value or key is expected, a `#` token reaching a structural
15+
delimiter (`,` `}` `]` `:`) before any whitespace, or running to
16+
end-of-input without a newline, stays a value; anything else is a
17+
comment stripped to the end of the line. The tradeoff: a `#` token
18+
followed by whitespace or a newline at a value position now reads
19+
as a comment — `{"a": #b c}``{"a":null}` and `{"a": #tag\n}`
20+
`{"a":null}`, where 0.12.0 kept them as strings (Python drops them
21+
too), and a comment-only document now raises like `// only a
22+
comment` always has. Pinned in the spec suite as conscious
23+
decisions.
24+
325
### 2026-06-12 (0.12.0)
426

527
* Repair the three known input families that raised `Internal error:

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
json-repair (0.12.0)
4+
json-repair (0.13.0)
55

66
GEM
77
remote: https://rubygems.org/

lib/json/repair/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
module JSON
44
module Repair
5-
VERSION = '0.12.0'
5+
VERSION = '0.13.0'
66
end
77
end

0 commit comments

Comments
 (0)