Skip to content

Commit

Permalink
chore: bump to v0.12.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Enter-tainer committed Dec 4, 2024
1 parent eec23df commit e3bc513
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 2 deletions.
34 changes: 34 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,39 @@
# Changelog

## v0.12.7 - [2024-12-04]

- Dot chain related improvement:
- Previously if the last item of a dot chain is a function call, typstyle doesn't indent it correctly. Now it is fixed.
- Previously typstyle formats function calls in dot chains in a very conversative way. Now it is the same as normal function calls.
- Function calls with comments are made formattable.

For example, the following code is not formattable by typstyle previously:
```typst
#{
let x = f(
cetz.draw.super-long-name.line(
start: (0, 0),
end: (1, 1), // note
) // my comment
)
}
```

Now it will be formatted as:
```typst
#{
let x = f(
cetz
.draw
.super-long-name
.line(
start: (0, 0),
end: (1, 1), // note
), // my comment
)
}
```

## v0.12.6 - [2024-12-02]

- Parenthesized expressions with comments can be formatted by typstyle now.
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "typstyle"
version = "0.12.6"
version = "0.12.7"
edition = "2021"
authors = ["Wenzhuo Liu"]
license = "Apache-2.0"
Expand Down

0 comments on commit e3bc513

Please sign in to comment.