react v0.11.0 Release Notes

Release Date: 2014-07-17 // almost 10 years ago
  • React Core

    ๐Ÿ’ฅ Breaking Changes

    • 0๏ธโƒฃ getDefaultProps() is now called once per class and shared across all instances
    • MyComponent() now returns a descriptor, not an instance
    • React.isValidComponent and React.PropTypes.component validate descriptors, not component instances
    • ๐ŸŒฒ Custom propType validators should return an Error instead of logging directly

    ๐Ÿ†• New Features

    • Rendering to null
    • Keyboard events include normalized e.key and e.getModifierState() properties
    • ๐Ÿ†• New normalized onBeforeInput event
    • React.Children.count has been added as a helper for counting the number of children

    ๐Ÿ› Bug Fixes

    • Re-renders are batched in more cases
    • Events: e.view properly normalized
    • โž• Added Support for more HTML attributes (coords, crossOrigin, download, hrefLang, mediaGroup, muted, scrolling, shape, srcSet, start, useMap)
    • ๐Ÿ‘Œ Improved SVG support
      • Changing className on a mounted SVG component now works correctly
      • Added support for elements mask and tspan
      • Added support for attributes dx, dy, fillOpacity, fontFamily, fontSize, markerEnd, markerMid, markerStart, opacity, patternContentUnits, patternUnits, preserveAspectRatio, strokeDasharray, strokeOpacity
    • ๐Ÿ›  CSS property names with vendor prefixes (Webkit, ms, Moz, O) are now handled properly
    • โš  Duplicate keys no longer cause a hard error; now a warning is logged (and only one of the children with the same key is shown)
    • img event listeners are now unbound properly, preventing the error "Two valid but unequal nodes with the same data-reactid"
    • โž• Added explicit warning when missing polyfills

    React With Addons

    • โšก๏ธ PureRenderMixin: a mixin which helps optimize "pure" components
    • ๐ŸŽ Perf: a new set of tools to help with performance analysis
    • โšก๏ธ Update: New $apply command to transform values
    • ๐Ÿ›  TransitionGroup bug fixes with null elements, Android

    React NPM Module

    • ๐Ÿ“ฆ Now includes the pre-built packages under dist/.
    • envify is properly listed as a dependency instead of a peer dependency

    JSX

    • โž• Added support for namespaces, eg <Components.Checkbox />
    • JSXTransformer
      • Enable the same harmony features available in the command line with <script type="text/jsx;harmony=true">
      • Scripts are downloaded in parallel for more speed. They are still executed in order (as you would expect with normal script tags)
      • Fixed a bug preventing sourcemaps from working in Firefox

    React Tools Module

    • ๐Ÿ‘Œ Improved readme with usage and API information
    • ๐Ÿ‘Œ Improved ES6 transforms available with --harmony option
    • โž• Added --source-map-inline option to the jsx executable
    • ๐Ÿ†• New transformWithDetails API which gives access to the raw sourcemap data