Skip to content

Commit

Permalink
Update CHANGELOG.
Browse files Browse the repository at this point in the history
  • Loading branch information
munificent committed Dec 17, 2024
1 parent 66e4ce6 commit cdb17a9
Showing 1 changed file with 47 additions and 7 deletions.
54 changes: 47 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,52 @@
## 3.0.1-wip

* Handle trailing commas in for-loop updaters (#1354).
* Format `||` patterns like fallthrough cases in switch expressions (#1602).
* Handle comments and metadata before variables more gracefully (#1604).
* Ensure comment formatting is idempotent (#1606).
* Better indentation of leading comments on property accesses in binary operator
operands (#1611).
* Don't crash on doc comments in local variable declarations (#1621).
* Handle trailing commas in for-loop updaters (#1354).
* Format `||` patterns like fallthrough cases in switch expressions (#1602).
* Handle comments and metadata before variables more gracefully (#1604).
* Ensure comment formatting is idempotent (#1606).
* Better indentation of leading comments on property accesses in binary operator
operands (#1611).
* Don't crash on doc comments in local variable declarations (#1621).

* Don't indent conditional branches redundantly after `=`, `:`, and `=>`.

```dart
// Before:
function(
argument:
condition
? thenBranch
: elseBranch,
)
// After:
function(
argument:
condition
? thenBranch
: elseBranch,
)
```
* Indent conditional branches past the operators (#1534).
```dart
// Before:
condition
? thenBranch +
anotherOperand
: elseBranch(
argument,
);
// After:
condition
? thenBranch +
anotherOperand
: elseBranch(
argument,
);
```
## 3.0.0
Expand Down

0 comments on commit cdb17a9

Please sign in to comment.