From a4ecad159f7698f37b12cc7d6f20ee883fc9a951 Mon Sep 17 00:00:00 2001 From: Jordan QUAGLIATINI Date: Thu, 4 Jun 2026 19:33:44 +0200 Subject: [PATCH] chore(fon-000): update dependency react-router to v7.15.0 [security] --- apps/client/package.json | 2 +- .../docs/agenda/context/AgendaProvider.tsx | 9 ++++----- .../context/OfficialReportProvider.tsx | 13 ++++++------- pnpm-lock.yaml | 16 ++++++++-------- pnpm-workspace.yaml | 3 +++ 5 files changed, 22 insertions(+), 21 deletions(-) diff --git a/apps/client/package.json b/apps/client/package.json index 67c9c74c..6b5705e4 100644 --- a/apps/client/package.json +++ b/apps/client/package.json @@ -56,7 +56,7 @@ "react-dom": "19.2.6", "react-hook-form": "7.76.0", "react-intl": "10.1.8", - "react-router": "7.13.1", + "react-router": "7.15.0", "use-debounce": "10.1.1", "zod": "catalog:" }, diff --git a/apps/client/src/pages/secretariat-general/docs/agenda/context/AgendaProvider.tsx b/apps/client/src/pages/secretariat-general/docs/agenda/context/AgendaProvider.tsx index bcb38603..d4a7af78 100644 --- a/apps/client/src/pages/secretariat-general/docs/agenda/context/AgendaProvider.tsx +++ b/apps/client/src/pages/secretariat-general/docs/agenda/context/AgendaProvider.tsx @@ -146,11 +146,10 @@ export function AgendaProvider(props: React.PropsWithChildren) { }); const id = result?.id || agendaId; - if (id) await queryClient.invalidateQueries({ queryKey: agendaKeys.agendaHtml(id) }); - - return navigate( - generatePath(ROUTE_PATHS.SG.AGENDA_PREVIEW, { sessionId, agendaId: result?.id || agendaId }), - ); + if (id) { + await queryClient.invalidateQueries({ queryKey: agendaKeys.agendaHtml(id) }); + return navigate(generatePath(ROUTE_PATHS.SG.AGENDA_PREVIEW, { sessionId, agendaId: id })); + } } if (agendaId) { diff --git a/apps/client/src/pages/secretariat-general/docs/official-report/context/OfficialReportProvider.tsx b/apps/client/src/pages/secretariat-general/docs/official-report/context/OfficialReportProvider.tsx index 5f1345e8..50a3ef0d 100644 --- a/apps/client/src/pages/secretariat-general/docs/official-report/context/OfficialReportProvider.tsx +++ b/apps/client/src/pages/secretariat-general/docs/official-report/context/OfficialReportProvider.tsx @@ -124,14 +124,13 @@ export function OfficialReportProvider(props: React.PropsWithChildren) { const id = result?.id || officialReportId; if (id) { await queryClient.invalidateQueries({ queryKey: officialReportKeys.officialReportHtml(id) }); + return navigate( + generatePath(ROUTE_PATHS.SG.OFFICIAL_REPORT_PREVIEW, { + sessionId, + officialReportId: id, + }), + ); } - - return navigate( - generatePath(ROUTE_PATHS.SG.OFFICIAL_REPORT_PREVIEW, { - sessionId, - officialReportId: result?.id || officialReportId, - }), - ); } if (officialReportId) { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8c94e017..c0543f6b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -332,7 +332,7 @@ importers: version: 4.2.1 nuqs: specifier: 2.8.9 - version: 2.8.9(react-router@7.13.1(react-dom@19.2.6(react@19.2.6))(react@19.2.6))(react@19.2.6) + version: 2.8.9(react-router@7.15.0(react-dom@19.2.6(react@19.2.6))(react@19.2.6))(react@19.2.6) react: specifier: 19.2.6 version: 19.2.6 @@ -346,8 +346,8 @@ importers: specifier: 10.1.8 version: 10.1.8(@types/react@19.2.15)(react@19.2.6) react-router: - specifier: 7.13.1 - version: 7.13.1(react-dom@19.2.6(react@19.2.6))(react@19.2.6) + specifier: 7.15.0 + version: 7.15.0(react-dom@19.2.6(react@19.2.6))(react@19.2.6) use-debounce: specifier: 10.1.1 version: 10.1.1(react@19.2.6) @@ -5556,8 +5556,8 @@ packages: react-is@19.2.6: resolution: {integrity: sha512-XjBR15BhXuylgWGuslhDKqlSayuqvqBX91BP8pauG8kd1zY8kotkNWbXksTCNRarse4kuGbe2kIY05ARtwNIvw==} - react-router@7.13.1: - resolution: {integrity: sha512-td+xP4X2/6BJvZoX6xw++A2DdEi++YypA69bJUV5oVvqf6/9/9nNlD70YO1e9d3MyamJEBQFEzk6mbfDYbqrSA==} + react-router@7.15.0: + resolution: {integrity: sha512-HW9vYwuM8f4yx66Izy8xfrzCM+SBJluoZcCbww9A1TySax11S5Vgw6fi3ZjMONw9J4gQwngL7PzkyIpJJpJ7RQ==} engines: {node: '>=20.0.0'} peerDependencies: react: '>=18' @@ -11274,12 +11274,12 @@ snapshots: dependencies: boolbase: 1.0.0 - nuqs@2.8.9(react-router@7.13.1(react-dom@19.2.6(react@19.2.6))(react@19.2.6))(react@19.2.6): + nuqs@2.8.9(react-router@7.15.0(react-dom@19.2.6(react@19.2.6))(react@19.2.6))(react@19.2.6): dependencies: '@standard-schema/spec': 1.0.0 react: 19.2.6 optionalDependencies: - react-router: 7.13.1(react-dom@19.2.6(react@19.2.6))(react@19.2.6) + react-router: 7.15.0(react-dom@19.2.6(react@19.2.6))(react@19.2.6) nypm@0.6.6: dependencies: @@ -11808,7 +11808,7 @@ snapshots: react-is@19.2.6: {} - react-router@7.13.1(react-dom@19.2.6(react@19.2.6))(react@19.2.6): + react-router@7.15.0(react-dom@19.2.6(react@19.2.6))(react@19.2.6): dependencies: cookie: 1.1.1 react: 19.2.6 diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 319de603..f21f7680 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -23,3 +23,6 @@ allowBuilds: prisma: false puppeteer: false unrs-resolver: false +minimumReleaseAgeExclude: + # Renovate security update: react-router@7.15.0 + - react-router@7.15.0