Skip to content

Releases: albertogasparin/react-magnetic-di

v3.2.4

14 Nov 03:25

Choose a tag to compare

  • Fix conflict with babel variable renaming and React compiler

v3.2.3

30 Jun 04:02

Choose a tag to compare

Bug fixes

  • Change runWithDi to use then() instead of finally() to clear used injectables as that avoids unhandled errors in Jest

v3.2.2

19 Jun 00:54

Choose a tag to compare

Bug fix

  • Avoid unused error cause to be garbage collected too early

v3.2.1

30 May 05:08

Choose a tag to compare

  • Fix default export identifier missing with recent Babel update

v3.2.0

29 Nov 00:14

Choose a tag to compare

New features

  • Add ability to mock (and auto-mock) modules via jest.mock

Improvements

  • Improve runtime performance by avoiding unnecessary arrays

v3.1.4

20 Aug 03:43

Choose a tag to compare

Bug fixes

  • Fix computed properties being renamed and throwing errors

v3.1.3

05 Aug 05:45

Choose a tag to compare

Bug fixes

  • Handle temporal deadzone for local variables shadowing parent function by @theKashey

v3.1.2

05 Jan 05:00

Choose a tag to compare

Bugfix

  • Ensure global injectables are cleaned up on render error

v3.1.0

15 Dec 04:24

Choose a tag to compare

New features

  • Added global prop to DiProvider that allows all use replacements to be available during the lifetime of the provider
  • Added global option to injectable(dep, mock, options) that allows a replacement to be available during the lifetime of the provider

v3.0.1

12 Sep 04:12

Choose a tag to compare

Bugfix

  • Fixed a bug when using Babel plugin in conjunction CommonJS babel transform, with multiple di locations not working