effector-logger is re-written to use brand new Inspect API of effector. Root domain setups, custom babel-plugins and etc are no longer needed.
Simple attachLogger() call somewhere in your app entrypoint is enough now.
Also effector-logger now only does console logs and Redux DevTools support and effector-inspector integrations are removed. Use @effector/redux-devtools-adapter and effector-inspector instead.
BREAKING CHANGES
Redux DevTools support and effector-inspector integrations are removed. Use @effector/redux-devtools-adapter and effector-inspector instead.
effector-logger/attach is removed. Use main attachLogger export instead. Notice, that config shape is different and does not require root domain now.
effector-logger/babel-plugin is removed. It is no longer needed, just use effector/babel-plugin or @effector/swc-plugin normally.
import { createEvent, ... } from "effector-logger" support is removed. Use patronum/debug from patronum.effector.dev instead if you need to log only some units.
Babel Macro support is removed. Create-React-App is basically deprecated at this point. Use something else (e.g. Vite) instead.
New features
configure now supports log: 'enabled' option to forcefully log some unit that is usually omitted. It is useful to log updates of derived units which are omitted by effector-logger by default.
effector Scope logs are fully supported now, domain is not required
You can provide name prefix to your logs if needed. It can be useful in case if there are few instances of your app which are using different scopes.
Maintenance
Old integration tests are removed. Now there is a single suit of vitest-based tests which is run against dist output of the library bundler.
Changelog
effector-logger
is re-written to use brand new Inspect API of effector. Root domain setups, custom babel-plugins and etc are no longer needed.Simple
attachLogger()
call somewhere in your app entrypoint is enough now.Also
effector-logger
now only does console logs and Redux DevTools support and effector-inspector integrations are removed. Use@effector/redux-devtools-adapter
andeffector-inspector
instead.BREAKING CHANGES
@effector/redux-devtools-adapter
andeffector-inspector
instead.effector-logger/attach
is removed. Use mainattachLogger
export instead. Notice, that config shape is different and does not require root domain now.effector-logger/babel-plugin
is removed. It is no longer needed, just useeffector/babel-plugin
or@effector/swc-plugin
normally.import { createEvent, ... } from "effector-logger"
support is removed. Usepatronum/debug
from patronum.effector.dev instead if you need to log only some units.Vite
) instead.New features
configure
now supportslog: 'enabled'
option to forcefully log some unit that is usually omitted. It is useful to log updates of derived units which are omitted byeffector-logger
by default.Scope
logs are fully supported now, domain is not requiredname
prefix to your logs if needed. It can be useful in case if there are few instances of your app which are using different scopes.Maintenance
Old integration tests are removed. Now there is a single suit of
vitest
-based tests which is run againstdist
output of the library bundler.