Skip to content

Commit 1dd4ecb

Browse files
authored
[FlightReply] Performance improvements when decoding (#37087)
This fixes security vulnerabilities in Server Functions.
1 parent b0d2fdb commit 1dd4ecb

24 files changed

Lines changed: 100 additions & 89 deletions

File tree

‎ReactVersions.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@
77
//
88
// The @latest channel uses the version as-is, e.g.:
99
//
10-
// 19.2.7
10+
// 19.2.8
1111
//
1212
// The @canary channel appends additional information, with the scheme
1313
// <version>-<label>-<commit_sha>, e.g.:
1414
//
15-
// 19.2.7-canary-a1c2d3e4
15+
// 19.2.8-canary-a1c2d3e4
1616
//
1717
// The @experimental channel doesn't include a version, only a date and a sha, e.g.:
1818
//
1919
// 0.0.0-experimental-241c4467e-20200129
2020

21-
const ReactVersion = '19.2.7';
21+
const ReactVersion = '19.2.8';
2222

2323
// The label used by the @canary channel. Represents the upcoming release's
2424
// stability. Most of the time, this will be "canary", but we may temporarily

‎packages/react-art/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "react-art",
33
"description": "React ART is a JavaScript library for drawing vector graphics using React. It provides declarative and reactive bindings to the ART library. Using the same declarative API you can render the output to either Canvas, SVG or VML (IE8).",
4-
"version": "19.2.7",
4+
"version": "19.2.8",
55
"main": "index.js",
66
"repository": {
77
"type": "git",
@@ -27,7 +27,7 @@
2727
"scheduler": "^0.27.0"
2828
},
2929
"peerDependencies": {
30-
"react": "^19.2.7"
30+
"react": "^19.2.8"
3131
},
3232
"files": [
3333
"LICENSE",

‎packages/react-dom-bindings/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "react-dom-bindings",
33
"description": "React implementation details for react-dom.",
4-
"version": "19.2.7",
4+
"version": "19.2.8",
55
"private": true,
66
"main": "index.js",
77
"repository": {

‎packages/react-dom/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-dom",
3-
"version": "19.2.7",
3+
"version": "19.2.8",
44
"description": "React package for working with the DOM.",
55
"main": "index.js",
66
"repository": {
@@ -20,7 +20,7 @@
2020
"scheduler": "^0.27.0"
2121
},
2222
"peerDependencies": {
23-
"react": "^19.2.7"
23+
"react": "^19.2.8"
2424
},
2525
"files": [
2626
"LICENSE",

‎packages/react-is/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-is",
3-
"version": "19.2.7",
3+
"version": "19.2.8",
44
"description": "Brand checking of React Elements.",
55
"main": "index.js",
66
"sideEffects": false,

‎packages/react-markup/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-markup",
3-
"version": "19.2.7",
3+
"version": "19.2.8",
44
"description": "React package generating embedded markup such as e-mails with support for Server Components.",
55
"main": "index.js",
66
"repository": {

‎packages/react-reconciler/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"node": ">=0.10.0"
2727
},
2828
"peerDependencies": {
29-
"react": "^19.2.7"
29+
"react": "^19.2.8"
3030
},
3131
"dependencies": {
3232
"scheduler": "^0.27.0"

‎packages/react-server-dom-esm/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "react-server-dom-esm",
33
"description": "React Server Components bindings for DOM using ESM. This is intended to be integrated into meta-frameworks. It is not intended to be imported directly.",
4-
"version": "19.2.7",
4+
"version": "19.2.8",
55
"keywords": [
66
"react"
77
],

‎packages/react-server-dom-parcel/package.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "react-server-dom-parcel",
33
"description": "React Server Components bindings for DOM using Parcel. This is intended to be integrated into meta-frameworks. It is not intended to be imported directly.",
4-
"version": "19.2.7",
4+
"version": "19.2.8",
55
"keywords": [
66
"react"
77
],
@@ -79,7 +79,7 @@
7979
"node": ">=0.10.0"
8080
},
8181
"peerDependencies": {
82-
"react": "^19.2.7",
83-
"react-dom": "^19.2.7"
82+
"react": "^19.2.8",
83+
"react-dom": "^19.2.8"
8484
}
8585
}

‎packages/react-server-dom-parcel/src/server/ReactFlightDOMServerEdge.js‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import {
2020
type ServerReferenceId,
2121
} from '../client/ReactFlightClientConfigBundlerParcel';
2222

23+
import noop from 'shared/noop';
2324
import {ASYNC_ITERATOR} from 'shared/ReactSymbols';
2425

2526
import {
@@ -309,8 +310,8 @@ export function decodeReplyFromAsyncIterable<T>(
309310
reportGlobalError(response, reason);
310311
if (typeof (iterator: any).throw === 'function') {
311312
// The iterator protocol doesn't necessarily include this but a generator do.
312-
// $FlowFixMe should be able to pass mixed
313-
iterator.throw(reason).then(error, error);
313+
// $FlowFixMe[prop-missing] should be able to pass mixed
314+
iterator.throw(reason).then(noop, noop);
314315
}
315316
}
316317

0 commit comments

Comments
 (0)