@tanstack/solid-form 0.19.3 → 0.19.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
- import { FieldApi } from '@tanstack/form-core';
2
- import type { DeepKeys, DeepValue, Narrow, Validator } from '@tanstack/form-core';
3
- import type { JSXElement } from 'solid-js';
4
- import type { CreateFieldOptions } from './types.cjs';
1
+ import { FieldApi, DeepKeys, DeepValue, Narrow, Validator } from '@tanstack/form-core';
2
+ import { JSXElement } from 'solid-js';
3
+ import { CreateFieldOptions } from './types.cjs';
4
+
5
5
  declare module '@tanstack/form-core' {
6
6
  interface FieldApi<TParentData, TName extends DeepKeys<TParentData>, TFieldValidator extends Validator<DeepValue<TParentData, TName>, unknown> | undefined = undefined, TFormValidator extends Validator<TParentData, unknown> | undefined = undefined, TData extends DeepValue<TParentData, TName> = DeepValue<TParentData, TName>> {
7
7
  Field: FieldComponent<TParentData, TFormValidator>;
@@ -1,7 +1,7 @@
1
- import { FormApi } from '@tanstack/form-core';
2
- import { type JSXElement } from 'solid-js';
3
- import { type CreateField, type FieldComponent } from './createField.cjs';
4
- import type { FormOptions, FormState, Validator } from '@tanstack/form-core';
1
+ import { FormApi, FormOptions, FormState, Validator } from '@tanstack/form-core';
2
+ import { JSXElement } from 'solid-js';
3
+ import { CreateField, FieldComponent } from './createField.cjs';
4
+
5
5
  type NoInfer<T> = [T][T extends any ? 0 : never];
6
6
  declare module '@tanstack/form-core' {
7
7
  interface FormApi<TFormData, TFormValidator> {
@@ -1,5 +1,6 @@
1
1
  import { Field, createField } from './createField.cjs';
2
- import type { FormApi, FormOptions, Validator } from '@tanstack/form-core';
2
+ import { FormApi, FormOptions, Validator } from '@tanstack/form-core';
3
+
3
4
  export type FormFactory<TFormData, TFormValidator extends Validator<TFormData, unknown> | undefined = undefined> = {
4
5
  createForm: (opts?: () => FormOptions<TFormData, TFormValidator>) => FormApi<TFormData, TFormValidator>;
5
6
  createField: typeof createField;
@@ -1,4 +1,5 @@
1
- import type { DeepKeys, DeepValue, FieldApiOptions, Validator } from '@tanstack/form-core';
1
+ import { DeepKeys, DeepValue, FieldApiOptions, Validator } from '@tanstack/form-core';
2
+
2
3
  export type CreateFieldOptions<TParentData, TName extends DeepKeys<TParentData>, TFieldValidator extends Validator<DeepValue<TParentData, TName>, unknown> | undefined = undefined, TFormValidator extends Validator<TParentData, unknown> | undefined = undefined, TData extends DeepValue<TParentData, TName> = DeepValue<TParentData, TName>> = FieldApiOptions<TParentData, TName, TFieldValidator, TFormValidator, TData> & {
3
4
  mode?: 'value' | 'array';
4
5
  };
@@ -1,7 +1,7 @@
1
- import { FieldApi } from '@tanstack/form-core';
2
- import type { DeepKeys, DeepValue, Narrow, Validator } from '@tanstack/form-core';
3
- import type { JSXElement } from 'solid-js';
4
- import type { CreateFieldOptions } from './types.js';
1
+ import { FieldApi, DeepKeys, DeepValue, Narrow, Validator } from '@tanstack/form-core';
2
+ import { JSXElement } from 'solid-js';
3
+ import { CreateFieldOptions } from './types.js';
4
+
5
5
  declare module '@tanstack/form-core' {
6
6
  interface FieldApi<TParentData, TName extends DeepKeys<TParentData>, TFieldValidator extends Validator<DeepValue<TParentData, TName>, unknown> | undefined = undefined, TFormValidator extends Validator<TParentData, unknown> | undefined = undefined, TData extends DeepValue<TParentData, TName> = DeepValue<TParentData, TName>> {
7
7
  Field: FieldComponent<TParentData, TFormValidator>;
@@ -1,7 +1,7 @@
1
- import { FormApi } from '@tanstack/form-core';
2
- import { type JSXElement } from 'solid-js';
3
- import { type CreateField, type FieldComponent } from './createField.js';
4
- import type { FormOptions, FormState, Validator } from '@tanstack/form-core';
1
+ import { FormApi, FormOptions, FormState, Validator } from '@tanstack/form-core';
2
+ import { JSXElement } from 'solid-js';
3
+ import { CreateField, FieldComponent } from './createField.js';
4
+
5
5
  type NoInfer<T> = [T][T extends any ? 0 : never];
6
6
  declare module '@tanstack/form-core' {
7
7
  interface FormApi<TFormData, TFormValidator> {
@@ -1,5 +1,6 @@
1
1
  import { Field, createField } from './createField.js';
2
- import type { FormApi, FormOptions, Validator } from '@tanstack/form-core';
2
+ import { FormApi, FormOptions, Validator } from '@tanstack/form-core';
3
+
3
4
  export type FormFactory<TFormData, TFormValidator extends Validator<TFormData, unknown> | undefined = undefined> = {
4
5
  createForm: (opts?: () => FormOptions<TFormData, TFormValidator>) => FormApi<TFormData, TFormValidator>;
5
6
  createField: typeof createField;
@@ -1,4 +1,5 @@
1
- import type { DeepKeys, DeepValue, FieldApiOptions, Validator } from '@tanstack/form-core';
1
+ import { DeepKeys, DeepValue, FieldApiOptions, Validator } from '@tanstack/form-core';
2
+
2
3
  export type CreateFieldOptions<TParentData, TName extends DeepKeys<TParentData>, TFieldValidator extends Validator<DeepValue<TParentData, TName>, unknown> | undefined = undefined, TFormValidator extends Validator<TParentData, unknown> | undefined = undefined, TData extends DeepValue<TParentData, TName> = DeepValue<TParentData, TName>> = FieldApiOptions<TParentData, TName, TFieldValidator, TFormValidator, TData> & {
3
4
  mode?: 'value' | 'array';
4
5
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/solid-form",
3
- "version": "0.19.3",
3
+ "version": "0.19.5",
4
4
  "description": "Powerful, type-safe forms for Solid.",
5
5
  "author": "tannerlinsley",
6
6
  "license": "MIT",
@@ -34,28 +34,15 @@
34
34
  },
35
35
  "devDependencies": {
36
36
  "solid-js": "^1.7.8",
37
+ "vite": "^5.0.10",
37
38
  "vite-plugin-solid": "^2.10.1"
38
39
  },
39
40
  "dependencies": {
40
41
  "@tanstack/solid-store": "^0.3.1",
41
- "@tanstack/form-core": "0.19.3"
42
+ "@tanstack/form-core": "0.19.5"
42
43
  },
43
44
  "peerDependencies": {
44
45
  "solid-js": "^1.6.0"
45
46
  },
46
- "scripts": {
47
- "clean": "rimraf ./dist && rimraf ./coverage",
48
- "test:eslint": "eslint --ext .ts,.tsx ./src",
49
- "test:types:versions49": "node ../../node_modules/typescript49/lib/tsc.js --project tsconfig.legacy.json",
50
- "test:types:versions50": "node ../../node_modules/typescript50/lib/tsc.js",
51
- "test:types:versions51": "node ../../node_modules/typescript51/lib/tsc.js",
52
- "test:types:versions52": "node ../../node_modules/typescript52/lib/tsc.js",
53
- "test:types:versions53": "node ../../node_modules/typescript53/lib/tsc.js",
54
- "test:types:versions54": "tsc",
55
- "test:types": "pnpm run \"/^test:types:versions.*/\"",
56
- "test:lib": "vitest",
57
- "test:lib:dev": "pnpm run test:lib --watch",
58
- "test:build": "publint --strict",
59
- "build": "vite build"
60
- }
47
+ "scripts": {}
61
48
  }