Releases: C-D-Lewis/fabricate.js
Releases · C-D-Lewis/fabricate.js
v3.5.0
v3.4.0
v3.3.0
v3.2.0
v3.1.1
v3.1.0
Fixes
- Fix typings for
buildKey
to allow more params
Changes
- Add optional
onCreate
method as an alternative toonUpdate
withfabricate: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
⚠️ 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()
withtheme
option. - Narrow styles with
.narrowStyles()
when on a narrow display. - Remove
onCreate
method - should useonUpdate
with'fabricate:created'
in the watch list. - Remove strict option -
onUpdate()
watch key lists are mandatory, and only known state keys can be updated. UsebuildKey()
to work with this for dynamic state keys. Text
build-in component defaultfontSize
now1rem
- 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 toapp()
v2.11.0
- Add new option
asyncUpdates
, allowing state updates to be done on the next loop using aPromise
. 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)