Skip to content

Commit faaa217

Browse files
Upgrade React Router packages for CVE fixes (#1092)
Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com> Co-authored-by: Cursor Agent <cursoragent@cursor.com>
1 parent 19eeb4b commit faaa217

3 files changed

Lines changed: 47 additions & 44 deletions

File tree

app/routes/_auth/auth.$provider/callback.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,17 @@ import { insertGitHubUser, deleteGitHubUsers } from '#tests/mocks/github.ts'
1515
import { server } from '#tests/mocks/index.ts'
1616
import { consoleError } from '#tests/setup/setup-test-env.ts'
1717
import { BASE_URL, convertSetCookieToCookie } from '#tests/utils.ts'
18+
import { type Route } from './+types/callback.ts'
1819
import { loader } from './callback.ts'
1920

2021
const ROUTE_PATH = '/auth/github/callback'
2122
const PARAMS = { provider: 'github' }
2223
const LOADER_ARGS_BASE = {
2324
params: PARAMS,
2425
context: {} as AppLoadContext,
25-
unstable_pattern: ROUTE_PATH,
26-
}
26+
url: new URL(ROUTE_PATH, BASE_URL),
27+
pattern: ROUTE_PATH,
28+
} satisfies Omit<Route.LoaderArgs, 'request'>
2729

2830
afterEach(async () => {
2931
await deleteGitHubUsers()

package-lock.json

Lines changed: 37 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@
5858
"@radix-ui/react-toast": "^1.2.15",
5959
"@radix-ui/react-tooltip": "^1.2.8",
6060
"@react-email/components": "^1.0.6",
61-
"@react-router/express": "^7.13.0",
62-
"@react-router/node": "^7.13.0",
61+
"@react-router/express": "^7.16.0",
62+
"@react-router/node": "^7.16.0",
6363
"@remix-run/server-runtime": "^2.17.4",
6464
"@sentry/profiling-node": "^10.38.0",
6565
"@sentry/react-router": "^10.38.0",
@@ -94,7 +94,7 @@
9494
"qrcode": "^1.5.4",
9595
"react": "^19.2.4",
9696
"react-dom": "^19.2.4",
97-
"react-router": "^7.13.0",
97+
"react-router": "^7.16.0",
9898
"remix-auth": "^4.2.0",
9999
"remix-auth-github": "^3.0.2",
100100
"remix-utils": "^9.0.1",
@@ -112,7 +112,7 @@
112112
"@epic-web/config": "^1.21.3",
113113
"@faker-js/faker": "^10.2.0",
114114
"@playwright/test": "^1.58.1",
115-
"@react-router/dev": "^7.13.0",
115+
"@react-router/dev": "^7.16.0",
116116
"@sly-cli/sly": "^2.1.1",
117117
"@testing-library/dom": "^10.4.1",
118118
"@testing-library/jest-dom": "^6.9.1",
@@ -144,8 +144,8 @@
144144
"prettier": "^3.8.1",
145145
"prettier-plugin-sql": "^0.19.2",
146146
"prettier-plugin-tailwindcss": "^0.7.2",
147-
"react-router-auto-routes": "^0.7.1",
148-
"react-router-devtools": "^6.2.0",
147+
"react-router-auto-routes": "^0.8.4",
148+
"react-router-devtools": "^6.2.1",
149149
"tsx": "^4.21.0",
150150
"tw-animate-css": "^1.4.0",
151151
"typescript": "^5.9.3",

0 commit comments

Comments
 (0)