Skip to content

v2.1.0

Compare
Choose a tag to compare
@albertogasparin albertogasparin released this 04 Jul 00:59

New features

  • Support babel-plugin-macros by using react-magnetic-di/macro as entry point for everything
  • Eslint rules are now available to help with common mistakes
  • Automatically add displayName to withDi HOC components
  • New method injectable that replaces mock as more semantically correct

Bug fixes

  • When multiple injectables of same dependency are passed in, last one in the array (or closer provider) wins
  • Fixed withDi types

Deprecated APIs

  • mock and di.mock are now deprecated and replaced by injectable (just a rename)