Skip to content

0.6.0

Compare
Choose a tag to compare
@okwolf okwolf released this 01 Mar 08:14
· 103 commits to master since this release
f2f2c42

Say hello to the newly-renamed @hyperapp/fx and install accordingly:

npm rm hyperapp-effects
npm i @hyperapp/fx

Or in your package.json file:

"dependencies": {
  "hyperapp": "^1.1.2",
- "hyperapp-effects": "^0.5.2"
+ "@hyperapp/fx": "^0.6.0"
},

Some renovations were made along with the move, please pardon our dust.

  • window.effects => window.fx
  • withEffects => withFx
  • effectsIf => fxIf
- import { withEffects } from "hyperapp-effects"
+ import { withFx } from "@hyperapp/fx"

- effectsIf([
+ fxIf([
  [condition, action("ifCondition")],
  // ...
])

- withEffects(app)(state, actions, view, ...)
+ withFx(app)(state, actions, view, ...)