0
Fork 0
mirror of https://github.com/TanStack/form.git synced 2026-11-18 07:36:42 +00:00
Commit graph

39 commits

Author SHA1 Message Date
Irfan fandi
77d68150e4
docs: fix sidebar 404s and validate config.json nav targets (#2278)
* docs(config): remove nav entries pointing at non-existent reference pages

Six sidebar entries in docs/config.json referenced reference pages that do
not exist, so each rendered as a 404.

FieldMeta, FieldState and FieldInfo lost their generated pages in 6a73479f
without config.json being updated to match. useTransform is not exported
from @tanstack/react-form, and vue/solid never had UseField/CreateField
types. Repoint the FieldMeta entry to AnyFieldMeta, the surviving public
field-metadata type, and drop the rest.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017z89Nb8dzFPu7VnsvN2VA9

* chore(scripts): verify docs/config.json nav targets in verify-links

verify-links only extracted links written inside .md files, so sidebar
entries in docs/config.json were never checked and could point at pages
that no longer exist without failing CI.

Walk every `to` in the nav config and resolve it the same way markdown
links are resolved, including the framework examples directory mapping.
Failures report the nav breadcrumb so the offending entry is easy to
locate. The shared resolution logic is extracted into resolveDocTarget so
the two checks cannot drift apart.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017z89Nb8dzFPu7VnsvN2VA9

* fix(scripts): fail verify-links when the check itself throws

The rejection handler only logged, so Node still exited 0. Reading or
parsing docs/config.json can now throw, which meant test:docs could pass
while the navigation check never ran.

Confirmed by pointing the script at malformed and missing config files:
both exited 0 before this change and exit 1 after.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017z89Nb8dzFPu7VnsvN2VA9

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-08 14:57:49 -07:00
Corbin Crutchley
f584b074a7
Preact integration (#2148)
* Add preact integration for tanstack form

* ci: apply automated fixes and generate docs

* Remove accidental reference to compat

* Remove use clien

* onInput for test parity

* Add docs

* Remove useUUid

* ci: apply automated fixes and generate docs

* Add example

* Fix

* chore: remove CHANGELOG

* chore: update version

* ci: apply automated fixes and generate docs

* Create compat bridge for outdated form-core store

* Apply suggestion from @JoviDeCroock

* chore: add changeset

* chore: update version number

---------

Co-authored-by: Jovi De Croock <decroockjovi@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-08 13:32:14 -04:00
Lachlan Collins
ffa4fb8b9d
docs: correct local relative links (#1906)
* docs: correct local relative links

* String
2025-12-05 22:39:01 +11:00
Lachlan Collins
ae5d57275b
ci: remove @tanstack/publish-config (#1881)
* ci: remove @tanstack/publish-config

* Update docs

* Fix links

* Fix workflow

* Use prettier experimental cli

* Add back test command
2025-11-29 19:26:37 +11:00
Lachlan Collins
4a2bcfcb2a
chore(typescript): use moduleResolution bundler (#1756)
chore: try moduleResolution bundler
2025-09-22 21:11:46 +09:00
Lachlan Collins
dba5d70380
chore: update workspace config (#1755)
* chore: update workspace config

* Remove publish.ts script
2025-09-22 17:15:21 +09:00
Lachlan Collins
5dd89f5b09
chore: sync repo config (#1635)
* chore: sync repo config

* Update templates

* Fix link

* Fix links
2025-07-26 19:27:33 +10:00
Tanner Linsley
901180274c docs: fix links
commit 770f8e909c
Author: Tanner Linsley <tannerlinsley@gmail.com>
Date:   Sat May 24 00:13:23 2025 -0600

    docs: fix relative links
2025-05-24 00:48:09 -06:00
Lachlan Collins
4ac93883e3
ci(publish): add missing Svelte config (#1429)
ci(publish): add missing svelte config
2025-04-18 09:57:19 +10:00
Corbin Crutchley
d3d1f8e52c
chore: fix publishing (#1162) 2025-02-21 03:13:21 -08:00
Lachlan Collins
bde3b1cb3d
docs(typedoc): Use generateReferenceDocs function (#872)
* docs(typedoc): Use `generateReferenceDocs` function

* Simplify publish.js
2024-07-19 21:22:50 +10:00
Lachlan Collins
6fe229b574
docs(typedoc): Update output filename (#871)
* docs(typedoc): Update output filename

* Update config.json
2024-07-19 19:52:38 +10:00
Lachlan Collins
a6313b7699
ci: Add autofix.yml (#870) 2024-07-19 19:25:28 +10:00
Lachlan Collins
bbf9f468f0
docs(typedoc): Add frontmatter (#866)
* docs(typedoc): Add frontmatter

* Update knip.json
2024-07-18 15:42:41 +10:00
Lachlan Collins
de062c3da1
docs: Update typedoc (#865) 2024-07-18 12:26:41 +10:00
Corbin Crutchley
33eacda3e6
docs: typedoc generation
* docs: initial work on implementing typedoc

* docs: migrate to use formApi reference typedoc comments

* chore: document FieldAPI from docs

* chore: remove prefix to showcase file types

* chore: migrate reference docs to take multiple paths

* chore: add external and cleanup

* chore: add lit and cleanup rm usage

* chore: add manual docs to ts files themselves

* chore: add React to reference docs

* chore: add solid and vue code samples

* chore: fix typedoc generations
2024-06-20 12:54:19 -07:00
Corbin Crutchley
d88bde971c
feat: Angular adapter (#627)
* chore: initial scaffolding for Angular adapter

* chore: add test component tests

* chore: add example api

* chore: add example

* chore: finish setting up example

* chore: move items to correct location

* chore: got initial version working

* chore: WIP on typings

* chore: more work on adapter

* chore: fix issues with mounting

* chore: WIP fixing CI

* chore: fix various packaging issues

* chore: regenerate lockfile

* test: add tests for Angular adapter default values

* test: add tests for validating

* fix: add types to implicit context value

* chore: fix CI

* fix: issues with constant names in Angular Adapter

Co-authored-by: Rafael Mestre <277805+rlmestre@users.noreply.github.com>

* fix: typing issues with Form being inferred incorrectly

* feat!: migrate away from ng-template and towards ng-container

Co-authored-by: Alex Rickabaugh <alx+alxhub@alxandria.net>

* chore: fix CI

* chore: fix minor issues with versioning

* chore: improve angular example

* chore: add store to angular form usage

* chore: add more tests from React adapter

* chore: add Zod example

* chore: add Angular Yup example

* chore: add valibot to angular examples

* chore: add angular array example

* chore: add config to publish

* docs: add QuickStart guide

* docs: add array docs for angular adapter

* docs: add initial install instructions

* chore: fix CI

* chore: set minimum version of Angular to 17.3.0

---------

Co-authored-by: Rafael Mestre <277805+rlmestre@users.noreply.github.com>
Co-authored-by: Alex Rickabaugh <alx+alxhub@alxandria.net>
2024-03-22 23:27:59 -06:00
Corbin Crutchley
51ef17f5c0
docs: remove svelte mentions (#633) 2024-03-19 14:47:42 -06:00
Christian24
565d9d678b
feat: add Lit adapter for Tanstack form (#577)
* Initial Lit commit

* Fix tests

* Fix types

* Remove unused packages

* Remove unused packages

* Run prettier

* Removed tsup

* Change exports

* Add simple example

* Prettier

* New example

* Add docs

* feat: support array notation in DeepKeys and DeepValue types

* fix: support numerical values for arrays in DeepValue better

* feat!: remove form.Provider from React package

* chore: fix utils tests in regards to arrays

* feat!: remove form.Provider from Solid package

* chore!: proof of working arrays in react

* Update docs/framework/lit/quick-start.md

Co-authored-by: fuko <43729152+fulopkovacs@users.noreply.github.com>

* Update packages/lit-form/src/tanstack-form-controller.ts

Co-authored-by: fuko <43729152+fulopkovacs@users.noreply.github.com>

* Update docs/framework/lit/quick-start.md

Co-authored-by: fuko <43729152+fulopkovacs@users.noreply.github.com>

* Add textarea
Fix issue in ControlValueAccessor

* chore: change Vue behavior and types

* chore: fix CI, apply formatter, etc

* docs: remove mention of provider from docs

* chore: add test to React array usage

* test: add test to Solid form

* chore: fix Solid test

* chore: add array test to Vue

* chore: fix CI

* docs: add array example to react docs

* docs: improve the React basic concepts example

* chore: add React array example

* docs: add SolidJS example and docs

* chore: add Vue example

* docs: add array guide to Vue

* chore: fix CI

* chore: fix CI issues

* chore: fix CI

* chore: add back errorText to UI library demo

* chore: add back error validation in simple demo

* chore: fix default value issues

* docs: remove mention of bind in quickstart docs

* docs: add to publish and docs

---------

Co-authored-by: Corbin Crutchley <git@crutchcorn.dev>
Co-authored-by: fuko <43729152+fulopkovacs@users.noreply.github.com>
2024-03-13 05:00:57 -07:00
Lachlan Collins
567e38b2a2
chore: Fix incorrect npm tag for previous version release (#559) 2024-01-07 08:04:59 +11:00
Lachlan Collins
2003e4d488
fix: Correctly exit publish script (#555)
* fix: Correctly exit publish script

* Remove unnecessary try/catch
2024-01-05 21:34:30 +11:00
Lachlan Collins
2a2c33ffee
ci: Use publish function from @tanstack/config (#552)
* ci: Use publish function from @tanstack/config

* Remove unnecessary deps
2024-01-05 09:29:34 +11:00
Corbin Crutchley
f0cd7c178f
feat: SSR/Next Server Actions Support (#528)
* docs: add initial NextJS RSC code sample

* chore: replace react imports with rehackt imports

https://github.com/TanStack/form/issues/480#issuecomment-1793700430

* chore: initial work to add server action support to React Form

* feat: got initial demo of NextJS server action error to work

* feat: add useTransform and mergeForm APIs

* chore: WIP

* feat: add transform array checking

* fix: issues with canSubmit state issues when using server validation

* fix: remove error when Field component is first ran

* fix: correct failing tests

* chore: fix ci/cd

* chore: fix next server action typings

* chore: fix various issues with templates and CI/CD

* chore: upgrade node version

* chore: change from tsup to manual rollup

* Revert "chore: change from tsup to manual rollup"

This reverts commit 994c85c0c6.

* chore: attempt to fix tsup issues

* Revert "chore: attempt to fix tsup issues"

This reverts commit b9b1f07395.

* chore: migrate form-core to use Vite

* chore: migrate Vue package to Vite

* docs: migrate form adapters to vite

* chore: migrate solid and react packages to use vite

* chore: refactor to single config generator

* chore: remove typescript 4.8

* chore: fix issues with test ci

* chore: fix PR CI

* chore: fix clean script

* Merge main into nextjs-server-actions (#545)

* chore: Update CI versions of node and pnpm (#538)

* Update node and pnpm for CI

* Update concurrency and run conditions

* docs(CONTRIBUTING.md): add instructions for previewing the docs locally (#537)

* chore: Update to Nx v17 (#539)

* Update CI run condition

* Update to Nx v17

* Attempt to fix scripts

* Fully utilise Nx for PR workflow

* chore: Use updated `publish.js` script (#540)

* Initial rename and copy

* Update relevant packages

* Remove ts-node

* Mark root as ESM

* Move getTsupConfig

* Remove eslint-plugin-compat

* Make codesandbox run Node 18

* chore: Add missing command to CI workflow (#541)

* chore: Enable Nx distributed caching (#542)

* chore: Update prettier config (#543)

* Update prettier config

* Run format

* Update gitignore

---------

Co-authored-by: fuko <43729152+fulopkovacs@users.noreply.github.com>

* Fix lockfile

---------

Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
Co-authored-by: fuko <43729152+fulopkovacs@users.noreply.github.com>
2023-12-30 22:13:07 -07:00
Lachlan Collins
2c3e848ff8
chore: Use updated publish.js script (#540)
* Initial rename and copy

* Update relevant packages

* Remove ts-node

* Mark root as ESM

* Move getTsupConfig

* Remove eslint-plugin-compat

* Make codesandbox run Node 18
2023-12-31 11:26:09 +11:00
Lachlan Collins
250a7fe9d0
chore: Workspace fixes (#533)
* Add prefer-workspace-packages

* Remove unnecessary Nx config and packages

* Remove unnecessary TS paths/references

* Remove jest/babel files

* Remove babel/rollup deps

* Fix solid-form vitest config

* Remove composite setting

* Merge tsconfig.json and tsconfig.eslint.json

* Add composite back to solid examples

* Remove tsup patch

* Update tsup

* Add @types/eslint

* Tweak Nx named inputs

* Remove unused field variable

* Remove code messing with example dependencies
2023-12-28 15:44:45 -07:00
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
Aadit Olkar
6050fea779
feat: solid.js form (#471)
* solid commit -a

* fix failing tests and formatting

* comments + removed unneeded computed

* updated changes

* prettierd

* chore: add Solid Form to script to be deployed

* fix: fix typing of solid's Subscribe data

* chore: remove errant createEffect

* chore: rename Solid's useForm and useField to createForm and createField

* chore: remove old mention of React's memoization

* chore: add Solid simple example

* chore: add Solid yup example

* chore: add Zod Solid example

* docs: add initial docs for Solid package

---------

Co-authored-by: Corbin Crutchley <git@crutchcorn.dev>
2023-10-30 00:17:49 -07:00
Corbin Crutchley
9079af1fde
fix: publish Yup and Zod adapters (#474)
* fix: publish Yup and Zod adapters

* chore: fix pnpm lock file
2023-10-18 02:34:38 -07:00
Corbin Crutchley
e297755ad6
chore: fix issues with CI/CD (#456) 2023-09-08 23:42:54 -07:00
Corbin Crutchley
4790982c64
fix: migrate to use CI/CD system that router uses (#455) 2023-09-08 23:32:09 -07:00
Corbin Crutchley
15d4af9570
chore: migrate to TSUp (#446)
* chore: migrate to TSUp

* chore: fix build
2023-09-07 17:54:16 -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
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
df7096d821 fix: example dirs 2023-04-25 23:45:39 -06:00
Tanner Linsley
b41410da9e Merge branch 'main' of https://github.com/TanStack/form 2023-04-25 23:11:28 -06:00
Tanner Linsley
0d40001bf0 fix: publish 2023-04-25 23:02:33 -06:00
Zachary DeRose
449f5ee806
Fixing failing tasks in ci workflow (#394)
* fixing jest config

* fixing eslint errors for react-form

* fixing script lints

* configuring prettier to ignore built files

* updating eslint deps

* updating pnpm lockfile

* updating dep install step in pr workflow

* rm reference to custom validatePackages script

* fixing code sandbox failure

* attempting to fix frozen locfile issue

* fixing install:csb step

* removing unnecessary type assignment
2023-04-25 22:59:49 -06:00
Tanner Linsley
63c400737a checkpoint 2023-04-25 10:51:17 -06:00
Tanner Linsley
9a18e45de7 big changes 2023-04-24 15:44:59 -06:00