Skip to content

Depth is counted in the text before the parse - #60

Closed
tmoosting wants to merge 1 commit into
mainfrom
depth-in-text
Closed

tmoosting wants to merge 1 commit into
mainfrom
depth-in-text

Conversation

@tmoosting

Copy link
Copy Markdown
Member

Folder format serial 148, as the npm SDK counts it: text this package did not write is past 200 levels when it opens an object or array deeper than 200. Each value of a repeated key counts; a file past the line is refused as nested too deep whatever else is wrong with it. Brackets in strings are not counted; a string left open runs to the end. Text with 200 or fewer opening brackets skips the count.

Tests: seven text cases, three planted faults red. The world-file set of the coming serial (117) reads with 0 disagreeing.

To merge with the repin to serial 148.

🤖 Generated with Claude Code

…148)

Text this package did not write is past 200 levels when it opens an object or array deeper than
200, so each value of a repeated key counts and a file past the line is refused as nested too deep
whatever else is wrong with it. Brackets inside a string are not counted; a string left open runs
to the end of the text, as the npm SDK's scan reads it. A text with 200 or fewer opening brackets
is passed without the count.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@tmoosting

Copy link
Copy Markdown
Member Author

Carried into #62 (rebuilt on main with the serial 148 pin) and released as 0.155.0.

@tmoosting tmoosting closed this Nov 26, 2026
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