oxc-project
json-strip-comments
BlogDocsChangelog

Branches performance

Pull requests

fix: preserve newlines in block comments to match JavaScript behavior#120
last run
1 day ago
perf: optimize newline preservation using memchr Replace byte-by-byte loops with efficient chunked filling: - Use memchr::memchr2 to find newline positions - Fill spaces in chunks between newlines using optimized fill() - Preserves correctness while restoring performance 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 day ago
5d255b2
fix/preserve-newlines-in-comments
CodSpeed Performance Gauge
-19%
last run
1 day ago
chore: release v3.1.1
1 day ago
ebfb753
release-plz-2025-11-21T15-18-23Z
CodSpeed Performance Gauge
0%
test: port tests from sindresorhus/strip-json-comments#118
last run
1 day ago
test: port tests from sindresorhus/strip-json-comments 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 day ago
08abebb
test/port-sindresorhus-tests
CodSpeed Performance Gauge
0%
perf: simplify state machine and eliminate code duplication#117
last run
1 day ago
feat: preserve newlines in comments and port sindresorhus tests Changes to comment handling: - Preserve \r and \n characters inside block comments (InBlockComment, MaybeCommentEnd states) - Preserve \r characters in line comments (InLineComment state) - This matches sindresorhus/strip-json-comments behavior and improves readability Test additions (13 new tests from sindresorhus/strip-json-comments): - sindresorhus_replace_comments_with_whitespace - sindresorhus_doesnt_strip_comments_inside_strings - sindresorhus_consider_escaped_slashes - sindresorhus_line_endings_no_comments - sindresorhus_line_endings_single_line_comment - sindresorhus_line_endings_single_line_block_comment - sindresorhus_line_endings_multi_line_block_comment - sindresorhus_line_endings_works_at_eof - sindresorhus_handles_weird_escaping - sindresorhus_strips_trailing_commas - sindresorhus_strips_trailing_commas_with_comments - sindresorhus_handles_malformed_block_comments - sindresorhus_handles_non_breaking_space All 57 tests (54 integration + 3 doc tests) passing. Ported from: https://github.com/sindresorhus/strip-json-comments/blob/main/test.js 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 day ago
fb3bf7a
perf/simplify-state-machine
CodSpeed Performance Gauge
-68%
© 2025 CodSpeed Technology
Home Terms Privacy Docs