6922 Commits

Author SHA1 Message Date
Sidharth Vinod
1ecf15669a
9.4.2-rc.2 2023-02-28 21:51:31 +05:30
Sidharth Vinod
d24ddca03f
chore: Rename diagram-definitions with specific names 2023-02-28 21:49:49 +05:30
Sidharth Vinod
a7847038a5
Use cytoscape esm 2023-02-28 21:45:07 +05:30
Sidharth Vinod
b6db75fe3e
Revert "chore: Defer elk loading"
This reverts commit 037504785c26dd18ee797cfdf93a5e9f5f551f6a.
2023-02-28 21:44:55 +05:30
Sidharth Vinod
2a838e645c
Revert "Split cytoscape"
This reverts commit f81f9f7c958848758d26e1e2bf05a98808152a25.
2023-02-28 21:44:48 +05:30
Alois Klink
61bf7c577c
test(gantt): test daylight savings in ganttdb
Add a quick test that ensures `ganttDb` correctly adds `1d` (1 day),
even on days with 25 hours.

This test only runs if the test PC has the TZ='America/Los_Angeles'
set (California has daylight savings).

I've added a test to the GitHub Actions `test.yml` action too for this.
It should only add about 5 seconds to each test, so it isn't too bad.
2023-02-28 19:54:58 +05:30
Alois Klink
704506835f
refactor(deps): replace moment with dayjs
Replace Mermaid's dependency on `moment` with `dayjs`.

[Moment is now in maintenance mode][1], and they don't recommend
using it.

[Dayjs][2] has almost exactly the same API as moment, and is still
curently being maintained. Unlike moment, dayjs objects are immutable,
which makes our life much easier, but we need to do
`a = a.add(1, "day")` instead of just `a.add(1, "day")`.

We can't use `dayjs.duration`, because unlike `moment.duration`,
[dayjs durations always degrade to ms][3].
This causes issues with daylight savings, since it assumes that each
day is 24 hours, when some days have 23/25 hours with daylight savings.
(it also assumes that each month is 30 days).

However, `dayjs.add(1, "d");` correctly adds 1 days, even when that
day is only 23 hours long, so we can use that instead.

[1]: https://momentjs.com/docs/#/-project-status/
[2]: https://day.js.org/
[3]: https://day.js.org/docs/en/durations/durations

Co-authored-by: Alois Klink <alois@aloisklink.com>
2023-02-28 19:54:27 +05:30
Sidharth Vinod
067b6adc20
fix(E2E): Add cors package 2023-02-20 21:23:06 +05:30
Sidharth Vinod
a8162634cd
fix Server 2023-02-20 21:18:54 +05:30
Sidharth Vinod
6ded32880d
Fix lockfile 2023-02-20 18:24:24 +05:30
Sidharth Vinod
03419c691c
Remove Readme 2023-02-19 14:13:47 +05:30
Sidharth Vinod
31629fe93f
Merge pull request #4101 from AielloChan/develop
fix(api): tree shaking package.json import
2023-02-19 00:06:23 +05:30
Sidharth Vinod
735faa83e9
Merge branch 'release/9.4.2' into pr/AielloChan/4101
* release/9.4.2:
  RC version
  Revert #4034
  Revert #4034
  fix: Vite, D3, Vitest Types
2023-02-19 00:05:53 +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
ea8128e881
RC version 2023-02-18 23:48:09 +05:30
Sidharth Vinod
bd98f1477f
Revert #4034 2023-02-18 23:46:11 +05:30
Sidharth Vinod
0f36bbf3e1
Revert #4034 2023-02-18 23:45:45 +05:30
Sidharth Vinod
3c4a6a19bb
fix: Vite, D3, Vitest Types 2023-02-18 22:35:14 +05:30
Aiello
e31924eadc
fix(api): tree shaking package.json import
Manually tree shaking import statement of package.json
2023-02-18 23:21:20 +08:00
Sidharth Vinod
fec193ebaf
Merge pull request #4068 from mermaid-js/renovate/cypress-12.x
chore(deps): update dependency cypress to v12
2023-02-16 18:05:24 +05:30
Sidharth Vinod
4ed6ec1a4d
Add highlight tag info in contributing.md 2023-02-16 18:00:41 +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
d543bc0411
docs: fix links 2023-02-16 17:27:51 +05:30
Knut Sveidqvist
23ed533fac
Merge pull request #4095 from mermaid-js/release/9.4.1
Release 9.4.1
2023-02-16 12:47:51 +01:00
Sidharth Vinod
86cfb1bb60
Skip precommit hooks on CI 2023-02-16 17:09:02 +05:30
Sidharth Vinod
b10d243995
Fix release-publish 2023-02-16 17:07:03 +05:30
Sidharth Vinod
b22978dfb2
Fix timeline and mindmap 2023-02-16 16:52:15 +05:30
Knut Sveidqvist
276f042983 Merge branch 'release/9.4.1' of github.com:mermaid-js/mermaid into release/9.4.1 2023-02-16 12:05:51 +01:00
Knut Sveidqvist
71e4f1152b Updating integration instructions for timeline and mindmap 2023-02-16 12:05:38 +01:00
Sidharth Vinod
0a923dfe91
Remove node heap 2023-02-16 16:28:09 +05:30
Sidharth Vinod
743c636441
Revert "chore: Set node heap size"
This reverts commit 8df965bd606d4acd173e316f6992328ac2383516.
2023-02-16 16:10:20 +05:30
Sidharth Vinod
8c7043ffaf
Revert "Remove text hint"
This reverts commit ec6ef35d2136bdc33b8e6d8342600997fd3bac34.
2023-02-16 15:27:43 +05:30
Sidharth Vinod
f81f9f7c95
Split cytoscape 2023-02-16 15:21:45 +05:30
Sidharth Vinod
ea7aaa5d56
Linear build 2023-02-16 15:09:22 +05:30
Sidharth Vinod
ec6ef35d21
Remove text hint 2023-02-16 15:07:55 +05:30
Sidharth Vinod
c815c84e1c
Fix elk import 2023-02-16 15:00:35 +05:30
Sidharth Vinod
b8315cec6c
Dynamic elk import 2023-02-16 14:42:47 +05:30
Sidharth Vinod
76fdc00b06
Remove heap option 2023-02-16 14:41:22 +05:30
Sidharth Vinod
83797eef38
elk web-worker 2023-02-16 14:21:33 +05:30
Sidharth Vinod
0db2657b7b
Test publish docs 2023-02-16 13:05:53 +05:30
Sidharth Vinod
a1a252cc29
Merge branch 'master' into release/9.4.1
* master:
  Update vitepress
  Fix links to integrations.md
  chore: Set node heap size
2023-02-16 13:01:10 +05:30
Sidharth Vinod
533bd7da3c
chore: Add file extension for dynamic import 2023-02-16 12:56:32 +05:30
Sidharth Vinod
037504785c
chore: Defer elk loading 2023-02-16 12:47:28 +05:30
Sidharth Vinod
62f7fb082e
Update vitepress 2023-02-16 12:47:00 +05:30
Sidharth Vinod
b89b90dbb9
Fix links to integrations.md 2023-02-16 12:35:43 +05:30
Sidharth Vinod
e9cc9f4005
chore: Set node heap size 2023-02-16 12:26:27 +05:30
Sidharth Vinod
8df965bd60
chore: Set node heap size 2023-02-16 12:21:24 +05:30
Sidharth Vinod
2b3019fb94
Set node heap size 2023-02-16 12:16:00 +05:30