chore: minimizeDiff follow-ups (size cap, trailing commas, snapshots)#1164
Merged
manuel3108 merged 3 commits intoJul 7, 2026
Merged
Conversation
|
Install the latest version of pnpm add https://pkg.svelte.dev/sv/c/d94684c580e4cc77325444f2a773ea07153c13b6Open in |
|
manuel3108
approved these changes
Jul 7, 2026
manuel3108
added a commit
that referenced
this pull request
Jul 8, 2026
* stuff * more stuff * removed * improved formatting * chore: minimizeDiff follow-ups (size cap, trailing commas, snapshots) (#1164) * re-add diffLines size cap, handle trailing commas before ), trim comments * update migrate snapshots for new minimizeDiff blank-line behavior * update cli create snapshots for new minimizeDiff blank-line behavior --------- Co-authored-by: jyc.dev <jycouet@gmail.com>
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.
Follow-ups on top of #1163:
diffLinesis O(N·D), a ~800KB heavily reformatted file hangs for minutes without it (2ms with it))innormalizeForComparisonso prettiertrailingComma: "all"rewraps are restored as formatting-only