GeezerVison is showing github.com — Remove object-assign polyfill (#23351) · react/react@1ad8d81
File treeExpand file treeCollapse file tree Open diff view settings react-devtools-shared/src/backend/views/Highlighter react-server-native-relay
Some content is hiddenLarge Commits have some content hidden by default. Use the searchbox below for content that may be hidden. Dismiss bannerExpand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: package.json -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 77 | 77 | "minimist": "^1.2.3", | 78 | 78 | "mkdirp": "^0.5.1", | 79 | 79 | "ncp": "^2.0.0", | 80 | | - "object-assign": "^4.1.1", | 81 | 80 | "pacote": "^10.3.0", | 82 | 81 | "prettier": "1.19.1", | 83 | 82 | "prop-types": "^15.6.2", | |
Collapse file Copy file name to clipboardExpand all lines: packages/jest-react/package.json -3Lines changed: 0 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 23 | 23 | "react": "^17.0.0", | 24 | 24 | "react-test-renderer": "^17.0.0" | 25 | 25 | }, | 26 | | - "dependencies": { | 27 | | - "object-assign": "^4.1.1" | 28 | | - }, | 29 | 26 | "files": [ | 30 | 27 | "LICENSE", | 31 | 28 | "README.md", | |
Collapse file Copy file name to clipboardExpand all lines: packages/react-art/npm/Circle.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 17 | 17 |
| 18 | 18 | 'use strict'; | 19 | 19 |
| 20 | | -var assign = require('object-assign'); | | 20 | +var assign = Object.assign; | 21 | 21 | var PropTypes = require('prop-types'); | 22 | 22 | var React = require('react'); | 23 | 23 | var ReactART = require('react-art'); | |
Collapse file Copy file name to clipboardExpand all lines: packages/react-art/npm/Rectangle.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 24 | 24 |
| 25 | 25 | 'use strict'; | 26 | 26 |
| 27 | | -var assign = require('object-assign'); | | 27 | +var assign = Object.assign; | 28 | 28 | var PropTypes = require('prop-types'); | 29 | 29 | var React = require('react'); | 30 | 30 | var ReactART = require('react-art'); | |
Collapse file Copy file name to clipboardExpand all lines: packages/react-art/npm/Wedge.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 20 | 20 |
| 21 | 21 | 'use strict'; | 22 | 22 |
| 23 | | -var assign = require('object-assign'); | | 23 | +var assign = Object.assign; | 24 | 24 | var PropTypes = require('prop-types'); | 25 | 25 | var React = require('react'); | 26 | 26 | var ReactART = require('react-art'); | |
Collapse file Copy file name to clipboardExpand all lines: packages/react-art/package.json -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 25 | 25 | "art": "^0.10.1", | 26 | 26 | "create-react-class": "^15.6.2", | 27 | 27 | "loose-envify": "^1.1.0", | 28 | | - "object-assign": "^4.1.1", | 29 | 28 | "scheduler": "^0.20.1" | 30 | 29 | }, | 31 | 30 | "peerDependencies": { | |
Collapse file Copy file name to clipboardExpand all lines: packages/react-client/package.json +1-2Lines changed: 1 addition & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 27 | 27 | "react": "^17.0.0" | 28 | 28 | }, | 29 | 29 | "dependencies": { | 30 | | - "loose-envify": "^1.1.0", | 31 | | - "object-assign": "^4.1.1" | | 30 | + "loose-envify": "^1.1.0" | 32 | 31 | }, | 33 | 32 | "browserify": { | 34 | 33 | "transform": [ | |
Collapse file Copy file name to clipboardExpand all lines: packages/react-debug-tools/package.json +1-2Lines changed: 1 addition & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 28 | 28 | "react": "^17.0.0" | 29 | 29 | }, | 30 | 30 | "dependencies": { | 31 | | - "error-stack-parser": "^2.0.2", | 32 | | - "object-assign": "^4.1.1" | | 31 | + "error-stack-parser": "^2.0.2" | 33 | 32 | } | 34 | 33 | } |
Collapse file Copy file name to clipboardExpand all lines: packages/react-debug-tools/src/ReactDebugHooks.js +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -20,6 +20,7 @@ import type { | 20 | 20 | } from 'react-reconciler/src/ReactInternalTypes'; | 21 | 21 |
| 22 | 22 | import ErrorStackParser from 'error-stack-parser'; | | 23 | +import assign from 'shared/assign'; | 23 | 24 | import ReactSharedInternals from 'shared/ReactSharedInternals'; | 24 | 25 | import { | 25 | 26 | FunctionComponent, | @@ -720,7 +721,7 @@ function inspectHooksOfForwardRef<Props, Ref>( | 720 | 721 | function resolveDefaultProps(Component, baseProps) { | 721 | 722 | if (Component && Component.defaultProps) { | 722 | 723 | // Resolve default props. Taken from ReactElement | 723 | | - const props = Object.assign({}, baseProps); | | 724 | + const props = assign({}, baseProps); | 724 | 725 | const defaultProps = Component.defaultProps; | 725 | 726 | for (const propName in defaultProps) { | 726 | 727 | if (props[propName] === undefined) { | |
Collapse file Copy file name to clipboardExpand all lines: packages/react-devtools-shared/src/backend/views/Highlighter/Overlay.js +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 7 | 7 | * @flow | 8 | 8 | */ | 9 | 9 |
| 10 | | -import assign from 'object-assign'; | 11 | 10 | import {getElementDimensions, getNestedBoundingClientRect} from '../utils'; | 12 | 11 |
| | 12 | +const assign = Object.assign; | | 13 | + | 13 | 14 | import type {DevToolsHook} from 'react-devtools-shared/src/backend/types'; | 14 | 15 | import type {Rect} from '../utils'; | 15 | 16 |
| |
|