Skip to content

Releases: albertogasparin/react-magnetic-di

v2.3.1

12 May 01:25
Compare
Choose a tag to compare

Bugfix

  • fix ESLint rule to support self referencing React components

v2.3.0

12 May 01:23
Compare
Choose a tag to compare

New features

  • runWithDi allows to use di in any function, and supports both sync and async code
  • stats enables verification of unused injectables, helping maintaining the codebase healthier

v2.2.13

17 Jan 05:05
Compare
Choose a tag to compare
  • Add support for di injection under react-test-renderer
  • Tweak injectable types to support exact type overload

v2.2.11

17 Nov 23:54
Compare
Choose a tag to compare

What's Changed

  • Explicit React 18 support

v2.2.10

07 Oct 00:04
Compare
Choose a tag to compare
  • Relax Typescript injectable type to allow components and partial mocks being returned

v2.2.7

14 Jan 02:54
Compare
Choose a tag to compare
  • Fix ESLint exhaustive-inject rule error when react was not in scope
  • Fix prop-types warning when injectable uses forwardRef
  • Updated peerDependencies ranges to fix React 17 install warning

v2.2.6

17 Aug 02:32
Compare
Choose a tag to compare

Bug fixes

  • fix injectable Flow type wrongly merging type defs, ensuring return value is type safe now

v2.2.5

10 Aug 08:57
Compare
Choose a tag to compare

Bug Fixes

  • Fix ESLint exhaustive-inject injecting variables defined not in module scope

v2.2.4

07 Aug 02:38
Compare
Choose a tag to compare

Bug fixes

  • Ensure that di statement is replaced instead of inserted at the top of scope block

v2.2.3

24 Jul 04:51
Compare
Choose a tag to compare

Bug fixes

  • Ensure withDi does not set displayName if wrapped component does not have displayName