Commit Graph

62 Commits

Author SHA1 Message Date
Tanner Linsley
0159e61103 release: v0.3.6 2023-09-14 15:08:50 +00:00
Tanner Linsley
638a3917c5 fix: remove _TData abstraction (#465)
* fix: remove _TData abstraction

* tests: fix
2023-09-14 09:07:42 -06:00
Tanner Linsley
9e5fef402e release: v0.3.5 2023-09-13 20:48:04 +00:00
Tanner Linsley
1fb28c53eb fix: refactor to flat generics with consistent names & patterns 2023-09-13 14:46:16 -06:00
Tanner Linsley
658c8f8c6c release: v0.3.4 2023-09-09 11:05:16 +00:00
Tanner Linsley
192ffceca7 release: v0.3.3 2023-09-09 10:42:22 +00:00
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
Tanner Linsley
b5a768f182 release: v0.3.2 2023-09-09 07:27:24 +00:00
Tanner Linsley
826c58d5c2 release: v0.3.1 2023-09-09 06:44:30 +00:00
Corbin Crutchley
4790982c64 fix: migrate to use CI/CD system that router uses (#455) 2023-09-08 23:32:09 -07:00
Tanner Linsley
2842420a17 release: v0.3.0 2023-09-08 21:45:09 +00: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
Tanner Linsley
39d6c3c44b release: v0.2.1 2023-09-08 03:05:10 +00:00
Corbin Crutchley
e3e60ccd41 fix: bundler errors in React and Vue adapters should now be resolved (#447)
* fix: bundler errors in React and Vue adapters should now be resolved

* chore: replace use-isomorphic-layout-effect with dep for RN support
2023-09-07 20:03:11 -07:00
Tanner Linsley
57c9f5fa7c release: v0.2.0 2023-09-08 00:56:08 +00:00
Corbin Crutchley
15d4af9570 chore: migrate to TSUp (#446)
* chore: migrate to TSUp

* chore: fix build
2023-09-07 17:54:16 -07:00
Tanner Linsley
d6da133a29 release: v0.1.3 2023-09-07 22:56:33 +00:00
Tanner Linsley
6ffa574a66 release: v0.1.2 2023-09-07 02:35:32 +00:00
Corbin Crutchley
6f76feee6b fix: onSubmit should now behave as expected
* 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
2023-09-06 19:33:52 -07:00
Tanner Linsley
9424ed94f8 release: v0.1.1 2023-09-04 00:01:18 +00:00
Tanner Linsley
de22b6c38a release: v0.1.0 2023-09-03 23:50:16 +00:00
Corbin Crutchley
7980336d03 feat: remove getInputProps to support React Native 2023-09-03 16:48:51 -07:00
Corbin Crutchley
2a31bd8219 feat: remove getFormProps to support React Native 2023-09-03 16:48:51 -07:00
Tanner Linsley
48e7825686 release: v0.0.15 2023-09-02 14:47:13 +00:00
Gabriel Tavares
6eca66ee0b refactor: change form options spread to object assign (#421)
Co-authored-by: Corbin Crutchley <git@crutchcorn.dev>
2023-09-02 07:45:47 -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
09edc1fc1a test(react-form): add on change validation tests (#425)
Co-authored-by: João Pedro Magalhães <joaopsilvamagalhaes@gmail.com>
2023-09-02 00:35:41 -07:00
Tanner Linsley
c6b246de9e release: v0.0.14 2023-08-31 22:29:44 +00:00
Tanner Linsley
dc8d88bb7c release: v0.0.13 2023-08-31 20:52:17 +00:00
Gabriel Tavares
d8ff96087d fix: cannot update a component/bad setState (#420)
* fix: cannot update a component/bad setState

* fix: add dep useEffect in useForm

* fix: add missing deps in useForm
2023-08-31 13:50:49 -07:00
Tanner Linsley
8a2f755417 release: v0.0.12 2023-08-29 08:29:14 +00: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
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
Corbin Crutchley
74ac9f4b9c Update build tooling (#401)
* chore: inital work to migrate to Query's alpha package setup

* chore: update deps

* chore: fix build issues

* chore: disable no-children-prop rule
2023-07-04 21:06:03 -06:00
Tanner Linsley
9beacc44a0 release: v0.0.11 2023-06-13 21:38:41 +00: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
ee4cc3f51f release: v0.0.10 2023-05-04 23:07:20 +00:00
Tanner Linsley
ca8f244b5e fix: form.Provider 2023-05-04 16:05:36 -07:00
Tanner Linsley
07ddd2c2d6 Merge branch 'main' of https://github.com/TanStack/form 2023-05-04 15:39:17 -07:00
Tanner Linsley
b37628d337 fix: remove form.Form for headless form.getFormProps() 2023-05-04 15:39:15 -07:00
Tanner Linsley
7526403730 release: v0.0.9 2023-05-04 19:45:27 +00:00
Tanner Linsley
2ae8db4a1c release: v0.0.8 2023-05-04 19:34:37 +00:00
Tanner Linsley
6d75eba15a fix: update form props on render 2023-05-04 12:22:31 -07:00
Tanner Linsley
62a82fe48f fix: array-field mode and utilities 2023-05-03 15:16:56 -07:00
Tanner Linsley
ab651b4c2b release: v0.0.7 2023-05-01 18:24:18 +00:00
Tanner Linsley
39555fc8a2 release: v0.0.6 2023-05-01 18:00:45 +00:00
Tanner Linsley
f05ab79ef6 fix: Cross-platform FormSubmitEvent via Register 2023-05-01 11:58:55 -06:00
Tanner Linsley
c444704ae3 fix: complete form factory functionality, docs 2023-05-01 10:59:37 -06:00