[ci-force] Update next.md
This commit is contained in:
parent
ae128ac435
commit
436a77a9cc
1 changed files with 38 additions and 9 deletions
|
|
@ -1,23 +1,52 @@
|
||||||
|
The globs feature underwent a major rewrite and is now almost finalized.
|
||||||
|
|
||||||
|
### Before
|
||||||
|
|
||||||
|
Previously, globs would evaluate once on all the shapes and connections declared above it. So if you wanted to set everything red, you had to add the line at the bottom.
|
||||||
|
|
||||||
|
```d2
|
||||||
|
x
|
||||||
|
y
|
||||||
|
|
||||||
|
*.style.fill: red
|
||||||
|
```
|
||||||
|
|
||||||
|
### Now
|
||||||
|
|
||||||
|
```d2
|
||||||
|
*.style.fill: red
|
||||||
|
|
||||||
|
x
|
||||||
|
y
|
||||||
|
```
|
||||||
|
|
||||||
|
We still have one more release in 0.6 series to add filters to globs, so stay tuned.
|
||||||
|
|
||||||
|
You might also be interested to know that grid cells can now have connections between them! Source code for this diagram [here](https://github.com/terrastruct/d2/blob/master/e2etests/testdata/files/simple_grid_edges.d2).
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
#### Features 🚀
|
#### Features 🚀
|
||||||
|
|
||||||
- UTF-16 files are automatically detected and supported [#1525](https://github.com/terrastruct/d2/pull/1525)
|
- UTF-16 files are automatically detected and supported [#1525](https://github.com/terrastruct/d2/pull/1525)
|
||||||
- Grid diagrams can now have simple edges between cells [#1586](https://github.com/terrastruct/d2/pull/1586)
|
- Grid diagrams can now have simple connections between top-level cells [#1586](https://github.com/terrastruct/d2/pull/1586)
|
||||||
|
|
||||||
#### Improvements 🧹
|
#### Improvements 🧹
|
||||||
|
|
||||||
- Globs are lazily-evaluated [#1552](https://github.com/terrastruct/d2/pull/1552)
|
- Globs are lazily-evaluated [#1552](https://github.com/terrastruct/d2/pull/1552)
|
||||||
- Latex now includes Mathjax's ASM extension for more powerful Latex functionality [#1544](https://github.com/terrastruct/d2/pull/1544)
|
- Latex blocks includes Mathjax's ASM extension [#1544](https://github.com/terrastruct/d2/pull/1544)
|
||||||
- `font-color` works on Markdown [#1546](https://github.com/terrastruct/d2/pull/1546)
|
- `font-color` works on Markdown [#1546](https://github.com/terrastruct/d2/pull/1546)
|
||||||
- `font-color` works on arrowheads [#1582](https://github.com/terrastruct/d2/pull/1582)
|
- `font-color` works on arrowheads [#1582](https://github.com/terrastruct/d2/pull/1582)
|
||||||
- CLI failure message includes input path [#1617](https://github.com/terrastruct/d2/pull/1617)
|
- CLI failure message includes input path [#1617](https://github.com/terrastruct/d2/pull/1617)
|
||||||
|
|
||||||
#### Bugfixes ⛑️
|
#### Bugfixes ⛑️
|
||||||
|
|
||||||
- Fixes `d2 fmt` to format all files passed as arguments rather than first non-formatted only (thank you @maxbrunet) [#1523](https://github.com/terrastruct/d2/issues/1523)
|
- `d2 fmt` formats all files passed as arguments rather than just the first non-formatted (thank you @maxbrunet) [#1523](https://github.com/terrastruct/d2/issues/1523)
|
||||||
- Fixes Markdown cropping last element in mixed-element blocks (e.g. em and strong) [#1543](https://github.com/terrastruct/d2/issues/1543)
|
- Fixes Markdown cropping last element in mixed-element blocks (e.g. em and strong) [#1543](https://github.com/terrastruct/d2/issues/1543)
|
||||||
- Fixes missing compile error for non-blockstring empty labels [#1590](https://github.com/terrastruct/d2/issues/1590)
|
- Adds compiler error for non-blockstring empty labels [#1590](https://github.com/terrastruct/d2/issues/1590)
|
||||||
- Fixes multiple constant nears overlapping in some cases [#1591](https://github.com/terrastruct/d2/issues/1591)
|
- Prevents multiple constant nears overlapping in some cases [#1591](https://github.com/terrastruct/d2/issues/1591)
|
||||||
- Fixes error with an empty nested grid [#1594](https://github.com/terrastruct/d2/issues/1594)
|
- Fixes crash from empty nested grid [#1594](https://github.com/terrastruct/d2/issues/1594)
|
||||||
- Fixes incorrect `d2fmt` with variable substitution mid-string [#1611](https://github.com/terrastruct/d2/issues/1611)
|
- `d2fmt` with variable substitution mid-string is formatted correctly [#1611](https://github.com/terrastruct/d2/issues/1611)
|
||||||
- Fixes dagre error with child named id [#1610](https://github.com/terrastruct/d2/issues/1610)
|
- Fixes certain shape IDs not working with dagre [#1610](https://github.com/terrastruct/d2/issues/1610)
|
||||||
- Fixes font-size missing from rendered code shape [#1614](https://github.com/terrastruct/d2/issues/1614)
|
- Fixes font-size adjustments missing from rendered code shape [#1614](https://github.com/terrastruct/d2/issues/1614)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue