Releases: effector/logger
v0.15.0
🚀 Features
- Add support for effector 23. Dump minimal to 22.8.8 #125 (@AndreyTheWeb)
v0.14.1
- Update README.md #120 (@igorkamyshev)
🐛 Bug Fixes
- fix(types): add export.types to support moduleResolution bundler #124 (@AlexandrHoroshih)
v0.14.0
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
and effector-inspector
instead.
BREAKING CHANGES
- Redux DevTools support and effector-inspector integrations are removed. Use
@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.- 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 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.- 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.
Migration guide
- Remove
effector-logger/babel-plugin
if it was used. Useeffector/babel-plugin
or@effector/swc-plugin
instead. - Remove any
effector -> effector-logger
build-time aliases if you had used them. - Remove all
import { createEvent, createStore, ... } from "effector-logger"
imports. Use imports fromeffector
instead. In case if you need to see only specific units in the logs - usepatronum/debug
instead - Remove any
effector-logger/macro
imports, if you had used them. - Remove any
effector-logger/attach
imports. - Update
effector
to version22.8.3
Redux DevTools
If you have used effector-logger
for Redux DevTools integration - use @effector/redux-devtools-adapter
instead.
Inspector
If you have used effector-logger
for effector-inspector
integration - use effector-inspector
directly.
Logger
Just add import { attachLogger } from "effector-logger"
at the top of your app's entrypoint module and call attachLogger()
(or attachLogger({ scope })
if your app uses scope) somewhere in the entrypoint module.
See updated README.md
for details.
Pull-requests
🚀 Features
- Use Inspect-API instead of root domain setup #119 (@AlexandrHoroshih)
📚 Documentation
- Use Inspect-API instead of root domain setup #119 (@AlexandrHoroshih)
- Fix typos and improve code highlighting on README.md #118 (@terechshenkov)
v0.13.7
v0.13.6
- Add readme to npmjs.com
v0.13.5
🧰 Maintenance
- Update inspector to 0.10.3 (@ilyaagarkov)
v0.13.4
🧰 Maintenance
- feat: update inspector to 0.8.2 #76 (@ilyaagarkov)
📚 Documentation
- docs: add info about plugin options #73 (@AlexandrHoroshih)
v0.13.3
🧰 Maintenance
- feat: update inspector #74 (@AlexandrHoroshih)
v0.13.2
- Update inspector to latest #71 (@AlexandrHoroshih)
- Setup integration tests #67 (@AlexandrHoroshih)