Commit Graph

26 Commits

Author SHA1 Message Date
Corbin Crutchley
160f71275f fix: Field components should now infer state.value properly
* 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
2023-09-09 03:40:29 -07:00
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
d80bcf7a96 fix: Field default should now be set properly (#445)
* fix: fields should now set default value properly

* test: add test to validate fix
2023-09-07 15:55:17 -07:00
João Pedro Magalhães
3b7f6c16ba fix(form-core): remove 500ms fallback for asyncDebounceMs
* 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>
2023-09-03 17:00:04 -07:00
Corbin Crutchley
7980336d03 feat: remove getInputProps to support React Native 2023-09-03 16:48:51 -07:00
Corbin Crutchley
4cb122551b Update store packages to match dedicated repo (#427)
* chore: update store dependency

* fix: form meta should never be undefined now

* chore: fix tests that only break on fast computers

Guess I don't need to upgrade my computer anytime soon 😅😅
2023-09-02 01:00:27 -07:00
João Pedro Magalhães
6956d5085a fix(form-core): allow set default field meta (#424)
Co-authored-by: João Pedro Magalhães <joaopsilvamagalhaes@gmail.com>
2023-08-31 15:28:25 -07:00
Corbin Crutchley
caba021599 Strictly type check field validators (#409)
* fix: strictly type validators on FieldApi

* chore: upgrade vitest to latest

* chore: rename test files to remove tsx prefix

* test(form-core): add initial type tests
2023-08-29 01:02:46 -07:00
Corbin Crutchley
0b5c94d364 fix: maximum depth exceeded should no longer occur (#408) 2023-08-28 18:27:02 -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
Tanner Linsley
be50e1421b Merge branch 'main' of https://github.com/TanStack/form 2023-08-15 14:56:28 -06:00
Tanner Linsley
d4cf03fc25 fix: getInputProps().value type 2023-08-15 14:55:15 -06:00
Corbin Crutchley
123e7a0f7e Fix defaults (#403)
* chore: inital work to migrate to Query's alpha package setup

* chore: update deps

* chore: fix build issues

* chore: disable no-children-prop rule

* fix: user input now works

* fix: useForm defaults now work as-expected
2023-07-04 21:08:03 -06:00
Brandon Bayer
a3f9709dde fix: several type and build errors and fix example type inference (#399)
* fix few type errors and fix example

* couple fixes

* fix babel
2023-06-13 15:36:42 -06:00
Tanner Linsley
bebd998a55 fix: release
RELEASE_ALL
2023-06-12 09:23:40 -06:00
Tanner Linsley
884235f211 fix: router + store 2023-05-07 23:33:39 -06:00
Tanner Linsley
7e71543383 fix: no logs 2023-05-04 12:40:15 -07:00
Tanner Linsley
62a82fe48f fix: array-field mode and utilities 2023-05-03 15:16:56 -07:00
Tanner Linsley
b274bccf3d fix: createFormFactory 2023-05-01 10:27:51 -06:00
Tanner Linsley
5b7c6ce55d fix: UserChange/InputProps 2023-04-27 13:27:20 -06:00
Tanner Linsley
ad2c53c87e fix: no log 2023-04-26 17:48:10 -06:00
Tanner Linsley
d7cb9b43dd fix: react reexports core, sync + async validation, debouncing 2023-04-26 14:57:53 -06:00
Tanner Linsley
4fc3e7ce6c checkpoint 2023-04-25 16:16:54 -06:00
Tanner Linsley
63c400737a checkpoint 2023-04-25 10:51:17 -06:00
Tanner Linsley
a4fa4f0da8 GPT that shiz 2023-04-24 23:58:54 -06:00
Tanner Linsley
9a18e45de7 big changes 2023-04-24 15:44:59 -06:00