Skip to content

Commit 715a859

Browse files
committed
fix: bump typescript to version 6 (hpcc-systems#4551)
Signed-off-by: Gordon Smith <GordonJSmith@gmail.com>
1 parent 0ac7ad6 commit 715a859

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+4609
-728
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
applyTo: "packages/graph/src/graphviz/**"
3+
---
4+
# Graphviz Module Instructions
5+
6+
## Overview
7+
The `src/graphviz/` module renders directed graphs using the Graphviz DOT layout engine. It converts a graph model (`Store`) into DOT language via `DotWriter`, lays it out with the Graphviz WASM engine, and renders the resulting SVG in a `Widget`.
8+
9+
## Key Components
10+
- **Store** — Graph data model extending `Graph2<Vertex, Edge, Subgraph>`. Holds vertices, edges, and subgraphs.
11+
- **DotWriter** — Serializes the Store into Graphviz DOT language.
12+
- **Widget** — SVG-based rendering widget that displays the laid-out graph.
13+
- **types.ts** — Entity interfaces (`Vertex`, `Edge`, `Subgraph`) with optional `fill` and `stroke` properties.
14+
15+
## Graphviz DOT Attributes
16+
Entity styling (`fill`, `stroke`) is applied in the DOT output via native Graphviz attributes:
17+
- `color` — Border/stroke color (maps to entity `stroke` property)
18+
- `fillcolor` — Fill color (maps to entity `fill` property)
19+
20+
For the full list of Graphviz attributes, see: https://graphviz.org/doc/info/attrs.html
21+
22+
## Styling Architecture
23+
- **CSS custom properties** defined in `Widget.css` control default colors (`--gv-bg`, `--gv-fg`, `--gv-border`, `--gv-select-stroke`, `--gv-select-fill`).
24+
- These use `light-dark()` for automatic light/dark mode support, inheriting `color-scheme` from the host document.
25+
- Per-entity colors are set via the `fill`/`stroke` fields on `Vertex`, `Edge`, and `Subgraph` interfaces and emitted as DOT `fillcolor`/`color` attributes by `DotWriter`.
26+
- Selection highlight colors are applied via inline styles in `Widget._selectionChanged()`.
27+
28+
## Important Conventions
29+
- Do NOT use domain-specific concepts (e.g., status, started, completed) in the graphviz module — keep it generic.
30+
- Color values in the DOT output that match `"black"`, `"white"`, or `"whitesmoke"` are replaced with CSS custom property references during SVG rendering.

package-lock.json

Lines changed: 383 additions & 212 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
},
3939
"devDependencies": {
4040
"@types/esbuild-copy-static-files": "0.1.4",
41-
"@typescript-eslint/parser": "8.57.0",
41+
"@typescript-eslint/parser": "8.57.2",
4242
"@vitest/browser": "3.2.4",
4343
"@vitest/coverage-v8": "3.2.4",
4444
"cross-env": "10.1.0",
@@ -49,7 +49,7 @@
4949
"npm-run-all": "4.1.5",
5050
"playwright": "1.58.2",
5151
"rimraf": "6.1.3",
52-
"typescript": "5.9.3",
52+
"typescript": "6.0.2",
5353
"typescript-eslint": "8.57.0",
5454
"vite": "7.3.1",
5555
"vitepress": "1.6.4",
@@ -68,6 +68,15 @@
6868
"tmp": "0.2.5",
6969
"dojo-webpack-plugin": {
7070
"tmp": "0.2.5"
71+
},
72+
"typescript-eslint": {
73+
"typescript": "$typescript"
74+
},
75+
"@typescript-eslint/eslint-plugin": {
76+
"typescript": "$typescript"
77+
},
78+
"@typescript-eslint/parser": {
79+
"typescript": "$typescript"
7180
}
7281
},
7382
"repository": {

packages/api/tsconfig.json

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,13 @@
11
{
2+
"extends": "../tsconfig.settings.json",
23
"compilerOptions": {
34
"rootDir": "src",
4-
"module": "NodeNext",
5-
"target": "ESNext",
6-
"resolveJsonModule": true,
7-
"emitDeclarationOnly": true,
8-
"declaration": true,
95
"declarationDir": "types",
10-
"strict": true,
116
"noImplicitAny": false,
12-
"strictNullChecks": false,
13-
"isolatedModules": true,
14-
"skipLibCheck": true,
15-
"allowImportingTsExtensions": true,
16-
"forceConsistentCasingInFileNames": true,
17-
"lib": [
18-
"DOM",
19-
"ESNext",
20-
"ES2020"
21-
]
7+
"strictNullChecks": false
228
},
239
"include": [
24-
"./src/index.ts"
10+
"./src/index.ts",
11+
"../global.d.ts"
2512
]
2613
}

packages/chart/tsconfig.json

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,14 @@
11
{
2+
"extends": "../tsconfig.settings.json",
23
"compilerOptions": {
34
"rootDir": "src",
4-
"module": "NodeNext",
5-
"target": "ESNext",
6-
"resolveJsonModule": true,
7-
"emitDeclarationOnly": true,
8-
"declaration": true,
95
"declarationDir": "types",
106
"strict": false,
117
"noImplicitAny": false,
12-
"noImplicitThis": false,
13-
"strictNullChecks": false,
14-
"isolatedModules": true,
15-
"skipLibCheck": true,
16-
"allowImportingTsExtensions": true,
17-
"forceConsistentCasingInFileNames": true,
18-
"lib": [
19-
"DOM",
20-
"ESNext",
21-
"ES2020"
22-
]
8+
"strictNullChecks": false
239
},
2410
"include": [
25-
"./src/index.ts"
11+
"./src/index.ts",
12+
"../global.d.ts"
2613
]
2714
}

packages/codemirror/tsconfig.json

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,13 @@
11
{
2+
"extends": "../tsconfig.settings.json",
23
"compilerOptions": {
34
"rootDir": "src",
4-
"module": "NodeNext",
5-
"target": "ESNext",
6-
"resolveJsonModule": true,
7-
"emitDeclarationOnly": true,
8-
"declaration": true,
95
"declarationDir": "types",
10-
"strict": true,
116
"noImplicitAny": false,
12-
"strictNullChecks": false,
13-
"isolatedModules": true,
14-
"skipLibCheck": true,
15-
"allowImportingTsExtensions": true,
16-
"forceConsistentCasingInFileNames": true,
17-
"lib": [
18-
"DOM",
19-
"ESNext",
20-
"ES2020"
21-
]
7+
"strictNullChecks": false
228
},
239
"include": [
24-
"./src/index.ts"
10+
"./src/index.ts",
11+
"../global.d.ts"
2512
]
2613
}

packages/common/tsconfig.json

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,14 @@
11
{
2+
"extends": "../tsconfig.settings.json",
23
"compilerOptions": {
34
"rootDir": "src",
4-
"module": "NodeNext",
5-
"target": "ESNext",
6-
"resolveJsonModule": true,
7-
"emitDeclarationOnly": true,
8-
"declaration": true,
95
"declarationDir": "types",
106
"strict": false,
117
"noImplicitAny": false,
12-
"strictNullChecks": false,
13-
"isolatedModules": true,
14-
"skipLibCheck": true,
15-
"allowImportingTsExtensions": true,
16-
"forceConsistentCasingInFileNames": true,
17-
"lib": [
18-
"DOM",
19-
"ESNext",
20-
"ES2020"
21-
]
8+
"strictNullChecks": false
229
},
2310
"include": [
24-
"./src/index.ts"
11+
"./src/index.ts",
12+
"../global.d.ts"
2513
]
2614
}

packages/comms/tsconfig.json

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,10 @@
11
{
2+
"extends": "../tsconfig.settings.json",
23
"compilerOptions": {
34
"rootDir": "src",
4-
"module": "NodeNext",
5-
"target": "ESNext",
6-
"resolveJsonModule": true,
7-
"emitDeclarationOnly": true,
8-
"declaration": true,
95
"declarationDir": "types",
10-
"allowSyntheticDefaultImports": true,
11-
"strict": true,
126
"noImplicitAny": false,
13-
"strictNullChecks": false,
14-
"isolatedModules": true,
15-
"skipLibCheck": true,
16-
"allowImportingTsExtensions": true,
17-
"forceConsistentCasingInFileNames": true,
18-
"lib": [
19-
"DOM",
20-
"ESNext",
21-
"ES2020"
22-
]
7+
"strictNullChecks": false
238
},
249
"include": [
2510
"./src/index.node.ts",

packages/composite/tsconfig.json

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,14 @@
11
{
2+
"extends": "../tsconfig.settings.json",
23
"compilerOptions": {
34
"rootDir": "src",
4-
"module": "NodeNext",
5-
"target": "ESNext",
6-
"resolveJsonModule": true,
7-
"emitDeclarationOnly": true,
8-
"declaration": true,
95
"declarationDir": "types",
106
"strict": false,
117
"noImplicitAny": false,
12-
"noImplicitThis": false,
13-
"strictNullChecks": false,
14-
"isolatedModules": true,
15-
"skipLibCheck": true,
16-
"allowImportingTsExtensions": true,
17-
"forceConsistentCasingInFileNames": true,
18-
"lib": [
19-
"DOM",
20-
"ESNext",
21-
"ES2020"
22-
]
8+
"strictNullChecks": false
239
},
2410
"include": [
25-
"./src/index.ts"
11+
"./src/index.ts",
12+
"../global.d.ts"
2613
]
2714
}

packages/dataflow/tsconfig.json

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,8 @@
11
{
2+
"extends": "../tsconfig.settings.json",
23
"compilerOptions": {
34
"rootDir": "src",
4-
"module": "NodeNext",
5-
"target": "ESNext",
6-
"resolveJsonModule": true,
7-
"emitDeclarationOnly": true,
8-
"declaration": true,
9-
"declarationDir": "types",
10-
"strict": true,
11-
"isolatedModules": true,
12-
"skipLibCheck": true,
13-
"allowImportingTsExtensions": true,
14-
"forceConsistentCasingInFileNames": true,
15-
"lib": [
16-
"DOM",
17-
"ESNext",
18-
"ES2020"
19-
]
5+
"declarationDir": "types"
206
},
217
"include": [
228
"./src/index.ts"

0 commit comments

Comments
 (0)