next.js
Be defensive rendering code frames
#85592
Open
Go
Login via GitHub
Home
Pricing
FAQ
Install
Login
via GitHub
Overview
Commits
30
Changes
View On
GitHub
Be defensive rendering code frames
#85592
lukesandberg
wants to merge 30 commits into
canary
from
code_frame_defence
ijjk
added
created-by: Turbopack team
ijjk
added
type: next
vercel
commented on 2025-10-30
lukesandberg
changed the base branch from
canary
to
graphite-base/85592
51 days ago
lukesandberg
force pushed
from
4e0b90c4
to
8340fbf1
51 days ago
ijjk
added
Turbopack
lukesandberg
changed the base branch from
graphite-base/85592
to
sync_bindings
51 days ago
vercel
commented on 2025-11-05
lukesandberg
force pushed
from
8340fbf1
to
6fdfcca9
50 days ago
vercel
commented on 2025-11-07
lukesandberg
force pushed
from
6fdfcca9
to
cad53a67
49 days ago
lukesandberg
force pushed
from
cad53a67
to
fb04eab3
49 days ago
lukesandberg
force pushed
from
fb04eab3
to
bb9cbad9
49 days ago
lukesandberg
force pushed
from
bb9cbad9
to
68dbfdfa
49 days ago
lukesandberg
force pushed
from
68dbfdfa
to
fee0d1ae
49 days ago
lukesandberg
force pushed
from
fee0d1ae
to
ae5325c6
49 days ago
lukesandberg
changed the base branch from
sync_bindings
to
graphite-base/85592
48 days ago
Be defensive rendering code frames
725bef9f
Add next-code-frame crate with core rendering logic
1563ca66
Fix multiline error markers and add column validation tests
538cc95a
Add spanning markers for multiline errors
8f4e827a
Simplify marker rendering logic with upfront normalization
67a350f7
Simplify marker column calculation with saturating arithmetic
9ec6a8c8
Optimize repeated character output to avoid allocations
d7a6dbef
Extract repeat_char_into helper for efficient character repetition
a244a43c
Apply clippy suggestions for idiomatic Rust
12045752
Fix some more clippy issues
0c5a4a51
Extract helper functions for line truncation and marker calculation
427ae1c3
Clarify end_column semantics with detailed comments
7dcd5e56
Convert code frame API to nested Location structure
6ece5d4c
Migrate tests to use insta snapshot testing
873d84b9
use inline snapshots
fa682058
Implement Phase 4: Syntax highlighting architecture with OXC
d630d5be
Phase 4: Fix swc_ecma_lexer import errors
d45da754
Phase 4: Add syntax highlighting tests and fix BytePos offset
e861779c
Phase 4: Integrate syntax highlighting into code frame rendering
0f9bf704
Add syntax highlighting demo example
b4c11c57
Add comments and punctuation highlighting matching Babel
0838c8eb
Add comprehensive syntax highlighting demo
597c3d73
Move strip_ansi_codes to test module and enable highlighting in all t…
125dbafe
Refactor highlighting to use TokenAndSpan.had_line_break and simplify…
2376fe2a
Optimize highlighting: use had_line_break and line_bounds API
6d919d6e
Optimize highlight.rs to only produce markers for visible lines
7006eb02
Add NAPI bindings for next-code-frame
babdb85e
Fix the napi bindings and support wasm as well.
814b58d6
more async hacks
8e9cbdd3
lukesandberg
force pushed
from
ae5325c6
to
5fc076fc
48 days ago
graphite-app
changed the base branch from
graphite-base/85592
to
canary
48 days ago
Make code frame rendering synchronous
e8d5fc3b
lukesandberg
force pushed
from
5fc076fc
to
e8d5fc3b
48 days ago
Login to write a write a comment.
Login via GitHub
Reviewers
vercel
Assignees
No one assigned
Labels
type: next
Turbopack
created-by: Turbopack team
Milestone
No milestone
Login to write a write a comment.
Login via GitHub