v5.0.2 #18
oneadera
announced in
Announcements
v5.0.2
#18
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Add Jest + Testing Library infrastructure and a comprehensive test
suite (292 tests, 22 files) covering every exported hook and
function across all three packages.
Infrastructure:
existing per-package build/typecheck/lint convention
react-fatless-formto core's source viamoduleNameMapper, so
yarn testnever depends onyarn buildreact-native(virtual) rather than pulling in thefull RN/Metro preset, since its src/ never renders real RN
components
(devDependencies + scoped resolutions), so react-native's exact
peer requirement doesn't fragment the install into multiple
physical React copies
Coverage:
createFormContext, useField/createUseField, yupResolver (real yup
schemas), and the internal get/set/normalizePath path utilities
adaptXField function and as a full DOM round trip
Also fixes useFormSubmit's JSDoc and README examples, which showed
it called from the same component that creates FormProvider - a
pattern that throws ("useFormContext must be used within a
FormProvider") for anyone who copies it. Quick Start now uses
handleSubmit (no context requirement); the API reference documents
the correct FormProvider/child-component split.
Full Changelog: v5.0.0...v5.0.2
This discussion was created from the release v5.0.2.
All reactions