Releases: oneadera/react-fatless-form
Release list
v5.1.1
v5.0.4
fix: stop conflating typecheck's needs with the build's
Reverts the previous paths/baseUrl addition to tsconfig.json in both
packages/web and packages/native - it broke typecheck rather than
fixing it. rootDir is enforced against the FULL expanded program
(everything reached transitively through an import), not just what
include lists, so pairing an explicit rootDir with a paths entry
that pulls in core's source fails with TS6059 the moment core's own
internal imports are walked.
Add tsconfig.typecheck.json per package instead - extends the base
config directly, no rootDir, holds the paths redirect. typecheck
scripts now point at it explicitly. Also corrects both jest.config.cjs
comments.
chore(lint): configure ESLint flat config for monorepo packages
- Added ESLint 9 flat configuration (
eslint.config.mjs) with React and TypeScript support. - Installed
@eslint/js,typescript-eslint,eslint-plugin-react, andeslint-plugin-react-hooks. - Added lint scripts to workspace packages.
Full Changelog: v5.0.3...v5.0.4
v5.0.3
ci: add CI workflow and per-package API docs generation
CI (.github/workflows/ci.yml): typecheck, typecheck:examples, lint,
test, and build on every push/PR to main, matrixed across Node 22.x
(current Maintenance LTS) and 24.x (current Active LTS), with
fail-fast disabled so a real failure on one version can't be masked
by a cancellation on another. Yarn cache enabled in setup-node, keyed
off the existing committed yarn.lock.
Docs: typedoc.json + a docs script added to packages/core, web, and
native, each generating a standalone API reference from that
package's own JSDoc. A root-level docs script fans out to all three
via the existing yarn workspaces foreach pattern, matching build/
typecheck/lint/test. typedoc pinned to ^0.27.0 at the root, alongside
the rest of the shared toolchain - its peer range covers TypeScript
5.0-5.8, matching this repo's existing ^5.4.0 pin.
Also: root README gets a short "Development" section documenting all
root scripts, and docs/ output is gitignored in each package
alongside dist/.
Full Changelog: v5.0.2...v5.0.3
v5.0.2
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:
- Per-package jest.config.cjs + babel.config.cjs, mirroring the
existing per-package build/typecheck/lint convention - web/native tests resolve
react-fatless-formto core's source via
moduleNameMapper, soyarn testnever depends onyarn build - native mocks
react-native(virtual) rather than pulling in the
full RN/Metro preset, since its src/ never renders real RN
components - Pin react/react-dom to 18.2.0 across root, core, and native
(devDependencies + scoped resolutions), so react-native's exact
peer requirement doesn't fragment the install into multiple
physical React copies
Coverage:
- core: useForm, handleSubmit, FormProvider/useFormContext,
createFormContext, useField/createUseField, yupResolver (real yup
schemas), and the internal get/set/normalizePath path utilities - web: all 7 field hooks + useFormSubmit, each tested as a pure
adaptXField function and as a full DOM round trip - native: useTextField, useSwitchField, useNumberField, useFormSubmit
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
v5.0.0
What's Changed
v5 is a ground-up rewrite requiring updates to existing implementations:
- The
Inputcomponent (and built-in date/time/file pickers) has been removed. You must now bring your own UI components. FeedbackManagerandFeedbackContainerare removed. UI feedback should now be handled viaonSuccessandonErrorcallbacks.validateSchemais completely removed (previously deprecated).handleSubmitsignature changed: positional arguments are replaced by a single config object{ onSuccess, onError, resetOnSuccess }.- Platform specific packages (
react-fatless-form-weborreact-fatless-form-native) must now be installed instead of importing directly from a single core package.
Full Changelog: v4.0.0...v5.0.0
v4.0.0
v3.2.3
v3.2.2
v3.2.1
What's Changed
- chore(deps): bump form-data from 3.0.2 to 3.0.4 by @dependabot[bot] in #6
Full Changelog: v3.1.3...v3.2.1