Skip to content

Commit

Permalink
ci(renovate): update renovate config (#879)
Browse files Browse the repository at this point in the history
* ci(renovate): update renovate config

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
  • Loading branch information
lachlancollins and autofix-ci[bot] authored Jul 29, 2024
1 parent 2ecdc61 commit 41cc2e2
Show file tree
Hide file tree
Showing 12 changed files with 71 additions and 332 deletions.
14 changes: 5 additions & 9 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,21 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"configMigration": true,
"extends": [
"config:recommended",
"group:allNonMajor",
"schedule:weekly",
":approveMajorUpdates",
":automergeMinor",
":disablePeerDependencies",
":maintainLockFilesMonthly",
":semanticCommits",
":semanticCommitTypeAll(chore)"
],
"ignorePresets": [":ignoreModulesAndTests"],
"labels": ["dependencies"],
"rangeStrategy": "bump",
"postUpdateOptions": ["pnpmDedupe"],
"semanticCommits": "enabled",
"packageRules": [
{
"groupName": "all non-major dependencies",
"groupSlug": "all-minor-patch",
"matchCurrentVersion": ">=1.0.0",
"matchUpdateTypes": ["minor", "patch"]
}
],
"ignoreDeps": [
"@types/node",
"@types/react",
Expand Down
2 changes: 1 addition & 1 deletion examples/angular/simple/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import type {
[validators]="{
onChange: firstNameValidator,
onChangeAsyncDebounceMs: 500,
onChangeAsync: firstNameAsyncValidator
onChangeAsync: firstNameAsyncValidator,
}"
#firstName="field"
>
Expand Down
2 changes: 1 addition & 1 deletion examples/angular/valibot/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import * as v from 'valibot'
[validators]="{
onChange: firstNameValidator,
onChangeAsyncDebounceMs: 500,
onChangeAsync: firstNameAsyncValidator
onChangeAsync: firstNameAsyncValidator,
}"
#firstName="field"
>
Expand Down
2 changes: 1 addition & 1 deletion examples/angular/yup/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import * as yup from 'yup'
.string()
.min(3, 'First name must be at least 3 characters'),
onChangeAsyncDebounceMs: 500,
onChangeAsync: firstNameAsyncValidator
onChangeAsync: firstNameAsyncValidator,
}"
#firstName="field"
>
Expand Down
2 changes: 1 addition & 1 deletion examples/angular/zod/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { z } from 'zod'
.string()
.min(3, 'First name must be at least 3 characters'),
onChangeAsyncDebounceMs: 500,
onChangeAsync: firstNameAsyncValidator
onChangeAsync: firstNameAsyncValidator,
}"
#firstName="field"
>
Expand Down
3 changes: 1 addition & 2 deletions knip.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"$schema": "https://unpkg.com/knip@5/schema.json",
"ignore": ["scripts/typedoc-remove-prefix.js"],
"ignoreDependencies": ["@tanstack/start", "typedoc-plugin-frontmatter"],
"ignoreDependencies": ["@tanstack/start"],
"ignoreWorkspaces": ["examples/**"]
}
4 changes: 0 additions & 4 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
]
},
"targetDefaults": {
"test:format": {
"cache": true,
"inputs": ["{workspaceRoot}/**/*"]
},
"test:knip": {
"cache": true,
"inputs": ["{workspaceRoot}/**/*"]
Expand Down
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"clean": "pnpm --filter \"./packages/**\" run clean",
"preinstall": "node -e \"if(process.env.CI == 'true') {console.log('Skipping preinstall...')} else {process.exit(1)}\" || npx -y only-allow pnpm",
"test": "pnpm run test:ci",
"test:pr": "nx affected --targets=test:format,test:sherif,test:knip,test:eslint,test:lib,test:types,test:build,build",
"test:ci": "nx run-many --targets=test:format,test:sherif,test:knip,test:eslint,test:lib,test:types,test:build,build",
"test:pr": "nx affected --targets=test:sherif,test:knip,test:eslint,test:lib,test:types,test:build,build",
"test:ci": "nx run-many --targets=test:sherif,test:knip,test:eslint,test:lib,test:types,test:build,build",
"test:eslint": "nx affected --target=test:eslint",
"test:format": "pnpm run prettier --check",
"test:sherif": "sherif -i react -i react-dom",
Expand All @@ -33,7 +33,6 @@
},
"nx": {
"includedScripts": [
"test:format",
"test:knip",
"test:sherif"
]
Expand All @@ -55,7 +54,7 @@
"jsdom": "^24.1.0",
"knip": "^5.26.0",
"nx": "^19.4.3",
"prettier": "^4.0.0-alpha.8",
"prettier": "^3.3.3",
"publint": "^0.2.8",
"react": "^18.3.1",
"react-dom": "^18.3.1",
Expand Down
6 changes: 3 additions & 3 deletions packages/angular-form/tests/test.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ describe('TanStackFieldDirective', () => {
(blur)="f.api.handleBlur()"
(input)="
f.api.setValue($any($event).target.value, {
dontUpdateMeta: true
dontUpdateMeta: true,
})
"
/>
Expand Down Expand Up @@ -208,7 +208,7 @@ describe('TanStackFieldDirective', () => {
(blur)="f.api.handleBlur()"
(input)="
f.api.setValue($any($event).target.value, {
dontUpdateMeta: true
dontUpdateMeta: true,
})
"
/>
Expand Down Expand Up @@ -313,7 +313,7 @@ describe('TanStackFieldDirective', () => {
[defaultMeta]="{ isTouched: true }"
[validators]="{
onChangeAsync: onChangeAsync,
onBlurAsync: onBlurAsync
onBlurAsync: onBlurAsync,
}"
#f="field"
>
Expand Down
78 changes: 40 additions & 38 deletions packages/form-core/src/FieldApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,33 +42,34 @@ export type FieldValidateOrFn<
| Validator<TParentData, unknown>
| undefined = undefined,
TData extends DeepValue<TParentData, TName> = DeepValue<TParentData, TName>,
> = TFieldValidator extends Validator<TData, infer TFN>
?
| TFN
| FieldValidateFn<
TParentData,
TName,
TFieldValidator,
TFormValidator,
TData
>
: TFormValidator extends Validator<TParentData, infer FFN>
> =
TFieldValidator extends Validator<TData, infer TFN>
?
| FFN
| TFN
| FieldValidateFn<
TParentData,
TName,
TFieldValidator,
TFormValidator,
TData
>
: FieldValidateFn<
TParentData,
TName,
TFieldValidator,
TFormValidator,
TData
>
: TFormValidator extends Validator<TParentData, infer FFN>
?
| FFN
| FieldValidateFn<
TParentData,
TName,
TFieldValidator,
TFormValidator,
TData
>
: FieldValidateFn<
TParentData,
TName,
TFieldValidator,
TFormValidator,
TData
>

/**
* @private
Expand Down Expand Up @@ -102,33 +103,34 @@ export type FieldAsyncValidateOrFn<
| Validator<TParentData, unknown>
| undefined = undefined,
TData extends DeepValue<TParentData, TName> = DeepValue<TParentData, TName>,
> = TFieldValidator extends Validator<TData, infer TFN>
?
| TFN
| FieldValidateAsyncFn<
TParentData,
TName,
TFieldValidator,
TFormValidator,
TData
>
: TFormValidator extends Validator<TParentData, infer FFN>
> =
TFieldValidator extends Validator<TData, infer TFN>
?
| FFN
| TFN
| FieldValidateAsyncFn<
TParentData,
TName,
TFieldValidator,
TFormValidator,
TData
>
: FieldValidateAsyncFn<
TParentData,
TName,
TFieldValidator,
TFormValidator,
TData
>
: TFormValidator extends Validator<TParentData, infer FFN>
?
| FFN
| FieldValidateAsyncFn<
TParentData,
TName,
TFieldValidator,
TFormValidator,
TData
>
: FieldValidateAsyncFn<
TParentData,
TName,
TFieldValidator,
TFormValidator,
TData
>

export interface FieldValidators<
TParentData,
Expand Down
14 changes: 8 additions & 6 deletions packages/form-core/src/FormApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ export type FormValidateFn<
export type FormValidateOrFn<
TFormData,
TFormValidator extends Validator<TFormData, unknown> | undefined = undefined,
> = TFormValidator extends Validator<TFormData, infer TFN>
? TFN
: FormValidateFn<TFormData, TFormValidator>
> =
TFormValidator extends Validator<TFormData, infer TFN>
? TFN
: FormValidateFn<TFormData, TFormValidator>

/**
* @private
Expand All @@ -59,9 +60,10 @@ export type FormValidateAsyncFn<
export type FormAsyncValidateOrFn<
TFormData,
TFormValidator extends Validator<TFormData, unknown> | undefined = undefined,
> = TFormValidator extends Validator<TFormData, infer FFN>
? FFN | FormValidateAsyncFn<TFormData, TFormValidator>
: FormValidateAsyncFn<TFormData, TFormValidator>
> =
TFormValidator extends Validator<TFormData, infer FFN>
? FFN | FormValidateAsyncFn<TFormData, TFormValidator>
: FormValidateAsyncFn<TFormData, TFormValidator>

export interface FormValidators<
TFormData,
Expand Down
Loading

0 comments on commit 41cc2e2

Please sign in to comment.