Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tanstack/form-core

Package Overview
Dependencies
Maintainers
2
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tanstack/form-core - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

88

build/stats-react.json

@@ -11,3 +11,3 @@ {

"name": "node_modules/.pnpm/@tanstack+store@0.0.1-beta.84/node_modules/@tanstack/store/build/esm/index.js",
"uid": "8485-13"
"uid": "3676-13"
},

@@ -18,15 +18,15 @@ {

{
"uid": "8485-15",
"uid": "3676-15",
"name": "utils.ts"
},
{
"uid": "8485-17",
"uid": "3676-17",
"name": "FormApi.ts"
},
{
"uid": "8485-21",
"uid": "3676-21",
"name": "FieldApi.ts"
},
{
"uid": "8485-23",
"uid": "3676-23",
"name": "index.ts"

@@ -37,3 +37,3 @@ }

{
"uid": "8485-19",
"uid": "3676-19",
"name": "\u0000rollupPluginBabelHelpers.js"

@@ -47,44 +47,44 @@ }

"nodeParts": {
"8485-13": {
"3676-13": {
"renderedLength": 1288,
"gzipLength": 497,
"brotliLength": 0,
"mainUid": "8485-12"
"mainUid": "3676-12"
},
"8485-15": {
"3676-15": {
"renderedLength": 1944,
"gzipLength": 684,
"brotliLength": 0,
"mainUid": "8485-14"
"mainUid": "3676-14"
},
"8485-17": {
"3676-17": {
"renderedLength": 10266,
"gzipLength": 2308,
"brotliLength": 0,
"mainUid": "8485-16"
"mainUid": "3676-16"
},
"8485-19": {
"3676-19": {
"renderedLength": 353,
"gzipLength": 227,
"brotliLength": 0,
"mainUid": "8485-18"
"mainUid": "3676-18"
},
"8485-21": {
"3676-21": {
"renderedLength": 10602,
"gzipLength": 2507,
"brotliLength": 0,
"mainUid": "8485-20"
"mainUid": "3676-20"
},
"8485-23": {
"3676-23": {
"renderedLength": 0,
"gzipLength": 0,
"brotliLength": 0,
"mainUid": "8485-22"
"mainUid": "3676-22"
}
},
"nodeMetas": {
"8485-12": {
"3676-12": {
"id": "/node_modules/.pnpm/@tanstack+store@0.0.1-beta.84/node_modules/@tanstack/store/build/esm/index.js",
"moduleParts": {
"index.production.js": "8485-13"
"index.production.js": "3676-13"
},

@@ -94,13 +94,13 @@ "imported": [],

{
"uid": "8485-16"
"uid": "3676-16"
},
{
"uid": "8485-20"
"uid": "3676-20"
}
]
},
"8485-14": {
"3676-14": {
"id": "/packages/form-core/src/utils.ts",
"moduleParts": {
"index.production.js": "8485-15"
"index.production.js": "3676-15"
},

@@ -110,20 +110,20 @@ "imported": [],

{
"uid": "8485-22"
"uid": "3676-22"
},
{
"uid": "8485-16"
"uid": "3676-16"
}
]
},
"8485-16": {
"3676-16": {
"id": "/packages/form-core/src/FormApi.ts",
"moduleParts": {
"index.production.js": "8485-17"
"index.production.js": "3676-17"
},
"imported": [
{
"uid": "8485-12"
"uid": "3676-12"
},
{
"uid": "8485-14"
"uid": "3676-14"
}

@@ -133,10 +133,10 @@ ],

{
"uid": "8485-22"
"uid": "3676-22"
}
]
},
"8485-18": {
"3676-18": {
"id": "\u0000rollupPluginBabelHelpers.js",
"moduleParts": {
"index.production.js": "8485-19"
"index.production.js": "3676-19"
},

@@ -146,17 +146,17 @@ "imported": [],

{
"uid": "8485-20"
"uid": "3676-20"
}
]
},
"8485-20": {
"3676-20": {
"id": "/packages/form-core/src/FieldApi.ts",
"moduleParts": {
"index.production.js": "8485-21"
"index.production.js": "3676-21"
},
"imported": [
{
"uid": "8485-18"
"uid": "3676-18"
},
{
"uid": "8485-12"
"uid": "3676-12"
}

@@ -166,20 +166,20 @@ ],

{
"uid": "8485-22"
"uid": "3676-22"
}
]
},
"8485-22": {
"3676-22": {
"id": "/packages/form-core/src/index.ts",
"moduleParts": {
"index.production.js": "8485-23"
"index.production.js": "3676-23"
},
"imported": [
{
"uid": "8485-16"
"uid": "3676-16"
},
{
"uid": "8485-20"
"uid": "3676-20"
},
{
"uid": "8485-14"
"uid": "3676-14"
}

@@ -186,0 +186,0 @@ ],

@@ -23,10 +23,20 @@ import type { DeepKeys, DeepValue, RequiredByKey, Updater } from './utils';

};
export declare type ChangeProps<TData> = {
export declare type UserChangeProps<TData> = {
onChange?: (updater: Updater<TData>) => void;
onBlur?: (event: any) => void;
};
export declare type InputProps = {
export declare type UserInputProps = {
onChange?: (event: any) => void;
onBlur?: (event: any) => void;
};
export declare type ChangeProps<TData> = {
value: TData;
onChange: (updater: Updater<TData>) => void;
onBlur: (event: any) => void;
};
export declare type InputProps = {
value: string;
onChange: (event: any) => void;
onBlur: (event: any) => void;
};
export declare type FieldApiOptions<TData, TFormData> = RequiredByKey<FieldOptions<TData, TFormData>, 'form'>;

@@ -66,4 +76,4 @@ export declare type FieldState<TData> = {

validate: (cause?: ValidationCause, value?: TData) => Promise<ValidationError>;
getChangeProps: <T extends ChangeProps<any>>(props?: T) => ChangeProps<TData> & Omit<T, keyof ChangeProps<TData>>;
getInputProps: <T extends InputProps>(props?: T) => InputProps & Omit<T, keyof InputProps>;
getChangeProps: <T extends UserChangeProps<any>>(props?: T) => ChangeProps<TData> & Omit<T, keyof ChangeProps<TData>>;
getInputProps: <T extends UserInputProps>(props?: T) => InputProps & Omit<T, keyof InputProps>;
}
{
"name": "@tanstack/form-core",
"version": "0.0.4",
"version": "0.0.5",
"description": "Powerful, type-safe, framework agnostic forms.",

@@ -5,0 +5,0 @@ "author": "tannerlinsley",

@@ -34,3 +34,3 @@ //

export type ChangeProps<TData> = {
export type UserChangeProps<TData> = {
onChange?: (updater: Updater<TData>) => void

@@ -40,3 +40,3 @@ onBlur?: (event: any) => void

export type InputProps = {
export type UserInputProps = {
onChange?: (event: any) => void

@@ -46,2 +46,14 @@ onBlur?: (event: any) => void

export type ChangeProps<TData> = {
value: TData
onChange: (updater: Updater<TData>) => void
onBlur: (event: any) => void
}
export type InputProps = {
value: string
onChange: (event: any) => void
onBlur: (event: any) => void
}
export type FieldApiOptions<TData, TFormData> = RequiredByKey<

@@ -338,3 +350,3 @@ FieldOptions<TData, TFormData>,

getChangeProps = <T extends ChangeProps<any>>(
getChangeProps = <T extends UserChangeProps<any>>(
props: T = {} as T,

@@ -357,3 +369,3 @@ ): ChangeProps<TData> & Omit<T, keyof ChangeProps<TData>> => {

getInputProps = <T extends InputProps>(
getInputProps = <T extends UserInputProps>(
props: T = {} as T,

@@ -360,0 +372,0 @@ ): InputProps & Omit<T, keyof InputProps> => {

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