| 1 | --- |
| 2 | '@mermaid-js/parser': major |
| 3 | --- |
| 4 | |
| 5 | chore: upgrade to Langium v4 |
| 6 | |
| 7 | Upgrade `@mermaid-js/parser` to use Langium v4, |
| 8 | see https://github.com/eclipse-langium/langium/releases/tag/v4.0.0 |
| 9 | for more details. |
| 10 | |
| 11 | The major breaking changes that impact consumers of this package are: |
| 12 | |
| 13 | - Due to various type-related changes, `langium` now requires version `>= 5.8.0` |
| 14 | of TypeScript. |
| 15 | - The generated type names from `ast.ts` have been moved from `<typeName>` to |
| 16 | `<typeName>.$type` |
| 17 | ([langium#1942](https://github.com/eclipse-langium/langium/pull/1942)). |
| 18 | |
| 19 | This also removes a transitive dependency on lodash versions that are vulnerable |
| 20 | to CVE-2025-13465, although |
| 21 | [chevrotain doesn't use the affected functions](https://github.com/Chevrotain/chevrotain/blob/21f20cd9754f8d5e85243fd9286d1fff397363ab/packages/website/docs/changes/CHANGELOG.md?plain=1#L5-L8), |
| 22 | so this is only to silence security scanners. |
| 23 | |