Skip to content

Latest commit

 

History

History
348 lines (228 loc) · 10.4 KB

CHANGELOG.md

File metadata and controls

348 lines (228 loc) · 10.4 KB

Change Log

[v13.0] - 2018-07-19

  • Update for PureScript 0.12 compatibility

[v12.0] - 2017-10-06

  • Upgrade to Aff 4.0

[v11.0] - 2017-08-17

  • Support for purescript-smolder 10 (fixes tail-recursive/stack issue with large num of elements) #139.
  • Use create-react-class module to avoid deprecation warning #142.
  • Fix crash when React event object is null #136.
  • Add basic test suite #133.

[v10.0] - 2017-06-11

  • Support for purescript-smolder 9

[v9.3] - 2017-05-31

  • Fix rendering duplicate Preact events. Fixes #124
  • Fix React interop example and add to test suite.

[v9.2] - 2017-05-19

  • Use React component class for memoized views. Significantly improves performance by avoiding unnecessary React VDOM subtree comparison. This brings performance characteristics in line with vanilla React and a single state atom and PureRenderMixin.
  • Check for target.value. Fixes #119

[v9.1] - 2017-05-02

  • Send events returned by effects after the current execution context. Fixes issue with event ordering.

[v9.0] - 2017-05-01

  • Update for PureScript 0.11 #116
  • Remove redundant arrays in rendered React VDOM
  • Fixed type error in devtool state serialization #117

[v8.9] - 2017-04-08

  • Fix rendering of style element contents.

[v8.8] - 2017-04-07

  • Add parseSegment to Pux.Router #103

[v8.7] - 2017-04-07

  • Fix redundant initial render.
  • Add reactClassWithProps for using arbitrary props with external React classes.
  • Add HMR support to pux-devtool.

[v8.6] - 2017-04-04

  • Use ev.target instead of ev.currentTarget for targetValue function.

[v8.5] - 2017-04-04

  • Fix issue with normalizing attribute names when rendering a foreign react class.

[v8.4] - 2017-04-04

  • Use raw DOM event in React renderer. Fixes an issue with reading foreign event types.

[v8.3] - 2017-04-02

  • Improve React rendering performance.

[v8.2] - 2017-03-31

  • Cache previously rendered elements to improve rendering performance.
  • Fix React attribute normalization.

[v8.1] - 2017-03-31

Fixed

  • Fix referential transparency of memoize #113

[v8.0] - 2017-03-30

This is a major upgrade and rewrite with breaking changes:

  • Markup now uses purescript-smolder and Html has been replaced with a new HTML type.
  • Event handlers now receive the raw DOM event from purescript-dom, and Pux no longer provides its own event types.
  • Type signatures for start, Config, App have changed to include a new type parameter and different labels.
  • Effects in the EffModel now return Maybe a instead of a.
  • Rendering is no longer tied to React. Other virtual DOM renderers can be implemented.
  • Added memoize function for views is provided to prevent unnecessary renders.
  • Added constructor for style element and attribute which takes CSS from purescript-css.
  • Added full isomorphic routing and rendering setup to pux-starter-app.
  • Actions are now referred to as events in source code and documentation.
  • The "update" function is now referred to as the "foldp" function in source code and documentation.

See the updated guide for help upgrading to Pux 8.

[v7.2] - 2017-04-07

  • Add parseSegment function for router #103
  • Add evt function #94
  • Namespace Pux events #96

