chore: fix errrors in examples, remove unneeded CI steps (#457)

This commit is contained in:
Corbin Crutchley
2023-09-09 00:04:42 -07:00
committed by GitHub
parent 826c58d5c2
commit 707ff5d603
4 changed files with 51 additions and 99 deletions

View File

@@ -36,12 +36,6 @@ jobs:
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
- name: Run Tests
uses: nick-fields/retry@v2.8.3
with:
command: pnpm run test:ci --base=${{ github.event.before }}
timeout_minutes: 10
max_attempts: 3
- name: Publish
run: |
git config --global user.name 'Tanner Linsley'
@@ -54,5 +48,3 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
TAG: ${{ inputs.tag }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3

View File

@@ -1,13 +1,13 @@
import React from "react";
import ReactDOM from "react-dom/client";
import * as React from "react";
import { createRoot } from "react-dom/client";
import { useForm } from "@tanstack/react-form";
import type { FieldApi } from "@tanstack/react-form";
function FieldInfo({ field }: { field: FieldApi<any, any> }) {
return (
<>
{field.state.meta.touchedError ? (
<em>{field.state.meta.touchedError}</em>
{field.state.meta.touchedErrors ? (
<em>{field.state.meta.touchedErrors}</em>
) : null}
{field.state.meta.isValidating ? "Validating..." : null}
</>
@@ -107,4 +107,4 @@ export default function App() {
const rootElement = document.getElementById("root")!;
ReactDOM.createRoot(rootElement).render(<App />);
createRoot(rootElement).render(<App />);

View File

@@ -7,8 +7,6 @@ const props = defineProps<{
</script>
<template>
<em v-if="props.state.meta.touchedError">{{
props.state.meta.touchedError
}}</em>
<em v-for="error of props.state.meta.touchedErrors">{{ error }}</em>
{{ props.state.meta.isValidating ? 'Validating...' : null }}
</template>

128
pnpm-lock.yaml generated
View File

@@ -226,9 +226,15 @@ importers:
examples/react/simple:
dependencies:
'@tanstack/form-core':
specifier: 0.3.1
version: link:../../../packages/form-core
'@tanstack/react-form':
specifier: ^0.2.1
version: 0.2.1(@types/react@18.0.15)(react-dom@18.2.0)(react@18.2.0)
specifier: 0.3.1
version: link:../../../packages/react-form
'@tanstack/vue-form':
specifier: 0.3.1
version: link:../../../packages/vue-form
axios:
specifier: ^0.26.1
version: 0.26.1
@@ -251,9 +257,15 @@ importers:
examples/vue/simple:
dependencies:
'@tanstack/form-core':
specifier: 0.3.1
version: link:../../../packages/form-core
'@tanstack/react-form':
specifier: 0.3.1
version: link:../../../packages/react-form
'@tanstack/vue-form':
specifier: ^0.2.2
version: 0.2.2(vue@3.3.4)
specifier: 0.3.1
version: link:../../../packages/vue-form
vue:
specifier: ^3.3.4
version: 3.3.4
@@ -420,13 +432,13 @@ packages:
resolution: {integrity: sha512-LvBTxu8bQSQkcyKOU+a1btnNFQ1dMAd0R6PyW3arXes06F6QLWLIrd681bxRPIXlrMGR3XYnW9JyML7dP3qgxg==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/types': 7.22.11
'@babel/types': 7.22.15
/@babel/helper-builder-binary-assignment-operator-visitor@7.22.10:
resolution: {integrity: sha512-Av0qubwDQxC56DoUReVDeLfMEjYYSN1nZrTUrWkXd7hpU73ymRANkbuDm3yni9npkn+RXy9nNbEJZEzXr7xrfQ==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/types': 7.22.11
'@babel/types': 7.22.15
/@babel/helper-compilation-targets@7.22.10:
resolution: {integrity: sha512-JMSwHD4J7SLod0idLq5PKgI+6g/hLD/iuWBq08ZX49xE14VpVEojJ5rHWptpirV2j020MvypRLAXAO50igCJ5Q==}
@@ -505,25 +517,25 @@ packages:
engines: {node: '>=6.9.0'}
dependencies:
'@babel/template': 7.22.5
'@babel/types': 7.22.11
'@babel/types': 7.22.15
/@babel/helper-hoist-variables@7.22.5:
resolution: {integrity: sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/types': 7.22.11
'@babel/types': 7.22.15
/@babel/helper-member-expression-to-functions@7.22.5:
resolution: {integrity: sha512-aBiH1NKMG0H2cGZqspNvsaBe6wNGjbJjuLy29aU+eDZjSbbN53BaxlpB02xm9v34pLTZ1nIQPFYn2qMZoa5BQQ==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/types': 7.22.11
'@babel/types': 7.22.15
/@babel/helper-module-imports@7.16.0:
resolution: {integrity: sha512-kkH7sWzKPq0xt3H1n+ghb4xEMP8k0U7XV3kkB+ZGy69kDk2ySFW1qPi06sjKzFY3t1j6XbJSqr4mF9L7CYVyhg==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/types': 7.22.11
'@babel/types': 7.22.15
dev: true
/@babel/helper-module-imports@7.22.15:
@@ -537,7 +549,7 @@ packages:
resolution: {integrity: sha512-8Dl6+HD/cKifutF5qGd/8ZJi84QeAKh+CEe1sBzz8UayBBGg1dAIJrdHOcOM5b2MpzWL2yuotJTtGjETq0qjXg==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/types': 7.22.11
'@babel/types': 7.22.15
/@babel/helper-module-transforms@7.22.9(@babel/core@7.22.10):
resolution: {integrity: sha512-t+WA2Xn5K+rTeGtC8jCsdAH52bjggG5TKRuRrAGNM/mjIbO4GxvlLMFOEz9wXY5I2XQ60PMFsAG2WIcG82dQMQ==}
@@ -556,7 +568,7 @@ packages:
resolution: {integrity: sha512-HBwaojN0xFRx4yIvpwGqxiV2tUfl7401jlok564NgB9EHS1y6QT17FmKWm4ztqjeVdXLuC4fSvHc5ePpQjoTbw==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/types': 7.22.11
'@babel/types': 7.22.15
/@babel/helper-plugin-utils@7.22.5:
resolution: {integrity: sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg==}
@@ -588,19 +600,19 @@ packages:
resolution: {integrity: sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/types': 7.22.11
'@babel/types': 7.22.15
/@babel/helper-skip-transparent-expression-wrappers@7.22.5:
resolution: {integrity: sha512-tK14r66JZKiC43p8Ki33yLBVJKlQDFoA8GYN67lWCDCqoL6EMMSuM9b+Iff2jHaM/RRFYl7K+iiru7hbRqNx8Q==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/types': 7.22.11
'@babel/types': 7.22.15
/@babel/helper-split-export-declaration@7.22.6:
resolution: {integrity: sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/types': 7.22.11
'@babel/types': 7.22.15
/@babel/helper-string-parser@7.22.5:
resolution: {integrity: sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==}
@@ -610,11 +622,6 @@ packages:
resolution: {integrity: sha512-4E/F9IIEi8WR94324mbDUMo074YTheJmd7eZF5vITTeYchqAi6sYXRLHUVsmkdmY4QjfKTcB2jB7dVP3NaBElQ==}
engines: {node: '>=6.9.0'}
/@babel/helper-validator-identifier@7.22.5:
resolution: {integrity: sha512-aJXu+6lErq8ltp+JhkJUfk1MTGyuA4v7f3pA+BJ5HLfNC6nAQ0Cpi9uOquUj8Hehg0aUiHzWQbOVJGao6ztBAQ==}
engines: {node: '>=6.9.0'}
dev: true
/@babel/helper-validator-option@7.22.15:
resolution: {integrity: sha512-bMn7RmyFjY/mdECUbgn9eoSY4vqvacUnS9i9vGAGttgFWesO6B4CYWA7XlpbWgBt71iv/hfbPlynohStqnu5hA==}
engines: {node: '>=6.9.0'}
@@ -630,7 +637,7 @@ packages:
dependencies:
'@babel/helper-function-name': 7.22.5
'@babel/template': 7.22.5
'@babel/types': 7.22.11
'@babel/types': 7.22.15
/@babel/helpers@7.22.10:
resolution: {integrity: sha512-a41J4NW8HyZa1I1vAndrraTlPZ/eZoga2ZgS7fEr0tZJGVU4xqdE80CEm0CcNjha5EZ8fTBYLKHF0kqDUuAwQw==}
@@ -656,7 +663,7 @@ packages:
engines: {node: '>=6.0.0'}
hasBin: true
dependencies:
'@babel/types': 7.22.11
'@babel/types': 7.22.15
dev: true
/@babel/parser@7.22.13:
@@ -1337,7 +1344,7 @@ packages:
'@babel/helper-module-imports': 7.22.5
'@babel/helper-plugin-utils': 7.22.5
'@babel/plugin-syntax-jsx': 7.22.5(@babel/core@7.22.10)
'@babel/types': 7.22.11
'@babel/types': 7.22.15
dev: true
/@babel/plugin-transform-react-jsx@7.22.5(@babel/core@7.22.10):
@@ -1351,7 +1358,7 @@ packages:
'@babel/helper-module-imports': 7.22.5
'@babel/helper-plugin-utils': 7.22.5
'@babel/plugin-syntax-jsx': 7.22.5(@babel/core@7.22.10)
'@babel/types': 7.22.11
'@babel/types': 7.22.15
/@babel/plugin-transform-react-pure-annotations@7.18.6(@babel/core@7.22.10):
resolution: {integrity: sha512-I8VfEPg9r2TRDdvnHgPepTKvuRomzA8+u+nhY7qSI1fR2hRNebasZEETLyM5mAUr0Ku56OkXJ0I7NHJnO6cJiQ==}
@@ -1671,7 +1678,7 @@ packages:
'@babel/helper-hoist-variables': 7.22.5
'@babel/helper-split-export-declaration': 7.22.6
'@babel/parser': 7.22.13
'@babel/types': 7.22.11
'@babel/types': 7.22.15
debug: 4.3.4
globals: 11.12.0
transitivePeerDependencies:
@@ -1689,7 +1696,7 @@ packages:
'@babel/helper-hoist-variables': 7.22.5
'@babel/helper-split-export-declaration': 7.22.6
'@babel/parser': 7.22.13
'@babel/types': 7.22.11
'@babel/types': 7.22.15
debug: 4.3.4
globals: 11.12.0
transitivePeerDependencies:
@@ -1700,7 +1707,7 @@ packages:
engines: {node: '>=6.9.0'}
dependencies:
'@babel/helper-string-parser': 7.22.5
'@babel/helper-validator-identifier': 7.22.5
'@babel/helper-validator-identifier': 7.22.15
to-fast-properties: 2.0.0
dev: true
@@ -1727,7 +1734,6 @@ packages:
'@babel/helper-string-parser': 7.22.5
'@babel/helper-validator-identifier': 7.22.15
to-fast-properties: 2.0.0
dev: false
/@commitlint/parse@17.6.5:
resolution: {integrity: sha512-0zle3bcn1Hevw5Jqpz/FzEWNo2KIzUbc1XyGg6WrWEoa6GH3A1pbqNF6MvE6rjuy6OY23c8stWnb4ETRZyN+Yw==}
@@ -2682,34 +2688,6 @@ packages:
'@sinonjs/commons': 3.0.0
dev: false
/@tanstack/form-core@0.2.0:
resolution: {integrity: sha512-Kabl4c61z6tVDsSOjzyC7bNYKlJoY0k4T6u86YbpIOkBFqkX0S/J688pDw7vxhbgTJ3agVBsp73rptxPbDt7ZA==}
dependencies:
'@tanstack/store': 0.1.3
dev: false
/@tanstack/react-form@0.2.1(@types/react@18.0.15)(react-dom@18.2.0)(react@18.2.0):
resolution: {integrity: sha512-2gRdDYYRIh/OW5Cu6GXpOC/tH7+fbwFPpSa0kuJEJq6mW321E5Ak4Fg2Lt3ygERpn6UTq+UwKGxjj747rpKvyg==}
peerDependencies:
react: ^17.0.0 || ^18.0.0
react-dom: ^17.0.0 || ^18.0.0
react-native: '*'
peerDependenciesMeta:
react-dom:
optional: true
react-native:
optional: true
dependencies:
'@tanstack/form-core': 0.2.0
'@tanstack/react-store': 0.1.3(react-dom@18.2.0)(react@18.2.0)
'@tanstack/store': 0.1.3
react: 18.2.0
react-dom: 18.2.0(react@18.2.0)
use-isomorphic-layout-effect: 1.1.2(@types/react@18.0.15)(react@18.2.0)
transitivePeerDependencies:
- '@types/react'
dev: false
/@tanstack/react-store@0.1.3(react-dom@18.2.0)(react@18.2.0):
resolution: {integrity: sha512-nDOgSlarFFbIvVirAi/GcCyqyRMthgpuBhOhN87DkeQEau+ZNGsLKJifzrQYuWB0+4FXmgeoGaY/Dr383MPqZw==}
peerDependencies:
@@ -2726,22 +2704,6 @@ packages:
resolution: {integrity: sha512-GnolmC8Fr4mvsHE1fGQmR3Nm0eBO3KnZjDU0a+P3TeQNM/dDscFGxtA7p31NplQNW3KwBw4t1RVFmz0VeKLxcw==}
dev: false
/@tanstack/vue-form@0.2.2(vue@3.3.4):
resolution: {integrity: sha512-v8M08C3BIA7IUtGYmMejKpKSp4mkWA8y4t+WUIZBFA0yLycQHLSy2TLm7Wb+T4Up7c0CBGWum/VWUcu4tlQFhA==}
peerDependencies:
'@vue/composition-api': ^1.1.2
vue: ^2.5.0 || ^3.0.0
peerDependenciesMeta:
'@vue/composition-api':
optional: true
dependencies:
'@tanstack/form-core': 0.2.0
'@tanstack/store': 0.1.3
'@tanstack/vue-store': 0.1.3(@vue/composition-api@1.7.2)(vue@3.3.4)
vue: 3.3.4
vue-demi: 0.14.6(@vue/composition-api@1.7.2)(vue@3.3.4)
dev: false
/@tanstack/vue-store@0.1.3(@vue/composition-api@1.7.2)(vue@3.3.4):
resolution: {integrity: sha512-vLG2t0N0nagS2YrCDtTGJiftBDWadX0M7vSkIjfl+I1SaeKDvhg+HbRxt7Vwc5iLcwHljHAIlf7Ak5o4q0Brhg==}
peerDependencies:
@@ -2877,7 +2839,7 @@ packages:
resolution: {integrity: sha512-WEOTgRsbYkvA/KCsDwVEGkd7WAr1e3g31VHQ8zy5gul/V1qKullU/BU5I68X5v7V3GnB9eotmom4v5a5gjxorw==}
dependencies:
'@babel/parser': 7.22.13
'@babel/types': 7.22.11
'@babel/types': 7.22.15
'@types/babel__generator': 7.6.4
'@types/babel__template': 7.4.1
'@types/babel__traverse': 7.17.1
@@ -2886,20 +2848,20 @@ packages:
/@types/babel__generator@7.6.4:
resolution: {integrity: sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg==}
dependencies:
'@babel/types': 7.22.11
'@babel/types': 7.22.15
dev: true
/@types/babel__template@7.4.1:
resolution: {integrity: sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g==}
dependencies:
'@babel/parser': 7.22.13
'@babel/types': 7.22.11
'@babel/types': 7.22.15
dev: true
/@types/babel__traverse@7.17.1:
resolution: {integrity: sha512-kVzjari1s2YVi77D3w1yuvohV2idweYXMCDzqBiVNN63TcDWrIlTVOYpqVrvbbyOE/IyzBoTKF0fdnLPEORFxA==}
dependencies:
'@babel/types': 7.22.11
'@babel/types': 7.22.15
dev: true
/@types/chai-subset@1.3.3:
@@ -3297,7 +3259,7 @@ packages:
'@babel/plugin-syntax-jsx': 7.22.5(@babel/core@7.22.10)
'@babel/template': 7.22.5
'@babel/traverse': 7.22.10
'@babel/types': 7.22.11
'@babel/types': 7.22.15
'@vue/babel-helper-vue-transform-on': 1.1.5
camelcase: 6.3.0
html-tags: 3.3.1
@@ -3846,7 +3808,7 @@ packages:
engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0}
dependencies:
'@babel/template': 7.22.5
'@babel/types': 7.22.11
'@babel/types': 7.22.15
'@types/babel__core': 7.1.19
'@types/babel__traverse': 7.17.1
dev: true
@@ -3859,7 +3821,7 @@ packages:
'@babel/core': 7.22.10
'@babel/helper-module-imports': 7.16.0
'@babel/plugin-syntax-jsx': 7.22.5(@babel/core@7.22.10)
'@babel/types': 7.22.11
'@babel/types': 7.22.15
html-entities: 2.3.2
dev: true
@@ -7421,7 +7383,7 @@ packages:
engines: {node: '>=16'}
dependencies:
'@babel/traverse': 7.22.10
'@babel/types': 7.22.11
'@babel/types': 7.22.15
invariant: 2.2.4
metro-symbolicate: 0.76.7
nullthrows: 1.1.1
@@ -7437,7 +7399,7 @@ packages:
engines: {node: '>=16'}
dependencies:
'@babel/traverse': 7.22.10
'@babel/types': 7.22.11
'@babel/types': 7.22.15
invariant: 2.2.4
metro-symbolicate: 0.76.8
nullthrows: 1.1.1
@@ -7498,7 +7460,7 @@ packages:
'@babel/core': 7.22.10
'@babel/generator': 7.22.10
'@babel/parser': 7.22.13
'@babel/types': 7.22.11
'@babel/types': 7.22.15
babel-preset-fbjs: 3.4.0(@babel/core@7.22.10)
metro: 0.76.7
metro-babel-transformer: 0.76.7
@@ -7525,7 +7487,7 @@ packages:
'@babel/parser': 7.22.13
'@babel/template': 7.22.5
'@babel/traverse': 7.22.10
'@babel/types': 7.22.11
'@babel/types': 7.22.15
accepts: 1.3.8
async: 3.2.4
chalk: 4.1.2