Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump go.abhg.dev/goldmark/mermaid from 0.4.0 to 0.5.0 #29

Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Nov 6, 2023

Bumps go.abhg.dev/goldmark/mermaid from 0.4.0 to 0.5.0.

Release notes

Sourced from go.abhg.dev/goldmark/mermaid's releases.

v0.5.0 - 2023-11-03

This release brings support for rendering diagrams server-side without the need for the MermaidJS CLI.

You can use this functionality by installing a mermaidcdp.Compiler into your mermaid.Extender or mermaid.ServerRenderer. For example:

import "go.abhg.dev/goldmark/mermaid/mermaidcdp"
compiler, err := mermaidcdp.New(&mermaidcdp.Config{
JSSource: mermaidJSSource, // contents of mermaid.min.js
})
if err != nil {
return err
}
defer compiler.Close()
md := goldmark.New(
goldmark.WithExtensions(
// ...
&mermaid.Extender{
Compiler: compiler,
},
),
// ...
)

Use of mermaidcdp is highly recommended for server-side rendering if you have lots of diagrams or documents to render. This should be substantially faster than invoking the mmdc CLI.

Breaking changes

  • ServerRenderer: Delete MMDC and Theme fields. If you need these, you can provide them with the CLICompiler instead.
  • CLI and MMDC were flipped. The old MMDC interface is now named CLI, and it now accepts a context. You can use the new MMDC function to build an instance of it.
  • ClientRenderer, Extender: Rename MermaidJS to MermaidURL.
  • Rename DefaultMMDC to DefaultCLI.
  • Extender: Replace MMDC field with the CLI field.

Added

  • ServerRenderer now supports pluggable Compilers.
  • Add CLICompiler to render diagrams by invoking MermaidJS CLI. Plugs into ServerRenderer.
  • Add mermaidcdp subpackage to render diagrams with a long-running Chromium-based process. Plugs into ServerRenderer.
Changelog

Sourced from go.abhg.dev/goldmark/mermaid's changelog.

v0.5.0 - 2023-11-03

This release brings support for rendering diagrams server-side without the need for the MermaidJS CLI.

You can use this functionality by installing a mermaidcdp.Compiler into your mermaid.Extender or mermaid.ServerRenderer. For example:

import "go.abhg.dev/goldmark/mermaid/mermaidcdp"
compiler, err := mermaidcdp.New(&mermaidcdp.Config{
JSSource: mermaidJSSource, // contents of mermaid.min.js
})
if err != nil {
return err
}
defer compiler.Close()
md := goldmark.New(
goldmark.WithExtensions(
// ...
&mermaid.Extender{
Compiler: compiler,
},
),
// ...
)

Use of mermaidcdp is highly recommended for server-side rendering if you have lots of diagrams or documents to render. This should be substantially faster than invoking the mmdc CLI.

Breaking changes

  • ServerRenderer: Delete MMDC and Theme fields. If you need these, you can provide them with the CLICompiler instead.
  • CLI and MMDC were flipped. The old MMDC interface is now named CLI, and it now accepts a context. You can use the new MMDC function to build an instance of it.
  • ClientRenderer, Extender: Rename MermaidJS to MermaidURL.
  • Rename DefaultMMDC to DefaultCLI.
  • Extender: Replace MMDC field with the CLI field.

Added

  • ServerRenderer now supports pluggable Compilers.
  • Add CLICompiler to render diagrams by invoking MermaidJS CLI. Plugs into ServerRenderer.
  • Add mermaidcdp subpackage to render diagrams with a long-running Chromium-based process. Plugs into ServerRenderer.
Commits
  • 061ebbe Release v0.5.0 (#59)
  • 7bedfa2 Add CDP-based server-side rendering (#58)
  • 9383d1d README: Use stitchmd (#57)
  • 178efc0 test(integration): Fix not being run, use latest Mermaid (#56)
  • 8f072fc build(deps): bump github.com/yuin/goldmark from 1.5.6 to 1.6.0 in /demo (#55)
  • ccdedec build(deps): bump actions/setup-node from 3 to 4 (#54)
  • 13d7b46 lint: Drop paralleltest
  • 4999223 build(deps): bump golang.org/x/tools from 0.13.0 to 0.14.0 in /tools (#53)
  • 02e3e97 fix(lint/typo): linter-settings => linters-settings (#52)
  • 1549213 build(deps): bump golang.org/x/tools from 0.12.0 to 0.13.0 in /tools (#51)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [go.abhg.dev/goldmark/mermaid](https://github.com/abhinav/goldmark-mermaid) from 0.4.0 to 0.5.0.
- [Release notes](https://github.com/abhinav/goldmark-mermaid/releases)
- [Changelog](https://github.com/abhinav/goldmark-mermaid/blob/main/CHANGELOG.md)
- [Commits](abhinav/goldmark-mermaid@v0.4.0...v0.5.0)

---
updated-dependencies:
- dependency-name: go.abhg.dev/goldmark/mermaid
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Nov 6, 2023
@jtarchie jtarchie merged commit 96bc97b into main Nov 6, 2023
1 check passed
@dependabot dependabot bot deleted the dependabot/go_modules/go.abhg.dev/goldmark/mermaid-0.5.0 branch November 6, 2023 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant