Commit Graph

886 Commits

Author SHA1 Message Date
Yokozuna59 191309a79d run lint:fix 2023-06-28 03:34:28 +03:00
Yokozuna59 21e3001f4f add `coverage:cypress:clean` script 2023-06-28 03:11:01 +03:00
renovate[bot] b7af9bace4
chore(deps): update dependency eslint-plugin-unicorn to v47 2023-06-27 08:00:16 +00:00
Sidharth Vinod a167d61d2a
Merge pull request #4546 from mermaid-js/renovate/jsdom-22.x
chore(deps): update dependency jsdom to v22
2023-06-27 13:28:56 +05:30
renovate[bot] f48652322d
chore(deps): update dependency jsdom to v22 2023-06-27 07:13:43 +00:00
Sidharth Vinod b95b2790dc
Merge pull request #4544 from mermaid-js/renovate/eslint-plugin-jsdoc-46.x
chore(deps): update dependency eslint-plugin-jsdoc to v46
2023-06-27 12:42:01 +05:30
renovate[bot] 120029913d
chore(deps): update dependency eslint-plugin-jsdoc to v46 2023-06-27 06:23:27 +00:00
renovate[bot] aa67646b5a
fix(deps): update all patch dependencies 2023-06-27 06:22:43 +00:00
renovate[bot] f90a7dc784 fix(deps): update all patch dependencies 2023-06-26 03:12:45 +00:00
renovate[bot] 2ee37752c8 chore(deps): update all minor dependencies 2023-06-18 06:35:43 +00:00
Sidharth Vinod 548874eb6a
Merge pull request #4504 from mermaid-js/sidv/codecov
Add codecov
2023-06-17 18:25:53 +05:30
Yokozuna59 0f45124f84 set normal mode for vitest coverage 2023-06-17 15:14:54 +03:00
Sidharth Vinod 2ad32f9208
Fix path name 2023-06-17 17:44:27 +05:30
Sidharth Vinod cc7f555160
chore: Add coverage scripts 2023-06-17 17:11:05 +05:30
Sidharth Vinod 6c96650043
chore: update deps 2023-06-17 16:51:30 +05:30
Sidharth Vinod 8a0a874d1c
Merge coverages 2023-06-17 01:24:15 +05:30
Sidharth Vinod 7434031003
Add coverage paths 2023-06-16 23:54:02 +05:30
Sidharth Vinod 69d9c09f33
chore: update pnpm 2023-06-16 20:32:07 +05:30
Sidharth Vinod 547358fc7e
Add coverage for E2E tests 2023-06-16 20:25:40 +05:30
Knut Sveidqvist 75f9de3d4a UPdated version to 10.2.3 2023-06-08 16:24:25 +02:00
Knut Sveidqvist 81e86bc87c Merge branch '10.2.2' into develop 2023-06-08 15:07:31 +02:00
Knut Sveidqvist d2409dc163 Setting version to 10.2.2 2023-06-02 08:50:59 +02:00
Sidharth Vinod d148a65967
Merge branch 'develop' into sidv/zenuml
* develop: (22 commits)
  Update docs
  Added CKEditor and GitHub Writer to available integrations.
  chore(deps): update all patch dependencies
  build(deps): fix broken pnpm-lock.yaml file
  Mermaid version 10.2.0
  Mermaid Version 10.2.0-rc.4
  Label background fix
  Test commit
  Fix for regression error in sequenceDiagrams
  Fix visibility issue for fields
  fix parsing issue with class diagrams
  fix: Use unicode arrows in quadrant chart axis
  fix: Use unicode arrows in quadrant chart axis
  fix lint command
  Bump version
  Back to JS with jsdoc types
  Add unsupported text
  Reduce changes in test
  Fix deps
  Fix lockfile
  ...
2023-06-02 11:59:12 +05:30
Knut Sveidqvist 98e75959cc #4438 Reverted to the changes from #4285 2023-06-01 12:53:21 +02:00
Knut Sveidqvist bd1343648e Merge branch 'master' into develop 2023-05-24 19:20:47 +02:00
Knut Sveidqvist 8d43b87200 Mermaid version 10.2.0 2023-05-24 19:03:22 +02:00
Knut Sveidqvist 9c12c42a26 Mermaid Version 10.2.0-rc.4 2023-05-24 18:18:54 +02:00
Alois Klink acc19db5bb Merge branch 'develop' into sidv/zenuml
Conflicts:
	pnpm-lock.yaml
2023-05-17 19:59:58 +01:00
dontry 49c97dad4c ignore ZenUML types 2023-05-17 19:26:43 +01:00
renovate[bot] b1590c2211 Update all minor dependencies 2023-05-17 13:32:09 +00:00
Sidharth Vinod 3677d44a58
Revert "Replace esno & ts-node with tsx"
This reverts commit 75337287ea.
2023-05-08 22:08:11 +05:30
Sidharth Vinod a1fe7222ac
Fix build 2023-05-08 18:52:03 +05:30
Sidharth Vinod 1b48c19897
Merge branch 'develop' into sidv/contributors
* develop:
  chore(deps): update all minor dependencies
  requested update
  Update packages/mermaid/src/docs/syntax/flowchart.md
  Update docs
  Docs: Flowchart - minor verbiage update
2023-05-08 18:51:10 +05:30
Sidharth Vinod 75337287ea
Replace esno & ts-node with tsx 2023-05-08 18:46:14 +05:30
renovate[bot] b04155178a
chore(deps): update all minor dependencies 2023-05-08 10:09:26 +00:00
Sidharth Vinod cb3982de7e
Remove unnecessary dependencies
Co-authored-by: Alois Klink <alois.klink@gmail.com>
2023-05-02 14:16:35 +05:30
Sidharth Vinod 9238deaf00
Merge branch 'develop' into sidv/contributors
* develop: (237 commits)
  submit built docs
  update Font Awesome Version
  Clarify FontAwesome support
  Update version
  Fix classParser
  Check for conflict when linting jison
  Update class grammar test
  fix Class diagram grammar
  Skip sourcemap
  Bump version
  Update deps
  Fix unit tests
  Update vite
  Fix applitools cypress
  Update packages/mermaid/package.json
  chore(deps): update dependency typescript to v5
  fix typedoc
  fix(deps): update all minor dependencies
  chore(deps): update pnpm to v8
  chore(deps): update fregante/setup-git-user action to v2
  ...
2023-04-29 09:32:07 +05:30
Sidharth Vinod b0c58a9764
Update deps 2023-04-23 23:15:26 +05:30
Sidharth Vinod bbe3909627
Update vite 2023-04-23 22:34:19 +05:30
renovate[bot] 9e58f7bd99
chore(deps): update dependency typescript to v5 2023-04-22 20:51:24 +00:00
renovate[bot] 1c17f4c770
fix(deps): update all minor dependencies 2023-04-22 20:30:38 +00:00
renovate[bot] bed9e8daab
chore(deps): update pnpm to v8 2023-04-22 20:04:11 +00:00
renovate[bot] e6d11b9443
chore(deps): update dependency start-server-and-test to v2 2023-04-22 19:26:13 +00:00
Sidharth Vinod c624cbb910
Merge pull request #4325 from mermaid-js/renovate/eslint-plugin-unicorn-46.x
chore(deps): update dependency eslint-plugin-unicorn to v46
2023-04-23 00:51:33 +05:30
renovate[bot] f597f15f82
chore(deps): update dependency rimraf to v5 2023-04-22 18:53:56 +00:00
renovate[bot] 909c063a67
chore(deps): update dependency eslint-plugin-unicorn to v46 2023-04-22 18:51:50 +00:00
renovate[bot] 8cb3318d94 chore(deps): update dependency eslint-plugin-jsdoc to v43 2023-04-22 18:46:44 +00:00
renovate[bot] 93eb72248a
chore(deps): update dependency concurrently to v8 2023-04-20 04:15:28 +00:00
renovate[bot] 411f868f22
chore(deps): update pnpm to v7.30.5 2023-04-19 07:00:59 +00:00
Remco Haszing aa5c1a5f78
Merge branch 'develop' into fix-node16-module-resolution 2023-04-13 14:58:17 +02:00
Knut Sveidqvist 75adb8ae90 Updated package.json 2023-04-04 14:38:09 +02:00
Remco Haszing da7725f38e
Merge branch 'develop' into fix-node16-module-resolution 2023-04-01 12:05:19 +02:00
renovate[bot] 1481a8ccb1
chore(deps): update pnpm to v7.30.1 2023-03-23 19:04:24 +00:00
Remco Haszing 4515c58d42
Merge branch 'develop' into fix-node16-module-resolution 2023-03-20 12:24:29 +01:00
renovate[bot] 8b37ceffe1 chore(deps): update pnpm to v7.30.0 2023-03-20 04:21:23 +00:00
Remco Haszing f3bebf25ea
Merge branch 'develop' into fix-node16-module-resolution 2023-03-17 20:52:50 +01:00
renovate[bot] f3a9f81bfb fix(deps): update all non-major dependencies 2023-03-13 09:45:30 +00:00
renovate[bot] 4b462d717c chore(deps): update node.js to v18.15.0 2023-03-13 04:42:20 +00:00
Remco Haszing b7d31adda4
Support node16 module resolution
The `node16` module resolution requires imports to use the `.js` file
extension in type definitions.

`@rollup/plugin-typescript` is needed to make this work with the Vite
setup used by Mermaid.

The module option for Mermaid internally is set to `nodenext`. This is
needed to support `.json` imports. Note that setting `module` to
`node16` or `nodenext` implies a matching `moduleResolution` value.
2023-03-11 14:54:21 +01:00
renovate[bot] e9d49e6b98
fix(deps): update all non-major dependencies 2023-03-06 06:25:39 +00:00
renovate[bot] 6c2c28940b chore(deps): update all non-major dependencies 2023-03-06 06:22:18 +00:00
Knut Sveidqvist 20298d243a v10.0.2 2023-03-02 13:45:56 +01:00
Sidharth Vinod 8c2dbafdb5
Merge branch 'develop' into sidv/contributors
* develop: (309 commits)
  Update docs
  fix Lint
  Update CHANGELOG.md
  Update CHANGELOG.md
  fix: fix exports
  Doc (typo): remove duplicate "be"
  Fix readme link
  Regenerate mermaid docs
  Add deepdwn to cspell
  Add Deepdwn to native integrations list
  docs: Fix changelog
  docs: v10 breaking changes
  Remove `null` from diagrams before render
  fix docs diagram
  Updated version
  Minor cleanup to trigger build.
  Fix spellings
  Wrap option working in test case
  Fix typos
  Minor cleanup
  ...
2023-02-24 21:14:55 +05:30
Sidharth Vinod 735aceb37a
Fix E2E Tests 2023-02-19 14:03:11 +05:30
Sidharth Vinod 2c062d648a
Merge branch 'develop' into release/9.4.2
* develop:
  Add highlight tag info in contributing.md
  chore(deps): update dependency cypress to v12
  docs: fix links
  Fix types
  chore(deps): update dependency vite to v4
2023-02-19 00:04:44 +05:30
Sidharth Vinod 3c4a6a19bb
fix: Vite, D3, Vitest Types 2023-02-18 22:35:14 +05:30
renovate[bot] ccaa99937f
chore(deps): update dependency cypress to v12 2023-02-16 12:27:04 +00:00
Sidharth Vinod 17238c0326
Merge branch 'master' into develop
* master: (24 commits)
  docs: fix links
  Skip precommit hooks on CI
  Fix release-publish
  Fix timeline and mindmap
  Updating integration instructions for timeline and mindmap
  Remove node heap
  Revert "chore: Set node heap size"
  Revert "Remove text hint"
  Split cytoscape
  Linear build
  Remove text hint
  Fix elk import
  Dynamic elk import
  Remove heap option
  elk web-worker
  Test publish docs
  chore: Add file extension for dynamic import
  chore: Defer elk loading
  Update vitepress
  Fix links to integrations.md
  ...
2023-02-16 17:52:07 +05:30
Sidharth Vinod ac231949f0
Merge pull request #4071 from mermaid-js/renovate/vite-4.x
chore(deps): update dependency vite to v4
2023-02-16 17:50:08 +05:30
Sidharth Vinod 743c636441
Revert "chore: Set node heap size"
This reverts commit 8df965bd60.
2023-02-16 16:10:20 +05:30
Sidharth Vinod 8df965bd60
chore: Set node heap size 2023-02-16 12:21:24 +05:30
Sidharth Vinod 31afd7499b
chore: Linear build 2023-02-16 12:05:41 +05:30
Knut Sveidqvist 25da0c6c8e Merge branch 'master' into develop 2023-02-15 16:31:44 +01:00
Per Brolin a956be7bbf Release candidate 2023-02-10 11:03:25 +01:00
Per Brolin e0286be8d2 Corrected typo 2023-02-10 08:58:58 +01:00
renovate[bot] 08ac41113f
chore(deps): update dependency vite to v4 2023-02-09 05:54:04 +00:00
Sidharth Vinod 07764348eb
Merge pull request #4069 from mermaid-js/renovate/jsdom-21.x
chore(deps): update dependency jsdom to v21
2023-02-09 11:13:03 +05:30
Sidharth Vinod 803c8ca45b
Merge pull request #4070 from mermaid-js/renovate/rimraf-4.x
chore(deps): update dependency rimraf to v4
2023-02-09 11:12:51 +05:30
renovate[bot] 72e8b7fb38
chore(deps): update dependency rimraf to v4 2023-02-09 00:49:20 +00:00
renovate[bot] 3a89cc7993
chore(deps): update dependency jsdom to v21 2023-02-09 00:47:08 +00:00
Alois Klink 4d12fb0464 build(lint:fix): cache eslint in pnpm run lint:fix
Cache eslint in `pnpm run lint:fix`.

This was added to the `pnpm run lint` script in
b7f9495 (build: add eslint --cache file, 2022-08-27), but we
didn't add it to `pnpm run lint:fix` due to worries about cache
invalidation.

However, we switched to using `--cache-strategy content` in
b3e509b7 (build(lint): cache eslint with strategy content, 2023-02-05),
which should avoid any caching issues.

Co-authored-by: Sidharth Vinod <sidharthv96@gmail.com>
2023-02-09 00:21:19 +00:00
Sidharth Vinod f83f09d8b0
Fix vitest type 2023-02-09 01:29:41 +05:30
renovate[bot] c4eb1608b0
chore(deps): update all non-major dependencies 2023-02-08 19:30:57 +00:00
Knut Sveidqvist 74df4a7a68 Mind map coming in from the cold. A lazy loaded diagram in the same way as timeline. 2023-02-08 17:42:58 +01:00
Knut Sveidqvist 82f7e1b754 Version updates 2023-02-08 13:50:58 +01:00
Knut Sveidqvist 580903051f Fixing broken test 2023-02-08 13:40:41 +01:00
Knut Sveidqvist ce037a84ca Fixing build after last batch of changes 2023-02-08 13:16:33 +01:00
Alois Klink b3e509b7d4 build(lint): cache eslint with strategy content
Cache eslint using `--cache-strategy content` instead of the default
`--cache-strategy metadata`.

By default, `eslint` uses the file metadata (e.g. modification time)
to detect when the cache should be invalidated.

However, this is not efficient with `git`, since git constantly changes
the modification time,
e.g. running `git switch main && git switch original-branch` would not
change the file contents, but would change the file mtimes and force
eslint to re-lint everything.

Using the file contents is slower (~3% for me), but more resilient.

See
https://eslint.org/docs/latest/use/command-line-interface#--cache-strategy
2023-02-05 19:33:30 +00:00
Alois Klink 8b4426aebf build(lint): cache prettier on `pnpm run lint`
[Prettier 2.7.0](https://prettier.io/blog/2022/06/14/2.7.0.html) added
a `--cache` CLI option to greatly speed up subsequent prettier runs.

By default, the cache is stored in
`./node_modules/.cache/prettier/.prettier-cache` and uses an `md5`
checksum of the contents as the cache-key.

On my PC, running `pnpm run lint` used to take 13.9 seconds, but now
it only takes 6 seconds.

Potential issues
----------------

Although updating Node.JS/Prettier will invalidate the cache,
updating or changing prettier plugins won't invalidate the cache.

Since we do use `prettier-plugin-jsdoc` in Mermaid, this might cause
a minor issue, but CI should catch it.
2023-01-26 16:31:40 +00:00
Sidharth Vinod c256a6b887
Merge pull request #4024 from mermaid-js/renovate/patch-all-minor-patch
chore(deps): update pnpm to v7.25.1
2023-01-24 17:06:06 +05:30
renovate[bot] c9833dcd79
chore(deps): update pnpm to v7.25.1 2023-01-24 10:43:54 +00:00
Sidharth Vinod afe3f593e1
fix(#4003): Remove unhandled promises
Add eslint rules to check for unhandled promises
Fix all existing unhandled promise issues
2023-01-18 00:47:49 +05:30
renovate[bot] 376d1a583c
chore(deps): update all non-major dependencies 2023-01-16 05:22:19 +00:00
renovate[bot] ac6d325a00 chore(deps): update all non-major dependencies 2023-01-13 10:02:07 +00:00
Alois Klink 6c862565aa chore(dev-deps): update vitest to `^0.27.1`
Updates vitest to `^0.27.1`.

We want to add `importOriginal` feature added in Vitest [v0.26.3][1],
see commit
853eeddba8

[1]: https://github.com/vitest-dev/vitest/releases/tag/v0.26.3
2023-01-12 23:52:16 +00:00
Sidharth Vinod 1495ae623a
WIP Adding contributors page from vitest 2022-12-21 10:54:23 +05:30
renovate[bot] e46e918b23 chore(deps): update pnpm to v7.18.2 2022-12-19 03:46:30 +00:00
Sidharth Vinod 7b13b489c2
Merge branch 'master' into develop
* master: (23 commits)
  Update vitepress
  fix: Add icon css
  fix Top level await
  v9.3.0
  bump dagre-es 7.0.6
  Bump mermaid version
  Update dagre-es
  Bump mermaid version
  fix: Incorrect removal of existing elements
  fix: add .js to external imports.
  fix: add .js to external imports.
  Bump mermaid version
  fix: add .js to external imports.
  Bump mermaid version
  fix: Throw correct errors when parsing diagrams with errors
  Update url snapshot test for external diagrams
  Update url snapshot test for external diagrams
  Updated package number
  Updated package number
  Updated package number to 9.3.0-rc1
  ...
2022-12-16 00:51:16 +05:30
renovate[bot] a975c8c9cd chore(deps): update all non-major dependencies 2022-12-12 04:57:37 +00:00
Per Brolin 7656916cef Updated package number to 9.3.0-rc1 2022-12-08 15:03:51 +01:00