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

style: forbid using console in mermaid src code #3405

Merged
merged 4 commits into from
Sep 9, 2022
Merged

style: forbid using console in mermaid src code #3405

merged 4 commits into from
Sep 9, 2022

Conversation

aloisklink
Copy link
Member

@aloisklink aloisklink commented Sep 3, 2022

📑 Summary

Adds an eslint rule forbidding using console in the mermaid source code. Instead, the src/logger should be used instead, so that websites can disable logging.

I've also removed the two instances on console.log/console.error that currently exist in the mermaid source code.

Edit: It looks like eslint doesn't scan the .jison files. There were a bunch of active console.logs in c4Diagram.jison, so I've deleted those too. I could also comment them out too if that's preferred. The regex console.log\([^\)]*(JSON.stringify\([^\)]*\))?[^\)]*\); seems to detect them all.

Edit2: I've added a jest-fail-on-console to fail jest tests that use console.log, since ESLint doesn't scan .jison files

Resolves #3339

📏 Design Decisions

I've kept this as allowed in the cypress/ and demos/ folder, because a bunch of .html files still use console.log.

Potential issues:

  • console.log can be useful for debugging. yarn test will now throw an error and prevent tests if use a console.log. Instead, you'd have to use yarn jest src/ which is a bit more verbose.
  • .jison files aren't scanned by ESLint, so we still need to manually check those files. Edit2: As long as these files are run in Jest, the jest-fail-on-console check should scan for them.
  • Instead of deleting all the console.log in the c4Diagram.jison file, should I comment them out instead?

📋 Tasks

Make sure you

  • 📖 have read the contribution guidelines
  • 💻 have added unit/e2e tests (if appropriate)
  • 🔖 targeted develop branch

Adds an eslint rule forbidding using `console` in the mermaid source
code. Instead, the `src/logger` should be used instead, so that
websites can disable logging.

This is allowed in the `cypress/` and `demos/` folder.

I've also removed the two instances on `console.log`/`console.error`
that currently exist in the mermaid source code.
These aren't caught by eslint, since they're in a .jison file.
@sidharthv96
Copy link
Member

sidharthv96 commented Sep 4, 2022

console.log can be useful for debugging. yarn test will now throw an error and prevent tests if use a console.log. Instead, you'd have to use yarn jest src/ which is a bit more verbose.

