Releases: albertogasparin/react-magnetic-di
Releases · albertogasparin/react-magnetic-di
v3.2.4
v3.2.3
Bug fixes
- Change
runWithDito usethen()instead offinally()to clear used injectables as that avoids unhandled errors in Jest
v3.2.2
Bug fix
- Avoid unused error
causeto be garbage collected too early
v3.2.1
- Fix default export identifier missing with recent Babel update
v3.2.0
New features
- Add ability to mock (and auto-mock) modules via
jest.mock
Improvements
- Improve runtime performance by avoiding unnecessary arrays
v3.1.4
Bug fixes
- Fix computed properties being renamed and throwing errors
v3.1.3
Bug fixes
- Handle temporal deadzone for local variables shadowing parent function by @theKashey
v3.1.2
Bugfix
- Ensure global injectables are cleaned up on render error
v3.1.0
New features
- Added
globalprop toDiProviderthat allows allusereplacements to be available during the lifetime of the provider - Added
globaloption toinjectable(dep, mock, options)that allows a replacement to be available during the lifetime of the provider
v3.0.1
Bugfix
- Fixed a bug when using Babel plugin in conjunction CommonJS babel transform, with multiple di locations not working