m-list-view
m-list-view copied to clipboard
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
dangerouslySetInnerHTML
with Closure Compiler Advanced mode- Added support for
srcLang
,default
, andkind
attributes for<track>
elements- Added support for
color
attribute- Ensured legacy
.props
access on DOM nodes is updated on re-rendersReact TestUtils Add-on
- Fixed
scryRenderedDOMComponentsWithClass
so it works with SVGReact CSSTransitionGroup Add-on
- Fix bug preventing
0
to be used as a timeout valueReact on Bower
- Added
react-dom.js
tomain
to 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
dangerouslySetInnerHTML
with Closure Compiler Advanced mode- Added support for
srcLang
,default
, andkind
attributes for<track>
elements- Added support for
color
attribute- Ensured legacy
.props
access on DOM nodes is updated on re-rendersReact TestUtils Add-on
- Fixed
scryRenderedDOMComponentsWithClass
so it works with SVGReact CSSTransitionGroup Add-on
- Fix bug preventing
0
to be used as a timeout valueReact on Bower
- Added
react-dom.js
tomain
to improve compatibility with tooling0.14.0 (October 7, 2015)
Major changes
- Split the main
react
package into two:react
andreact-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 fromReact
toReactDOM
.- 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.initializeTouchEvents
is 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.findAllInRenderedTree
and related helpers are no longer able to take a DOM component, only a custom component.- The
props
object is now frozen, so mutating props after creating a component element is no longer supported. In most cases,React.cloneElement
should 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
createFragment
helper to migrate, which now returns an array.- Add-Ons:
classSet
has been removed. Use classnames instead.- Web components (custom elements) now use native property names. Eg:
class
instead ofclassName
.Deprecations
this.getDOMNode()
is now deprecated andReactDOM.findDOMNode(this)
can be used instead. Note that in the common case,findDOMNode
is now unnecessary since a ref to the DOM component is now the actual DOM node.setProps
andreplaceProps
are now deprecated. Instead, call ReactDOM.render again at the top level with the new props.- ES6 component classes must now extend
React.Component
in order to enable stateless function components. The ES3 module pattern will continue to work.- Reusing and mutating a
style
object between renders has been deprecated. This mirrors our change to freeze theprops
object.- Add-Ons:
cloneWithProps
is now deprecated. UseReact.cloneElement
instead (unlikecloneWithProps
,cloneElement
does not mergeclassName
orstyle
automatically; you can merge them manually if needed).- Add-Ons: To improve reliability,
CSSTransitionGroup
will no longer listen to transition events. Instead, you should specify transition durations manually using props such astransitionEnterTimeout={500}
.Notable enhancements
... (truncated)
- Added
React.Children.toArray
which 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 yourrender
methods, especially if you want to reorder or slicethis.props.children
before passing it down. In addition,React.Children.map
now 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 rebase
will rebase this PR -
@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it -
@dependabot merge
will merge this PR after your CI passes on it -
@dependabot cancel merge
will cancel a previously requested merge -
@dependabot reopen
will reopen this PR if it is closed -
@dependabot ignore this [patch|minor|major] version
will 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 dependency
will 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 labels
will set the current labels as the default for future PRs for this repo and language -
@dependabot use these reviewers
will set the current reviewers as the default for future PRs for this repo and language -
@dependabot use these assignees
will set the current assignees as the default for future PRs for this repo and language -
@dependabot use this milestone
will set the current milestone as the default for future PRs for this repo and language -
@dependabot badge me
will 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.