Repository navigation
Conversation
This crate only used `deno_ast` for parsing and its parse diagnostics — everything else it needed already came from dprint-swc-ext, which `deno_ast` re-exports. It now parses with swc directly and owns its diagnostics, dropping 17 crates from the dependency graph. A `deno_ast` user can still hand over an already parsed AST with its comments via dprint-swc-ext's `ProgramInfoProvider` trait, so nothing has to be parsed twice. Breaking changes: - `format_parsed_source` takes `FormatParsedSourceOptions` and is generic over `ProgramInfoProvider`, so it accepts a parsed source from any crate. It no longer checks the parse diagnostics, since it can't for a source it didn't parse — `parse_program` does that instead, and `is_unsupported_syntax_error` is public for callers that parse elsewhere. - The formatting entrypoints take the swc `Syntax` the file was parsed with rather than a media type. - `format_text` takes the file text as an `Arc<str>`. Diagnostic messages are unchanged.
Signed-off-by: Yaroslav Bolyukin <iam@lach.pw>
xseman
force-pushed
the
array-expression-max-width
branch
from
November 5, 2026 13:50
3f77aea to
69635e1
Compare
…row parameters there when formatting again (dprint#897)
…ject & array literals and add specific options (dprint#900)
… after a newly multi-line one on a new line
…instead of moving the arrow function to the next line (dprint#912)
… own line is multi-line (dprint#914)
…lement # Conflicts: # src/generation/generate.rs
Owner
Author
|
Merged upstream in dprint#739. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.