Skip to content

0.7.3

Pre-release
Pre-release
Compare
Choose a tag to compare
@estherbrunner estherbrunner released this 01 Aug 13:16
· 216 commits to main since this release
b7f3d79

What's Changed

  • Feature/v0.7.3 by @estherbrunner in #11
  • Bugfixes and tests for context provider and consumer
  • Bugfixes and tests for attribute parser functions
  • Better types

Breaking Changes since 0.7.2 to Core Feature

  • Removed possibility to supply Array as attributeMap value; this means: attribute name is always also the key for states; as it is your custom element, name the attributes like you want your states to be named => this reduces complexity and possible confusion
  • Removed possibility to supply contextMap altogether; this means: context key is always also the key for states; derive other states from this for transformations with a new state key => this reduces complexity and increases consistency across components

Breaking Changes since 0.7.2 to Non-Core Features

  • component() now takes UIComponentProps as second argument, an object of:
    • attributeMap: UIAttributeMap – what used to be the seconds argument in version 0.7.0 to 0.7.2
    • consumedContexts: array of context keys to be assigned to static consumedContexts
    • providedContexts: array of context keys to be assigned to static providedContexts

Full Changelog: v0.7.2...0.7.3