Skip to content

refactor(json)!: remove parseJson - #575

Open
MaksymStoianov wants to merge 3 commits into
developfrom
refactor/remove-parse-json
Open

MaksymStoianov wants to merge 3 commits into
developfrom
refactor/remove-parse-json

Conversation

@MaksymStoianov

Copy link
Copy Markdown
Member

parseJson was deprecated; it is removed in 3.0.0 instead of fixing it. Its relaxed reader re-quoted single-quoted strings incorrectly (CodeQL alerts 7–8, js/incomplete-sanitization). Use JSON.parse.

Removed: the function and its tests, the docs pages in five languages, their table-of-contents and reference entries, the authored docs entry and the see-also link from stringifyJson. bootgs does not use it.

Supersedes #569 (which fixed the function) — close #569 without merging. #571 adds an SPDX header to src/json/parseJson.ts; whichever of the two is merged second needs a one-line conflict resolution (keep the file deleted).

Checked: build, 2531/2531 tests, type-check, ESLint (0 errors), Prettier, docs:check, docs:check-i18n.

🤖 Generated with Claude Code

MaksymStoianov and others added 3 commits November 3, 2026 17:37
parseJson was deprecated. Its relaxed reader re-quoted single-quoted
strings incorrectly (CodeQL js/incomplete-sanitization); instead of
fixing a deprecated function, it is removed in 3.0.0. Use JSON.parse.

Removed: the function and its tests, the docs pages in five languages,
their table-of-contents and reference entries, and the see-also link
from stringifyJson.

BREAKING CHANGE: parseJson is no longer exported; use JSON.parse.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Maksym Stoianov <stoianov.maksym@gmail.com>
…rse-json

Signed-off-by: Maksym Stoianov <stoianov.maksym@gmail.com>

# Conflicts:
#	src/json/parseJson.ts
#	test/json/parseJson.test.ts
…rse-json

Signed-off-by: Maksym Stoianov <stoianov.maksym@gmail.com>

# Conflicts:
#	src/json/parseJson.ts

This branch has not been deployed

No deployments
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