@tanstack/solid-form 0.13.3 → 0.13.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
1
  import { FieldApi, type Validator } from '@tanstack/form-core';
2
2
  import type { DeepKeys, DeepValue, Narrow } from '@tanstack/form-core';
3
3
  import type { JSXElement } from 'solid-js';
4
- import type { CreateFieldOptions } from './types';
4
+ import type { CreateFieldOptions } from './types.cjs';
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
1
  import type { FormOptions, FormState, Validator } from '@tanstack/form-core';
2
2
  import { FormApi } from '@tanstack/form-core';
3
3
  import { type JSXElement } from 'solid-js';
4
- import { type CreateField, type FieldComponent } from './createField';
4
+ import { type CreateField, type FieldComponent } from './createField.cjs';
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,5 @@
1
1
  import type { FormApi, FormOptions, Validator } from '@tanstack/form-core';
2
- import { type CreateField, type FieldComponent } from './createField';
2
+ import { type CreateField, type FieldComponent } from './createField.cjs';
3
3
  export type FormFactory<TFormData, TFormValidator extends Validator<TFormData, unknown> | undefined = undefined> = {
4
4
  createForm: (opts?: () => FormOptions<TFormData, TFormValidator>) => FormApi<TFormData, TFormValidator>;
5
5
  createField: CreateField<TFormData>;
@@ -1,7 +1,7 @@
1
1
  export type { DeepKeys, DeepValue, FieldApiOptions, FieldInfo, FieldMeta, FieldOptions, FieldState, FormOptions, FormState, RequiredByKey, Updater, UpdaterFn, ValidationCause, ValidationError, ValidationMeta, } from '@tanstack/form-core';
2
2
  export { FormApi, FieldApi, functionalUpdate } from '@tanstack/form-core';
3
- export { createForm } from './createForm';
4
- export type { CreateField, FieldComponent } from './createField';
5
- export { createField, Field } from './createField';
6
- export type { FormFactory } from './createFormFactory';
7
- export { createFormFactory } from './createFormFactory';
3
+ export { createForm } from './createForm.cjs';
4
+ export type { CreateField, FieldComponent } from './createField.cjs';
5
+ export { createField, Field } from './createField.cjs';
6
+ export type { FormFactory } from './createFormFactory.cjs';
7
+ export { createFormFactory } from './createFormFactory.cjs';
@@ -1,7 +1,7 @@
1
1
  import { FieldApi, type Validator } from '@tanstack/form-core';
2
2
  import type { DeepKeys, DeepValue, Narrow } from '@tanstack/form-core';
3
3
  import type { JSXElement } from 'solid-js';
4
- import type { CreateFieldOptions } from './types';
4
+ import type { CreateFieldOptions } from './types.js';
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
1
  import type { FormOptions, FormState, Validator } from '@tanstack/form-core';
2
2
  import { FormApi } from '@tanstack/form-core';
3
3
  import { type JSXElement } from 'solid-js';
4
- import { type CreateField, type FieldComponent } from './createField';
4
+ import { type CreateField, type FieldComponent } from './createField.js';
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,5 @@
1
1
  import type { FormApi, FormOptions, Validator } from '@tanstack/form-core';
2
- import { type CreateField, type FieldComponent } from './createField';
2
+ import { type CreateField, type FieldComponent } from './createField.js';
3
3
  export type FormFactory<TFormData, TFormValidator extends Validator<TFormData, unknown> | undefined = undefined> = {
4
4
  createForm: (opts?: () => FormOptions<TFormData, TFormValidator>) => FormApi<TFormData, TFormValidator>;
5
5
  createField: CreateField<TFormData>;
@@ -1,7 +1,7 @@
1
1
  export type { DeepKeys, DeepValue, FieldApiOptions, FieldInfo, FieldMeta, FieldOptions, FieldState, FormOptions, FormState, RequiredByKey, Updater, UpdaterFn, ValidationCause, ValidationError, ValidationMeta, } from '@tanstack/form-core';
2
2
  export { FormApi, FieldApi, functionalUpdate } from '@tanstack/form-core';
3
- export { createForm } from './createForm';
4
- export type { CreateField, FieldComponent } from './createField';
5
- export { createField, Field } from './createField';
6
- export type { FormFactory } from './createFormFactory';
7
- export { createFormFactory } from './createFormFactory';
3
+ export { createForm } from './createForm.js';
4
+ export type { CreateField, FieldComponent } from './createField.js';
5
+ export { createField, Field } from './createField.js';
6
+ export type { FormFactory } from './createFormFactory.js';
7
+ export { createFormFactory } from './createFormFactory.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/solid-form",
3
- "version": "0.13.3",
3
+ "version": "0.13.5",
4
4
  "description": "Powerful, type-safe forms for Solid.",
5
5
  "author": "tannerlinsley",
6
6
  "license": "MIT",
@@ -37,8 +37,8 @@
37
37
  "vite-plugin-solid": "^2.8.0"
38
38
  },
39
39
  "dependencies": {
40
- "@tanstack/solid-store": "^0.2.1",
41
- "@tanstack/form-core": "0.13.3"
40
+ "@tanstack/solid-store": "^0.3.1",
41
+ "@tanstack/form-core": "0.13.5"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "solid-js": "^1.6.0"