Skip to content

Releases: sametcn99/vitepress-mermaid-renderer

v1.2.2

Choose a tag to compare

@github-actions github-actions released this 11 Sep 14:45

Changed in 1.2.2

  • Made @mermaid-js/mermaid-zenuml an optional, lazily loaded plugin. It moved
    from dependencies to an optional peerDependencies entry, is marked
    external in the library build, and is imported only when a zenuml diagram
    is actually rendered. The published bundle no longer ships the ~1.6MB ZenUML
    chunk, and a missing plugin no longer breaks other diagram types. ZenUML users
    install it with npm i @mermaid-js/mermaid-zenuml; the English, Turkish, and
    Chinese advanced examples now document this requirement.
  • Widened the mermaid peer range from ^11.0.0 to ^11.0.0 || ^12.0.0,
    matching the versions the library is developed and tested against.
  • Added a resetExternalDiagramRegistration helper (also re-exported from the
    components barrel) that clears the cached external-diagram registration.

v1.2.1

Choose a tag to compare

@github-actions github-actions released this 05 Sep 14:09

Added in 1.2.1

  • Added an opt-in collapsible toolbar. A new toggleToolbar button collapses
    and expands the remaining controls, and a new collapsed mode option sets the
    initial state. Both are configurable per display mode through setToolbar().
  • toggleToolbar defaults to disabled and collapsed defaults to expanded
    in every mode, so existing toolbars look and behave exactly as before until
    the button is explicitly enabled.
  • Added toggleToolbarExpand and toggleToolbarCollapse to the toolbar i18n
    tooltip table, with English, Turkish, and Chinese documentation.
  • Added CSS design tokens for toolbar button geometry and colour:
    --mermaid-control-text-active, --mermaid-control-button-radius,
    --mermaid-control-button-padding, --mermaid-control-button-min-size, and
    --mermaid-control-icon-size.

Changed in 1.2.1

  • Unified the mobile and desktop toolbars into a single set of CSS rules. Mobile
    no longer restyles the toolbar; it only raises --mermaid-control-padding,
    --mermaid-control-gap, --mermaid-control-button-min-size, and
    --mermaid-control-icon-size for touch. Overriding a token on
    .mermaid-container now changes both toolbars at once.
  • Mobile toolbar buttons are borderless like their desktop counterparts, and
    their 44px touch target comes from min-width / min-height instead of a
    fixed 40x40 box. --mermaid-control-border now defaults to transparent and
    applies to both modes; set it to a visible colour for outlined buttons.
  • Mobile toolbar icons follow currentColor instead of a hard-coded stroke,
    so --mermaid-control-text and the hover colour apply on mobile too.
  • The toolbar now wraps instead of overflowing when a full button set is wider
    than the diagram container.
  • Corrected the documented defaults for --mermaid-control-gap,
    --mermaid-spinner-duration, --mermaid-error-bg, --mermaid-error-border,
    and --mermaid-error-text, which had drifted from the stylesheet.

Fixed in 1.2.1

  • Fixed diagrams drifting off-center when the container was resized. The
    fit-to-container baseline is now recalculated on resize without resetting the
    user's zoom or pan, which also covers sidebar toggles and layout changes, not
    just window resizes.
  • Fixed the mobile toolbar rendering below the error overlay. Its z-index was
    8 while the error container sits at 10; both toolbars now use 20.
  • Fixed the mobile zoom-level badge being reordered to the front of the toolbar
    and carrying an extra margin, so both modes read in the same order.
  • Removed a flex-direction: column rule that silently overrode the mobile
    toolbar's intended row layout, along with the unused .mobile-only and
    hover-only visibility rules.

Docs site in 1.2.1

These changes affect the documentation site only and are not part of the
published package.

  • Published machine-readable agent discovery resources under /.well-known/: an
    AI catalog, an API catalog, agent skills, an OpenAPI description, OAuth and
    OpenID configuration documents, and a JWKS endpoint.
  • Added auth.md, an MCP Server Card, an Agent Skills index with SHA-256
    digests, and an ARD capability manifest for automated discovery.
  • Added a WebMCP script exposing documentation search and navigation as browser
    tools, plus a Markdown agent-home.md served from / for clients that
    request text/markdown.
  • Added RFC 8288 Link headers for the API catalog, OpenAPI description,
    documentation, and discovery metadata.
  • Added the Vercel rewrites and content-type/CORS headers backing those
    resources, and advertised the AI catalog and Content Signals from robots.txt
    and the page <head>.
  • Added a DNS-AID zone reference with _index._agents and _a2a._agents SVCB
    records and DNSSEC deployment guidance for the authoritative DNS provider.

v1.2.0

Choose a tag to compare

@github-actions github-actions released this 08 Aug 00:57

