All Versions
22
Latest Version
Avg Release Cycle
-
Latest Release
-
Changelog History
Page 1
Changelog History
Page 1
-
v0.18.2 Changes
๐ Fix webpack usage issue. To prevent this in a future, webpack integration test was added.
๐ Improve typescript typings for
createApi
. This code example became type checked
import {createStore, createApi} from 'effector' const $text = createStore('') const {addMessage, cut} = createApi($text, { addMessage: (text, message) => text + `\n` + message cut: (text, {fromIndex, size}) => text.slice(fromIndex, fromIndex + size), })
- โ Add umd bundle to npm. Therefore, you can use cdn to include library without bundlers
<!DOCTYPE html> <html> <head> <script src="https://unpkg.com/[email protected]/effector.umd.js"></script> </head> <body> <script> const header = document.createElement('h1') document.body.appendChild(header) const $text = effector.createStore('hello') $text.watch(str => (header.innerHTML = str)) </script> </body> </html>
-
v0.18.1 Changes
- โ Add
forward
: common function for forwarding updates and events
import {forward} from 'effector' const unsubscribe = forward({ from: Event | Store, to: Event | Store | Effect, })
- โ add support for storages in
store.on
import {createStore} from 'effector' const $name = createStore('name') const $counter = createStore(0).on(name, (count, name) => count++)
- ๐ Allow to pass
{handler: Function}
as second argument tocreateEffect
import {createEffect} from 'effector' const callApiFx = createEffect('call api', { async handler(url) { const res = await fetch(url) return res }, })
- ๐ Make
effect.use
return the same effect instead of void (ability to chain method calls)
import {createEffect} from 'effector' const callApiFx = createEffect('call api').use(url => fetch(url))
- โ Add
-
v0.18.0 Changes
- ๐ Log events into Chrome devtools performance timeline
- โ Add notifications about errors inside computation chain
- โ Add
store.defaultState
property - effector-react: Add
createComponent
- ๐ Make
withProps
static function - ๐ Make effect return plain promise
-
v0.18.0-beta.10 Changes
- โ Add Gate
import {type Gate, createGate} from 'effector-react' const AppGate = createGate('app') const MainPageGate = AppGate.childGate('main page') export default ({isLoading, meta}) => ( <div> Application <AppGate isLoading={isLoading} /> {!isLoading && ( <div> Main page <MainPageGate meta={meta} /> </div> )} </div> ) AppGate.state.watch(({isLoading}) => isLoading)
-
v0.17.7 Changes
- Keep and replay the whole domain history for every new hook
-
v0.17.6 Changes
- โ Add domain hooks for handle new events, effects or stores in domain.
import {createDomain} from 'effector' const mainPage = createDomain('main page') mainPage.onCreateEvent(event => { console.log('new event: ', event.getType()) }) mainPage.onCreateStore(store => { console.log('new store: ', store.getState()) }) const mount = mainPage.event('mount') // => new event: main page/mount const pageStore = mainPage.store(0) // => new store: 0
- ๐ Improve TypeScript typings
-
v0.17.5 Changes
- โ Add ability to use createEvent, createEffect and createDomain without arguments (omit name)
- ๐ Fix wrong order of effect names
- โ Add
createWrappedDomain
to watch all nested events and updates - โ Add
extract
to watch only part of nested storages - ๐ Deprecate
.epic
method (library supports symbol-observable, so assumed thatmost.from(event)
orObservable.Of(store)
covered all use cases)
-
v0.17.4 Changes
- effector-react: Add check for mounting of store consumer
- โ Add
effect.use.getCurrent()
method to get current used function - ๐ Improve type inference in flow typing for
createStoreObject
- ๐ Improve public ts and flow typings
-
v0.17.3 Changes
- ๐ Fix effector-react typings
- ๐ Build with node 6 target, add engine field to package.json
- โ Add warning dependency
-
v0.17.2 Changes
- ๐ Memoize store.map and store updates