Skip to content

Releases: effector/logger

v0.15.0

Choose a tag to compare

@github-actions github-actions released this 29 Nov 13:29

🚀 Features

v0.14.1

Choose a tag to compare

@github-actions github-actions released this 28 Sep 17:03
fba24b5

🐛 Bug Fixes

v0.14.0

Choose a tag to compare

@github-actions github-actions released this 06 May 11:04
f6e2d24

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 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.

Migration guide

  1. Remove effector-logger/babel-plugin if it was used. Use effector/babel-plugin or @effector/swc-plugin instead.
  2. Remove any effector -> effector-logger build-time aliases if you had used them.
  3. Remove all import { createEvent, createStore, ... } from "effector-logger" imports. Use imports from effector instead. In case if you need to see only specific units in the logs - use patronum/debug instead
  4. Remove any effector-logger/macro imports, if you had used them.
  5. Remove any effector-logger/attach imports.
  6. Update effector to version 22.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

📚 Documentation

v0.13.7

Choose a tag to compare

@github-actions github-actions released this 28 Feb 09:47

📚 Documentation

🐛 Bug Fixes

  • Fixed issue with not exported types (#115)

v0.13.6

Choose a tag to compare

@github-actions github-actions released this 21 Dec 14:16
  • Add readme to npmjs.com

v0.13.5

Choose a tag to compare

@sergeysova sergeysova released this 21 Dec 14:11

🧰 Maintenance

v0.13.4

Choose a tag to compare

@github-actions github-actions released this 03 Feb 18:25
ca84a47

🧰 Maintenance

📚 Documentation

v0.13.3

Choose a tag to compare

@github-actions github-actions released this 22 Jan 10:22
b46c6f3

🧰 Maintenance

v0.13.2

Choose a tag to compare

@github-actions github-actions released this 22 Jan 08:53
b334e24

v0.13.1

Choose a tag to compare

@github-actions github-actions released this 21 Oct 14:25

What's Changed

New Contributors

Full Changelog: v0.13.0...v0.13.1