- Fixes
PureComponent
typing
### 1.11.0
- Added proper React feature flags system using
-D react_ver=major.minor
(default to latest) - Added UNSAFE lifecycle methods for React 16.9+
- Enabling
getSnapshotBeforeUpdate
livecycle API for React 16.3+ - Declaring
componentDidUpdate
's arguments is now optional, to avoid API breaking changes
- Added
getSnapshotBeforeUpdate
livecycle methods behind-D react_snapshot_api
Breaking change: componentDidUpdate
will expects an extra snapshot
optional parameter:
override function componentDidUpdate(prevProps:TProps, prevState:TState, ?snapshot:Dynamic):Void {}
- Removed string-based
Refs
API - Added inline XML support
- Removed
context
field in baseReactComponent
class; it should be declared as needed, but can be restored by adding-D react_deprecated_context
- Haxe 4.0.0 support
- Fixed
ReactDOMServer
extern ReactComponentMacro
is now extensible
- Added new Context API extern
### 1.6.0
- Use
html-entities
library
- Haxe 4 preview support
- Improved breakpoint on JSX
- Added PureComponent extern
- Added new Refs API extern
- Improvement and documentation of
@:jsxStatic
functionality
- Generate
displayName
for@:jsxStatic
components #86 - React 16.2: added Fragments support #87: https://reactjs.org/blog/2017/11/28/react-v16.2.0-fragment-support.html
- User overloads instead of
EitherType
forsetState
#91 - Added utility function
ReactUtil.copyWithout
#96 - ReactComponent macros refactoring #97
- Travis CI
- React 16 support; React 15 is still compatible but won't support new APIs (
componentDidCatch
,createPortal
) - added missing
ReactDOM.hydrate
method (server-side rendering) - added
@:jsxStatic
optional meta - breaking:
react.ReactPropTypes
now requires the NPMprop-types
module
- fixed auto-complete issue on
this.state
caused by the1.2.0
changes
setState
now acceptsPartial<T>
; whereT
is atypedef
,Partial<T>
isT
will all the fields made optionalreact.React.PropTypes
removed in favor ofreact.ReactPropTypes
- added
-D react_runtime_warnings
option