@samitouri / QOS-React-2 / commits / d92631eab1

Remove "es6-symbol" package from DevTools (#18397)

Brian Vaughn committed Mar 26, 2020 at 09:31 UTC d92631eab16ceb1b08727dd24b78432e504e41e4
6 files changed +3 -8
packages/react-devtools-core/package.json
-1
@@ -24,7 +24,6 @@
24 "start:standalone": "cross-env NODE_ENV=development webpack --config webpack.standalone.js --watch"
25 },
26 "dependencies": {
27 - "es6-symbol": "^3",
27 "shell-quote": "^1.6.1",
28 "ws": "^7"
29 },
packages/react-devtools-inline/package.json
+1 -3
@@ -20,9 +20,7 @@
20 "prepublish": "yarn run build",
21 "start": "cross-env NODE_ENV=development webpack --config webpack.config.js --watch"
22 },
23 - "dependencies": {
24 - "es6-symbol": "^3"
25 - },
23 + "dependencies": {},
24 "devDependencies": {
25 "@babel/core": "^7.1.6",
26 "@babel/plugin-proposal-class-properties": "^7.1.0",
packages/react-devtools-shared/src/devtools/views/Components/HooksTree.js
+1 -1
@@ -124,7 +124,7 @@ function HookView({canEditHooks, hook, id, inspectPath, path}: HookViewProps) {
124 hook !== null &&
125 typeof hook === 'object' &&
126 hook.hasOwnProperty(meta.type)
127 - ? hook[meta.type]
127 + ? hook[(meta.type: any)]
128 : typeof value,
129 },
130 id: 'SelectedElement',
packages/react-devtools-shared/src/hydration.js
-1
@@ -7,7 +7,6 @@
7 * @flow
8 */
9
10 -import Symbol from 'es6-symbol';
10 import {
11 getDataType,
12 getDisplayNameForReactElement,
packages/react-devtools-shared/src/utils.js
-1
@@ -7,7 +7,6 @@
7 * @flow
8 */
9
10 -import Symbol from 'es6-symbol';
10 import LRU from 'lru-cache';
11 import {
12 isElement,
yarn.lock
+1 -1
@@ -4969,7 +4969,7 @@ es6-set@~0.1.5:
4969 es6-symbol "3.1.1"
4970 event-emitter "~0.3.5"
4971
4972 -es6-symbol@3.1.1, es6-symbol@^3, es6-symbol@^3.1.1, es6-symbol@~3.1.1:
4972 +es6-symbol@3.1.1, es6-symbol@^3.1.1, es6-symbol@~3.1.1:
4973 version "3.1.1"
4974 resolved "https://registry.yarnpkg.com/es6-symbol/-/es6-symbol-3.1.1.tgz#bf00ef4fdab6ba1b46ecb7b629b4c7ed5715cc77"
4975 integrity sha1-vwDvT9q2uhtG7Le2KbTH7VcVzHc=