New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@tanstack/react-form

Package Overview
Dependencies
Maintainers
2
Versions
125
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tanstack/react-form - npm Package Compare versions

Comparing version 0.19.4 to 0.19.5

5

dist/esm/createFormFactory.d.ts
import { Field, useField } from './useField.js';
import type { ValidateFormData } from './validateFormData.js';
import type { FormApi, FormOptions, Validator } from '@tanstack/form-core';
import { ValidateFormData } from './validateFormData.js';
import { FormApi, FormOptions, Validator } from '@tanstack/form-core';
export type FormFactory<TFormData, TFormValidator extends Validator<TFormData, unknown> | undefined = undefined> = {

@@ -5,0 +6,0 @@ useForm: (opts?: FormOptions<TFormData, TFormValidator>) => FormApi<TFormData, TFormValidator>;

3

dist/esm/types.d.ts

@@ -1,4 +0,5 @@

import type { DeepKeys, DeepValue, FieldApiOptions, Validator } from '@tanstack/form-core';
import { DeepKeys, DeepValue, FieldApiOptions, Validator } from '@tanstack/form-core';
export type UseFieldOptions<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> & {
mode?: 'value' | 'array';
};

@@ -1,6 +0,5 @@

/// <reference types="react" />
import React from 'rehackt';
import { FieldApi } from '@tanstack/form-core';
import type { UseFieldOptions } from './types.js';
import type { DeepKeys, DeepValue, Validator } from '@tanstack/form-core';
import { default as React } from 'rehackt';
import { FieldApi, DeepKeys, DeepValue, Validator } from '@tanstack/form-core';
import { UseFieldOptions } from './types.js';
declare module '@tanstack/form-core' {

@@ -7,0 +6,0 @@ 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>> {

@@ -1,7 +0,6 @@

/// <reference types="react" />
import { FormApi } from '@tanstack/form-core';
import { type ReactNode } from 'rehackt';
import { type FieldComponent, type UseField } from './useField.js';
import type { NoInfer } from '@tanstack/react-store';
import type { FormOptions, FormState, Validator } from '@tanstack/form-core';
import { FormApi, FormOptions, FormState, Validator } from '@tanstack/form-core';
import { ReactNode } from 'rehackt';
import { FieldComponent, UseField } from './useField.js';
import { NoInfer } from '@tanstack/react-store';
declare module '@tanstack/form-core' {

@@ -8,0 +7,0 @@ interface FormApi<TFormData, TFormValidator> {

@@ -1,3 +0,3 @@

/// <reference types="react" />
import { useLayoutEffect } from 'rehackt';
export declare const useIsomorphicLayoutEffect: typeof useLayoutEffect;

@@ -1,2 +0,3 @@

import type { FormApi, Validator } from '@tanstack/form-core';
import { FormApi, Validator } from '@tanstack/form-core';
export declare function useTransform<TFormData, TFormValidator extends Validator<TFormData, unknown> | undefined = undefined>(fn: (formBase: FormApi<TFormData, TFormValidator>) => FormApi<TFormData, TFormValidator>, deps: unknown[]): {

@@ -3,0 +4,0 @@ fn: (formBase: FormApi<TFormData, TFormValidator>) => FormApi<TFormData, TFormValidator>;

import { decode } from 'decode-formdata';
import type { FormApi, FormOptions, ValidationError, Validator } from '@tanstack/form-core';
import { FormApi, FormOptions, ValidationError, Validator } from '@tanstack/form-core';
type OnServerValidateFn<TFormData> = (props: {

@@ -4,0 +5,0 @@ value: TFormData;

{
"name": "@tanstack/react-form",
"version": "0.19.4",
"version": "0.19.5",
"description": "Powerful, type-safe forms for React.",

@@ -40,3 +40,4 @@ "author": "tannerlinsley",

"react": "^18.2.0",
"react-dom": "^18.2.0"
"react-dom": "^18.2.0",
"vite": "^5.0.10"
},

@@ -47,3 +48,3 @@ "dependencies": {

"rehackt": "^0.0.3",
"@tanstack/form-core": "0.19.4"
"@tanstack/form-core": "0.19.5"
},

@@ -53,15 +54,3 @@ "peerDependencies": {

},
"scripts": {
"clean": "rimraf ./dist && rimraf ./coverage",
"test:eslint": "eslint --ext .ts,.tsx ./src",
"test:types:versions49": "node ../../node_modules/typescript49/lib/tsc.js --project tsconfig.legacy.json",
"test:types:versions50": "node ../../node_modules/typescript50/lib/tsc.js --project tsconfig.50.json",
"test:types:versions51": "node ../../node_modules/typescript51/lib/tsc.js",
"test:types:versions52": "tsc",
"test:types": "pnpm run \"/^test:types:versions.*/\"",
"test:lib": "vitest",
"test:lib:dev": "pnpm run test:lib --watch",
"test:build": "publint --strict",
"build": "vite build"
}
"scripts": {}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc