Skip to content

Releases: easafe/purescript-flame

v1.6.0

15 Sep 11:19

Choose a tag to compare

Second round of cleanup. Breaking changes:

  • ToNode class has been removed
    Elements now must be created with explicit arrays

v1.5.0

03 Sep 16:45

Choose a tag to compare

First clean up round. Breaking changes:

  • Flame no longer exports QuerySelector or tuple infix operators
  • Flame.Application.Effectful and Flame.Application.NoEffects have been removed
  • resumeMount now returns the deserialized model
  • init has been renamed to model and no longer takes an array of efffects

v1.4.0

12 May 17:48

Choose a tag to compare

Changes:

  • try-purescript examples
  • Array instances for ToClassList
  • scrollend event support

v1.3.0

17 Jan 16:21

Choose a tag to compare

Changes:

  • Automatically add doctype for server side rendering if a html tag is present
  • Fixed usage of fragments with conditional statements
  • Added load and unload events
  • Fixed tabindex property
  • Added kbd tag

v1.2.0

13 May 20:02

Choose a tag to compare

Breaking changes:

  • Update for purs v0.15

1.1.1

04 Sep 03:59

Choose a tag to compare

Fixes issue with lazy nodes on mapped views

1.1.0

03 Jun 09:27

Choose a tag to compare

Breaking changes:

  • Support only purs 0.14 (thanks @roryc89 )

1.0.0

04 Apr 15:28

Choose a tag to compare

While the user interface remains largely the same, release 1.0.0 is a quasi complete rewrite of the project. Read on:

New virtual DOM

Nearly all changes are powered by a custom renderer implemented in JavaScript. Internally:

  • snabbdom (and snabbdom-to-html) has been dropped, meaning there is no longer any external JavaScript dependencies

  • Virtual nodes have a more lightweight representation so memory usage and overall performance should improve

  • Hydration of server-side rendered applications should improve as the DOM is now untouched expect for event delegation (in case of no diffing issues)

  • Events of the same type create at most a single shared event listener (a.k.a., synthetic events)

Breaking changes

  • Module cleanup

Following PureScript conventions, anything in all caps has been renamed, e.g., Flame.HTML.Element => Flame.Html.Elment, innerHTML => innerHtml, etc. Files that should not be imported by user code now live in Internal modules

  • Classes, similarly to styles, are merged into single declarations

  • It is possible to declare more than one event handler for a single event type

For example div [onClick Message1, onClick Message2] raises in order both messages (the previous behavior was to overwrite)

Other changes

  • Mounting an application no longer destroys the selector

  • Fragments (a la react) have been added

  • Conditionals in views (e.g., case or if else) should work seamlessly

  • innerHtml no longer panics for elements with children

  • There is a clearer distinction now between "keyed" and non-keyed rendering

  • Benchmarks have been added

  • Simplified example folders; docs should be also easier to read now

0.7.0

14 Oct 09:49

Choose a tag to compare

Changes:

  • "Keyed" rendering is possible by using (surprise) the key attribute
  • maxlength attribute rendering correctly

Breaking changes:

  • RawEvent (and thus createRawEvent) can optionally send raise a message (thanks to @chekoopa )
  • autocomplete correctly takes a string value instead of bool (thanks to @chekoopa )

0.6.3

03 Sep 05:40

Choose a tag to compare

Changes:

  • Snabbdom hooks (thanks to @chekoopa )

  • Show and Eq instances for NodeData (thanks to @timdeputter )

  • It is now possible to use records with server side rendering