| CARVIEW |
Navigation Menu
-
Notifications
You must be signed in to change notification settings - Fork 22
Releases: effector/logger
v0.15.0
🚀 Features
- Add support for effector 23. Dump minimal to 22.8.8 #125 (@AndreyTheWeb)
Assets 2
v0.14.1
fba24b5- Update README.md #120 (@igorkamyshev)
🐛 Bug Fixes
- fix(types): add export.types to support moduleResolution bundler #124 (@AlexandrHoroshih)
Assets 2
v0.14.0
f6e2d24Changelog
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-adapterandeffector-inspectorinstead. effector-logger/attachis removed. Use mainattachLoggerexport instead. Notice, that config shape is different and does not require root domain now.effector-logger/babel-pluginis removed. It is no longer needed, just useeffector/babel-pluginor@effector/swc-pluginnormally.import { createEvent, ... } from "effector-logger"support is removed. Usepatronum/debugfrom 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
configurenow 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-loggerby default.- effector
Scopelogs are fully supported now, domain is not required - You can provide
nameprefix 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-pluginif it was used. Useeffector/babel-pluginor@effector/swc-plugininstead. - Remove any
effector -> effector-loggerbuild-time aliases if you had used them. - Remove all
import { createEvent, createStore, ... } from "effector-logger"imports. Use imports fromeffectorinstead. In case if you need to see only specific units in the logs - usepatronum/debuginstead - Remove any
effector-logger/macroimports, if you had used them. - Remove any
effector-logger/attachimports. - Update
effectorto 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)
Assets 2
v0.13.7
Assets 2
v0.13.6
- Add readme to npmjs.com
Assets 2
v0.13.5
🧰 Maintenance
- Update inspector to 0.10.3 (@ilyaagarkov)
Assets 2
v0.13.4
ca84a47🧰 Maintenance
- feat: update inspector to 0.8.2 #76 (@ilyaagarkov)
📚 Documentation
- docs: add info about plugin options #73 (@AlexandrHoroshih)
Assets 2
v0.13.3
b46c6f3🧰 Maintenance
- feat: update inspector #74 (@AlexandrHoroshih)
Assets 2
v0.13.2
b334e24- Update inspector to latest #71 (@AlexandrHoroshih)
- Setup integration tests #67 (@AlexandrHoroshih)