[v7.1] - 2017-03-30

  • Remove unused (<|>) import
  • Use CustomEvent instead of Event (fixes #76)
  • Fix #102

[v7.0] - 2016-10-24

Changed

  • Switched version scheme from SemVer to ComVer
  • Updated for latest PureScript version 0.10.1

Added

  • Additional HTML element constructors. #74

Removed

  • Remove bind/append functions in favor of operators. Fixes bug with Html and Functor instance. #72

[v6.0.1] - 2016-09-25

Fixed

  • Fix typo with withTextChild and withChildren precendence. #70

[v6.0.0] - 2016-09-21

Changed

  • Tweak fixity of Html operators #64

Added

  • Export actionChannel with App #66
  • Support event.target.checked #62

[v5.0.3] - 2016-07-20

Changed

  • Allow EXCEPTION effect in updates #58

Fixed

  • Invoke React.createElement correctly when passing it children #51
  • Various docs updated for purescript 0.9

[v5.0.2] - 2016-07-09

Fixed

  • Correctly parse queries in routeFromUrl #49

Added

  • Implement attribute functor #47

[v5.0.1] - 2016-06-25

Fixed

  • Add missing purescript-globals dependency #46
  • Use <> instead of ++ and pure instead of return

[v5.0.0] - 2016-06-22

  • Update dependencies for PureScript 0.9 - no changes to the public API.

[v4.1.0] - 2016-05-15

Added

  • onlyEffects function for returning an effModel with new effects but no state changes.

Fixed

  • Fix map FFI for Html text nodes. #38

[v4.0.1] - 2016-04-27

Fixed

  • Fix map of actions attached to app's root element. See #4e68bc8

[v4.0.0] - 2016-04-21

Breaking changes

  • style attribute changed to accept an array of tuples instead of a record. This is so styles can be composed. See #27
  • Change toReact to return ReactClass props from purescript-react.

[v3.1.0] - 2016-04-18

Fixed

  • Change tabIndex to Int -> Attribute a.
  • Change checked to Boolean -> Attribute a.
  • Do not call .preventDefault() on click, change, and other relevant handlers.

Added

  • Pux.Html.Attributes.defaultValue and Pux.Html.Attributes.defaultChecked.
  • Pux.Html.Events.onKey for sending an action when a specific key is pressed.
  • Pux.Router.navigateTo for changing the URL.

Changed

  • Export app Config type.

[v3.0.0] - 2016-04-09

Fixed

  • BREAKING: Change relevant attributes to Boolean -> Attribute a or Int -> Attribute a.

Changed

  • Implement functor instance for Html, so authors can use map instead of forwardTo.

Added

  • Provide type alias for core set of effects CoreEffects. See #20.
  • Added toReact function that returns React class from Pux component.
  • Added fromReact function that returns Pux Html element from React component.
  • Added additional SVG attributes and elements from React v15.0.0

[v2.0.2] - 2016-04-02

Fixed

  • Use record instead of string for style attribute value.

[v2.0.1] - 2016-03-29

  • Fix race-condition for asynchronous effects #15.
  • Fix recursive/nested forwardTo #14.

[v2.0.0] - 2016-03-27

  • All functions in Pux.Html.Elements now receive children. This enables consistent use of the ! operator.
  • Added ## operator to combine array of Html.

[v1.0.0] - 2016-03-24

Breaking Changes

  • The VirtualDOM monad has been replaced with # operator and rebindable do, which enables the use of both array notation or do notation for composing views.
  • VirtualDOM is now Html a and is parameterized by the component's action type.
  • One-to-one mapping between event types and React's synthetic events.
  • The Update function no longer receives an input Signal.Channel.
  • EffModel type has changed to { state: state, effects: Array (Aff eff action), and actions are automatically fed into the input channel.

Upgrading

  • The VirtualDOM monad has been replaced by a simpler data structure Html a. Element attributes and children can now be specified using array literal notation. do notation is optional and can be used via Pux.Html.bind and Pux.Html.#.
  • All event handlers receive an event, and the use of Prelude.const is encouraged to ignore events when constructing actions.
  • The effect in the Update function type signature now appears last, and Update no longer receives a channel as the third argument.
  • Applications are now created using start, and the resulting app.html signal passed to renderToDOM or renderToString.

[v0.3.0] - 2016-03-24

Fixed

  • Load React from CommonJS. Fixes #10.
  • Fix onChange handler so it produces a value. Fixes #7.
  • List all dependencies. Fixes #9.

Added

  • SVG elements and attributes. Fixes #6.

[v0.1.0] - 2016-02-02

Fixed

  • Make foreign functions safe in runtimes without window.

Changed

  • BREAKING: View type synonym removed. VDom renamed to VirtualDOM and exported via Pux and Pux.DOM instead of Pux.View.

[v0.0.1] - 2016-01-24

Added

  • Initial release. Experimental API.