Skip to content

Commit

Permalink
chore: upgrade tanstack-router to latest
Browse files Browse the repository at this point in the history
Signed-off-by: Marc MacLeod <[email protected]>
  • Loading branch information
marbemac committed Sep 13, 2024
1 parent 9187c55 commit b1a1f17
Show file tree
Hide file tree
Showing 28 changed files with 4,552 additions and 714 deletions.
8 changes: 4 additions & 4 deletions examples/bun-react-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
"@ssrx/vite": "latest",
"@types/react": "18.2.51",
"@types/react-dom": "18.2.18",
"@vitejs/plugin-react": "4.2.1",
"typescript": "5.3.3",
"vite": "5.0.12",
"vite-tsconfig-paths": "4.3.1"
"@vitejs/plugin-react": "4.3.1",
"typescript": "5.6.2",
"vite": "5.4.4",
"vite-tsconfig-paths": "4.3.2"
}
}
24 changes: 12 additions & 12 deletions examples/react-router-kitchen-sink/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"debug": "tsx debug.ts"
},
"dependencies": {
"@hono/node-server": "^1.7.0",
"@hono/node-server": "^1.12.2",
"@lucia-auth/adapter-sqlite": "2.0.1",
"@paralleldrive/cuid2": "2.2.2",
"@radix-ui/react-slot": "^1.0.2",
Expand All @@ -31,21 +31,21 @@
"@ssrx/plugin-trpc-react": "latest",
"@ssrx/plugin-unhead": "latest",
"@ssrx/react": "latest",
"@tanstack/react-query": "^5.18.1",
"@tanstack/react-query-devtools": "^5.18.1",
"@trpc/client": "10.45.0",
"@trpc/server": "10.45.0",
"@tanstack/react-query": "^5.56.2",
"@tanstack/react-query-devtools": "^5.56.2",
"@trpc/client": "10.45.2",
"@trpc/server": "10.45.2",
"better-sqlite3": "9.3.0",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.0",
"drizzle-orm": "0.29.3",
"drizzle-valibot": "0.1.1",
"hono": "3.12.10",
"hono": "3.12.12",
"lucia": "2.7.7",
"lucide-react": "^0.321.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-error-boundary": "4.0.12",
"react-error-boundary": "4.0.13",
"react-router-dom": "6.22.0",
"react-router-typesafe-routes": "1.2.1",
"tailwind-merge": "^1.14.0",
Expand All @@ -57,15 +57,15 @@
"@types/better-sqlite3": "7.6.9",
"@types/react": "18.2.51",
"@types/react-dom": "18.2.18",
"@vitejs/plugin-react": "4.2.1",
"@vitejs/plugin-react": "4.3.1",
"autoprefixer": "10.4.17",
"drizzle-kit": "0.20.14",
"postcss": "8.4.33",
"postcss": "8.4.45",
"rollup-plugin-analyzer": "4.0.0",
"tailwindcss": "3.3.5",
"tsx": "4.7.0",
"typescript": "5.3.3",
"vite": "5.0.12",
"vite-tsconfig-paths": "4.3.1"
"typescript": "5.6.2",
"vite": "5.4.4",
"vite-tsconfig-paths": "4.3.2"
}
}
14 changes: 7 additions & 7 deletions examples/react-router-records/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
"typecheck": "tsc"
},
"dependencies": {
"@hono/node-server": "^1.7.0",
"@hono/node-server": "^1.12.2",
"@ssrx/plugin-react-router": "latest",
"@ssrx/react": "latest",
"hono": "3.12.10",
"hono": "3.12.12",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-router-dom": "6.22.0"
Expand All @@ -23,12 +23,12 @@
"@ssrx/vite": "latest",
"@types/react": "18.2.51",
"@types/react-dom": "18.2.18",
"@vitejs/plugin-react": "4.2.1",
"@vitejs/plugin-react": "4.3.1",
"autoprefixer": "10.4.17",
"postcss": "8.4.33",
"postcss": "8.4.45",
"tailwindcss": "3.3.5",
"typescript": "5.3.3",
"vite": "5.0.12",
"vite-tsconfig-paths": "4.3.1"
"typescript": "5.6.2",
"vite": "5.4.4",
"vite-tsconfig-paths": "4.3.2"
}
}
12 changes: 6 additions & 6 deletions examples/react-router-simple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
"typecheck": "tsc"
},
"dependencies": {
"@hono/node-server": "^1.7.0",
"@hono/node-server": "^1.12.2",
"@ssrx/react": "latest",
"hono": "3.12.10",
"hono": "3.12.12",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-router-dom": "6.22.0"
Expand All @@ -24,9 +24,9 @@
"@ssrx/vite": "latest",
"@types/react": "18.2.51",
"@types/react-dom": "18.2.18",
"@vitejs/plugin-react": "4.2.1",
"typescript": "5.3.3",
"vite": "5.0.12",
"vite-tsconfig-paths": "4.3.1"
"@vitejs/plugin-react": "4.3.1",
"typescript": "5.6.2",
"vite": "5.4.4",
"vite-tsconfig-paths": "4.3.2"
}
}
24 changes: 12 additions & 12 deletions examples/remix-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"typecheck": "tsc"
},
"dependencies": {
"@hono/node-server": "^1.7.0",
"@hono/node-server": "^1.12.2",
"@lucia-auth/adapter-sqlite": "2.0.1",
"@paralleldrive/cuid2": "2.2.2",
"@radix-ui/react-slot": "^1.0.2",
Expand All @@ -25,22 +25,22 @@
"@remix-run/server-runtime": "2.6.0",
"@ssrx/plugin-tanstack-query": "latest",
"@ssrx/plugin-trpc-react": "latest",
"@tanstack/react-query": "^5.18.1",
"@tanstack/react-query-devtools": "^5.18.1",
"@trpc/client": "10.45.0",
"@trpc/server": "10.45.0",
"@tanstack/react-query": "^5.56.2",
"@tanstack/react-query-devtools": "^5.56.2",
"@trpc/client": "10.45.2",
"@trpc/server": "10.45.2",
"better-sqlite3": "9.3.0",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.0",
"drizzle-orm": "0.29.3",
"drizzle-valibot": "0.1.1",
"hono": "3.12.10",
"hono": "3.12.12",
"isbot": "~4.4.0",
"lucia": "2.7.7",
"lucide-react": "^0.321.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-error-boundary": "4.0.12",
"react-error-boundary": "4.0.13",
"remix-routes": "1.6.1",
"tailwind-merge": "^1.14.0",
"tailwindcss-animate": "^1.0.7",
Expand All @@ -49,7 +49,7 @@
"devDependencies": {
"@remix-run/dev": "2.6.0",
"@ssrx/remix": "latest",
"@total-typescript/ts-reset": "~0.5.1",
"@total-typescript/ts-reset": "~0.6.1",
"@types/better-sqlite3": "7.6.9",
"@types/react": "18.2.51",
"@types/react-dom": "18.2.18",
Expand All @@ -58,11 +58,11 @@
"drizzle-kit": "0.20.14",
"eslint-plugin-react": "7.33.2",
"eslint-plugin-react-hooks": "4.6.0",
"postcss": "8.4.33",
"postcss": "8.4.45",
"tailwindcss": "3.3.5",
"typescript": "5.3.3",
"typescript": "5.6.2",
"typescript-remix-routes-plugin": "1.0.1",
"vite": "5.0.12",
"vite-tsconfig-paths": "4.3.1"
"vite": "5.4.4",
"vite-tsconfig-paths": "4.3.2"
}
}
10 changes: 5 additions & 5 deletions examples/solid-router-simple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@
"typecheck": "tsc"
},
"dependencies": {
"@hono/node-server": "^1.7.0",
"@hono/node-server": "^1.12.2",
"@solidjs/meta": "~0.29.3",
"@solidjs/router": "0.11.2",
"@ssrx/solid": "latest",
"hono": "3.12.10",
"hono": "3.12.12",
"solid-js": "1.8.12"
},
"devDependencies": {
"@ssrx/vite": "latest",
"typescript": "5.3.3",
"vite": "5.0.12",
"typescript": "5.6.2",
"vite": "5.4.4",
"vite-plugin-solid": "2.9.1",
"vite-tsconfig-paths": "4.3.1"
"vite-tsconfig-paths": "4.3.2"
}
}
22 changes: 11 additions & 11 deletions examples/tanstack-router-simple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,27 @@
"typecheck": "tsc"
},
"dependencies": {
"@hono/node-server": "^1.7.0",
"@hono/node-server": "^1.12.2",
"@ssrx/plugin-tanstack-router": "latest",
"@ssrx/react": "latest",
"@ssrx/vite": "latest",
"@tanstack/react-router": "1.32.0",
"@tanstack/router-devtools": "1.32.0",
"@tanstack/router-vite-plugin": "1.31.18",
"hono": "3.12.10",
"jsesc": "3.0.2",
"@tanstack/react-router": "1.57.13",
"@tanstack/router-devtools": "1.57.13",
"@tanstack/start": "1.57.13",
"hono": "4.6.1",
"react": "18.2.0",
"react-dom": "18.2.0"
},
"devDependencies": {
"@tanstack/router-plugin": "1.57.13",
"@types/react": "18.2.51",
"@types/react-dom": "18.2.18",
"@vitejs/plugin-react": "4.2.1",
"@vitejs/plugin-react": "4.3.1",
"autoprefixer": "10.4.17",
"postcss": "8.4.33",
"postcss": "8.4.45",
"tailwindcss": "3.3.5",
"typescript": "5.3.3",
"vite": "5.0.12",
"vite-tsconfig-paths": "4.3.1"
"typescript": "5.6.2",
"vite": "5.4.4",
"vite-tsconfig-paths": "4.3.2"
}
}
12 changes: 2 additions & 10 deletions examples/tanstack-router-simple/src/entry.client.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { RouterProvider } from '@tanstack/react-router';
import { StartClient } from '@tanstack/start';
import { hydrateRoot } from 'react-dom/client';

import { createRouter } from '~/router.tsx';
Expand All @@ -8,13 +8,5 @@ void render();
async function render() {
const router = createRouter();

if (!router.state.matches.length) {
// needed until https://github.com/TanStack/router/issues/1115 is resolved
// do NOT need if not using lazy file routes
await router.load();

void router.hydrate();
}

hydrateRoot(document, <RouterProvider router={router} />);
hydrateRoot(document, <StartClient router={router} />);
}
Loading

0 comments on commit b1a1f17

Please sign in to comment.