Releases: effector/reflect
v10.0.2
🐛 Bug Fixes
- fix: do not spawn additional stores inside variant #98 (@AlexandrHoroshih)
v10.0.1
- fix(types): relax variant behavior on incompatible props #97 (@AlexandrHoroshih)
variant blocking on "incompatible props" use-case is bad for DX and it only protects against bad spreads, which are react anti-pattern anyway
In this patch-release behavior is changed to favor union of possible props as a resulting type for variant
v10.0.0
TypeScript fixes
- Allow to bind
EventCallable<void>to an optional callback #92 (@kireevmp) - Fix Mantine UI (which has kinda weird polymorphic component types) compatibilty #93 (@AlexandrHoroshih)
- Support React 19 (React 18 is still supported also) #96 (@AlexandrHoroshih)
Breaking changes
- Remove
.prependusage and recommendations from docs and type-tests #94 (@AlexandrHoroshih)
Mantine UI support resulted in breaking Effector's event.prepend type inference support, so for case like that
const ReflectedInput = reflect({
view: Input,
bind: {
onChange: changed.prepend(event => event.target.value),
}
})the event type will not be inferred and will fallback to unknown.
To fix that just use plain callback instead:
const ReflectedInput = reflect({
view: Input,
bind: {
onChange: (event) => changed(event.target.value)
}
})☝️ In this case event type will be inferred correctly
v9.2.0
🚀 Features
- feat(reflect/hooks): pass component props to
mountedhook #89 (@evist0) - Fix final props type inference #87 (@AlexandrHoroshih)
v9.1.1
🐛 Bug Fixes
- Fix type inference for function props and store value #84 (@AlexandrHoroshih)
v9.1.0
🚀 Features
- improvement: bind hooks' callbacks to a scope #82 (@iposokhin)
🐛 Bug Fixes
- Fix variant type inference #83 (@AlexandrHoroshih)
v9.0.0
Reflect 9.0 #80 (@AlexandrHoroshih)
⚠️ Breaking changes
/ssrexport is removed and/scopeis deprecated - do not use those for SSR anymore, use the main export.- New minimal peer deps verisons:
[email protected]and[email protected]
🚀 Features
fromTag- Arbitary callbacks are fully supported in
bind, even if you use the Fork API of Effector - All operators now have
useUnitConfig- this object will be directly passed to the underlyinguseUnit(hook fromeffector-reactcalls). Useful in case you need toforceScopefor some reason.
v8.4.0
🚀 Features
This release allows usage of Reflect with Effector 23, but is not yet introducing advanced types support, so Effector 22 is still allowed too
Full-featured support of Effector 23 will come a bit later.
- Allow effector 23 #78 (@AlexandrHoroshih)
v8.3.3
🐛 Bug Fixes
- [Fix]: Add types field #75 (@AlexandrHoroshih)