Skip to content

Version 0.11.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@estherbrunner estherbrunner released this 17 Mar 10:38
· 40 commits to main since this release

Breaking Changes

  • More consistent naming: states -> init as object of StateInitializer -> 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 function watch()
  • New bundled effects dangerouslySetInnerHTML() and insertTemplate()
  • 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 of null: should also trigger delete in of updateElement()

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 of null, 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

Full Changelog: v0.10.1...v0.11.0