All Versions
102
Latest Version
Avg Release Cycle
56 days
Latest Release
687 days ago
Changelog History
Page 8
Changelog History
Page 8
-
v0.14.7 Changes
January 28, 2016React
- π Fixed bug with
<option>
tags when usingdangerouslySetInnerHTML
- π Fixed memory leak in synthetic event system
β React TestUtils Add-on
- π Fixed bug with calling
setState
incomponentWillMount
when using shallow rendering
- π Fixed bug with
-
v0.14.6 Changes
January 06, 2016React
- β‘οΈ Updated
fbjs
dependency to pick up change affecting handling of undefined document.
- β‘οΈ Updated
-
v0.14.5 Changes
December 29, 2015React
- π More minor internal changes for better compatibility with React Native
-
v0.14.4 Changes
December 29, 2015React
- π Minor internal changes for better compatibility with React Native
React DOM
- π» The
autoCapitalize
andautoCorrect
props are now set as attributes in the DOM instead of properties to improve cross-browser compatibility - π Fixed bug with controlled
<select>
elements not handling updates properly
React Perf Add-on
- β‘οΈ Some DOM operation names have been updated for clarity in the output of
.printDOM()
-
v0.14.3 Changes
November 18, 2015React DOM
- β Added support for
nonce
attribute for<script>
and<style>
elements - β Added support for
reversed
attribute for<ol>
elements
β React TestUtils Add-on
- π Fixed bug with shallow rendering and function refs
React CSSTransitionGroup Add-on
- π Fixed bug resulting in timeouts firing incorrectly when mounting and unmounting rapidly
React on Bower
- β Added
react-dom-server.js
to exposerenderToString
andrenderToStaticMarkup
for usage in the browser
- β Added support for
-
v0.14.2 Changes
November 02, 2015React DOM
- π Fixed bug with development build preventing events from firing in some versions of Internet Explorer & Edge
- π Fixed bug with development build when using es5-sham in older versions of Internet Explorer
- β Added support for
integrity
attribute - π Fixed bug resulting in
children
prop being coerced to a string for custom elements, which was not the desired behavior - π¦ Moved
react
fromdependencies
topeerDependencies
to match expectations and align withreact-addons-*
packages
-
v0.14.1 Changes
October 28, 2015React 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-renders
β React TestUtils Add-on
- π Fixed
scryRenderedDOMComponentsWithClass
so it works with SVG
React CSSTransitionGroup Add-on
- π Fix bug preventing
0
to be used as a timeout value
React on Bower
- β Added
react-dom.js
tomain
to improve compatibility with tooling
-
v0.14.0 Changes
October 07, 2015Major 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
- β 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. - π React uses
console.error
instead ofconsole.warn
for warnings so that browsers show a full stack trace in the console. (Our warnings appear when you use patterns that will break in future releases and for code that is likely to behave unexpectedly, so we do consider our warnings to be βmust-fixβ errors.) - π Previously, including untrusted objects as React children could result in an XSS security vulnerability. This problem should be avoided by properly validating input at the application layer and by never passing untrusted objects around your application code. As an additional layer of protection, React now tags elements with a specific ES2015 (ES6)
Symbol
in browsers that support it, in order to ensure that React never considers untrusted JSON to be a valid element. If this extra security protection is important to you, you should add aSymbol
polyfill for older browsers, such as the one included by Babelβs polyfill. - When possible, React DOM now generates XHTML-compatible markup.
- π React DOM now supports these standard HTML attributes:
capture
,challenge
,inputMode
,is
,keyParams
,keyType
,minLength
,summary
,wrap
. It also now supports these non-standard attributes:autoSave
,results
,security
. - π React DOM now supports these SVG attributes, which render into namespaced attributes:
xlinkActuate
,xlinkArcrole
,xlinkHref
,xlinkRole
,xlinkShow
,xlinkTitle
,xlinkType
,xmlBase
,xmlLang
,xmlSpace
. - π The
image
SVG tag is now supported by React DOM. - π In React DOM, arbitrary attributes are supported on custom elements (those with a hyphen in the tag name or an
is="..."
attribute). - π React DOM now supports these media events on
audio
andvideo
tags:onAbort
,onCanPlay
,onCanPlayThrough
,onDurationChange
,onEmptied
,onEncrypted
,onEnded
,onError
,onLoadedData
,onLoadedMetadata
,onLoadStart
,onPause
,onPlay
,onPlaying
,onProgress
,onRateChange
,onSeeked
,onSeeking
,onStalled
,onSuspend
,onTimeUpdate
,onVolumeChange
,onWaiting
. - π Many small performance improvements have been made.
- β Many warnings show more context than before.
- β Add-Ons: A
shallowCompare
add-on has been added as a migration path forPureRenderMixin
in ES6 classes. - β Add-Ons:
CSSTransitionGroup
can now use custom class names instead of appending-enter-active
or similar to the transition name.
π New helpful warnings
- β‘οΈ React DOM now warns you when nesting HTML elements invalidly, which helps you avoid surprising errors during updates.
- β Passing
document.body
directly as the container toReactDOM.render
now gives a warning as doing so can cause problems with browser extensions that modify the DOM. - π Using multiple instances of React together is not supported, so we now warn when we detect this case to help you avoid running into the resulting problems.
π Notable bug fixes
- π» Click events are handled by React DOM more reliably in mobile browsers, particularly in Mobile Safari.
- SVG elements are created with the correct namespace in more cases.
- React DOM now renders
<option>
elements with multiple text children properly and renders<select>
elements on the server with the correct option selected. - π» When two separate copies of React add nodes to the same document (including when a browser extension uses React), React DOM tries harder not to throw exceptions during event handling.
- Using non-lowercase HTML tag names in React DOM (e.g.,
React.createElement('DIV')
) no longer causes problems, though we continue to recommend lowercase for consistency with the JSX tag name convention (lowercase names refer to built-in components, capitalized names refer to custom components). - React DOM understands that these CSS properties are unitless and does not append βpxβ to their values:
animationIterationCount
,boxOrdinalGroup
,flexOrder
,tabSize
,stopOpacity
. - β Add-Ons: When using the test utils,
Simulate.mouseEnter
andSimulate.mouseLeave
now work. - β Add-Ons: ReactTransitionGroup now correctly handles multiple nodes being removed simultaneously.
React Tools / Babel
π₯ Breaking Changes
- π¦ The
react-tools
package andJSXTransformer.js
browser file have been deprecated. You can continue using version0.13.3
of both, but we no longer support them and recommend migrating to Babel, which has built-in support for React and JSX.
π New Features
- Babel 5.8.24 introduces Inlining React elements: The
optimisation.react.inlineElements
transform converts JSX elements to object literals like{type: 'div', props: ...}
instead of calls toReact.createElement
. This should only be enabled in production, since it disables some development warnings/checks. - Babel 5.8.24 introduces Constant hoisting for React elements: The
optimisation.react.constantElements
transform hoists element creation to the top level for subtrees that are fully static, which reduces calls toReact.createElement
and the resulting allocations. More importantly, it tells React that the subtree hasnβt changed so React can completely skip it when reconciling. This should only be enabled in production, since it disables some development warnings/checks.
- π¦ Split the main
-
v0.13.3 Changes
May 08, 2015React Core
π New Features
- β Added
clipPath
element and attribute for SVG - π Improved warnings for deprecated methods in plain JS classes
π Bug Fixes
- Loosened
dangerouslySetInnerHTML
restrictions so{__html: undefined}
will no longer throw - π Fixed extraneous context warning with non-pure
getChildContext
- Ensure
replaceState(obj)
retains prototype ofobj
React with Add-ons
π Bug Fixes
- β
Test Utils: Ensure that shallow rendering works when components define
contextTypes
- β Added
-
v0.13.2 Changes
April 18, 2015React Core
π New Features
- β Added
strokeDashoffset
,flexPositive
,flexNegative
to the list of unitless CSS properties - β Added support for more DOM properties:
scoped
- for<style>
elementshigh
,low
,optimum
- for<meter>
elementsunselectable
- IE-specific property to prevent user selection
π Bug Fixes
- π Fixed a case where re-rendering after rendering null didn't properly pass context
- π Fixed a case where re-rendering after rendering with
style={null}
didn't properly updatestyle
- β‘οΈ Update
uglify
dependency to prevent a bug in IE8 - π Improved warnings
React with Add-Ons
π Bug Fixes
- π Immutability Helpers: Ensure it supports
hasOwnProperty
as an object key
React Tools
- π Improve documentation for new options
- β Added