Skip to content

Commit 92ee1d5

Browse files
feat: support react 19 (#501)
1 parent 8c4a716 commit 92ee1d5

File tree

4 files changed

+1070
-1230
lines changed

4 files changed

+1070
-1230
lines changed

apps/www/tsconfig.json

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@
22
"compilerOptions": {
33
"baseUrl": ".",
44
"target": "ESNext",
5-
"lib": [
6-
"dom",
7-
"dom.iterable",
8-
"esnext"
9-
],
5+
"lib": ["dom", "dom.iterable", "esnext"],
106
"allowJs": true,
117
"skipLibCheck": true,
128
"strict": true,
@@ -20,26 +16,16 @@
2016
"jsx": "preserve",
2117
"incremental": true,
2218
"paths": {
23-
"@/.source": [
24-
"./.source/index.ts"
25-
],
26-
"@/*": [
27-
"./src/*"
28-
]
19+
"react": ["node_modules/@types/react"],
20+
"@/.source": ["./.source/index.ts"],
21+
"@/*": ["./src/*"]
2922
},
3023
"plugins": [
3124
{
3225
"name": "next"
3326
}
3427
]
3528
},
36-
"include": [
37-
"next-env.d.ts",
38-
"**/*.ts",
39-
"**/*.tsx",
40-
".next/types/**/*.ts"
41-
],
42-
"exclude": [
43-
"node_modules"
44-
]
45-
}
29+
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
30+
"exclude": ["node_modules"]
31+
}

packages/raystack/package.json

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@
7676
"@testing-library/react": "^16.1.0",
7777
"@testing-library/user-event": "^14.5.2",
7878
"@types/jest": "^29.5.14",
79-
"@types/react": "^18.2.12",
80-
"@types/react-select": "^5.0.1",
79+
"@types/react": "^19.0.0",
80+
"@types/react-dom": "^19.0.0",
8181
"eslint-config-custom": "workspace:*",
8282
"identity-obj-proxy": "^3.0.0",
8383
"jest": "^29.7.0",
@@ -88,6 +88,8 @@
8888
"postcss": "^8.4.24",
8989
"postcss-import": "^16.1.0",
9090
"postcss-modules": "^6.0.0",
91+
"react": "^19.0.0",
92+
"react-dom": "^19.0.0",
9193
"release-it": "^16.2.1",
9294
"rollup": "^3.25.1",
9395
"rollup-plugin-postcss": "^4.0.2",
@@ -99,17 +101,26 @@
99101
},
100102
"dependencies": {
101103
"@ariakit/react": "^0.4.16",
102-
"@radix-ui/react-icons": "^1.3.0",
104+
"@radix-ui/react-icons": "^1.3.2",
103105
"@tanstack/match-sorter-utils": "^8.8.4",
104106
"@tanstack/react-table": "^8.9.2",
105107
"@tanstack/table-core": "^8.9.2",
106108
"class-variance-authority": "^0.7.1",
107-
"cmdk": "^0.2.0",
109+
"cmdk": "^1.1.1",
108110
"color": "^5.0.0",
109111
"dayjs": "^1.11.11",
110112
"radix-ui": "^1.4.2",
111-
"react": "^18.2.0",
112113
"react-day-picker": "^9.6.7",
113-
"sonner": "^1.5.0"
114+
"sonner": "^2.0.6"
115+
},
116+
"peerDependencies": {
117+
"@types/react": "^18 || ^19",
118+
"react": "^18 || ^19",
119+
"react-dom": "^18 || ^19"
120+
},
121+
"peerDependenciesMeta": {
122+
"@types/react": {
123+
"optional": true
124+
}
114125
}
115126
}

packages/raystack/rollup.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ const rollupConfig = configs.map(conf => {
9898
preserveModulesRoot: conf.inputPath
9999
}
100100
],
101-
external: ['react', 'react-dom'],
101+
external: ['react', 'react-dom', 'react-dom/client', 'react/jsx-runtime'],
102102
plugins: createPlugins({
103103
rootDir: conf.inputPath,
104104
declarationDir: conf.outputPath

0 commit comments

Comments
 (0)