Few workarounds for this

  • "test": "yarn lint && jest src/.*", can be "test": "jest src/.* && yarn lint", so tests run before linting.
  • Users can run yarn ci (Which isn't intuitive)
  • We lint in precommit anyway, so do we really need lint in test?

.jison files aren't scanned by ESLint, so we still need to manually check those files.

I think we should have a pipeline which converts .jison to .js and then runs eslint? It should be fairly straightforward as we're already converting jison to js here and here.

Errors caught with manual checks usually slip through the cracks after a while and take up our time reviewing PRs.

@aloisklink
Copy link
Member Author

  • Users can run yarn ci (Which isn't intuitive)
  • We lint in precommit anyway, so do we really need lint in test?

My gut feeling is to remove the lint from the yarn test command, since it's covered by pre-commit/husky anyway (and the https://github.com/mermaid-js/mermaid/actions/workflows/lint.yml CI action). The yarn ci could also be removed then, since it'll be exactly the same as yarn test.

If you like the idea, I'm happy to make another PR for that!

I think we should have a pipeline which converts .jison to .js and then runs eslint? It should be fairly straightforward as we're already converting jison to js here and here.

Errors caught with manual checks usually slip through the cracks after a while and take up our time reviewing PRs.

I had a quick try with running eslint on generated jison files, but it looks like the ESLint can't understand the jison generated files:

alois@me: ~/Documents/mermaid (other/3339_forbid-console-in-src-code)$ yarn jison ./src/diagrams/c4/parser/c4Diagram.jison && yarn eslint ./c4Diagram.js
yarn run v1.22.15
$ /home/alois/Documents/mermaid/node_modules/.bin/eslint ./c4Diagram.js

/home/alois/Documents/mermaid/c4Diagram.js
  909:15  error  Parsing error: Missing semicolon. (909:15)

✖ 1 problem (1 error, 0 warnings)

Instead, what I've done in b67657a is to use the library jest-fail-on-console, which fails jest tests that run console.log, see example screenshot below:

image

It's still not great, since it relies on jest tests covering everything in the .jison file, but it should hopefully cover mostly everything.

@sidharthv96
Copy link
Member

I had a quick try with running eslint on generated jison files, but it looks like the ESLint can't understand the jison generated files:

yarn eslint --no-eslintrc --rule no-console:error --parser "@babel/eslint-parser" ./c4Diagram.js

checks for console only and parses the file properly.

Jest might not cover all the branches, so let's stick with eslint. (which is another problem we should fix - Coverage reports).

Converts the *.jison files into .js, then lints them using just
the `no-console` rule.

To keep things simple, I've just made this run only on CI.

If we want to do more complex linting on `*.jison` files, it might
be worth making an `eslint-plugin-jison`, so that we can directly
parse jison in ESLint.
@aloisklink
Copy link
Member Author

checks for console only and parses the file properly.

Jest might not cover all the branches, so let's stick with eslint. (which is another problem we should fix - Coverage reports).

Awesome! Good catch. I've added some ESLint tests for the .jison files using GitHub Actions in 22d20cc (and removed my old jest-fail-on-console commit).

It's a bit hacky (it's some basic bash code), since it only runs in CI, but I feel like it's a bit too much effort to make a custom eslint-plugin-jison to get jison parsing working when running yarn lint.

An example failing run: https://github.com/aloisklink/mermaid/runs/8198619955

image

which is another problem we should fix - Coverage reports

That would be cool! Although again, I feel like coverage reports and .jison files might not mix well.

@sidharthv96 sidharthv96 added this to the 9.1.7 milestone Sep 6, 2022
@sidharthv96
Copy link
Member

It's a bit hacky (it's some basic bash code), since it only runs in CI, but I feel like it's a bit too much effort to make a custom eslint-plugin-jison to get jison parsing working when running yarn lint.

Totally agree. The current approach is fine!

I feel like coverage reports and .jison files might not mix well.

I don't think it will either, I was thinking of the JS & TS file coverage.

Fixes merge conflict in:
  - .eslintrc.json due to 6167eda
  - lint.yml due to 5674f8e
@aloisklink
Copy link
Member Author

I was thinking of the JS & TS file coverage.

👍 It would be great!

Force pushed to 6e81ee9, since I accidentally created the wrong indentation when trying to fix merge conflicts with GitHub's UI.

