1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
unleash.unleash/frontend
renovate[bot] 2815e38fb2
chore(deps): update dependency mermaid to v9.4.3 (#3601)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [mermaid](https://togithub.com/mermaid-js/mermaid) | [`9.3.0` ->
`9.4.3`](https://renovatebot.com/diffs/npm/mermaid/9.3.0/9.4.3) |
[![age](https://badges.renovateapi.com/packages/npm/mermaid/9.4.3/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/mermaid/9.4.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/mermaid/9.4.3/compatibility-slim/9.3.0)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/mermaid/9.4.3/confidence-slim/9.3.0)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>mermaid-js/mermaid</summary>

###
[`v9.4.3`](https://togithub.com/mermaid-js/mermaid/releases/tag/v9.4.3)

[Compare
Source](https://togithub.com/mermaid-js/mermaid/compare/v9.4.2...v9.4.3)

**Full Changelog**:
https://github.com/mermaid-js/mermaid/compare/v9.4.2...v9.4.3

Fixes imports for dayjs and cytoscape.

###
[`v9.4.2`](https://togithub.com/mermaid-js/mermaid/releases/tag/v9.4.2)

[Compare
Source](https://togithub.com/mermaid-js/mermaid/compare/v9.4.0...v9.4.2)

#### What's Changed

- chore(deps): update all non-major dependencies (minor) by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/mermaid-js/mermaid/pull/4044](https://togithub.com/mermaid-js/mermaid/pull/4044)
- chore(deps): update dependency
[@&#8203;types/uuid](https://togithub.com/types/uuid) to v9 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/mermaid-js/mermaid/pull/4067](https://togithub.com/mermaid-js/mermaid/pull/4067)
- build(lint:fix): cache eslint in pnpm run lint:fix by
[@&#8203;aloisklink](https://togithub.com/aloisklink) in
[https://github.com/mermaid-js/mermaid/pull/4073](https://togithub.com/mermaid-js/mermaid/pull/4073)
- chore(deps): update dependency rimraf to v4 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/mermaid-js/mermaid/pull/4070](https://togithub.com/mermaid-js/mermaid/pull/4070)
- chore(deps): update dependency jsdom to v21 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/mermaid-js/mermaid/pull/4069](https://togithub.com/mermaid-js/mermaid/pull/4069)
- chore(deps): update timonvs/pr-labeler-action action to v4 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/mermaid-js/mermaid/pull/4072](https://togithub.com/mermaid-js/mermaid/pull/4072)
- chore(deps): update actions/configure-pages action to v3 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/mermaid-js/mermaid/pull/4065](https://togithub.com/mermaid-js/mermaid/pull/4065)
- chore(deps): update actions/dependency-review-action action to v3 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/mermaid-js/mermaid/pull/4066](https://togithub.com/mermaid-js/mermaid/pull/4066)
- docs: minor fix on markdown by
[@&#8203;Jeff-Tian](https://togithub.com/Jeff-Tian) in
[https://github.com/mermaid-js/mermaid/pull/4015](https://togithub.com/mermaid-js/mermaid/pull/4015)
- Add logo to readme by
[@&#8203;sidharthv96](https://togithub.com/sidharthv96) in
[https://github.com/mermaid-js/mermaid/pull/4076](https://togithub.com/mermaid-js/mermaid/pull/4076)
- Release 9.4.1 by
[@&#8203;sidharthv96](https://togithub.com/sidharthv96) in
[https://github.com/mermaid-js/mermaid/pull/4095](https://togithub.com/mermaid-js/mermaid/pull/4095)
- chore(deps): update dependency vite to v4 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/mermaid-js/mermaid/pull/4071](https://togithub.com/mermaid-js/mermaid/pull/4071)
- chore(deps): update dependency cypress to v12 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/mermaid-js/mermaid/pull/4068](https://togithub.com/mermaid-js/mermaid/pull/4068)
- fix(api): tree shaking package.json import by
[@&#8203;AielloChan](https://togithub.com/AielloChan) in
[https://github.com/mermaid-js/mermaid/pull/4101](https://togithub.com/mermaid-js/mermaid/pull/4101)

#### New Contributors

- [@&#8203;Jeff-Tian](https://togithub.com/Jeff-Tian) made their first
contribution in
[https://github.com/mermaid-js/mermaid/pull/4015](https://togithub.com/mermaid-js/mermaid/pull/4015)
- [@&#8203;AielloChan](https://togithub.com/AielloChan) made their first
contribution in
[https://github.com/mermaid-js/mermaid/pull/4101](https://togithub.com/mermaid-js/mermaid/pull/4101)

**Full Changelog**:
https://github.com/mermaid-js/mermaid/compare/v9.4.0...v9.4.2

###
[`v9.4.0`](https://togithub.com/mermaid-js/mermaid/releases/tag/v9.4.0)

[Compare
Source](https://togithub.com/mermaid-js/mermaid/compare/v9.3.0...v9.4.0)

#### What's Changed

##### Features

- Timeline Diagram by
[@&#8203;ashishjain0512](https://togithub.com/ashishjain0512) in
[https://github.com/mermaid-js/mermaid/pull/4014](https://togithub.com/mermaid-js/mermaid/pull/4014)
- feat: Flowchart layout using elkjs by
[@&#8203;knsv](https://togithub.com/knsv) in
[https://github.com/mermaid-js/mermaid/pull/3984](https://togithub.com/mermaid-js/mermaid/pull/3984)
- Layout v3 continued by [@&#8203;knsv](https://togithub.com/knsv) in
[https://github.com/mermaid-js/mermaid/pull/3938](https://togithub.com/mermaid-js/mermaid/pull/3938)
- feat(er): add unique key by
[@&#8203;tomperr](https://togithub.com/tomperr) in
[https://github.com/mermaid-js/mermaid/pull/3917](https://togithub.com/mermaid-js/mermaid/pull/3917)
- feat: Set svg role to 'graphics-document document' by
[@&#8203;weedySeaDragon](https://togithub.com/weedySeaDragon) in
[https://github.com/mermaid-js/mermaid/pull/3897](https://togithub.com/mermaid-js/mermaid/pull/3897)
- feat: Wait for rendering to finish before taking image snapshots by
[@&#8203;sidharthv96](https://togithub.com/sidharthv96) in
[https://github.com/mermaid-js/mermaid/pull/3995](https://togithub.com/mermaid-js/mermaid/pull/3995)
- feat(er): add multiple key constraints by
[@&#8203;tomperr](https://togithub.com/tomperr) in
[https://github.com/mermaid-js/mermaid/pull/4030](https://togithub.com/mermaid-js/mermaid/pull/4030)
- Add support for YAML frontmatter in Markdown docs (used for Vitepress
config) by [@&#8203;aloisklink](https://togithub.com/aloisklink) in
[https://github.com/mermaid-js/mermaid/pull/3962](https://togithub.com/mermaid-js/mermaid/pull/3962)
- feat(er): allow leading underscore for attributes name by
[@&#8203;tomperr](https://togithub.com/tomperr) in
[https://github.com/mermaid-js/mermaid/pull/4033](https://togithub.com/mermaid-js/mermaid/pull/4033)
- Add links to theme listing by
[@&#8203;BD103](https://togithub.com/BD103) in
[https://github.com/mermaid-js/mermaid/pull/3890](https://togithub.com/mermaid-js/mermaid/pull/3890)
- Adding support for parenthesis in the er diagram attribute types. by
[@&#8203;mahomedalid](https://togithub.com/mahomedalid) in
[https://github.com/mermaid-js/mermaid/pull/3892](https://togithub.com/mermaid-js/mermaid/pull/3892)
- Support parsing indented mermaid/YAML only from HTML by
[@&#8203;aloisklink](https://togithub.com/aloisklink) in
[https://github.com/mermaid-js/mermaid/pull/3859](https://togithub.com/mermaid-js/mermaid/pull/3859)
- Parse style string and number font size values from configuration
inputs by [@&#8203;jonabc](https://togithub.com/jonabc) in
[https://github.com/mermaid-js/mermaid/pull/3993](https://togithub.com/mermaid-js/mermaid/pull/3993)
- Mindmaps: differentiate the colors between the root node and the first
section
[#&#8203;4017](https://togithub.com/mermaid-js/mermaid/issues/4017) by
[@&#8203;knsv](https://togithub.com/knsv) in
[https://github.com/mermaid-js/mermaid/pull/4018](https://togithub.com/mermaid-js/mermaid/pull/4018)
- Add Box support in Sequence Diagrams by
[@&#8203;oleveau](https://togithub.com/oleveau) in
[https://github.com/mermaid-js/mermaid/pull/3965](https://togithub.com/mermaid-js/mermaid/pull/3965)

##### Breaking changes

- Mind map and timeline diagrams are lazy loaded by mermaid. In order to
use these diagrams you need to use the renderAsync method of rendering.
The
[@&#8203;mermaid-js/mermaid-mindmap](https://togithub.com/mermaid-js/mermaid-mindmap)
package is deprecated by this.

##### Documentation

- doc: remove links from atom.io; add note Atom has been archived by
[@&#8203;weedySeaDragon](https://togithub.com/weedySeaDragon) in
[https://github.com/mermaid-js/mermaid/pull/3899](https://togithub.com/mermaid-js/mermaid/pull/3899)
- docs(README.zh-CN): fix book image src by
[@&#8203;aloisklink](https://togithub.com/aloisklink) in
[https://github.com/mermaid-js/mermaid/pull/3920](https://togithub.com/mermaid-js/mermaid/pull/3920)
- docs: fix typo by [@&#8203;Foo-x](https://togithub.com/Foo-x) in
[https://github.com/mermaid-js/mermaid/pull/3925](https://togithub.com/mermaid-js/mermaid/pull/3925)
- docs: update navbar by
[@&#8203;huynhicode](https://togithub.com/huynhicode) in
[https://github.com/mermaid-js/mermaid/pull/3906](https://togithub.com/mermaid-js/mermaid/pull/3906)
- docs: fix text overflow by
[@&#8203;huynhicode](https://togithub.com/huynhicode) in
[https://github.com/mermaid-js/mermaid/pull/3907](https://togithub.com/mermaid-js/mermaid/pull/3907)
- docs: Remove duplicate example in ER-diagram documentation by
[@&#8203;guilhermgonzaga](https://togithub.com/guilhermgonzaga) in
[https://github.com/mermaid-js/mermaid/pull/3964](https://togithub.com/mermaid-js/mermaid/pull/3964)
- Docs: Too many `primaryBorderColor` field by
[@&#8203;LiHowe](https://togithub.com/LiHowe) in
[https://github.com/mermaid-js/mermaid/pull/3986](https://togithub.com/mermaid-js/mermaid/pull/3986)
- docs(sequenceDiagram): subvert prettification of arrow types by
[@&#8203;cakemanny](https://togithub.com/cakemanny) in
[https://github.com/mermaid-js/mermaid/pull/3988](https://togithub.com/mermaid-js/mermaid/pull/3988)
- Add Swimm to the list of integrations by
[@&#8203;Omerr](https://togithub.com/Omerr) in
[https://github.com/mermaid-js/mermaid/pull/3936](https://togithub.com/mermaid-js/mermaid/pull/3936)
- Website/homepage updates by
[@&#8203;huynhicode](https://togithub.com/huynhicode) in
[https://github.com/mermaid-js/mermaid/pull/3945](https://togithub.com/mermaid-js/mermaid/pull/3945)
- Update sequenceDiagram.md to include line break by
[@&#8203;Odogwudozilla](https://togithub.com/Odogwudozilla) in
[https://github.com/mermaid-js/mermaid/pull/3960](https://togithub.com/mermaid-js/mermaid/pull/3960)
- Support GitHub Flavored Markdown in markdown documentation by
[@&#8203;aloisklink](https://togithub.com/aloisklink) in
[https://github.com/mermaid-js/mermaid/pull/3954](https://togithub.com/mermaid-js/mermaid/pull/3954)
- Update integrations.md by
[@&#8203;Barry1](https://togithub.com/Barry1) in
[https://github.com/mermaid-js/mermaid/pull/4011](https://togithub.com/mermaid-js/mermaid/pull/4011)
- docs(readme): update broken twitter badge by
[@&#8203;LeoDog896](https://togithub.com/LeoDog896) in
[https://github.com/mermaid-js/mermaid/pull/4032](https://togithub.com/mermaid-js/mermaid/pull/4032)
- Update mindmap.md by [@&#8203;GavinPen](https://togithub.com/GavinPen)
in
[https://github.com/mermaid-js/mermaid/pull/4042](https://togithub.com/mermaid-js/mermaid/pull/4042)
- Showcase section to the docs - keepings docs up to date by
[@&#8203;Omerr](https://togithub.com/Omerr) in
[https://github.com/mermaid-js/mermaid/pull/4055](https://togithub.com/mermaid-js/mermaid/pull/4055)

##### Bug Fixes

- fix(docs): remove duplicate section by
[@&#8203;Joxtacy](https://togithub.com/Joxtacy) in
[https://github.com/mermaid-js/mermaid/pull/3908](https://togithub.com/mermaid-js/mermaid/pull/3908)
- fix: Typescript error in usage by
[@&#8203;tommoor](https://togithub.com/tommoor) in
[https://github.com/mermaid-js/mermaid/pull/3914](https://togithub.com/mermaid-js/mermaid/pull/3914)
- fix: dev server watch mode by
[@&#8203;huynhicode](https://togithub.com/huynhicode) in
[https://github.com/mermaid-js/mermaid/pull/3904](https://togithub.com/mermaid-js/mermaid/pull/3904)
- fix(er): switch to deterministic UUIDs in ER by
[@&#8203;aloisklink](https://togithub.com/aloisklink) in
[https://github.com/mermaid-js/mermaid/pull/3916](https://togithub.com/mermaid-js/mermaid/pull/3916)
- fixed Composition arrow by
[@&#8203;Frank-Mayer](https://togithub.com/Frank-Mayer) in
[https://github.com/mermaid-js/mermaid/pull/3930](https://togithub.com/mermaid-js/mermaid/pull/3930)
- fix(generic): fix generic type detection by
[@&#8203;tomperr](https://togithub.com/tomperr) in
[https://github.com/mermaid-js/mermaid/pull/3921](https://togithub.com/mermaid-js/mermaid/pull/3921)
- fix typos accessing techn property in drawC4Shape function by
[@&#8203;nekikara](https://togithub.com/nekikara) in
[https://github.com/mermaid-js/mermaid/pull/3943](https://togithub.com/mermaid-js/mermaid/pull/3943)
- fix(deps): update dependency dompurify to v2.4.3 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/mermaid-js/mermaid/pull/3977](https://togithub.com/mermaid-js/mermaid/pull/3977)
- Fix nonstandard syntax by
[@&#8203;atmikeguo](https://togithub.com/atmikeguo) in
[https://github.com/mermaid-js/mermaid/pull/3972](https://togithub.com/mermaid-js/mermaid/pull/3972)
- Fix failing tests due to semantic merge conflict by
[@&#8203;aloisklink](https://togithub.com/aloisklink) in
[https://github.com/mermaid-js/mermaid/pull/3985](https://togithub.com/mermaid-js/mermaid/pull/3985)
- fix(deps): update dependency dagre-d3-es to v7.0.6 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/mermaid-js/mermaid/pull/3996](https://togithub.com/mermaid-js/mermaid/pull/3996)
-
fix([#&#8203;4003](https://togithub.com/mermaid-js/mermaid/issues/4003)):
Remove unhandled promises by
[@&#8203;sidharthv96](https://togithub.com/sidharthv96) in
[https://github.com/mermaid-js/mermaid/pull/4004](https://togithub.com/mermaid-js/mermaid/pull/4004)
- Bug/3858 \[state] trailing whitespace in ids for named state container
by [@&#8203;weedySeaDragon](https://togithub.com/weedySeaDragon) in
[https://github.com/mermaid-js/mermaid/pull/3902](https://togithub.com/mermaid-js/mermaid/pull/3902)
- fix: moment-mini default exporter by
[@&#8203;emersonbottero](https://togithub.com/emersonbottero) in
[https://github.com/mermaid-js/mermaid/pull/4034](https://togithub.com/mermaid-js/mermaid/pull/4034)
- fix(deps): update dependency dagre-d3-es to v7.0.8 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/mermaid-js/mermaid/pull/4058](https://togithub.com/mermaid-js/mermaid/pull/4058)
- bugfix: add missing d3 curves to flowchart and docs by
[@&#8203;natasha-jarus](https://togithub.com/natasha-jarus) in
[https://github.com/mermaid-js/mermaid/pull/4038](https://togithub.com/mermaid-js/mermaid/pull/4038)
- Bug/3865 C4Context: $borderColor has no effect by
[@&#8203;nekikara](https://togithub.com/nekikara) in
[https://github.com/mermaid-js/mermaid/pull/3947](https://togithub.com/mermaid-js/mermaid/pull/3947)
- Mindmaps: Handling rows with only spaces in them
([#&#8203;4012](https://togithub.com/mermaid-js/mermaid/issues/4012)) by
[@&#8203;knsv](https://togithub.com/knsv) in
[https://github.com/mermaid-js/mermaid/pull/4013](https://togithub.com/mermaid-js/mermaid/pull/4013)

##### Chores

- ci: disable checking twitter links by
[@&#8203;aloisklink](https://togithub.com/aloisklink) in
[https://github.com/mermaid-js/mermaid/pull/3973](https://togithub.com/mermaid-js/mermaid/pull/3973)
- chore(deps): update all non-major dependencies (minor) by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/mermaid-js/mermaid/pull/3905](https://togithub.com/mermaid-js/mermaid/pull/3905)
- chore(deps): update pnpm to v7.18.2 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/mermaid-js/mermaid/pull/3929](https://togithub.com/mermaid-js/mermaid/pull/3929)
- chore(pr): add documentation task in PR template by
[@&#8203;tomperr](https://togithub.com/tomperr) in
[https://github.com/mermaid-js/mermaid/pull/3935](https://togithub.com/mermaid-js/mermaid/pull/3935)
- (chore) Docs: add tag to produce only a diagram, not code example by
[@&#8203;weedySeaDragon](https://togithub.com/weedySeaDragon) in
[https://github.com/mermaid-js/mermaid/pull/3946](https://togithub.com/mermaid-js/mermaid/pull/3946)
- chore(deps): update all non-major dependencies (minor) by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/mermaid-js/mermaid/pull/3944](https://togithub.com/mermaid-js/mermaid/pull/3944)
- chore(deps): update all non-major dependencies (minor) by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/mermaid-js/mermaid/pull/3997](https://togithub.com/mermaid-js/mermaid/pull/3997)
- chore(deps): update pnpm to v7.25.1 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/mermaid-js/mermaid/pull/4024](https://togithub.com/mermaid-js/mermaid/pull/4024)
- build(lint): cache prettier on `pnpm run lint` by
[@&#8203;aloisklink](https://togithub.com/aloisklink) in
[https://github.com/mermaid-js/mermaid/pull/4035](https://togithub.com/mermaid-js/mermaid/pull/4035)
- Cache `eslint` in pre-commit script (makes `git commit` 5x faster) by
[@&#8203;aloisklink](https://togithub.com/aloisklink) in
[https://github.com/mermaid-js/mermaid/pull/4057](https://togithub.com/mermaid-js/mermaid/pull/4057)

#### New Contributors

- [@&#8203;Joxtacy](https://togithub.com/Joxtacy) made their first
contribution in
[https://github.com/mermaid-js/mermaid/pull/3908](https://togithub.com/mermaid-js/mermaid/pull/3908)
- [@&#8203;BD103](https://togithub.com/BD103) made their first
contribution in
[https://github.com/mermaid-js/mermaid/pull/3890](https://togithub.com/mermaid-js/mermaid/pull/3890)
- [@&#8203;mahomedalid](https://togithub.com/mahomedalid) made their
first contribution in
[https://github.com/mermaid-js/mermaid/pull/3892](https://togithub.com/mermaid-js/mermaid/pull/3892)
- [@&#8203;tomperr](https://togithub.com/tomperr) made their first
contribution in
[https://github.com/mermaid-js/mermaid/pull/3917](https://togithub.com/mermaid-js/mermaid/pull/3917)
- [@&#8203;Foo-x](https://togithub.com/Foo-x) made their first
contribution in
[https://github.com/mermaid-js/mermaid/pull/3925](https://togithub.com/mermaid-js/mermaid/pull/3925)
- [@&#8203;Frank-Mayer](https://togithub.com/Frank-Mayer) made their
first contribution in
[https://github.com/mermaid-js/mermaid/pull/3930](https://togithub.com/mermaid-js/mermaid/pull/3930)
- [@&#8203;Omerr](https://togithub.com/Omerr) made their first
contribution in
[https://github.com/mermaid-js/mermaid/pull/3936](https://togithub.com/mermaid-js/mermaid/pull/3936)
- [@&#8203;nekikara](https://togithub.com/nekikara) made their first
contribution in
[https://github.com/mermaid-js/mermaid/pull/3943](https://togithub.com/mermaid-js/mermaid/pull/3943)
- [@&#8203;guilhermgonzaga](https://togithub.com/guilhermgonzaga) made
their first contribution in
[https://github.com/mermaid-js/mermaid/pull/3964](https://togithub.com/mermaid-js/mermaid/pull/3964)
- [@&#8203;Odogwudozilla](https://togithub.com/Odogwudozilla) made their
first contribution in
[https://github.com/mermaid-js/mermaid/pull/3960](https://togithub.com/mermaid-js/mermaid/pull/3960)
- [@&#8203;atmikeguo](https://togithub.com/atmikeguo) made their first
contribution in
[https://github.com/mermaid-js/mermaid/pull/3972](https://togithub.com/mermaid-js/mermaid/pull/3972)
- [@&#8203;LiHowe](https://togithub.com/LiHowe) made their first
contribution in
[https://github.com/mermaid-js/mermaid/pull/3986](https://togithub.com/mermaid-js/mermaid/pull/3986)
- [@&#8203;cakemanny](https://togithub.com/cakemanny) made their first
contribution in
[https://github.com/mermaid-js/mermaid/pull/3988](https://togithub.com/mermaid-js/mermaid/pull/3988)
- [@&#8203;jonabc](https://togithub.com/jonabc) made their first
contribution in
[https://github.com/mermaid-js/mermaid/pull/3993](https://togithub.com/mermaid-js/mermaid/pull/3993)
- [@&#8203;MermaidChart](https://togithub.com/MermaidChart) made their
first contribution in
[https://github.com/mermaid-js/mermaid/pull/4013](https://togithub.com/mermaid-js/mermaid/pull/4013)
- [@&#8203;Barry1](https://togithub.com/Barry1) made their first
contribution in
[https://github.com/mermaid-js/mermaid/pull/4011](https://togithub.com/mermaid-js/mermaid/pull/4011)
- [@&#8203;LeoDog896](https://togithub.com/LeoDog896) made their first
contribution in
[https://github.com/mermaid-js/mermaid/pull/4032](https://togithub.com/mermaid-js/mermaid/pull/4032)
- [@&#8203;GavinPen](https://togithub.com/GavinPen) made their first
contribution in
[https://github.com/mermaid-js/mermaid/pull/4042](https://togithub.com/mermaid-js/mermaid/pull/4042)
- [@&#8203;oleveau](https://togithub.com/oleveau) made their first
contribution in
[https://github.com/mermaid-js/mermaid/pull/3965](https://togithub.com/mermaid-js/mermaid/pull/3965)
- [@&#8203;natasha-jarus](https://togithub.com/natasha-jarus) made their
first contribution in
[https://github.com/mermaid-js/mermaid/pull/4038](https://togithub.com/mermaid-js/mermaid/pull/4038)

**Full Changelog**:
https://github.com/mermaid-js/mermaid/compare/v9.3.0...v9.4.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS41Ny40IiwidXBkYXRlZEluVmVyIjoiMzUuOTguNCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-28 15:19:28 +00:00
..
cypress Fix/cr should activate disabled lag free (#3826) 2023-05-23 10:16:09 +03:00
public refactor: adapt to Vite (#940) 2022-05-05 16:15:22 +01:00
scripts
src Fix: laggy toggles (#3873) 2023-05-26 16:42:42 +02:00
.editorconfig
.gitignore Test npm publish (#3554) 2023-04-18 15:44:19 +02:00
.nvmrc chore: update to node 18 (#3527) 2023-04-18 10:35:32 +02:00
.prettierignore
.prettierrc refactor: format files (#719) 2022-02-18 09:51:10 +01:00
cypress.config.ts test: add interactive demo guide e2e test (#3656) 2023-05-08 09:16:18 +01:00
cypress.d.ts
index.html
index.js
orval.config.js
package.json chore(deps): update dependency eslint to v8.41.0 (#3883) 2023-05-28 09:53:24 +00:00
README.md chore: simplify package scripts (#3736) 2023-05-12 11:23:22 +01:00
tsconfig.json
tsconfig.node.json
vercel.json
vite.config.ts
yarn.lock chore(deps): update dependency mermaid to v9.4.3 (#3601) 2023-05-28 15:19:28 +00:00

frontend

This directory contains the Unleash Admin UI frontend app.

Run with a local instance of the unleash-api

Refer to the Contributing to Unleash guide for instructions. The frontend dev server runs (in port 3000) simultaneously with the backend dev server (in port 4242):

yarn install
yarn dev

Run with a sandbox instance of the Unleash API

Alternatively, instead of running unleash-api on localhost, you can use a remote instance:

cd ./frontend
yarn install
yarn run start:sandbox

Running end-to-end tests

We have a set of Cypress tests that run on the build before a PR can be merged so it's important that you check these yourself before submitting a PR. On the server the tests will run against the deployed Heroku app so this is what you probably want to test against:

yarn run start:sandbox

In a different shell, you can run the tests themselves:

yarn run e2e:heroku

If you need to test against patches against a local server instance, you'll need to run that, and then run the end to end tests using:

yarn run e2e

You may also need to test that a feature works against the enterprise version of unleash. Assuming the Heroku instance is still running, this can be done by:

yarn run start:enterprise
yarn run e2e

Generating the OpenAPI client

The frontend uses an OpenAPI client generated from the backend's OpenAPI spec. Whenever there are changes to the backend API, the client should be regenerated:

./scripts/generate-openapi.sh

This script assumes that you have a running instance of the enterprise backend at http://localhost:4242. The new OpenAPI client will be generated from the runtime schema of this instance. The target URL can be changed by setting the UNLEASH_OPENAPI_URL env var.

Analyzing bundle size

npx vite-bundle-visualizer in the root of the frontend directory