Skip to content

Releases: C-D-Lewis/fabricate.js

v3.5.0

25 Mar 20:26
Compare
Choose a tag to compare

Features

  • Add Select component
  • Add barStyles option to Tabs component.

v3.4.0

18 Mar 21:08
Compare
Choose a tag to compare

Features

  • Add Tabs component.

Fixes

  • Fixed route history.

v3.3.0

16 Mar 12:36
Compare
Choose a tag to compare

Features

  • Add goBack() and getRouteHistory() for working with the new router feature.

v3.2.0

15 Mar 22:38
Compare
Choose a tag to compare

Features

  • Added router, allowing built-in rendering of whole pages. For example, see examples/router.html

v3.1.1

13 Jan 17:30
ae4eb7d
Compare
Choose a tag to compare

Fixes

  • Relax type of theme callback for setStyles() and setNarrowStyles()

v3.1.0

12 Jan 22:52
b4723ce
Compare
Choose a tag to compare

Fixes

  • Fix typings for buildKey to allow more params

Changes

  • Add optional onCreate method as an alternative to onUpdate with fabricate:created key
  • Allow extra objects and strings in the theme option
  • Add disableGroupAddChildrenOptim option to disable adding large numbers of child elements optimisation

v3.0.0

20 Nov 20:17
Compare
Choose a tag to compare

⚠️ This is a major breaking release!

Changes

  • app() accepts builder function instead of already built component (preventing apps doing things before library is ready)
  • Theming palette for built-in components - use the callback version of setStyles() with theme option.
  • Narrow styles with .narrowStyles() when on a narrow display.
  • Remove onCreate method - should use onUpdate with 'fabricate:created' in the watch list.
  • Remove strict option - onUpdate() watch key lists are mandatory, and only known state keys can be updated. Use buildKey() to work with this for dynamic state keys.
  • Text build-in component default fontSize now 1rem
  • Warn when large numbers of children are added or removed - in the adding case they will be added in groups of 50.
  • Validate options passed to app()

v2.11.0

10 Sep 11:55
9b3f322
Compare
Choose a tag to compare
  • Add new option asyncUpdates, allowing state updates to be done on the next loop using a Promise. This is useful if synchronous updates are bad for performance, or strange behaviors arise (such as multiple component updates before being added to the DOM)

v2.10.1

24 Aug 19:15
Compare
Choose a tag to compare

Features

  • In strict mode, watchKeys is required in onUpdate()

v2.9.1

13 Aug 21:07
Compare
Choose a tag to compare

v2.9.1

Fixes

  • Fix bug resetting dynamic state to null if buildKey() is called repeatedly with the same arguments.