0.6.0
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, ...)