Releases: albertogasparin/react-magnetic-di
Releases · albertogasparin/react-magnetic-di
v2.3.1
Bugfix
- fix ESLint rule to support self referencing React components
v2.3.0
New features
runWithDi
allows to usedi
in any function, and supports both sync and async codestats
enables verification of unused injectables, helping maintaining the codebase healthier
v2.2.13
- Add support for
di
injection underreact-test-renderer
- Tweak injectable types to support exact type overload
v2.2.11
What's Changed
- Explicit React 18 support
v2.2.10
- Relax Typescript
injectable
type to allow components and partial mocks being returned
v2.2.7
- Fix ESLint
exhaustive-inject
rule error whenreact
was not in scope - Fix
prop-types
warning when injectable usesforwardRef
- Updated peerDependencies ranges to fix React 17 install warning
v2.2.6
Bug fixes
- fix
injectable
Flow type wrongly merging type defs, ensuring return value is type safe now
v2.2.5
Bug Fixes
- Fix ESLint
exhaustive-inject
injecting variables defined not in module scope
v2.2.4
Bug fixes
- Ensure that
di
statement is replaced instead of inserted at the top of scope block
v2.2.3
Bug fixes
- Ensure
withDi
does not setdisplayName
if wrapped component does not havedisplayName