Sidharth Vinod
bd14dc508f
Build docs in lintstaged
2022-09-03 09:09:41 +05:30
Sidharth Vinod
3b88150e11
Move docs to src
2022-09-03 09:06:42 +05:30
Thomas Karner
87f6d34b4f
added mermerd to integrations documentation
2022-09-02 23:09:19 +02:00
Sidharth Vinod
cfae2b6a40
Doc transformer
2022-09-03 02:13:21 +05:30
Knut Sveidqvist
5584fef1b0
#3395 Renabling the error graph which is rendered on error
2022-09-02 14:05:31 +02:00
Knut Sveidqvist
98f37d64ea
#3395 Fix for lopp stopping at first failure
2022-09-02 12:45:22 +02:00
Knut Sveidqvist
ccb16e5f5a
Adding cloud and bang shapes
2022-09-02 11:08:26 +02:00
Sidharth Vinod
d73cafa7c8
Merge pull request #3396 from aloisklink/fix/fix-passing-single-node-to-mermaid.init
...
fix: fix passing a single Node to mermaid.init()
2022-09-02 14:28:43 +05:30
Sidharth Vinod
f28c86326d
Introduce stricter linting
2022-09-02 11:50:41 +05:30
Sidharth Vinod
269722fb65
Introduce stricter linting
2022-09-02 11:44:06 +05:30
Sidharth Vinod
99923fcd0f
Test - esbuild
2022-09-02 11:08:14 +05:30
Sidharth Vinod
e06a7587ac
Vite
2022-09-02 09:27:25 +05:30
Alois Klink
b3c0c57c6d
fix: fix passing a single Node to mermaid.init()
...
Passing a single Node to mermaid.init() results in an error, as it
calls `new NodeList()`, which causes `TypeError: Illegal constructor`.
See 5597cf45bf/src/mermaid.ts (L73)
If we instead use the `ArrayLike` interface, we can just use a simple
array, instead of a NodeList.
I've also added a basic test case, by mocking the `mermaidAPI.render()`
function so it isn't called, as the d3 functions don't work in Node.JS.
The mocks are a bit messy, since
a) Jest doesn't fully support ESM yet, and
b) mermaidAPI is frozen with `Object.freeze()`,
but the mermaidAPI mocks work as long as we keep them simple.
Fixes: c68ec54fdd980a6b4d1c1b58aec991badba16676
2022-09-02 04:39:58 +01:00
Sidharth Vinod
04f18630f3
use same esbuild in webpack
2022-09-02 00:48:34 +05:30
Sidharth Vinod
f1fa91a51c
fix flowchart jison
2022-09-02 00:46:02 +05:30
Sidharth Vinod
53fe35e37e
Add webpack build
2022-09-02 00:36:01 +05:30
Sidharth Vinod
6be05e9948
Esbuild with types
2022-09-02 00:34:03 +05:30
Sidharth Vinod
84bf79f72b
Fix export
2022-09-01 23:39:30 +05:30
Sidharth Vinod
904eccc4fa
Vite
2022-09-01 23:38:13 +05:30
Sidharth Vinod
01562528b7
Typescript
2022-09-01 22:45:10 +05:30
Alois Klink
0dca4d3393
fix(git): support numeric branch names
...
gitGraph does not support branch names that start with a number,
because the gitGraph.jison file parses these as NUM (number) instead.
To fix this, I've changed the NUM parser to only accept strings that
end with whitespace (e.g 1234 is a NUM, but 1234abc is not a NUM).
To do this, I had to move the "skip all whitespace" step to the
end of the parser, but this doesn't seem to have caused any issues,
so it's probably fine.
2022-09-01 17:24:00 +01:00
Sidharth Vinod
fe3bb0b6c0
Typescript
2022-09-01 20:41:31 +05:30
Sidharth Vinod
7aeb60f42a
Merge branch 'develop' into sidv/esbuild
...
* develop: (50 commits)
Typo fix
Fix repo URL
Revert flowchart change
Revert flowchart change
Fix TODO Qs
chore(deps-dev): bump @commitlint/cli from 17.1.1 to 17.1.2
chore(deps-dev): bump terser-webpack-plugin from 5.3.5 to 5.3.6
chore(deps-dev): bump webpack-dev-server from 4.10.0 to 4.10.1
Fix gitGraph findLane function error
Update dependabot.yml
Replacing replaceAll with replace
Rework 'parseDuration' as a pure duration parsing
Supports duration in decimal
Create a more consistent 'parseDuration'
Remove `@ts-ignore`s.
Fix svgDraw return types
...
2022-09-01 20:38:21 +05:30
Knut Sveidqvist
5597cf45bf
Merge pull request #3336 from mermaid-js/sidv/typescript
...
Introducing TypeScript
2022-09-01 16:59:51 +02:00
Sidharth Vinod
1ced01c7f6
Typo fix
2022-09-01 20:21:13 +05:30
Sidharth Vinod
e46d9c1173
Merge branch 'develop' into sidv/typescript
...
* develop:
chore(deps-dev): bump @commitlint/cli from 17.1.1 to 17.1.2
chore(deps-dev): bump terser-webpack-plugin from 5.3.5 to 5.3.6
chore(deps-dev): bump webpack-dev-server from 4.10.0 to 4.10.1
Fix gitGraph findLane function error
Replacing replaceAll with replace
Rework 'parseDuration' as a pure duration parsing
Supports duration in decimal
Create a more consistent 'parseDuration'
Fix svgDraw return types
Add more tests
Fix nested types
Fix nested types
Add nested test
Updating to version to 9.1.6
2022-09-01 20:06:42 +05:30
Sidharth Vinod
2272eb6644
Fix repo URL
2022-09-01 20:04:06 +05:30
Knut Sveidqvist
ac76fb73a8
Merge pull request #3360 from vallsv/feature-ms-duration
...
Feature decimal duration in second for gantt diagram
2022-09-01 16:23:42 +02:00
Knut Sveidqvist
694692fb5d
Merge pull request #3354 from mermaid-js/sidv/tsAnnotation
...
Add nested test for parseGenericTypes
2022-09-01 16:21:46 +02:00
Knut Sveidqvist
f4a99fc612
Merge pull request #3390 from mermaid-js/dependabot/npm_and_yarn/develop/commitlint/cli-17.1.2
...
chore(deps-dev): bump @commitlint/cli from 17.1.1 to 17.1.2
2022-09-01 16:01:53 +02:00
Knut Sveidqvist
b00d569215
Merge pull request #3389 from mermaid-js/dependabot/npm_and_yarn/develop/terser-webpack-plugin-5.3.6
...
chore(deps-dev): bump terser-webpack-plugin from 5.3.5 to 5.3.6
2022-09-01 16:01:41 +02:00
Knut Sveidqvist
1921623bdf
Merge pull request #3387 from mermaid-js/dependabot/npm_and_yarn/develop/webpack-dev-server-4.10.1
...
chore(deps-dev): bump webpack-dev-server from 4.10.0 to 4.10.1
2022-09-01 16:01:30 +02:00
Knut Sveidqvist
3502fb46f8
Merge pull request #3383 from hughli-git/fix_git_stack_exceeded
...
Fix gitGraph findLane function error
2022-09-01 16:00:43 +02:00
Knut Sveidqvist
bacdd49176
Merge pull request #3380 from mermaid-js/3056_Chrome_Compatibility
...
3056 chrome compatibility
2022-09-01 15:59:46 +02:00
Knut Sveidqvist
065a3176b8
Merge pull request #3379 from mermaid-js/3238_Gitgraph_merge_commits
...
3238 gitgraph merge commits
2022-09-01 15:57:43 +02:00
Sidharth Vinod
4fa0d366db
Revert flowchart change
2022-09-01 19:17:31 +05:30
Sidharth Vinod
36be8114d0
Revert flowchart change
2022-09-01 19:16:15 +05:30
Sidharth Vinod
4619ff2ad0
Merge branch 'develop' into sidv/typescript
...
* develop:
Update dependabot.yml
2022-09-01 18:41:05 +05:30
Sidharth Vinod
8c85c10212
Fix TODO Qs
2022-09-01 18:40:28 +05:30
Knut Sveidqvist
2fbdfdbf6a
Fix for unit tests after refactoring
2022-09-01 14:31:26 +02:00
Knut Sveidqvist
558ef8a2db
#448 Size calculations
2022-09-01 14:25:47 +02:00
Knut Sveidqvist
68f8010ab9
Merge branch 'develop' into minmaps
2022-09-01 13:42:21 +02:00
Knut Sveidqvist
654dfa6b3d
#448 Fixing issue with icon size for the root node
2022-09-01 13:39:00 +02:00
dependabot[bot]
0092ca1da0
chore(deps-dev): bump @commitlint/cli from 17.1.1 to 17.1.2
...
Bumps [@commitlint/cli](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/cli ) from 17.1.1 to 17.1.2.
- [Release notes](https://github.com/conventional-changelog/commitlint/releases )
- [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/@commitlint/cli/CHANGELOG.md )
- [Commits](https://github.com/conventional-changelog/commitlint/commits/v17.1.2/@commitlint/cli )
---
updated-dependencies:
- dependency-name: "@commitlint/cli"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-09-01 08:22:51 +00:00
dependabot[bot]
fa85e2a650
chore(deps-dev): bump terser-webpack-plugin from 5.3.5 to 5.3.6
...
Bumps [terser-webpack-plugin](https://github.com/webpack-contrib/terser-webpack-plugin ) from 5.3.5 to 5.3.6.
- [Release notes](https://github.com/webpack-contrib/terser-webpack-plugin/releases )
- [Changelog](https://github.com/webpack-contrib/terser-webpack-plugin/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v5.3.5...v5.3.6 )
---
updated-dependencies:
- dependency-name: terser-webpack-plugin
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-09-01 08:22:31 +00:00
dependabot[bot]
3dc7e0e694
chore(deps-dev): bump webpack-dev-server from 4.10.0 to 4.10.1
...
Bumps [webpack-dev-server](https://github.com/webpack/webpack-dev-server ) from 4.10.0 to 4.10.1.
- [Release notes](https://github.com/webpack/webpack-dev-server/releases )
- [Changelog](https://github.com/webpack/webpack-dev-server/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webpack/webpack-dev-server/compare/v4.10.0...v4.10.1 )
---
updated-dependencies:
- dependency-name: webpack-dev-server
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-09-01 08:21:49 +00:00
Knut Sveidqvist
98b2febe30
Merge pull request #3382 from mermaid-js/fix-dependabot
...
Update dependabot.yml
2022-09-01 10:19:45 +02:00
Sidharth Vinod
d67e2723c6
Serve
2022-09-01 13:38:02 +05:30
Sidharth Vinod
1206ec43ac
Remove jisonloader
2022-09-01 00:12:20 +05:30
Sidharth Vinod
965df4fdf4
ESBuild
2022-08-31 23:59:32 +05:30