Skip to content

chore: version packages #skip-changeset - #50

Merged
hebus merged 1 commit into
mainfrom
changeset-release/main
Aug 21, 2026
Merged

hebus merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or setup this action to publish automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

[email protected]

Minor Changes

  • dc3d6b3: Add the minimal theme, and let a theme decide whether icons are drawn at all.

    minimal is decoration removed rather than restyled: no icon, no accent bar, no shadow, no plate, a hairline border and one ink colour. It is also the smallest of the three in bytes — with nothing reading --do-accent, the renderer omits the fifteen per-type declarations as well.

    NodeTheme gains icons and accentStripe, both defaulting to on. icons has to be a theme decision rather than an absence in semanticTypes: the semantic stage writes an icon name onto a node before the renderer sees it — a default rule matching "PostgreSQL" carries database whatever the theme says — so without the flag a theme had no way to decline. The semantic model proposes; the theme disposes.

  • dc3d6b3: Add diagramStylesheet(theme) and RenderOptions.stylesheet, so a page with several diagrams carries the CSS once.

    Inlined, the theme's rules are the largest part of a small diagram — 4.3 kB against about 2 kB of drawing — and every diagram repeated them. stylesheet: "external" leaves the <style> element out and the caller emits diagramStylesheet(theme) once; scopeOf(theme) names the class every rule is scoped to. "inline" remains the default, because an SVG opened on its own has nowhere else to carry its styles.

    Measured on the documentation site, whose Diagrams page renders four: 227.9 kB to 202.1 kB. On a two-node diagram the SVG drops by 70%.

@github-actions
github-actions Bot force-pushed the changeset-release/main branch from ec7c279 to beb0306 Compare August 21, 2026 16:08
@hebus
hebus merged commit fb39b65 into main Aug 21, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant