Skip to content

Commit d2b8458

Browse files
authored
Merge pull request #133 from reactjs/vercel/packages-for-react-flight-rce-gm6khs
Fix React Server Components RCE vulnerability
2 parents 9ea7d06 + c2b6cc0 commit d2b8458

File tree

3 files changed

+57
-67
lines changed

3 files changed

+57
-67
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"classnames": "^2.2.6",
3636
"debounce": "^1.2.1",
3737
"github-slugger": "^1.3.0",
38-
"next": "15.1.0",
38+
"next": "15.1.9",
3939
"next-remote-watch": "^1.0.0",
4040
"parse-numeric-range": "^1.2.0",
4141
"react": "^19.0.0",

src/content/learn/add-react-to-an-existing-project.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,9 @@ Představme si, že máte existující webovou aplikaci na adrese `example.com`,
2020

2121
Zde je náš doporučený postup:
2222

23-
<<<<<<< HEAD
2423
1. **Vytvořte část aplikace** pomocí některého z [frameworků založených na Reactu](/learn/start-a-new-react-project).
2524
2. **Nastavte `/some-app` jako *základní cestu*** v konfiguraci vašeho frameworku (zde je návod pro: [Next.js](https://nextjs.org/docs/api-reference/next.config.js/basepath) a [Gatsby](https://www.gatsbyjs.com/docs/how-to/previews-deploys-hosting/path-prefix/)).
2625
3. **Nakonfigurujte svůj server nebo proxy server** tak, aby všechny požadavky na cestu `/some-app/` zpracovávala vaše aplikace v Reactu.
27-
=======
28-
1. **Build the React part of your app** using one of the [React-based frameworks](/learn/creating-a-react-app).
29-
2. **Specify `/some-app` as the *base path*** in your framework's configuration (here's how: [Next.js](https://nextjs.org/docs/app/api-reference/config/next-config-js/basePath), [Gatsby](https://www.gatsbyjs.com/docs/how-to/previews-deploys-hosting/path-prefix/)).
30-
3. **Configure your server or a proxy** so that all requests under `/some-app/` are handled by your React app.
31-
>>>>>>> 2534424ec6c433cc2c811d5a0bd5a65b75efa5f0
3226

3327
Tímto zajistíte, že část vaší aplikace napsaná Reactu bude využívat [osvědčené postupy a praktiky](/learn/build-a-react-app-from-scratch#consider-using-a-framework), které jsou součástí těchto frameworků.
3428

@@ -155,11 +149,7 @@ root.render(<NavigationBar />);
155149

156150
Všimněte si, že původní obsah HTML ze souboru `index.html` zůstává nezměněn, zatímco vaše vlastní React komponenta `NavigationBar` se nyní zobrazuje uvnitř `<nav id="navigation">` v rámci vašeho HTML. Pro hlubší pochopení rendrování React komponentů uvnitř existující HTML stránky, doporučujeme prostudovat dokumentaci k funkci [`createRoot`](/reference/react-dom/client/createRoot#rendering-a-page-partially-built-with-react).
157151

158-
<<<<<<< HEAD
159152
Běžným postupem při implementaci Reactu do existujícího projektu je začít s malými interaktivními komponenty (např. tlačítky) a postupně "postupovat nahoru", dokud celou stránku netvoří komponenty React. Pokud někdy dosáhnete tohoto bodu, doporučujeme hned poté přejít na [React framework](/learn/start-a-new-react-project), abyste z něj mohli vytěžit maximum.
160-
=======
161-
When you adopt React in an existing project, it's common to start with small interactive components (like buttons), and then gradually keep "moving upwards" until eventually your entire page is built with React. If you ever reach that point, we recommend migrating to [a React framework](/learn/creating-a-react-app) right after to get the most out of React.
162-
>>>>>>> 2534424ec6c433cc2c811d5a0bd5a65b75efa5f0
163153

164154
## Implementace React Native do existující nativní mobilní aplikace {/*using-react-native-in-an-existing-native-mobile-app*/}
165155

yarn.lock

Lines changed: 56 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1225,10 +1225,10 @@
12251225
unist-util-visit "^4.0.0"
12261226
vfile "^5.0.0"
12271227

1228-
"@next/env@15.1.0":
1229-
version "15.1.0"
1230-
resolved "https://registry.yarnpkg.com/@next/env/-/env-15.1.0.tgz#35b00a5f60ff10dc275182928c325d25c29379ae"
1231-
integrity sha512-UcCO481cROsqJuszPPXJnb7GGuLq617ve4xuAyyNG4VSSocJNtMU5Fsx+Lp6mlN8c7W58aZLc5y6D/2xNmaK+w==
1228+
"@next/env@15.1.9":
1229+
version "15.1.9"
1230+
resolved "https://registry.yarnpkg.com/@next/env/-/env-15.1.9.tgz#3569b6dd6a9b0af998fc6e4902da6b9ed2fc36c9"
1231+
integrity sha512-Te1wbiJ//I40T7UePOUG8QBwh+VVMCc0OTuqesOcD3849TVOVOyX4Hdrkx7wcpLpy/LOABIcGyLX5P/SzzXhFA==
12321232

12331233
"@next/eslint-plugin-next@12.0.3":
12341234
version "12.0.3"
@@ -1237,45 +1237,45 @@
12371237
dependencies:
12381238
glob "7.1.7"
12391239

1240-
"@next/swc-darwin-arm64@15.1.0":
1241-
version "15.1.0"
1242-
resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-15.1.0.tgz#30cb89220e719244c9fa7391641e515a078ade46"
1243-
integrity sha512-ZU8d7xxpX14uIaFC3nsr4L++5ZS/AkWDm1PzPO6gD9xWhFkOj2hzSbSIxoncsnlJXB1CbLOfGVN4Zk9tg83PUw==
1244-
1245-
"@next/swc-darwin-x64@15.1.0":
1246-
version "15.1.0"
1247-
resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-15.1.0.tgz#c24c4f5d1016dd161da32049305b0ddddfc80951"
1248-
integrity sha512-DQ3RiUoW2XC9FcSM4ffpfndq1EsLV0fj0/UY33i7eklW5akPUCo6OX2qkcLXZ3jyPdo4sf2flwAED3AAq3Om2Q==
1249-
1250-
"@next/swc-linux-arm64-gnu@15.1.0":
1251-
version "15.1.0"
1252-
resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-15.1.0.tgz#08ed540ecdac74426a624cc7d736dc709244b004"
1253-
integrity sha512-M+vhTovRS2F//LMx9KtxbkWk627l5Q7AqXWWWrfIzNIaUFiz2/NkOFkxCFyNyGACi5YbA8aekzCLtbDyfF/v5Q==
1254-
1255-
"@next/swc-linux-arm64-musl@15.1.0":
1256-
version "15.1.0"
1257-
resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-15.1.0.tgz#dfddbd40087d018266aa92515ec5b3e251efa6dd"
1258-
integrity sha512-Qn6vOuwaTCx3pNwygpSGtdIu0TfS1KiaYLYXLH5zq1scoTXdwYfdZtwvJTpB1WrLgiQE2Ne2kt8MZok3HlFqmg==
1259-
1260-
"@next/swc-linux-x64-gnu@15.1.0":
1261-
version "15.1.0"
1262-
resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-15.1.0.tgz#a7b5373a1b28c0acecbc826a3790139fc0d899e5"
1263-
integrity sha512-yeNh9ofMqzOZ5yTOk+2rwncBzucc6a1lyqtg8xZv0rH5znyjxHOWsoUtSq4cUTeeBIiXXX51QOOe+VoCjdXJRw==
1264-
1265-
"@next/swc-linux-x64-musl@15.1.0":
1266-
version "15.1.0"
1267-
resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-15.1.0.tgz#b82a29903ee2f12d8b64163ddf208ac519869550"
1268-
integrity sha512-t9IfNkHQs/uKgPoyEtU912MG6a1j7Had37cSUyLTKx9MnUpjj+ZDKw9OyqTI9OwIIv0wmkr1pkZy+3T5pxhJPg==
1269-
1270-
"@next/swc-win32-arm64-msvc@15.1.0":
1271-
version "15.1.0"
1272-
resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-15.1.0.tgz#98deae6cb1fccfb6a600e9faa6aa714402a9ab9a"
1273-
integrity sha512-WEAoHyG14t5sTavZa1c6BnOIEukll9iqFRTavqRVPfYmfegOAd5MaZfXgOGG6kGo1RduyGdTHD4+YZQSdsNZXg==
1274-
1275-
"@next/swc-win32-x64-msvc@15.1.0":
1276-
version "15.1.0"
1277-
resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-15.1.0.tgz#4b04a6a667c41fecdc63db57dd71ca7e84d0946b"
1278-
integrity sha512-J1YdKuJv9xcixzXR24Dv+4SaDKc2jj31IVUEMdO5xJivMTXuE6MAdIi4qPjSymHuFG8O5wbfWKnhJUcHHpj5CA==
1240+
"@next/swc-darwin-arm64@15.1.9":
1241+
version "15.1.9"
1242+
resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-15.1.9.tgz#7b95fc3b2cd5108b514c949c3bddb3a9b42a714e"
1243+
integrity sha512-sQF6MfW4nk0PwMYYq8xNgqyxZJGIJV16QqNDgaZ5ze9YoVzm4/YNx17X0exZudayjL9PF0/5RGffDtzXapch0Q==
1244+
1245+
"@next/swc-darwin-x64@15.1.9":
1246+
version "15.1.9"
1247+
resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-15.1.9.tgz#bda6b37e0deeb64f4139cc70b37e370bd3367be8"
1248+
integrity sha512-fp0c1rB6jZvdSDhprOur36xzQvqelAkNRXM/An92sKjjtaJxjlqJR8jiQLQImPsClIu8amQn+ZzFwl1lsEf62w==
1249+
1250+
"@next/swc-linux-arm64-gnu@15.1.9":
1251+
version "15.1.9"
1252+
resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-15.1.9.tgz#546717f65de5fa610cd211183bd1be63050ab1c4"
1253+
integrity sha512-77rYykF6UtaXvxh9YyRIKoaYPI6/YX6cy8j1DL5/1XkjbfOwFDfTEhH7YGPqG/ePl+emBcbDYC2elgEqY2e+ag==
1254+
1255+
"@next/swc-linux-arm64-musl@15.1.9":
1256+
version "15.1.9"
1257+
resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-15.1.9.tgz#3594f47a94fd52e1aba00f59793171de9386f71a"
1258+
integrity sha512-uZ1HazKcyWC7RA6j+S/8aYgvxmDqwnG+gE5S9MhY7BTMj7ahXKunpKuX8/BA2M7OvINLv7LTzoobQbw928p3WA==
1259+
1260+
"@next/swc-linux-x64-gnu@15.1.9":
1261+
version "15.1.9"
1262+
resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-15.1.9.tgz#77cc834636688e44fea4c9cee800649a4ed92b0d"
1263+
integrity sha512-gQIX1d3ct2RBlgbbWOrp+SHExmtmFm/HSW1Do5sSGMDyzbkYhS2sdq5LRDJWWsQu+/MqpgJHqJT6ORolKp/U1g==
1264+
1265+
"@next/swc-linux-x64-musl@15.1.9":
1266+
version "15.1.9"
1267+
resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-15.1.9.tgz#88783a8968d0c0e4f274b68569b73c19ee2feecb"
1268+
integrity sha512-fJOwxAbCeq6Vo7pXZGDP6iA4+yIBGshp7ie2Evvge7S7lywyg7b/SGqcvWq/jYcmd0EbXdb7hBfdqSQwTtGTPg==
1269+
1270+
"@next/swc-win32-arm64-msvc@15.1.9":
1271+
version "15.1.9"
1272+
resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-15.1.9.tgz#1b7024cee3eefe4bcf8f81e7cbffe6aeb15d32ea"
1273+
integrity sha512-crfbUkAd9PVg9nGfyjSzQbz82dPvc4pb1TeP0ZaAdGzTH6OfTU9kxidpFIogw0DYIEadI7hRSvuihy2NezkaNQ==
1274+
1275+
"@next/swc-win32-x64-msvc@15.1.9":
1276+
version "15.1.9"
1277+
resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-15.1.9.tgz#92044825d0f9e017d6a27ab69fc8c8f5ca9dc239"
1278+
integrity sha512-SBB0oA4E2a0axUrUwLqXlLkSn+bRx9OWU6LheqmRrO53QEAJP7JquKh3kF0jRzmlYOWFZtQwyIWJMEJMtvvDcQ==
12791279

12801280
"@nodelib/fs.scandir@2.1.5":
12811281
version "2.1.5"
@@ -5797,27 +5797,27 @@ next-tick@^1.1.0:
57975797
resolved "https://registry.npmjs.org/next-tick/-/next-tick-1.1.0.tgz"
57985798
integrity sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==
57995799

5800-
next@15.1.0:
5801-
version "15.1.0"
5802-
resolved "https://registry.yarnpkg.com/next/-/next-15.1.0.tgz#be847cf67ac94ae23b57f3ea6d10642f3fc1ad69"
5803-
integrity sha512-QKhzt6Y8rgLNlj30izdMbxAwjHMFANnLwDwZ+WQh5sMhyt4lEBqDK9QpvWHtIM4rINKPoJ8aiRZKg5ULSybVHw==
5800+
next@15.1.9:
5801+
version "15.1.9"
5802+
resolved "https://registry.yarnpkg.com/next/-/next-15.1.9.tgz#eaab46d7a57c881fadf748d8ba2a8c65ec27ad8f"
5803+
integrity sha512-OoQpDPV2i3o5Hnn46nz2x6fzdFxFO+JsU4ZES12z65/feMjPHKKHLDVQ2NuEvTaXTRisix/G5+6hyTkwK329kA==
58045804
dependencies:
5805-
"@next/env" "15.1.0"
5805+
"@next/env" "15.1.9"
58065806
"@swc/counter" "0.1.3"
58075807
"@swc/helpers" "0.5.15"
58085808
busboy "1.6.0"
58095809
caniuse-lite "^1.0.30001579"
58105810
postcss "8.4.31"
58115811
styled-jsx "5.1.6"
58125812
optionalDependencies:
5813-
"@next/swc-darwin-arm64" "15.1.0"
5814-
"@next/swc-darwin-x64" "15.1.0"
5815-
"@next/swc-linux-arm64-gnu" "15.1.0"
5816-
"@next/swc-linux-arm64-musl" "15.1.0"
5817-
"@next/swc-linux-x64-gnu" "15.1.0"
5818-
"@next/swc-linux-x64-musl" "15.1.0"
5819-
"@next/swc-win32-arm64-msvc" "15.1.0"
5820-
"@next/swc-win32-x64-msvc" "15.1.0"
5813+
"@next/swc-darwin-arm64" "15.1.9"
5814+
"@next/swc-darwin-x64" "15.1.9"
5815+
"@next/swc-linux-arm64-gnu" "15.1.9"
5816+
"@next/swc-linux-arm64-musl" "15.1.9"
5817+
"@next/swc-linux-x64-gnu" "15.1.9"
5818+
"@next/swc-linux-x64-musl" "15.1.9"
5819+
"@next/swc-win32-arm64-msvc" "15.1.9"
5820+
"@next/swc-win32-x64-msvc" "15.1.9"
58215821
sharp "^0.33.5"
58225822

58235823
nice-try@^1.0.4:

0 commit comments

Comments
 (0)