Changelog for react-flux-1.0.2
1.0.2
- Update to build with latest ghcjs master. The breaking change was https://github.com/ghcjs/ghcjs-base/commit/968dff527c2be2d3d4815e437ad9b2931ea1f35d which renamed JSRef to JSVal. Therefore, react-flux no longer builds with ghcjs versions without this commit.
1.0.1
-
Add formatting support for properties to
React.Flux.Addons.Intl. These are needed for example to translate the placeholder text for an input element. This improvement caused a few changes to the types the Internal module. -
Add a new example purecss-side-menu showing a responsive side menu built with PureCSS.
-
Add
classNamesfunction toReact.Flux.PropertiesAndEventsto allow easily setting class names based on calculations. -
Add a new module
React.Flux.Combinatorswhich is re-exported byReact.Flux. TheCombinatorsmodule contains useful utilities that while not required, make your life a little simpler.
1.0.0
-
Bindings to react-intl (http://formatjs.io/react/) for i18n support. This is useful even if your app is a single language, as it allows easy number, date, relative time, and message formatting like pluralization. It also supports multiple locales and translations of messages.
-
The type of
callbackhas extended to allow arbitrary function properties to be passed to foreign classes. The oldcallbackaccepted callbacks of typeAeson.Value -> handlerwhile the new callback allows functions of any number of arguments, as long as each argument implementsFromJSVal. SinceAeson.ValueimplementsFromJSVal, any existing calls tocallbackshould still work. This change also caused some changes to types inReact.Flux.Internal. -
Add a function
nestedPropertytoReact.Flux.PropertiesAndEventsto create nested properties. -
Support for React 0.14
- React 0.13 and 0.14 are both supported from the same Haskell code, the differences are handled internally.
- If you are using React 0.14, you will have to include
react-dom.min.jsand make sure theReactDOMvariable is protected by closure similar to howReactmust be protected. initializeTouchEventshas been removed from React 0.14, so you can remove the call from your app.- The SVG
image_tag is now supported byReact.Flux.DOM. - The new media events on images and videos don't have direct Haskell equivalents, instead the handlers can be
created by the new
onfunction inReact.Flux.PropertiesAndEvents. - The CSS transitions in
React.Flux.Addons.Reactwere made simpler by just passing the raw properties. There were several changes to the possible properties in React 0.14 and covering them all from Haskell is not worth it when the properties can easily be created directly.
-
reactRenderToStringwas added to allow executing a react-flux application using node.
0.9.4
- Fix to build with latest ghcjs-base (requires at least aaa4d59117f37d1b9c60a154a9128b3bcc6301cd) of ghcjs-base), so you may need to recompile ghcjs and ghcjs-base.
- Add a function 'property' to create a property from any JSVal, not just Aeson values.
- Add a function 'elementProperty' to create a property from a ReactElementM, useful for interacting with foreign React classes.
0.9.3
- Don't require web-routes dependency if not building the routing example
0.9.2
- Bindings to react-bootstrap and the react addons
- Add new routing example application (thanks Vladimir Sekissov!)
0.9.1
- Switch to use the improved-base branch of ghcjs (thanks Vladimir Sekissov!)
0.9.0
- Initial release