Skip to content

Commit a9cc156

Browse files
authored
feat: bump react template version to 19.1 (#916)
* feat: bump react and react-ts templates to react 19 * add changefile
1 parent b3a990b commit a9cc156

File tree

3 files changed

+17
-11
lines changed

3 files changed

+17
-11
lines changed

.changes/react-19-template.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"create-tauri-app": patch
3+
"create-tauri-app-js": patch
4+
---
5+
6+
Update `react` and `react-ts` templates to React 19 based on create-vite template

templates/template-react-ts/package.json.lte

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@
1010
"tauri": "tauri"
1111
},
1212
"dependencies": {
13-
"react": "^18.3.1",
14-
"react-dom": "^18.3.1",
13+
"react": "^19.1.0",
14+
"react-dom": "^19.1.0",
1515
"@tauri-apps/api": "{% if v2 %}^2{% else %}^1{% endif %}"{% if v2 %},
1616
"@tauri-apps/plugin-opener": "^2"{% endif %}
1717
},
1818
"devDependencies": {
19-
"@types/react": "^18.3.1",
20-
"@types/react-dom": "^18.3.1",
21-
"@vitejs/plugin-react": "^4.3.4",
22-
"typescript": "~5.6.2",
23-
"vite": "^6.0.3",
19+
"@types/react": "^19.1.8",
20+
"@types/react-dom": "^19.1.6",
21+
"@vitejs/plugin-react": "^4.6.0",
22+
"typescript": "~5.8.3",
23+
"vite": "^7.0.4",
2424
"@tauri-apps/cli": "{% if v2 %}^2{% else %}^1{% endif %}"
2525
}
2626
}

templates/template-react/package.json.lte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
"tauri": "tauri"
1111
},
1212
"dependencies": {
13-
"react": "^18.3.1",
14-
"react-dom": "^18.3.1",
13+
"react": "^19.1.0",
14+
"react-dom": "^19.1.0",
1515
"@tauri-apps/api": "{% if v2 %}^2{% else %}^1{% endif %}"{% if v2 %},
1616
"@tauri-apps/plugin-opener": "^2"{% endif %}
1717
},
1818
"devDependencies": {
19-
"@vitejs/plugin-react": "^4.3.4",
20-
"vite": "^6.0.3",
19+
"@vitejs/plugin-react": "^4.6.0",
20+
"vite": "^7.0.4",
2121
"@tauri-apps/cli": "{% if v2 %}^2{% else %}^1{% endif %}"
2222
}
2323
}

0 commit comments

Comments
 (0)