Skip to content

Commit c4a6738

Browse files
kubeclaude
andcommitted
Update Petrinaut + refractive toolchain: Vite 8.0.16, tsgo, React 19.2.7
- Bump vite, @vitejs/plugin-react, storybook, rolldown 1.0.3 (matches vite's internal pin), rolldown-plugin-dts 0.25.2, @rolldown/plugin-babel and @typescript/native-preview across @hashintel/petrinaut, @hashintel/petrinaut-core, @apps/petrinaut-website and @hashintel/refractive; vitest 4.1.8 + jsdom 29 where tests exist - typescript 5.9.3 -> 6.0.3 for the petrinaut-core in-browser LSP runtime - react/react-dom 19.2.6 -> 19.2.7 monorepo-wide (required by the root resolutions pin that guarantees a single React copy) - Add explicit @babel/core devDep for the React Compiler babel pass - yarn constraints: ignore @types/react, typescript and jsdom forks (refractive was aligned instead of ignored for the toolchain packages) - Document why the dts fake-js `enforce: "pre"` remap must stay: the upstream-recommended `oxc.exclude` setup (rolldown-plugin-dts#201) emits dts chunks without their local declarations React Compiler stays on babel-plugin-react-compiler: the Rust port is in oxc 0.135 but not yet shipped in rolldown (rolldown#9671 still draft) nor reachable from stable Vite. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent f5cd3ed commit c4a6738

20 files changed

Lines changed: 1275 additions & 370 deletions

File tree

apps/hash-frontend/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,9 @@
110110
"prosemirror-state": "1.4.3",
111111
"prosemirror-transform": "1.7.0",
112112
"prosemirror-view": "patch:prosemirror-view@npm%3A1.29.1#~/.yarn/patches/prosemirror-view-npm-1.29.1-ff37db4eea.patch",
113-
"react": "19.2.6",
113+
"react": "19.2.7",
114114
"react-beautiful-dnd": "13.1.1",
115-
"react-dom": "19.2.6",
115+
"react-dom": "19.2.7",
116116
"react-dropzone": "14.3.8",
117117
"react-full-screen": "1.1.1",
118118
"react-hook-form": "7.65.0",

apps/petrinaut-website/package.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,23 @@
2424
"@sentry/react": "10.54.0",
2525
"ai": "6.0.182",
2626
"immer": "10.1.3",
27-
"react": "19.2.6",
28-
"react-dom": "19.2.6",
27+
"react": "19.2.7",
28+
"react-dom": "19.2.7",
2929
"react-icons": "5.5.0",
3030
"zod": "4.4.3"
3131
},
3232
"devDependencies": {
33-
"@rolldown/plugin-babel": "0.2.1",
34-
"@types/react": "19.2.14",
33+
"@babel/core": "7.29.7",
34+
"@rolldown/plugin-babel": "0.2.3",
35+
"@types/react": "19.2.17",
3536
"@types/react-dom": "19.2.3",
36-
"@typescript/native-preview": "7.0.0-dev.20260511.1",
37-
"@vitejs/plugin-react": "6.0.1",
37+
"@typescript/native-preview": "7.0.0-dev.20260607.1",
38+
"@vitejs/plugin-react": "6.0.2",
3839
"@whatwg-node/server": "0.10.18",
3940
"babel-plugin-react-compiler": "1.0.0",
4041
"oxlint": "1.63.0",
4142
"oxlint-tsgolint": "0.22.1",
4243
"sharp": "0.34.5",
43-
"vite": "8.0.12"
44+
"vite": "8.0.16"
4445
}
4546
}

apps/plugin-browser/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
"fractional-indexing": "3.2.0",
4141
"graphql": "16.11.0",
4242
"lodash.debounce": "4.0.8",
43-
"react": "19.2.6",
44-
"react-dom": "19.2.6",
43+
"react": "19.2.7",
44+
"react-dom": "19.2.7",
4545
"uuid": "14.0.0",
4646
"webextension-polyfill": "0.12.0",
4747
"ws": "8.20.1"

libs/@blockprotocol/type-system/typescript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"@types/semver": "7.7.1",
6767
"@vitest/coverage-istanbul": "4.1.7",
6868
"eslint": "9.39.4",
69-
"react": "19.2.6",
69+
"react": "19.2.7",
7070
"rimraf": "6.1.3",
7171
"rollup": "4.59.0",
7272
"tslib": "2.8.1",

