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 — Merged changes from 4.0.0 -> 4.0.5 from DevTools fork · react/react@4da836a

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • fixtures/devtools/standalone
    • index.html
  • packages
    • react-devtools-core
      • package.json
      • src
        • standalone.js
      • webpack.standalone.js
    • react-devtools-extensions
      • build.js
      • chrome
        • manifest.json
      • deploy.html
      • firefox
        • manifest.json
      • src
        • main.js
    • react-devtools-inline
      • package.json
    • react-devtools-shared/src
      • __tests__
        • __snapshots__
          • inspectedElementContext-test.js.snap
        • inspectedElementContext-test.js
        • legacy
          • __snapshots__
            • inspectElement-test.js.snap
          • inspectElement-test.js
        • profilerContext-test.js
      • backend
        • legacy
          • renderer.js
        • renderer.js
        • types.js
        • utils.js
      • constants.js
      • devtools
        • ProfilerStore.js
        • views
          • Components
            • HooksTree.js
            • InspectedElementContext.js
            • InspectedElementTree.js
            • KeyValue.css
            • KeyValue.js
            • NativeStyleEditor
              • StyleEditor.js
            • types.js
          • DevTools.js
          • ErrorBoundary.js
          • Profiler
            • Profiler.js
            • ProfilerContext.js
            • SidebarSelectedFiberInfo.js
            • SnapshotSelector.js
          • utils.js
      • hydration.js
      • utils.js
    • react-devtools-shell
      • package.json
      • src/app
        • InspectableElements
          • InspectableElements.js
          • NestedProps.js
          • UnserializableProps.js
        • ToDoList
          • List.js
    • react-devtools
      • package.json
  • yarn.lock

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎fixtures/devtools/standalone/index.html‎

Copy file name to clipboardExpand all lines: fixtures/devtools/standalone/index.html
+29Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
<script src="https://unpkg.com/react@16/umd/react.development.js"></script>
1111
<script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
12+
<script src="https://unpkg.com/[email protected]/dist/immutable.js"></script>
1213

1314
<!-- Don't use this in production: -->
1415
<script src="https://unpkg.com/[email protected]/babel.min.js"></script>
@@ -255,6 +256,33 @@ <h1>List</h1>
255256
);
256257
}
257258

259+
const set = new Set(['abc', 123]);
260+
const map = new Map([['name', 'Brian'], ['food', 'sushi']]);
261+
const setOfSets = new Set([new Set(['a', 'b', 'c']), new Set([1, 2, 3])]);
262+
const mapOfMaps = new Map([['first', map], ['second', map]]);
263+
const typedArray = Int8Array.from([100, -100, 0]);
264+
const immutable = Immutable.fromJS({
265+
a: [{ hello: 'there' }, 'fixed', true],
266+
b: 123,
267+
c: {
268+
'1': 'xyz',
269+
xyz: 1,
270+
},
271+
});
272+
273+
function UnserializableProps() {
274+
return (
275+
<ChildComponent
276+
map={map}
277+
set={set}
278+
mapOfMaps={mapOfMaps}
279+
setOfSets={setOfSets}
280+
typedArray={typedArray}
281+
immutable={immutable}
282+
/>
283+
);
284+
}
285+
258286
function ChildComponent(props: any) {
259287
return null;
260288
}
@@ -264,6 +292,7 @@ <h1>List</h1>
264292
<Fragment>
265293
<SimpleValues />
266294
<ObjectProps />
295+
<UnserializableProps />
267296
<CustomObject />
268297
</Fragment>
269298
);
Collapse file

‎packages/react-devtools-core/package.json‎

