diff --git a/CHANGELOG.md b/CHANGELOG.md index da15b1f..da5c8f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## 0.9.1 + +### Changed + +- upgraded to Elmish 0.9.1 + ## 0.7.0 ### Changed diff --git a/README.md b/README.md index d541355..6813581 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ useMousePosition className = , update: \_ pos -> pure pos , view: \pos dispatch -> H.div_ className - { onMouseMove: unsafeCoerce $ mkEffectFn1 \(event :: { clientX :: Number, clientY :: Number, currentTarget :: HTMLElement }) -> do + { onMouseMove: E.handleEffect \(E.MouseEvent event) -> do { top, left, width, height } <- getBoundingClientRect event.currentTarget let x = event.clientX - left @@ -81,7 +81,7 @@ If you’re only using a single hook, sometimes it might be more concise to use ```purs myInput :: ReactElement myInput = useState "" =/> \name setName -> - H.input_ "" { value: name, onChange: setName