Commit Graph

7 Commits

Author SHA1 Message Date
Ray Liu
c2f9957046 feat(form-core): Change from touched error message and error message to error map and array of errors (#442)
* 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>
2023-09-08 11:14:54 -07:00
Corbin Crutchley
7ee5524693 fix: Initial FieldAPI tests, made FieldAPI typings much more strict (#405)
* fix: initial work at fixing the typescript typings for fieldapi to be more strict

* chore(form-core): change implementation of strict tdata

* fix(form-core): insertValue should now be typed properly

* test(form-core): validate array helpers

* fix(form-core): make types for getSubField more narrow

* chore: autoformat with prettier

* chore: fix tests, eslint

* chore: upgrade eslint deps

* chore: upgrade nx and concurrent

* chore: remove svelte from prettier plugins

* chore: upgrade TypeScript version to avoid a TS codegen bug

* chore: remove React 17 CI script temporarily

* chore: fix build and formatter
2023-08-28 08:33:44 -06:00
Corbin Crutchley
25237e40d4 fix: Fix minor FormApi bugs and add initial form API tests (#404)
* test(form-core): add initial form api tests

* fix: behavior of FormApi.update works more reliably

* chore: migrate from spread operator to object assign

* fix: reset form should handle option values as expected now

* fix(form-core): pushFieldValue and insertFieldValue should now have the correct typings

* fix(form-core): swapFieldValues should not throw an error anymore
2023-08-27 21:51:20 -06:00
Tanner Linsley
379f34361c fix: tests 2023-05-04 12:32:45 -07:00
Tanner Linsley
62a82fe48f fix: array-field mode and utilities 2023-05-03 15:16:56 -07:00
Tanner Linsley
b347c9773f fix: smaller utils 2023-05-01 12:21:00 -06:00
Tanner Linsley
9a18e45de7 big changes 2023-04-24 15:44:59 -06:00