Copy file name to clipboardExpand all lines: packages/react-devtools-core/package.json
+4-3Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
{
22
"name": "react-devtools-core",
3-
"version": "4.0.0-alpha.9",
3+
"version": "4.0.5",
44
"description": "Use react-devtools outside of the browser",
55
"license": "MIT",
66
"main": "./dist/backend.js",
77
"repository": {
8-
"url": "https://github.com/bvaughn/react-devtools-experimental.git",
9-
"type": "git"
8+
"type": "git",
9+
"url": "https://github.com/facebook/react.git",
10+
"directory": "packages/react-devtools-core"
1011
},
1112
"files": [
1213
"dist",
Collapse file

‎packages/react-devtools-core/src/standalone.js‎

Copy file name to clipboardExpand all lines: packages/react-devtools-core/src/standalone.js
+3-8Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ import {
1414
getAppendComponentStack,
1515
} from 'react-devtools-shared/src/utils';
1616
import {Server} from 'ws';
17-
import {existsSync, readFileSync} from 'fs';
17+
import {join} from 'path';
18+
import {readFileSync} from 'fs';
1819
import {installHook} from 'react-devtools-shared/src/hook';
1920
import DevTools from 'react-devtools-shared/src/devtools/views/DevTools';
2021
import {doesFilePathExist, launchEditor} from './editor';
@@ -259,14 +260,8 @@ function startServer(port?: number = 8097) {
259260
});
260261

261262
httpServer.on('request', (request, response) => {
262-
// NPM installs should read from node_modules,
263-
// But local dev mode needs to use a relative path.
264-
const basePath = existsSync('./node_modules/react-devtools-core')
265-
? 'node_modules/react-devtools-core'
266-
: '../react-devtools-core';
267-
268263
// Serve a file that immediately sets up the connection.
269-
const backendFile = readFileSync(`${basePath}/dist/backend.js`);
264+
const backendFile = readFileSync(join(__dirname, 'backend.js'));
270265

271266
// The renderer interface doesn't read saved component filters directly,
272267
// because they are generally stored in localStorage within the context of the extension.
Collapse file

‎packages/react-devtools-core/webpack.standalone.js‎

Copy file name to clipboardExpand all lines: packages/react-devtools-core/webpack.standalone.js
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ module.exports = {
4040
scheduler: resolve(builtModulesDir, 'scheduler'),
4141
},
4242
},
43+
node: {
44+
// Don't replace __dirname!
45+
// This would break the standalone DevTools ability to load the backend.
46+
// see https://github.com/facebook/react-devtools/issues/1269
47+
__dirname: false,
48+
},
4349
plugins: [
4450
new DefinePlugin({
4551
__DEV__: false,
Collapse file

‎packages/react-devtools-extensions/build.js‎

Copy file name to clipboardExpand all lines: packages/react-devtools-extensions/build.js
+3-4Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,13 @@ const build = async (tempPath, manifestPath) => {
6161
);
6262

6363
const commit = getGitCommit();
64-
const versionDateString = `${commit} (${new Date().toLocaleDateString()})`;
65-
64+
const dateString = new Date().toLocaleDateString();
6665
const manifest = JSON.parse(readFileSync(copiedManifestPath).toString());
66+
const versionDateString = `${manifest.version} (${dateString})`;
6767
if (manifest.version_name) {
6868
manifest.version_name = versionDateString;
69-
} else {
70-
manifest.description += `\n\nCreated from revision ${versionDateString}`;
7169
}
70+
manifest.description += `\n\nCreated from revision ${commit} on ${dateString}.`;
7271

7372
writeFileSync(copiedManifestPath, JSON.stringify(manifest, null, 2));
7473

Collapse file

‎packages/react-devtools-extensions/chrome/manifest.json‎

Copy file name to clipboardExpand all lines: packages/react-devtools-extensions/chrome/manifest.json
+3-11Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"manifest_version": 2,
33
"name": "React Developer Tools",
44
"description": "Adds React debugging tools to the Chrome Developer Tools.",
5-
"version": "4.0.0",
6-
"version_name": "4.0.0",
5+
"version": "4.0.5",
6+
"version_name": "4.0.5",
77

88
"minimum_chrome_version": "49",
99

@@ -40,15 +40,7 @@
4040
"persistent": false
4141
},
4242

43-
"permissions": [
44-
"<all_urls>",
45-
"background",
46-
"tabs",
47-
"webNavigation",
48-
"file:///*",
49-
"http://*/*",
50-
"https://*/*"
51-
],
43+
"permissions": ["file:///*", "http://*/*", "https://*/*"],
5244

5345
"content_scripts": [
5446
{
Collapse file

‎packages/react-devtools-extensions/deploy.html‎

Copy file name to clipboardExpand all lines: packages/react-devtools-extensions/deploy.html
+2-8Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,11 @@ <h1>
1818

1919
<h3>
2020
Created on <strong>%date%</strong> from
21-
<a href="http://github.com/bvaughn/react-devtools-experimental/commit/%commit%"><code>%commit%</code></a>
21+
<a href="http://github.com/facebook/react/commit/%commit%"><code>%commit%</code></a>
2222
</h3>
2323

2424
<p>
25-
This is a preview build of an <a href="https://github.com/facebook/react/tree/master/packages/react-devtools-extensions">unreleased DevTools extension</a>.
26-
It has no developer support.
25+
This is a preview build of the <a href="https://github.com/facebook/react">React DevTools extension</a>.
2726
</p>
2827

2928
<h2>Installation instructions</h2>
@@ -37,10 +36,5 @@ <h2>Bug reports</h2>
3736
Please report bugs as <a href="https://github.com/facebook/react/issues/new?labels=Component:%20Developer%20Tools">GitHub issues</a>.
3837
Please include all of the info required to reproduce the bug (e.g. links, code, instructions).
3938
</p>
40-
41-
<h2>Feature requests</h2>
42-
<p>
43-
Feature requests are not being accepted at this time.
44-
</p>
4539
</body>
4640
</html>
Collapse file

‎packages/react-devtools-extensions/firefox/manifest.json‎

Copy file name to clipboardExpand all lines: packages/react-devtools-extensions/firefox/manifest.json
+2-10Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifest_version": 2,
33
"name": "React Developer Tools",
44
"description": "Adds React debugging tools to the Firefox Developer Tools.",
5-
"version": "4.0.0",
5+
"version": "4.0.5",
66

77
"applications": {
88
"gecko": {
@@ -44,15 +44,7 @@
4444
"scripts": ["build/background.js"]
4545
},
4646

47-
"permissions": [
48-
"<all_urls>",
49-
"activeTab",
50-
"tabs",
51-
"webNavigation",
52-
"file:///*",
53-
"http://*/*",
54-
"https://*/*"
55-
],
47+
"permissions": ["file:///*", "http://*/*", "https://*/*"],
5648

5749
"content_scripts": [
5850
{
Collapse file

‎packages/react-devtools-extensions/src/main.js‎

Copy file name to clipboardExpand all lines: packages/react-devtools-extensions/src/main.js
+4-15Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ function createPanelIfReactLoaded() {
120120
localStorageRemoveItem(LOCAL_STORAGE_SUPPORTS_PROFILING_KEY);
121121
}
122122

123+
if (store !== null) {
124+
profilingData = store.profilerStore.profilingData;
125+
}
126+
123127
store = new Store(bridge, {
124128
isProfiling,
125129
supportsReloadAndProfile: getBrowserName() === 'Chrome',
@@ -281,21 +285,6 @@ function createPanelIfReactLoaded() {
281285

282286
chrome.devtools.network.onNavigated.removeListener(checkPageForReact);
283287

284-
// Shutdown bridge before a new page is loaded.
285-
chrome.webNavigation.onBeforeNavigate.addListener(
286-
function onBeforeNavigate(details) {
287-
// Ignore navigation events from other tabs (or from within frames).
288-
if (details.tabId !== tabId || details.frameId !== 0) {
289-
return;
290-
}
291-
292-
// `bridge.shutdown()` will remove all listeners we added, so we don't have to.
293-
bridge.shutdown();
294-
295-
profilingData = store.profilerStore.profilingData;
296-
},
297-
);
298-
299288
// Re-initialize DevTools panel when a new page is loaded.
300289
chrome.devtools.network.onNavigated.addListener(function onNavigated() {
301290
// Re-initialize saved filters on navigation,
Collapse file

‎packages/react-devtools-inline/package.json‎

Copy file name to clipboardExpand all lines: packages/react-devtools-inline/package.json
+4-3Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
{
22
"name": "react-devtools-inline",
3-
"version": "4.0.0-alpha.9",
3+
"version": "4.0.5",
44
"description": "Embed react-devtools within a website",
55
"license": "MIT",
66
"main": "./dist/backend.js",
77
"repository": {
8-
"url": "https://github.com/bvaughn/react-devtools-experimental.git",
9-
"type": "git"
8+
"type": "git",
9+
"url": "https://github.com/facebook/react.git",
10+
"directory": "packages/react-devtools-inline"
1011
},
1112
"files": [
1213
"dist",

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.