Commit Graph

25 Commits

Author SHA1 Message Date
Aadit Olkar
31f6261208 feat: valibot form adapter (#499)
* feat: mount method on FormApi

* fix solid-form test case

* fix: added form.mount() to tests

* feat: valibot-form-adapter

* chore: add missing config items

* docs: add Valibot React example

* docs: add Solid Valibot example

* docs: add valibot Vue example

* fix: valibot async adapter now works

* docs: add docs for valibot adapter

---------

Co-authored-by: Corbin Crutchley <git@crutchcorn.dev>
2023-11-05 06:27:45 -08:00
Tanner Linsley
90bd06ff56 release: v0.8.1 2023-11-05 14:02:10 +00:00
Tanner Linsley
0982e3fe6c release: v0.8.0 2023-11-05 13:16:34 +00:00
Tanner Linsley
5d3f0fd946 release: v0.7.2 2023-11-05 11:40:02 +00:00
Tanner Linsley
fd19453188 release: v0.7.1 2023-11-03 19:35:09 +00:00
Tanner Linsley
665894708c release: v0.7.0 2023-11-01 02:25:38 +00:00
Tanner Linsley
84e257f310 release: v0.6.1 2023-10-30 07:48:01 +00:00
Tanner Linsley
bde212f23b release: v0.6.0 2023-10-30 07:20:15 +00:00
Tanner Linsley
1b394a7e72 release: v0.5.0 2023-10-30 06:03:37 +00:00
Tanner Linsley
d739f2a064 release: v0.4.1 2023-10-18 09:36:20 +00:00
Tanner Linsley
280a3bf96b release: v0.4.0 2023-10-18 09:23:40 +00:00
Corbin Crutchley
54652ee674 feat: Add Yup and Zod validator support (#462)
* chore: first pass

* chore: onto something I think

* chore: closer but no cigar

* chore: infer validator

* chore: infer zod

* feat: add validation transformer logic

* chore: fix typings for react adapter

* chore: fix issue with `this` not being defined properly

* chore: mostly update FieldInfo types from Vue

* chore: work on fixing type inferencing

* fix: make ValidatorType optional

* chore: make TName restriction easier to grok

* chore: fix React types

* chore: fix Vue types

* chore: fix typing issues

* chore: fix various linting items

* chore: fix ESlint and validation logic

* chore: fix inferencing from formdata

* chore: fix form inferencing

* chore: fix React TS types to match form validator logic

* chore: fix Vue types

* chore: migrate zod validation to dedicated package

* chore: add first integration test for zod adapter

* chore: enable non-validator types to be passed to validator

* feat: add yup 1.x adapter

* chore: add functionality and tests for form-wide validators

* chore: fix typings of async validation types

* fix: async validation should now run as-expected more often

* chore: add async tests for Yup validator

* chore: rename packages to match naming schema better

* chore: add Zod examples for React and Vue

* chore: add React and Vue Yup support

* chore: fix formatting

* chore: fix CI types

* chore: initial work to drastically improve docs

* docs: improve docs for validation

* docs: add adapter validation docs
2023-10-18 02:22:05 -07:00
Tanner Linsley
a721443870 release: v0.3.7 2023-10-17 11:56:39 +00:00
Tanner Linsley
0159e61103 release: v0.3.6 2023-09-14 15:08:50 +00:00
Tanner Linsley
9e5fef402e release: v0.3.5 2023-09-13 20:48:04 +00: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
Corbin Crutchley
707ff5d603 chore: fix errrors in examples, remove unneeded CI steps (#457) 2023-09-09 00:04:42 -07:00
Tanner Linsley
826c58d5c2 release: v0.3.1 2023-09-09 06:44:30 +00:00
Robert Soriano
6935b330fa feat(vue): field is now destructured from Field. TypeScript types are much more strict now
* fix(vue): Subscribe component default scoped slot types

* fix(vue): Field component default scoped slot value types

* example type fixes

* remove test log

* docs(vue): Field component slot fix

* refactor(vue): remove unused children property type from field component

* chore: fix formatting

---------

Co-authored-by: Corbin Crutchley <git@crutchcorn.dev>
2023-09-08 14:41:54 -07:00
Corbin Crutchley
f6bb80ef93 chore: bump package version (#450) 2023-09-07 20:19:27 -07: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
Corbin Crutchley
081a22896e feat: Add Vue adapter (#416)
* chore: initial work at scaffolding Vue package

* chore: initial work on adding in useField and useForm API

* chore: fix build for Vue package

* chore: migrate to slots for functional comps

* chore: got initial fields rendering

* chore: add component names for debuggability

* chore: fix error regarding passdown props

* chore: fix Promise constructor error in demo

* chore: initial work at writing vue store implementation

* feat: add initial useStore and Subscribe instances

* fix: state is now passed as a dedicated reactive option

* chore: temporarily remove Vue 2 typechecking

* chore: make Provider and selector optional

* chore: add createFormFactory

* chore: attempt 1 of test - JSX

* chore: attempt 2 of test - Vue JSX

* chore: attempt 3 of test - H

* chore: migrate to proper h function

* chore: fix tests by bumping package

* chore: fix JSX typings

* chore: add another test for useForm

* chore: listen for fieldAPIs to update

* fix: fields should now update during mount

* chore: add test for useField in Vue

* test: add useField Vue tests

* docs: add early docs for Vue package
2023-09-07 17:20:35 -07:00