@sidharthv96 sidharthv96 merged commit 2611a43 into mermaid-js:develop Sep 9, 2022
@aloisklink aloisklink deleted the other/3339_forbid-console-in-src-code branch September 13, 2022 20:49
fuxingloh pushed a commit to fuxingloh/contented that referenced this pull request Nov 10, 2022
[![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.1.7` ->
`9.2.2`](https://renovatebot.com/diffs/npm/mermaid/9.1.7/9.2.2) |
[![age](https://badges.renovateapi.com/packages/npm/mermaid/9.2.2/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/mermaid/9.2.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/mermaid/9.2.2/compatibility-slim/9.1.7)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/mermaid/9.2.2/confidence-slim/9.1.7)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

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

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

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

#### What's Changed

- \[9.2] fix(mermaid): fix `mermaid.render` types by
[@&#8203;aloisklink](https://togithub.com/aloisklink) in
[mermaid-js/mermaid#3768
- \[9.2] fix(mermaid): default mermaid back to CommonJS by
[@&#8203;aloisklink](https://togithub.com/aloisklink) in
[mermaid-js/mermaid#3767
- Fix lazy loading in webpack by
[@&#8203;sidharthv96](https://togithub.com/sidharthv96) in
[mermaid-js/mermaid#3774

**Full Changelog**:
mermaid-js/mermaid@v9.2.1...v9.2.2

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

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

#### What's Changed

- \~~fix
[#&#8203;3757](https://togithub.com/mermaid-js/mermaid/issues/3757) :
Remove dynamic imports for lazy load causing issues for webpack~~
- chore: Update bug report template by
[@&#8203;gibson042](https://togithub.com/gibson042) in
[mermaid-js/mermaid#3727
- Use issue templates and add diagram, theme and syntax proposal issue
forms by [@&#8203;Andre601](https://togithub.com/Andre601) in
[mermaid-js/mermaid#2739

#### New Contributors

- [@&#8203;Andre601](https://togithub.com/Andre601) made their first
contribution in
[mermaid-js/mermaid#2739

**Full Changelog**:
mermaid-js/mermaid@v9.2.0...v9.2.1

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

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

#### What's Changed

##### Features

- Mindmaps by [@&#8203;knsv](https://togithub.com/knsv) in
[mermaid-js/mermaid#3410
- Introducing TypeScript by
[@&#8203;sidharthv96](https://togithub.com/sidharthv96) in
[mermaid-js/mermaid#3336
- Auto transform `mermaid-example` in docs. by
[@&#8203;sidharthv96](https://togithub.com/sidharthv96) in
[mermaid-js/mermaid#3401
- Creating detectors and moving out diagram specific code from the diag…
by [@&#8203;knsv](https://togithub.com/knsv) in
[mermaid-js/mermaid#3436
- feat(git): cherry-pick keyword supports tag attribute by
[@&#8203;elliot-nelson](https://togithub.com/elliot-nelson) in
[mermaid-js/mermaid#3479
- Mindmaps replacing rendering algoritm with cose-bilkent by
[@&#8203;knsv](https://togithub.com/knsv) in
[mermaid-js/mermaid#3559
- 3561 theme color scales by [@&#8203;knsv](https://togithub.com/knsv)
in
[mermaid-js/mermaid#3562
- ESBuild by [@&#8203;sidharthv96](https://togithub.com/sidharthv96) in
[mermaid-js/mermaid#3386
- (Beta) Lazy load import by [@&#8203;knsv](https://togithub.com/knsv)
in
[mermaid-js/mermaid#3592,
[mermaid-js/mermaid#3598
- 3061 making a monorepo by [@&#8203;knsv](https://togithub.com/knsv) in
[mermaid-js/mermaid#3531

##### Fixes

- Feature decimal duration in second for gantt diagram by
[@&#8203;vallsv](https://togithub.com/vallsv) in
[mermaid-js/mermaid#3360
- fix: fix passing a single Node to mermaid.init() by
[@&#8203;aloisklink](https://togithub.com/aloisklink) in
[mermaid-js/mermaid#3396
- fix
[#&#8203;3407](https://togithub.com/mermaid-js/mermaid/issues/3407)
Replace `div` with `pre` and format by
[@&#8203;sidharthv96](https://togithub.com/sidharthv96) in
[mermaid-js/mermaid#3408
- fix(git): support numeric branch names by
[@&#8203;aloisklink](https://togithub.com/aloisklink) in
[mermaid-js/mermaid#3392
- Add tests for C4 system context macros by
[@&#8203;dbartholomae](https://togithub.com/dbartholomae) in
[mermaid-js/mermaid#3367
- Add nested test for parseGenericTypes by
[@&#8203;sidharthv96](https://togithub.com/sidharthv96) in
[mermaid-js/mermaid#3354
- Fix memoize by [@&#8203;sidharthv96](https://togithub.com/sidharthv96)
in
[mermaid-js/mermaid#3434
- fix(git): support single character branch names by
[@&#8203;aloisklink](https://togithub.com/aloisklink) in
[mermaid-js/mermaid#3464
- Replace GoogleAnalytics with Plausible by
[@&#8203;sidharthv96](https://togithub.com/sidharthv96) in
[mermaid-js/mermaid#3466
- Fix for issues in errorhandling and class diagrams after refactoring
by [@&#8203;knsv](https://togithub.com/knsv) in
[mermaid-js/mermaid#3470
- 3409 Fix for truncated tags in GitGraph by
[@&#8203;ashishjain0512](https://togithub.com/ashishjain0512) in
[mermaid-js/mermaid#3454
- Fix broken cherry-pick parsing in gitgraph by
[@&#8203;aloisklink](https://togithub.com/aloisklink) in
[mermaid-js/mermaid#3480
- Fix CI `docs:lint` by
[@&#8203;sidharthv96](https://togithub.com/sidharthv96) in
[mermaid-js/mermaid#3493
- Fix user-journey leaking css by
[@&#8203;lishid](https://togithub.com/lishid) in
[mermaid-js/mermaid#3510
- \[sequenceDiagrams] Support dashes in participant names by
[@&#8203;ashleybartlett](https://togithub.com/ashleybartlett) in
[mermaid-js/mermaid#3524
- fix: ER dark theme attribute colors by
[@&#8203;weedySeaDragon](https://togithub.com/weedySeaDragon) in
[mermaid-js/mermaid#3512
- feat: ER diagram: allow other chars in a quoted entity name by
[@&#8203;weedySeaDragon](https://togithub.com/weedySeaDragon) in
[mermaid-js/mermaid#3516
- Arrow tip aligned to edge of box by
[@&#8203;pbrolin47](https://togithub.com/pbrolin47) in
[mermaid-js/mermaid#3533
- Fixed labelText undefined behavior by
[@&#8203;AndrewL-64](https://togithub.com/AndrewL-64) in
[mermaid-js/mermaid#3544
- Fix failing vitest unit tests by
[@&#8203;aloisklink](https://togithub.com/aloisklink) in
[mermaid-js/mermaid#3587
- fix: Import diagram by
[@&#8203;sidharthv96](https://togithub.com/sidharthv96) in
[mermaid-js/mermaid#3589
- Fix file name during "pnpm run dev" script by
[@&#8203;vallsv](https://togithub.com/vallsv) in
[mermaid-js/mermaid#3608
- fix Detect diagram fallback by
[@&#8203;sidharthv96](https://togithub.com/sidharthv96) in
[mermaid-js/mermaid#3591
- fix: Dirty fix for sync render. by
[@&#8203;sidharthv96](https://togithub.com/sidharthv96) in
[mermaid-js/mermaid#3633
- fix: Converts mindmapDB to TS by
[@&#8203;sidharthv96](https://togithub.com/sidharthv96) in
[mermaid-js/mermaid#3683
- Support `lazyLoadedDiagrams` when calling `initThrowsErrors` by
[@&#8203;aloisklink](https://togithub.com/aloisklink) in
[mermaid-js/mermaid#3702
- \[9.2.0] Support `lazyLoadedDiagrams` when calling
`initThrowsErrorsAsync` by
[@&#8203;aloisklink](https://togithub.com/aloisklink) in
[mermaid-js/mermaid#3731

##### Chores

- build: run `build:prod` on `yarn prepare` by
[@&#8203;aloisklink](https://togithub.com/aloisklink) in
[mermaid-js/mermaid#3404
- chore(deps-dev): bump
[@&#8203;types/dompurify](https://togithub.com/types/dompurify) from
2.3.3 to 2.3.4 by [@&#8203;dependabot](https://togithub.com/dependabot)
in
[mermaid-js/mermaid#3414
- chore(deps-dev): bump jest-environment-jsdom from 29.0.1 to 29.0.2 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[mermaid-js/mermaid#3413
- chore(deps-dev): bump typescript from 4.7.4 to 4.8.2 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[mermaid-js/mermaid#3411
- chore(deps-dev): bump babel-jest from 29.0.1 to 29.0.2 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[mermaid-js/mermaid#3412
- chore: fix JSDOC [@&#8203;param](https://togithub.com/param),
[@&#8203;returns](https://togithub.com/returns) lint errors by
[@&#8203;weedySeaDragon](https://togithub.com/weedySeaDragon) in
[mermaid-js/mermaid#3422
- style: forbid using `console` in mermaid src code by
[@&#8203;aloisklink](https://togithub.com/aloisklink) in
[mermaid-js/mermaid#3405
- Introduce stricter typescript linting by
[@&#8203;sidharthv96](https://togithub.com/sidharthv96) in
[mermaid-js/mermaid#3393
- Esbuild: backwards-compatible `mermaid.core.mjs` by
[@&#8203;aloisklink](https://togithub.com/aloisklink) in
[mermaid-js/mermaid#3437
- fix(git): support unusual prefixes in branch name by
[@&#8203;aloisklink](https://togithub.com/aloisklink) in
[mermaid-js/mermaid#3438
- Re-enable coverage upload to coveralls by
[@&#8203;aloisklink](https://togithub.com/aloisklink) in
[mermaid-js/mermaid#3431
- chore(deps): bump actions/checkout from 2 to 3 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[mermaid-js/mermaid#3449
- chore(deps-dev): bump typescript from 4.8.2 to 4.8.3 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[mermaid-js/mermaid#3446
- chore(deps-dev): bump eslint from 8.23.0 to 8.23.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[mermaid-js/mermaid#3440
- chore(deps-dev): bump babel-jest from 29.0.2 to 29.0.3 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[mermaid-js/mermaid#3448
- chore(deps-dev): bump jest-environment-jsdom from 29.0.2 to 29.0.3 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[mermaid-js/mermaid#3441
- chore(deps-dev): bump
[@&#8203;babel/core](https://togithub.com/babel/core) from 7.18.13 to
7.19.0 by [@&#8203;dependabot](https://togithub.com/dependabot) in
[mermaid-js/mermaid#3447
- chore(deps-dev): bump
[@&#8203;typescript-eslint/parser](https://togithub.com/typescript-eslint/parser)
from 5.36.1 to 5.37.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[mermaid-js/mermaid#3451
- chore(deps-dev): bump
[@&#8203;babel/preset-env](https://togithub.com/babel/preset-env) from
7.18.10 to 7.19.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[mermaid-js/mermaid#3442
- chore(deps-dev): bump concurrently from 7.3.0 to 7.4.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[mermaid-js/mermaid#3445
- chore(deps-dev): bump
[@&#8203;typescript-eslint/eslint-plugin](https://togithub.com/typescript-eslint/eslint-plugin)
from 5.36.1 to 5.37.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[mermaid-js/mermaid#3457
- chore(deps-dev): bump eslint-plugin-jest from 27.0.1 to 27.0.4 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[mermaid-js/mermaid#3458
- Cleanup & fix eslint warnings by
[@&#8203;sidharthv96](https://togithub.com/sidharthv96) in
[mermaid-js/mermaid#3453
- chore(deps-dev): bump webpack-dev-server from 4.10.1 to 4.11.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[mermaid-js/mermaid#3450
- chore(deps): bump stylis from 4.1.1 to 4.1.2 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[mermaid-js/mermaid#3439
- chore(deps): bump dompurify from 2.3.10 to 2.4.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[mermaid-js/mermaid#3444
- chore(deps-dev): bump
[@&#8203;types/lodash](https://togithub.com/types/lodash) from 4.14.184
to 4.14.185 by [@&#8203;dependabot](https://togithub.com/dependabot) in
[mermaid-js/mermaid#3489
- chore(deps-dev): bump esbuild from 0.15.6 to 0.15.8 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[mermaid-js/mermaid#3490
- chore(deps-dev): bump eslint from 8.23.1 to 8.24.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[mermaid-js/mermaid#3521
- chore(deps-dev): bump
[@&#8203;types/prettier](https://togithub.com/types/prettier) from 2.7.0
to 2.7.1 by [@&#8203;dependabot](https://togithub.com/dependabot) in
[mermaid-js/mermaid#3520
- chore: fix demo chart pages by
[@&#8203;weedySeaDragon](https://togithub.com/weedySeaDragon) in
[mermaid-js/mermaid#3523
- Vitest by [@&#8203;sidharthv96](https://togithub.com/sidharthv96) in
[mermaid-js/mermaid#3427
- Build mermaid using Vite by
[@&#8203;sidharthv96](https://togithub.com/sidharthv96) in
[mermaid-js/mermaid#3503
- Add "Debug Current Test File" configuration for VSCode by
[@&#8203;pje](https://togithub.com/pje) in
[mermaid-js/mermaid#3509
- \[DevOps] Parallel E2E by
[@&#8203;sidharthv96](https://togithub.com/sidharthv96) in
[mermaid-js/mermaid#3498
- chore(deps-dev): update lint-staged requirement from ^13.0.0 to
^13.0.3 by [@&#8203;dependabot](https://togithub.com/dependabot) in
[mermaid-js/mermaid#3551
- chore(deps-dev): update start-server-and-test requirement from ^1.12.6
to ^1.14.0 by [@&#8203;dependabot](https://togithub.com/dependabot) in
[mermaid-js/mermaid#3553
- chore(deps-dev): update jsdom requirement from ^20.0.0 to ^20.0.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[mermaid-js/mermaid#3552
- chore(deps-dev): update
[@&#8203;types/express](https://togithub.com/types/express) requirement
from ^4.17.13 to ^4.17.14 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[mermaid-js/mermaid#3555
- chore(deps-dev): update
[@&#8203;types/lodash](https://togithub.com/types/lodash) requirement
from ^4.14.185 to ^4.14.186 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[mermaid-js/mermaid#3556
- chore(deps-dev): update vitest requirement from ^0.23.1 to ^0.23.4 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[mermaid-js/mermaid#3557
- chore(deps-dev): update husky requirement from ^8.0.0 to ^8.0.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[mermaid-js/mermaid#3558
- chore(deps-dev): update
[@&#8203;typescript-eslint/parser](https://togithub.com/typescript-eslint/parser)
requirement from ^5.37.0 to ^5.39.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[mermaid-js/mermaid#3564
- chore(deps-dev): update
[@&#8203;typescript-eslint/eslint-plugin](https://togithub.com/typescript-eslint/eslint-plugin)
requirement from ^5.37.0 to ^5.39.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[mermaid-js/mermaid#3565
- chore(deps): update
[@&#8203;types/node](https://togithub.com/types/node) requirement from
^18.7.21 to ^18.8.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[mermaid-js/mermaid#3566
- chore(deps-dev): update
[@&#8203;vitest/coverage-c8](https://togithub.com/vitest/coverage-c8)
requirement from ^0.23.2 to ^0.23.4 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[mermaid-js/mermaid#3567
- chore(deps-dev): update esbuild requirement from ^0.15.8 to ^0.15.10
by [@&#8203;dependabot](https://togithub.com/dependabot) in
[mermaid-js/mermaid#3569
- chore(deps-dev): update typescript requirement from ^4.8.3 to ^4.8.4
by [@&#8203;dependabot](https://togithub.com/dependabot) in
[mermaid-js/mermaid#3573
- chore(deps-dev): update
[@&#8203;applitools/eyes-cypress](https://togithub.com/applitools/eyes-cypress)
requirement from ^3.25.7 to ^3.27.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[mermaid-js/mermaid#3568
- chore(deps-dev): update vite requirement from ^3.0.9 to ^3.1.4 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[mermaid-js/mermaid#3570
- chore(deps-dev): update eslint-plugin-jest requirement from ^27.0.4 to
^27.1.0 by [@&#8203;dependabot](https://togithub.com/dependabot) in
[mermaid-js/mermaid#3571
- chore(deps-dev): update
[@&#8203;commitlint/config-conventional](https://togithub.com/commitlint/config-conventional)
requirement from ^17.0.0 to ^17.1.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[mermaid-js/mermaid#3572
- Fix `docs:build` and `docs:verify` scripts by
[@&#8203;aloisklink](https://togithub.com/aloisklink) in
[mermaid-js/mermaid#3534
- Fix husky `pre-commit` rules by
[@&#8203;aloisklink](https://togithub.com/aloisklink) in
[mermaid-js/mermaid#3536
- Fix typos in README.md by
[@&#8203;elv-nate](https://togithub.com/elv-nate) in
[mermaid-js/mermaid#3538
- fix(tests): E2E by
[@&#8203;sidharthv96](https://togithub.com/sidharthv96) in
[mermaid-js/mermaid#3574
- fix: pnpm clean in windows by
[@&#8203;arpansaha13](https://togithub.com/arpansaha13) in
[mermaid-js/mermaid#3595
- Update Cypress to v10 and fix E2E errors by
[@&#8203;aloisklink](https://togithub.com/aloisklink) in
[mermaid-js/mermaid#3459
- ci(e2e-applitols): add applitools CI action by
[@&#8203;aloisklink](https://togithub.com/aloisklink) in
[mermaid-js/mermaid#3483
- Remove webpack & babel by
[@&#8203;sidharthv96](https://togithub.com/sidharthv96) in
[mermaid-js/mermaid#3452
- Add vitepress plugin by
[@&#8203;emersonbottero](https://togithub.com/emersonbottero) in
[mermaid-js/mermaid#3476
- ci(e2e): fix e2e action when running from fork by
[@&#8203;aloisklink](https://togithub.com/aloisklink) in
[mermaid-js/mermaid#3519
- chore(deps-dev): update
[@&#8203;vitest/ui](https://togithub.com/vitest/ui) requirement from
^0.23.2 to ^0.23.4 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[mermaid-js/mermaid#3549
- chore: Update demo diagrams for monorepo by
[@&#8203;weedySeaDragon](https://togithub.com/weedySeaDragon) in
[mermaid-js/mermaid#3545
- Sync `docs/` with `packages/mermaid/src/docs` by
[@&#8203;aloisklink](https://togithub.com/aloisklink) in
[mermaid-js/mermaid#3586
- chore: Add volta by
[@&#8203;sidharthv96](https://togithub.com/sidharthv96) in
[mermaid-js/mermaid#3628
- chore: Node 18 by
[@&#8203;sidharthv96](https://togithub.com/sidharthv96) in
[mermaid-js/mermaid#3630
- Configure Renovate by
[@&#8203;renovate](https://togithub.com/renovate) in
[mermaid-js/mermaid#3627

##### Docs

- Added mermerd to integrations documentation by
[@&#8203;KarnerTh](https://togithub.com/KarnerTh) in
[mermaid-js/mermaid#3399
- Fix typo in documentation by
[@&#8203;dbartholomae](https://togithub.com/dbartholomae) in
[mermaid-js/mermaid#3403
- Update duplicate copy pasted directive description by
[@&#8203;mrmanc](https://togithub.com/mrmanc) in
[mermaid-js/mermaid#3415
- Docs/bug 3417 by
[@&#8203;weedySeaDragon](https://togithub.com/weedySeaDragon) in
[mermaid-js/mermaid#3419
- Docs: add '..auto generated..' to .html documentation files by
[@&#8203;weedySeaDragon](https://togithub.com/weedySeaDragon) in
[mermaid-js/mermaid#3420
- Mention obsidian has native support for mermaid by
[@&#8203;IanLee1521](https://togithub.com/IanLee1521) in
[mermaid-js/mermaid#3513
- docs: replace `yarn` with `pnpm` in dev guide by
[@&#8203;aloisklink](https://togithub.com/aloisklink) in
[mermaid-js/mermaid#3535
- Corrected theme variables reference table layout by
[@&#8203;marcastel](https://togithub.com/marcastel) in
[mermaid-js/mermaid#3541
- Working New Documentation Vitepress by
[@&#8203;emersonbottero](https://togithub.com/emersonbottero) in
[mermaid-js/mermaid#3515
- CODE_OF_CONDUCT Uploaded by
[@&#8203;swoyam2609](https://togithub.com/swoyam2609) in
[mermaid-js/mermaid#3578
- Automated docs spell-checking via GitHub Actions (and address all
reported issues) by
[@&#8203;SeanKilleen](https://togithub.com/SeanKilleen) in
[mermaid-js/mermaid#3600
- docs:Improved keywords in index.html by
[@&#8203;aryandeelwal](https://togithub.com/aryandeelwal) in
[mermaid-js/mermaid#3579
- Contribution.md updates by
[@&#8203;Aniket1026](https://togithub.com/Aniket1026) in
[mermaid-js/mermaid#3614
- docs: Add mermaid version to script URL by
[@&#8203;sidharthv96](https://togithub.com/sidharthv96) in
[mermaid-js/mermaid#3596

#### New Contributors

- [@&#8203;KarnerTh](https://togithub.com/KarnerTh) made their first
contribution in
[mermaid-js/mermaid#3399
- [@&#8203;mrmanc](https://togithub.com/mrmanc) made their first
contribution in
[mermaid-js/mermaid#3415
- [@&#8203;elliot-nelson](https://togithub.com/elliot-nelson) made their
first contribution in
[mermaid-js/mermaid#3479
- [@&#8203;emersonbottero](https://togithub.com/emersonbottero) made
their first contribution in
[mermaid-js/mermaid#3476
- [@&#8203;pje](https://togithub.com/pje) made their first contribution
in
[mermaid-js/mermaid#3509
- [@&#8203;IanLee1521](https://togithub.com/IanLee1521) made their first
contribution in
[mermaid-js/mermaid#3513
- [@&#8203;ashleybartlett](https://togithub.com/ashleybartlett) made
their first contribution in
[mermaid-js/mermaid#3524
- [@&#8203;pbrolin47](https://togithub.com/pbrolin47) made their first
contribution in
[mermaid-js/mermaid#3533
- [@&#8203;elv-nate](https://togithub.com/elv-nate) made their first
contribution in
[mermaid-js/mermaid#3538
- [@&#8203;marcastel](https://togithub.com/marcastel) made their first
contribution in
[mermaid-js/mermaid#3541
- [@&#8203;AndrewL-64](https://togithub.com/AndrewL-64) made their first
contribution in
[mermaid-js/mermaid#3544
- [@&#8203;swoyam2609](https://togithub.com/swoyam2609) made their first
contribution in
[mermaid-js/mermaid#3578
- [@&#8203;SeanKilleen](https://togithub.com/SeanKilleen) made their
first contribution in
[mermaid-js/mermaid#3600
- [@&#8203;aryandeelwal](https://togithub.com/aryandeelwal) made their
first contribution in
[mermaid-js/mermaid#3579
- [@&#8203;Aniket1026](https://togithub.com/Aniket1026) made their first
contribution in
[mermaid-js/mermaid#3614

**Full Changelog**:
mermaid-js/mermaid@v9.1.7...v9.2.0

</details>

---

### Configuration

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

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **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.

---

- [x] <!-- 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/BirthdayResearch/contented).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xMi4wIiwidXBkYXRlZEluVmVyIjoiMzQuMTkuMCJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
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.

Remove rogue console.log
3 participants