Version 0.11.0
Pre-release
Pre-release
Breaking Changes
- More consistent naming:
states
->init
as object ofStateInitializer
->SignalInitializer
- Export only previous
*WithFallback()
variants of attribute parsers to reduce surface API and confusion:asString()
,asInteger()
,asNumber()
,and asJSON()
New Features
- Update to Cause & Effect 0.12.4 to take advantage of new features (improved error und unset handling) and bugfixes
- Re-export whole API of Cause & Effect: new types
MaybeSignal
,ComputedCallbacks
,EffectCallbacks
and functionwatch()
- New bundled effects
dangerouslySetInnerHTML()
andinsertTemplate()
- Functions in effects are of new type
ValueProvider
, allowing to access index without having to re-wrap partially applied effect functions that broke type inference - Better error messages that include the instance of objects and type of primitive values
- Export functions to update a State as
StateUpdater
Bugfixes
- Fix bug for
RESET
with fallback value ofnull
: should also trigger delete in ofupdateElement()
Documentation and Tests
- New API reference generated by TypeDoc
- Live reloading while
docs:serve
is running - Update examples in tests and docs and README to use new API
- Update test cases to use
RESET
instead ofnull
, as Cause & Effect now enforces non-nullability - Add test cases for new bundled effects
What's Changed
- feat: add hot module reloading for documentation development by @fabianhaef in #45
- docs: update rating-stars example to use custom event by @estherbrunner in #46
- docs: add API reference generated by TypeDoc by @estherbrunner in #48
- feat: cleanup of API for version 1.0rc1 (0.11.0) using Cause & Effect 0.12.4, bugfixes, alignment of examples in docs and tests by @estherbrunner in #47
New Contributors
- @fabianhaef made their first contribution in #45
Full Changelog: v0.10.1...v0.11.0