Skip to content

Releases: easafe/purescript-flame

v1.3.0

17 Jan 16:21
Compare
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
Compare
Choose a tag to compare

Breaking changes:

  • Update for purs v0.15

1.1.1

04 Sep 03:59
Compare
Choose a tag to compare

Fixes issue with lazy nodes on mapped views

1.1.0

03 Jun 09:27
Compare
Choose a tag to compare

Breaking changes:

  • Support only purs 0.14 (thanks @roryc89 )

1.0.0

04 Apr 15:28
Compare
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
Compare
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
Compare
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

0.6.2

18 May 09:01
Compare
Choose a tag to compare
  • Added innerHTML prop to dangerously set html contents

0.6.1

15 May 05:27
Compare
Choose a tag to compare
  • Fixes diff usage of unsafe JavaScript that led to reference updating

0.6.0

01 May 09:31
Compare
Choose a tag to compare
  • img function accepts no children nodes

  • Uses innerText for contentEditable input events