Releases: C-D-Lewis/fabricate.js
Releases · C-D-Lewis/fabricate.js
v2.9.0
- Type of
onUpdate
watched keys must be keys from the passed StateShape
v2.8.2
Fixes
- Fix leaking state watchers when a component uses
.onUpdate()
or .conditional()
is used, and subsequently removed from the DOM.
v2.8.1
Changes
.when()
is replaced by .displayWhen()
, since it is created immediately when state might not be present.
Features
.conditional()
- allows creation of components only when a state test is made, instead of merely hiding it in contrast to .when()
v2.7.0
- Improve typings for
update()
and setStyles()
v2.6.0
Features
- Add
strict
option - only state keys declared in the initialState
can be updated, helping keep track of app state.
- Add
buildKey()
helper, allowing dynamic state keys to be used with strict
mode.
v2.5.0
Features:
- Add
onEvent
for components to allow listening to any other kind of Event
, such as 'load'.
- Add
onKeyDown
helper to allow listening globally for key presses. Useful for keyboard shortcuts.
- Update types.
v2.4.1
Fixes:
changeCb
for when
is optional in types.
v2.4.0
Features:
Other:
- Add
types/fabricate.d.ts
to facilitate web apps built with TypeScript.
v2.3.3
Changes
- Only notify conditionally rendered component when not initial render.
v2.1.0
- Add second callback to
.when()
to know when the element is shown or hidden.
- Fix initial state calculation for
.when()