Changelog
0.12.0 (October 28, 2014)
key
and ref
moved off props object, now accessible on the element directlyReact.__internals
is removed - it was exposed for DevTools which no longer needs accessReact.createFactory
first. This is handled for you when using JSX.{...}
) introduced to deprecate this.transferPropsTo
acceptCharset
, classID
, manifest
React.renderComponent
--> React.render
React.renderComponentToString
--> React.renderToString
React.renderComponentToStaticMarkup
--> React.renderToStaticMarkup
React.isValidComponent
--> React.isValidElement
React.PropTypes.component
--> React.PropTypes.element
React.PropTypes.renderable
--> React.PropTypes.node
React.isValidClass
instance.transferPropsTo
false
from event handlers to preventDefaultReact.createFactory
key={null}
to assign implicit keysevent.getModifierState
as case sensitiveevent.charCode
list
updates correctly nowscrollLeft
, scrollTop
removed, these should not be specified as propsReact.addons.batchedUpdates
added to API for hooking into update cycleReact.addons.update
uses assign
instead of copyProperties
which does hasOwnProperty
checks. Properties on prototypes will no longer be updated correctly.@jsx React.DOM
no longer required{...}
) operator introduced to allow easier use of propsChangelog
0.11.2 (September 16, 2014)
<dialog>
element and associated open
attribute<picture>
element and associated media
and sizes
attributesReact.createElement
API in preparation for React v0.12
React.createDescriptor
has been deprecated as a result<picture>
is now parsed into React.DOM.picture
esprima
and jstransform
for correctness fixesjsx
executable now exposes a --strip-types
flag which can be used to remove TypeScript-like type annotations
require('react-tools').transform
as stripTypes
Changelog
0.11.1 (July 24, 2014)
setState
can be called inside componentWillMount
in non-DOM environmentsSyntheticMouseEvent.getEventModifierState
correctly renamed to getModifierState
getModifierState
correctly returns a boolean
getModifierState
is now correctly case sensitiveinnerHTML
workaround is now removed, fixing rerendering in certain casesChangelog
0.11.0 (July 17, 2014)
getDefaultProps()
is now called once per class and shared across all instancesMyComponent()
now returns a descriptor, not an instanceReact.isValidComponent
and React.PropTypes.component
validate descriptors, not component instancespropType
validators should return an Error
instead of logging directlynull
e.key
and e.getModifierState()
propertiesonBeforeInput
eventReact.Children.count
has been added as a helper for counting the number of childrene.view
properly normalizedcoords
, crossOrigin
, download
, hrefLang
, mediaGroup
, muted
, scrolling
, shape
, srcSet
, start
, useMap
)className
on a mounted SVG component now works correctlymask
and tspan
dx
, dy
, fillOpacity
, fontFamily
, fontSize
, markerEnd
, markerMid
, markerStart
, opacity
, patternContentUnits
, patternUnits
, preserveAspectRatio
, strokeDasharray
, strokeOpacity
Webkit
, ms
, Moz
, O
) are now handled properlyimg
event listeners are now unbound properly, preventing the error "Two valid but unequal nodes with the same data-reactid
"$apply
command to transform valuesdist/
.envify
is properly listed as a dependency instead of a peer dependency<Components.Checkbox />
harmony
features available in the command line with <script type="text/jsx;harmony=true">
--harmony
option--source-map-inline
option to the jsx
executabletransformWithDetails
API which gives access to the raw sourcemap dataChangelog
0.10.0 (March 21, 2014)
data-reactid
, data-react-checksum
). This DOM will not be mountable by React. Read the docs for React.renderComponentToStaticMarkup
srcSet
for <img>
to specify images at different pixel ratiostextAnchor
for SVGclassName={false}
behaves consistentlythis.refs
is defined, even if no refs are specified.update
function to deal with immutable data. Read the docstransform
function. The only option supported is harmony
, which behaves the same as jsx --harmony
on the command line. This uses the ES6 transforms from jstransform.Changelog
0.9.0 (February 20, 2014)
componentDidMount
and componentDidUpdate
no longer receive the root node as a parameter; use this.getDOMNode()
insteadundefined
, the default value returned by getDefaultProps
will now be used insteadReact.unmountAndReleaseReactRootNode
was previously deprecated and has now been removedReact.renderComponentToString
is now synchronous and returns the generated HTML string<html>
tag using React) is now supported only when starting with server-rendered markupdeltaY
is no longer negatedinput
, select
, and textarea
elements, .getValue()
is no longer supported; use .getDOMNode().value
insteadthis.context
on components is now reserved for internal use by Reactdefs
, linearGradient
, polygon
, radialGradient
, stop
crossOrigin
for CORS requestsdownload
and hrefLang
for <a>
tagsmediaGroup
and muted
for <audio>
and <video>
tagsnoValidate
and formNoValidate
for formsproperty
for Open Graph <meta>
tagssandbox
, seamless
, and srcDoc
for <iframe>
tagsscope
for screen readersspan
for <colgroup>
tagspropTypes
in mixinsany
, arrayOf
, component
, oneOfType
, renderable
, shape
to React.PropTypes
statics
on component spec for static component methods.currentTarget
is now properly set.key
is now polyfilled in all browsers for special (non-printable) keys.clipboardData
is now polyfilled in IE.dragTransfer
is now presentonMouseOver
and onMouseOut
in addition to the existing onMouseEnter
and onMouseLeave
eventsonLoad
and onError
on <img>
elementsonReset
on <form>
elementsautoFocus
attribute is now polyfilled consistently on input
, select
, and textarea
__owner__
property to each component's props
object; passed-in props are now never mutatedReact.renderComponent
within componentDidMount
), events now properly bubble to the parent component.target
, .relatedTarget
, and .type
are now set properly.data
is now properly normalized in IE9 and IE10px
appended for the unitless properties columnCount
, flex
, flexGrow
, flexShrink
, lineClamp
, order
, widows
componentWillUnmount
handlerrenderComponentToString
would store event handlersdisabled
are rendered without a value (previously disabled="true"
, now simply disabled
)key
values containing .
are now supporteddata-reactid
values for performancekey
property changesdocument
only when necessary, improving performance in some cases.returnValue
in modern browsers, eliminating a warning in ChromescrollLeft
and scrollTop
are no longer accessed on document.body, eliminating a warning in ChromeReact.addons.TestUtils
was added to help write unit testsReact.addons.TransitionGroup
was renamed to React.addons.CSSTransitionGroup
React.addons.TransitionGroup
was added as a more general animation wrapperReact.addons.cloneWithProps
was added for cloning components and modifying their propstransitionLeave
in CSSTransitionGroup<input>
elements, checkedLink
is now supported for two-way bindingreact-tools
npm package no longer includes the React core libraries; use the react
package instead.displayName
is now added in more cases, improving error messages and names in the React Dev ToolsJSXTransformer
now uses source maps automatically in modern browsersJSXTransformer
error messages now include the filename and problematic line contents when a file fails to parse