Skip to content

Releases: oneadera/react-fatless-form

v5.1.1

Choose a tag to compare

@oneadera oneadera released this 03 Aug 10:13

Full Changelog: v5.0.4...v5.1.1

v5.0.4

Choose a tag to compare

@oneadera oneadera released this 28 Jul 12:29

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, and eslint-plugin-react-hooks.
  • Added lint scripts to workspace packages.

Full Changelog: v5.0.3...v5.0.4

v5.0.3

Choose a tag to compare

@oneadera oneadera released this 28 Jul 04:01

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

Choose a tag to compare

@oneadera oneadera released this 16 Jul 10:57

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-form to core's source via
    moduleNameMapper, so yarn test never depends on yarn 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

Choose a tag to compare

@oneadera oneadera released this 11 Jul 15:30

What's Changed

v5 is a ground-up rewrite requiring updates to existing implementations:

  • The Input component (and built-in date/time/file pickers) has been removed. You must now bring your own UI components.
  • FeedbackManager and FeedbackContainer are removed. UI feedback should now be handled via onSuccess and onError callbacks.
  • validateSchema is completely removed (previously deprecated).
  • handleSubmit signature changed: positional arguments are replaced by a single config object { onSuccess, onError, resetOnSuccess }.
  • Platform specific packages (react-fatless-form-web or react-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

Choose a tag to compare

@oneadera oneadera released this 11 Aug 11:35

Full Changelog: v3.2.3...v4.0.0

v3.2.3

Choose a tag to compare

@oneadera oneadera released this 28 Jul 04:23

Full Changelog: v3.2.2...v3.2.3

v3.2.2

Choose a tag to compare

@oneadera oneadera released this 23 Jul 13:36

Full Changelog: v3.2.1...v3.2.2

v3.2.1

Choose a tag to compare

@oneadera oneadera released this 23 Jul 05:58

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

v3.1.3

Choose a tag to compare

@oneadera oneadera released this 15 Jul 06:43

Full Changelog: v3.1.0...v3.1.3