Skip to content

Mermaid: pin default version, drop latest - #2704

Merged
chalin merged 6 commits into
google:mainfrom
chalin:chalin-m24-mermaid-pin-2026-0808
Aug 9, 2026
Merged

Mermaid: pin default version, drop latest#2704
chalin merged 6 commits into
google:mainfrom
chalin:chalin-m24-mermaid-pin-2026-0808

Conversation

@chalin

@chalin chalin commented Aug 8, 2026

Copy link
Copy Markdown
Collaborator

@chalin chalin added this to the 0.17.0 milestone Aug 8, 2026
@chalin
chalin merged commit f709108 into google:main Aug 9, 2026
17 checks passed
@chalin
chalin deleted the chalin-m24-mermaid-pin-2026-0808 branch August 9, 2026 11:24
chalin added a commit to chalin/docsy that referenced this pull request Aug 9, 2026
…anary)

- **Single home for the version**: moves the pin to `theme/hugo.yaml`
  `params.mermaid.version`; the partial and diagrams doc page both render it
  live, killing the 4-copy hand-sync
- **Fail-closed on missing config**: an unset `params.mermaid.version` now
  `errorf`s instead of silently falling back to a duplicated default
- **`warnidf` on floating versions**: a non-`X.Y.Z` version (e.g. `latest`)
  emits a suppressible `mermaid-floating-version` warning
- **Exact-version canary test**: `tests/mermaid-version.test.mjs` fails the
  build if the pin regresses to a floating version; wired into `ci:post`
- **Maintainer notes**: bump note shrinks to the one yaml line; documents the
  emergency security-bump path (manual edit, bypasses the future Renovate
  age gate, ships via the patch-release flow)

Follow-up to google#2704.
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.

Pin the default Mermaid version instead of @latest

1 participant