* Add basic tests for arrays
* Ran prettier
* Ran prettier
* Add new test for bug
* Fix bug regarding preserved values even if field is umounted
* Run prettier
* Update store subscription when removingFields
* Fix delete field
* Fix delete field
* chore: fix linting
---------
Co-authored-by: Corbin Crutchley <git@crutchcorn.dev>
* initial attempt to add back form validation
* uncomment tests
* fixed form validation not running
* onChange + onBlur
* feat: mount method on FormApi
* fix solid-form test case
* fix checkLatest
* add onMount logic + test
* fix: run mount on proper API
* test: add React Form onChange validation tests
---------
Co-authored-by: aadito123 <aaditolkar123@gmail.com>
Co-authored-by: aadito123 <63646058+aadito123@users.noreply.github.com>
* Add basic tests for arrays
* Ran prettier
* Ran prettier
* Add new test for bug
* Fix bug regarding preserved values even if field is umounted
* Run prettier
* Update store subscription when removingFields
* Add basic tests for arrays
* Ran prettier
* Ran prettier
* Add new test for bug
* Fix bug regarding preserved values even if field is umounted
* Run prettier
* feat: add preserve value to field API
* removed conflict
* add test for core/fieldAPI
* add test for react/fieldAPI
* chore: fix TS usage and format
---------
Co-authored-by: Corbin Crutchley <git@crutchcorn.dev>
* chore: refactor TS typings for React
* fix: field should now infer state.value properly in React adapter
* chore: fix Vue package typings
* chore: fix linting
* chore: fix React adapter
* chore: improve performance of TData type in FieldApi
* chore: add back index and parent type
* chore: add Vue TSC dep on Vue example
* chore: fix lint and type test
* chore: update Vite stuff
* chore: add implicit dep for Vue and React examples
* chore: add type test pre-req
* chore: install deps from examples in PR CI
* chore: remove filter from more installation
* feature(FieldAPI): Change from touched error message and error message to error map and array of errors
BREAKING CHANGE: The touched Error and error field has been removed will be replaced with touched errors array and errors map.
* feat: update documentation for updated fields
* chore: update Vue adapter as well
* fix: update getErrorMapKey to return onChange when change is the validation cause
* chore: remove console.log
---------
Co-authored-by: Corbin Crutchley <git@crutchcorn.dev>
* fix: memoize all non-function form props by default
* chore: migrate useStableFormOpts to useMemo
* fix: options passed to useField will not always cause a re-render
* chore: minor code cleanups
* test: add previously failing test to demonstrate fix
* chore: fix linting
* fix: running form.update repeatedly should not wipe form state
* test: add test to validate formapi update behavior
* test: add initial tests for useStableOptions
* chore: remove useStableOpts and useFormCallback
* test(form-core): add async validation tests
* chore(form-core): remove old asyncDebounceMs api
* Revert "chore(form-core): remove old asyncDebounceMs api"
This reverts commit cd7dbc11ec3acdc529d77df10dc1f990f8a7bfcf.
* fix(form-core): make sure to fallback to asyncDebounceMs
* chore(form-core): remove 500ms fallback
---------
Co-authored-by: João Pedro Magalhães <joaopsilvamagalhaes@gmail.com>