Skip to content

0.25.0

Choose a tag to compare

@AlexGalays AlexGalays released this 11 May 12:53

Breaking enhancement

  • More precise typing for event handlers: You now have to specify the exact Event type on your Messages (KeyboardEvent, MouseEvent, TouchEvent, etc)

Before:

const click = Message<Event>('click')

function render() {
  return h('button', { events: { click } })
}

After:

const click = Message<MouseEvent>('click')

function render() {
  return h('button', { events: { click } })
}

There are no changes to be made for Messages with no payload like: const click = Message('click')

bug fix

  • Fix touch events in the events module