ci/release/changelogs/v0.5.0.md
There are three important features that were in the initial design of D2 that have not been done and hold it back from 1.0: globs, imports, and vars. This release brings imports.
Imports open up a world of possibilities and works beautifully to modularize diagrams. See the new docs to try it out today.
As usual, many improvements and bug fixes accompany this release. D2 0.5 produces more legible diagrams by masking obstructions (e.g. arrow going through a label), has better error messages to guide you, is faster at certain tasks, and addresses many issues brought by community bug reports.
sql_table alternatively takes an array of constraints instead of being limited to a single one. Thanks @satoqz ! #1245grid-gap, vertical-gap, and horizontal-gap apply to padding on grid diagrams #13093d or multiple #1340sql_table render even if they have no matching abbreviation #1372sql_table sheds their excessive letter-spacing and is padded from the end consistently #1372--img-cache=0. #1373, usage in class arrays returns a helpful error message #1376constraint usage is met with an error message, preventing a common mistake of omitting shape: sql_table #1379dagre are more balanced #1384--pad is 0. Thank you @LeonardsonCC ! #1326--animate-interval) #1357dagre mis-aligning a nested shape's connection #1370@xyz is now reserved as a pattern for imports. If you previously had a key that started like that, it must either be renamed or quoted like "@xyz"....@xyz (spread operator import)