Skip to content

feat: add support for arrayExpression.maxWidth configuration - #1

Closed
xseman wants to merge 148 commits into
mainfrom
array-expression-max-width
Closed

xseman wants to merge 148 commits into
mainfrom
array-expression-max-width

Conversation

@xseman

@xseman xseman commented Feb 19, 2026

Copy link
Copy Markdown
Owner

No description provided.

nayeemrmn and others added 30 commits October 28, 2025 15:19
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
xseman force-pushed the array-expression-max-width branch from 3f77aea to 69635e1 Compare November 5, 2026 13:50
todor-a and others added 26 commits November 5, 2026 09:17
…ject & array literals and add specific options (dprint#900)
…instead of moving the arrow function to the next line (dprint#912)
…lement

# Conflicts:
#	src/generation/generate.rs
@xseman

xseman commented Nov 11, 2026

Copy link
Copy Markdown
Owner Author

Merged upstream in dprint#739.

@xseman xseman closed this Nov 11, 2026
@xseman
xseman deleted the array-expression-max-width branch November 11, 2026 13:19
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.