Changed in 1.2.0

  • Stabilized features introduced in previous releases for a more reliable
    interactive diagram experience.
  • Interactive diagrams now always fit and center themselves after rendering,
    theme updates, and Reset View actions.
  • Removed the fitToContainer option and its runtime update event; automatic
    fitting is now the standard interactive behavior.
  • Updated the English, Turkish, and Chinese documentation to describe automatic
    fitting without a separate configuration option.

Fixed in 1.2.0

  • Restored the container-centered transform origin required by the fitting
    calculation, fixing diagrams that were incorrectly scaled or positioned in
    1.1.32.
  • Fixed sluggish diagram dragging by accounting for the fitted base scale,
    removing mousemove frame throttling, and stopping zoom transitions when a drag
    begins.

v1.1.32

Choose a tag to compare

@github-actions github-actions released this 08 Aug 00:05

Changed

  • Changed fitToContainer to default to true, so interactive diagrams fit and
    center themselves after rendering unless explicitly disabled with
    fitToContainer: false.
  • Updated the English, Turkish, and Chinese configuration and type documentation
    to describe the new default.

v1.1.31

Choose a tag to compare

@github-actions github-actions released this 07 Aug 23:50

Added

  • Added cursor-anchored wheel zoom and pinch-anchored gesture zoom in fullscreen
    mode. Toolbar zoom controls now zoom around the rendered SVG center.
  • Added ZenUML external-diagram registration and a complete advanced example
    catalog covering all 30 Mermaid diagram types supported by this package.

Fixed

  • Fixed theme changes re-rendering diagrams while a zoom or pan transform was
    active. Mermaid now renders at an identity transform and restores the user's
    fitted view, zoom level, and pan position afterward. Fixes #14.
  • Fixed fitToContainer so fitting is a base visual transform while the
    toolbar's initial zoom level remains 100%. User zoom and pan are preserved
    across re-renders and fullscreen transitions. Fixes #15.
  • Fixed Reset View with fitToContainer so it restores the unscaled 100% user
    view instead of the fitted and centered position. Fixes #16.
  • Added a short zoom transition that does not interfere with reset or fit
    measurement. Fixes #17.
  • Corrected the Requirement and Radar examples to use Mermaid's current syntax.

Changed

  • Optimized the smoke-test package setup to remove and reinstall only the local
    vitepress-mermaid-renderer dependency instead of deleting all test-project
    dependencies.
  • Expanded renderer, navigation, and end-to-end coverage for theme rerenders,
    fit behavior, focal fullscreen zoom, and the advanced diagram catalog.

v1.1.30

Choose a tag to compare

@github-actions github-actions released this 06 Aug 21:49

Added in 1.1.30

  • Added the opt-in fitToContainer renderer option. When enabled, diagrams are
    scaled and centered after rendering to fit their container, including when the
    option changes at runtime. The default interactive view remains unscaled at
    100%.
  • Added fit-and-center navigation and component coverage, including geometry
    edge cases and runtime renderer option updates.

Changed in 1.1.30

  • Expanded the default Mermaid configuration to define natural-size
    (useMaxWidth: false) settings for every supported diagram configuration
    type, keeping zoom, pan, and fit-to-container behavior consistent.
  • Moved duplicated usage and configuration content from the README to the
    documentation site, and documented fitToContainer in English, Turkish, and
    Chinese configuration and type reference pages.
  • Pinned the test project's Mermaid and VitePress dependencies to ^11.16.1 and
    ^1.6.4, respectively, for reproducible smoke tests.

v1.1.29

Choose a tag to compare

@github-actions github-actions released this 05 Aug 23:26

Added

  • Added static SVG rendering through createMermaidRenderer({ static: true }).
    Static diagrams remain theme-aware while omitting toolbar controls, gestures,
    fullscreen, downloads, and keyboard navigation.
  • Added static-mode lifecycle updates so existing diagrams react when the shared
    renderer switches between interactive and static output.
  • Added static SVG layout styles and component coverage for non-interactive
    rendering.

Fixed

  • Fixed the bundled TypeScript declarations so createMermaidRenderer() uses
    the public Mermaid configuration type instead of colliding with the internal
    useMermaidRenderer composable options type.
  • Updated the multilingual documentation and examples to match the current
    renderer, toolbar, security, accessibility, and installation APIs.

Changed

  • Updated Mermaid and development dependencies to their latest compatible
    versions.

v1.1.28

Choose a tag to compare

@github-actions github-actions released this 15 Jul 11:41
  • Updated dependencies to their latest versions.

v1.1.27

Choose a tag to compare

@github-actions github-actions released this 13 Jun 13:06

Version information was not added to CHANGELOG.md for 1.1.27.

v1.1.26

Choose a tag to compare

@github-actions github-actions released this 30 May 20:27
  • Install size minification