Update react-dom requirement from 15.x to 0.x
Updates the requirements on react-dom to permit the latest version.
Release notes
Sourced from react-dom's releases.
v0.14.1
React DOM
- Fixed bug where events wouldn't fire in old browsers when using React in development mode
- Fixed bug preventing use of
dangerouslySetInnerHTMLwith Closure Compiler Advanced mode- Added support for
srcLang,default, andkindattributes for<track>elements- Added support for
colorattribute- Ensured legacy
.propsaccess on DOM nodes is updated on re-rendersReact TestUtils Add-on
- Fixed
scryRenderedDOMComponentsWithClassso it works with SVGReact CSSTransitionGroup Add-on
- Fix bug preventing
0to be used as a timeout valueReact on Bower
- Added
react-dom.jstomainto improve compatibility with tooling
Changelog
Sourced from react-dom's changelog.
0.14.1 (October 28, 2015)
React DOM
- Fixed bug where events wouldn't fire in old browsers when using React in development mode
- Fixed bug preventing use of
dangerouslySetInnerHTMLwith Closure Compiler Advanced mode- Added support for
srcLang,default, andkindattributes for<track>elements- Added support for
colorattribute- Ensured legacy
.propsaccess on DOM nodes is updated on re-rendersReact TestUtils Add-on
- Fixed
scryRenderedDOMComponentsWithClassso it works with SVGReact CSSTransitionGroup Add-on
- Fix bug preventing
0to be used as a timeout valueReact on Bower
- Added
react-dom.jstomainto improve compatibility with tooling0.14.0 (October 7, 2015)
Major changes
- Split the main
reactpackage into two:reactandreact-dom. This paves the way to writing components that can be shared between the web version of React and React Native. This means you will need to include both files and some functions have been moved fromReacttoReactDOM.- Addons have been moved to separate packages (
react-addons-clone-with-props,react-addons-create-fragment,react-addons-css-transition-group,react-addons-linked-state-mixin,react-addons-perf,react-addons-pure-render-mixin,react-addons-shallow-compare,react-addons-test-utils,react-addons-transition-group,react-addons-update,ReactDOM.unstable_batchedUpdates).- Stateless functional components - React components were previously created using React.createClass or using ES6 classes. This release adds a new syntax where a user defines a single stateless render function (with one parameter:
props) which returns a JSX element, and this function may be used as a component.- Refs to DOM components as the DOM node itself. Previously the only useful thing you can do with a DOM component is call
getDOMNode()to get the underlying DOM node. Starting with this release, a ref to a DOM component is the actual DOM node. Note that refs to custom (user-defined) components work exactly as before; only the built-in DOM components are affected by this change.Breaking changes
React.initializeTouchEventsis no longer necessary and has been removed completely. Touch events now work automatically.- Add-Ons: Due to the DOM node refs change mentioned above,
TestUtils.findAllInRenderedTreeand related helpers are no longer able to take a DOM component, only a custom component.- The
propsobject is now frozen, so mutating props after creating a component element is no longer supported. In most cases,React.cloneElementshould be used instead. This change makes your components easier to reason about and enables the compiler optimizations mentioned above.- Plain objects are no longer supported as React children; arrays should be used instead. You can use the
createFragmenthelper to migrate, which now returns an array.- Add-Ons:
classSethas been removed. Use classnames instead.- Web components (custom elements) now use native property names. Eg:
classinstead ofclassName.Deprecations
this.getDOMNode()is now deprecated andReactDOM.findDOMNode(this)can be used instead. Note that in the common case,findDOMNodeis now unnecessary since a ref to the DOM component is now the actual DOM node.setPropsandreplacePropsare now deprecated. Instead, call ReactDOM.render again at the top level with the new props.- ES6 component classes must now extend
React.Componentin order to enable stateless function components. The ES3 module pattern will continue to work.- Reusing and mutating a
styleobject between renders has been deprecated. This mirrors our change to freeze thepropsobject.- Add-Ons:
cloneWithPropsis now deprecated. UseReact.cloneElementinstead (unlikecloneWithProps,cloneElementdoes not mergeclassNameorstyleautomatically; you can merge them manually if needed).- Add-Ons: To improve reliability,
CSSTransitionGroupwill no longer listen to transition events. Instead, you should specify transition durations manually using props such astransitionEnterTimeout={500}.Notable enhancements
... (truncated)
- Added
React.Children.toArraywhich takes a nested children object and returns a flat array with keys assigned to each child. This helper makes it easier to manipulate collections of children in yourrendermethods, especially if you want to reorder or slicethis.props.childrenbefore passing it down. In addition,React.Children.mapnow returns plain arrays too.
Commits
- See full diff in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Note: This repo was added to Dependabot recently, so you'll receive a maximum of 5 PRs for your first few update runs. Once an update run creates fewer than 5 PRs we'll remove that limit.
You can always request more updates by clicking Bump now in your Dependabot dashboard.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot ignore this [patch|minor|major] versionwill close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) -
@dependabot use these labelswill set the current labels as the default for future PRs for this repo and language -
@dependabot use these reviewerswill set the current reviewers as the default for future PRs for this repo and language -
@dependabot use these assigneeswill set the current assignees as the default for future PRs for this repo and language -
@dependabot use this milestonewill set the current milestone as the default for future PRs for this repo and language -
@dependabot badge mewill comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot dashboard:
- Update frequency (including time of day and day of week)
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
Finally, you can contact us by mentioning @dependabot.