GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [Fizz] Move DOM/Native format configs to their respective packages (#… · react/react@14e4fd1

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages
    • react-dom/src/server
      • ReactDOMServerFormatConfig.js
    • react-native-renderer/src/server
      • ReactNativeServerFormatConfig.js
    • react-server/src/forks
      • ReactServerFormatConfig.dom-browser.js
      • ReactServerFormatConfig.dom-relay.js
      • ReactServerFormatConfig.dom.js
      • ReactServerFormatConfig.native-relay.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎…server/src/ReactDOMServerFormatConfig.js‎ ‎…src/server/ReactDOMServerFormatConfig.js‎packages/react-server/src/ReactDOMServerFormatConfig.js renamed to packages/react-dom/src/server/ReactDOMServerFormatConfig.js packages/react-server/src/ReactDOMServerFormatConfig.js renamed to packages/react-dom/src/server/ReactDOMServerFormatConfig.js

Copy file name to clipboardExpand all lines: packages/react-dom/src/server/ReactDOMServerFormatConfig.js
+3-4Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {
1414
convertStringToBuffer,
1515
} from 'react-server/src/ReactServerStreamConfig';
1616

17+
import escapeTextForBrowser from './escapeTextForBrowser';
1718
import invariant from 'shared/invariant';
1819

1920
// Per response,
@@ -46,13 +47,11 @@ export function createSuspenseBoundaryID(
4647
}
4748

4849
function encodeHTMLIDAttribute(value: string): string {
49-
// TODO: This needs to be encoded for security purposes.
50-
return value;
50+
return escapeTextForBrowser(value);
5151
}
5252

5353
function encodeHTMLTextNode(text: string): string {
54-
// TOOD: This needs to be encoded for security purposes.
55-
return text;
54+
return escapeTextForBrowser(text);
5655
}
5756

5857
export function pushTextInstance(
Collapse file

‎…ver/src/ReactNativeServerFormatConfig.js‎ ‎…/server/ReactNativeServerFormatConfig.js‎packages/react-server/src/ReactNativeServerFormatConfig.js renamed to packages/react-native-renderer/src/server/ReactNativeServerFormatConfig.js packages/react-server/src/ReactNativeServerFormatConfig.js renamed to packages/react-native-renderer/src/server/ReactNativeServerFormatConfig.js

Copy file name to clipboard
File renamed without changes.
Collapse file

‎packages/react-server/src/forks/ReactServerFormatConfig.dom-browser.js‎

Copy file name to clipboardExpand all lines: packages/react-server/src/forks/ReactServerFormatConfig.dom-browser.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
* @flow
88
*/
99

10-
export * from '../ReactDOMServerFormatConfig';
10+
export * from 'react-dom/src/server/ReactDOMServerFormatConfig';
Collapse file

‎packages/react-server/src/forks/ReactServerFormatConfig.dom-relay.js‎

Copy file name to clipboardExpand all lines: packages/react-server/src/forks/ReactServerFormatConfig.dom-relay.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
* @flow
88
*/
99

10-
export * from '../ReactDOMServerFormatConfig';
10+
export * from 'react-dom/src/server/ReactDOMServerFormatConfig';
Collapse file

‎packages/react-server/src/forks/ReactServerFormatConfig.dom.js‎

Copy file name to clipboardExpand all lines: packages/react-server/src/forks/ReactServerFormatConfig.dom.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
* @flow
88
*/
99

10-
export * from '../ReactDOMServerFormatConfig';
10+
export * from 'react-dom/src/server/ReactDOMServerFormatConfig';
Collapse file

‎packages/react-server/src/forks/ReactServerFormatConfig.native-relay.js‎

Copy file name to clipboardExpand all lines: packages/react-server/src/forks/ReactServerFormatConfig.native-relay.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
* @flow
88
*/
99

10-
export * from '../ReactNativeServerFormatConfig';
10+
export * from 'react-native-renderer/src/server/ReactNativeServerFormatConfig';

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.