Skip to content

Commit a5608e4

Browse files
authored
Merge pull request #1 from clerk/update-deps
chore: Update repo to work with latest Tanstack Start version
2 parents 5db7d51 + 37ed2ae commit a5608e4

File tree

6 files changed

+2280
-2024
lines changed

6 files changed

+2280
-2024
lines changed

app.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import tsConfigPaths from 'vite-tsconfig-paths'
33

44
export default defineConfig({
55
vite: {
6-
plugins: () => [
6+
plugins: [
77
tsConfigPaths({
88
projects: ['./tsconfig.json'],
9-
}),
9+
})
1010
],
1111
},
1212
})

app/client.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ import { createRouter } from './router'
44

55
const router = createRouter()
66

7-
hydrateRoot(document.getElementById('root')!, <StartClient router={router} />)
7+
hydrateRoot(document!, <StartClient router={router} />)

app/routeTree.gen.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
/* prettier-ignore-start */
2-
31
/* eslint-disable */
42

53
// @ts-nocheck
64

75
// noinspection JSUnusedGlobalSymbols
86

9-
// This file is auto-generated by TanStack Router
7+
// This file was automatically generated by TanStack Router.
8+
// You should NOT make any changes in this file as it will be overwritten.
9+
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
1010

1111
// Import Routes
1212

@@ -16,6 +16,7 @@ import { Route as IndexImport } from './routes/index'
1616
// Create/Update Routes
1717

1818
const IndexRoute = IndexImport.update({
19+
id: '/',
1920
path: '/',
2021
getParentRoute: () => rootRoute,
2122
} as any)
@@ -70,8 +71,6 @@ export const routeTree = rootRoute
7071
._addFileChildren(rootRouteChildren)
7172
._addFileTypes<FileRouteTypes>()
7273

73-
/* prettier-ignore-end */
74-
7574
/* ROUTE_MANIFEST_START
7675
{
7776
"routes": {

app/routes/__root.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Outlet, ScrollRestoration, createRootRoute } from '@tanstack/react-router'
2-
import { Body, Head, Html, Meta, Scripts } from '@tanstack/start'
2+
import { Meta, Scripts } from '@tanstack/start'
33
import type * as React from 'react'
44
import { ClerkProvider } from '@clerk/tanstack-start'
55

@@ -16,16 +16,16 @@ export const Route = createRootRoute({
1616
function RootDocument({ children }: { children: React.ReactNode }) {
1717
return (
1818
<ClerkProvider>
19-
<Html>
20-
<Head>
19+
<html>
20+
<head>
2121
<Meta />
22-
</Head>
23-
<Body>
22+
</head>
23+
<body>
2424
{children}
2525
<ScrollRestoration />
2626
<Scripts />
27-
</Body>
28-
</Html>
27+
</body>
28+
</html>
2929
</ClerkProvider>
3030
)
3131
}

package.json

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,22 @@
1111
"format": "prettier --write '**/*' --ignore-unknown"
1212
},
1313
"dependencies": {
14-
"@clerk/tanstack-start": "^0.4.0",
15-
"@tanstack/react-router": "^1.57.9",
16-
"@tanstack/router-devtools": "^1.57.9",
17-
"@tanstack/router-plugin": "^1.57.9",
18-
"@tanstack/start": "^1.57.9",
19-
"@typescript-eslint/parser": "^8.5.0",
20-
"@vitejs/plugin-react": "^4.3.1",
14+
"@clerk/tanstack-start": "^0.4.28",
15+
"@tanstack/react-router": "^1.81.9",
16+
"@tanstack/router-devtools": "^1.81.9",
17+
"@tanstack/router-plugin": "^1.81.9",
18+
"@tanstack/start": "^1.81.9",
19+
"@typescript-eslint/parser": "^8.14.0",
2120
"isbot": "^5.1.17",
2221
"react": "^18.3.1",
2322
"react-dom": "^18.3.1",
24-
"vinxi": "0.4.2"
23+
"vinxi": "0.4.3"
2524
},
2625
"devDependencies": {
2726
"@types/node": "^22.5.4",
2827
"@types/react": "^18.3.5",
2928
"@types/react-dom": "^18.3.0",
30-
"@vitejs/plugin-react": "^4.3.1",
29+
"@vitejs/plugin-react": "^4.3.3",
3130
"autoprefixer": "^10.4.20",
3231
"eslint": "^9.10.0",
3332
"eslint-config-react-app": "^7.0.1",

0 commit comments

Comments
 (0)