libs/@hashintel/block-design-system/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
"@types/react-dom": "19.2.3",
4646
"@types/react-syntax-highlighter": "15.5.13",
4747
"eslint": "9.39.4",
48-
"react": "19.2.6",
49-
"react-dom": "19.2.6",
48+
"react": "19.2.7",
49+
"react-dom": "19.2.7",
5050
"typescript": "5.9.3"
5151
},
5252
"peerDependencies": {

libs/@hashintel/design-system/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@
7474
"@types/react": "19.2.14",
7575
"@types/react-dom": "19.2.3",
7676
"eslint": "9.39.4",
77-
"react": "19.2.6",
78-
"react-dom": "19.2.6",
77+
"react": "19.2.7",
78+
"react-dom": "19.2.7",
7979
"typescript": "5.9.3"
8080
},
8181
"peerDependencies": {

libs/@hashintel/ds-components/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@
106106
"lorem-ipsum": "2.0.8",
107107
"lucide-react": "0.544.0",
108108
"npm-run-all": "4.1.5",
109-
"react": "19.2.6",
110-
"react-dom": "19.2.6",
109+
"react": "19.2.7",
110+
"react-dom": "19.2.7",
111111
"tsup": "^8.5.1",
112112
"tsx": "4.20.6",
113113
"typescript": "5.9.3",

libs/@hashintel/petrinaut-core/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,13 @@
7070
"devDependencies": {
7171
"@types/babel__standalone": "7.1.9",
7272
"@types/node": "22.18.13",
73-
"@typescript/native-preview": "7.0.0-dev.20260511.1",
73+
"@typescript/native-preview": "7.0.0-dev.20260607.1",
7474
"oxlint": "1.63.0",
7575
"oxlint-tsgolint": "0.22.1",
76-
"rolldown": "1.0.0",
77-
"rolldown-plugin-dts": "0.25.0",
78-
"typescript": "5.9.3",
79-
"vite": "8.0.12",
80-
"vitest": "4.1.7"
76+
"rolldown": "1.0.3",
77+
"rolldown-plugin-dts": "0.25.2",
78+
"typescript": "6.0.3",
79+
"vite": "8.0.16",
80+
"vitest": "4.1.8"
8181
}
8282
}

libs/@hashintel/petrinaut-core/vite.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ export default defineConfig(({ command }) => ({
6464
external: ["typescript"],
6565
}),
6666

67+
// The `enforce: "pre"` remap below is still required in Vite 8, despite
68+
// upstream recommending `oxc: { exclude }` instead (sxzz/rolldown-plugin-dts#201):
69+
// tested 2026-06-12 with vite 8.0.16 + rolldown-plugin-dts 0.25.2, the
70+
// exclude-based setup silently emits dts chunks without their local
71+
// declarations (e.g. `index.d.d.ts` went missing entirely).
6772
command === "build" &&
6873
dts({ tsgo: true }).map((plugin) =>
6974
plugin.name.endsWith("fake-js")

libs/@hashintel/petrinaut/package.json

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -75,29 +75,30 @@
7575
"uuid": "14.0.0"
7676
},
7777
"devDependencies": {
78+
"@babel/core": "7.29.7",
7879
"@hashintel/ds-helpers": "workspace:*",
7980
"@pandacss/dev": "1.11.1",
80-
"@rolldown/plugin-babel": "0.2.1",
81-
"@storybook/react-vite": "10.2.19",
81+
"@rolldown/plugin-babel": "0.2.3",
82+
"@storybook/react-vite": "10.4.2",
8283
"@testing-library/dom": "10.4.1",
8384
"@testing-library/react": "16.3.2",
8485
"@types/babel__standalone": "7.1.9",
8586
"@types/lodash-es": "4.17.12",
86-
"@types/react": "19.2.14",
87+
"@types/react": "19.2.17",
8788
"@types/react-dom": "19.2.3",
88-
"@typescript/native-preview": "7.0.0-dev.20260511.1",
89-
"@vitejs/plugin-react": "6.0.1",
89+
"@typescript/native-preview": "7.0.0-dev.20260607.1",
90+
"@vitejs/plugin-react": "6.0.2",
9091
"babel-plugin-react-compiler": "1.0.0",
91-
"jsdom": "24.1.3",
92+
"jsdom": "29.1.1",
9293
"oxlint": "1.63.0",
9394
"oxlint-tsgolint": "0.22.1",
94-
"react": "19.2.6",
95-
"react-dom": "19.2.6",
96-
"rolldown": "1.0.0",
97-
"rolldown-plugin-dts": "0.25.0",
98-
"storybook": "10.3.6",
99-
"vite": "8.0.12",
100-
"vitest": "4.1.7"
95+
"react": "19.2.7",
96+
"react-dom": "19.2.7",
97+
"rolldown": "1.0.3",
98+
"rolldown-plugin-dts": "0.25.2",
99+
"storybook": "10.4.2",
100+
"vite": "8.0.16",
101+
"vitest": "4.1.8"
101102
},
102103
"peerDependencies": {
103104
"@hashintel/ds-components": "workspace:^",

0 commit comments

Comments
 (0)