Skip to content

Version 0.7.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@estherbrunner estherbrunner released this 15 Jul 07:57
· 148 commits to main since this release
a1265f3

What's Changed

  • Source code refactored and converted to TypeScript
  • Simple Rollup based build step

New Features

  • Context controller in core with static providedContexts and consumedContexts / this.contextMap
  • New core method this.targets() allowing for target highlighting
  • Function components: uiComponent() with autoEffects() and highlightTargets()
  • Element references with DOM manipulation methods: uiRef
  • Test components with both UIElement and uiComponent syntax

Breaking Changes since v0.6.2

  • Types renamed with common UI prefix
  • Attribute parsing keys boolean, integer and number removed; import asBoolean, asInteger or asNumber from ui-component instead – or use these functions directly (preferred):
    • boolean => v => typeof v === 'string'
    • integer => v => parseInt(v, 10)
    • number => v => parseFloat(v)
  • Since UIElement now implements connectedCallback() for context controller, you need to call super.connectedCallback() when extending UIElement or DebugElement ( not needed in uiComponent())
  • UIEffect.targets is now a Map<Element, UIDOMInstructionSet> with UIDOMInstructionSet = Set<() => void>

Full Changelog: v0.6.2...v0.7.0