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.25.3 to 0.26.3

24

dist/esm/FieldApi.js

@@ -94,4 +94,3 @@ import { Store } from "@tanstack/store";

for (const field of fields) {
if (!field.instance)
continue;
if (!field.instance) continue;
const { onChangeListenTo, onBlurListenTo } = field.instance.options.validators || {};

@@ -145,9 +144,7 @@ if (cause === "change" && (onChangeListenTo == null ? void 0 : onChangeListenTo.includes(this.name))) {

for (const validateObj of validates) {
if (!validateObj.validate)
continue;
if (!validateObj.validate) continue;
validateFieldFn(this, validateObj);
}
for (const fieldValitateObj of linkedFieldValidates) {
if (!fieldValitateObj.validate)
continue;
if (!fieldValitateObj.validate) continue;
validateFieldFn(fieldValitateObj.field, fieldValitateObj);

@@ -203,4 +200,3 @@ }

setTimeout(async () => {
if (controller.signal.aborted)
return rawResolve(void 0);
if (controller.signal.aborted) return rawResolve(void 0);
try {

@@ -226,4 +222,3 @@ rawResolve(

}
if (controller.signal.aborted)
return resolve(void 0);
if (controller.signal.aborted) return resolve(void 0);
const error = normalizeError(rawError);

@@ -245,9 +240,7 @@ field.setMeta((prev) => {

for (const validateObj of validates) {
if (!validateObj.validate)
continue;
if (!validateObj.validate) continue;
validateFieldAsyncFn(this, validateObj, validatesPromises);
}
for (const fieldValitateObj of linkedFieldValidates) {
if (!fieldValitateObj.validate)
continue;
if (!fieldValitateObj.validate) continue;
validateFieldAsyncFn(

@@ -272,4 +265,3 @@ fieldValitateObj.field,

var _a;
if (!this.state.meta.isTouched)
return [];
if (!this.state.meta.isTouched) return [];
try {

@@ -276,0 +268,0 @@ this.form.validate(cause);

@@ -42,4 +42,3 @@ import { Store } from "@tanstack/store";

const { onMount } = this.options.validators || {};
if (!onMount)
return;
if (!onMount) return;
const error = this.runValidator({

@@ -61,4 +60,3 @@ validate: onMount,

this.update = (options) => {
if (!options)
return;
if (!options) return;
const oldOptions = this.options;

@@ -101,4 +99,3 @@ this.options = options;

void Object.values(this.fieldInfo).forEach((field) => {
if (!field.instance)
return;
if (!field.instance) return;
const fieldInstance = field.instance;

@@ -140,4 +137,3 @@ fieldValidationPromises.push(

const fieldInstance = (_a2 = this.fieldInfo[field]) == null ? void 0 : _a2.instance;
if (!fieldInstance)
return [];
if (!fieldInstance) return [];
if (!fieldInstance.state.meta.isTouched) {

@@ -153,4 +149,3 @@ fieldInstance.setMeta((prev) => ({ ...prev, isTouched: true }));

for (const validateObj of validates) {
if (!validateObj.validate)
continue;
if (!validateObj.validate) continue;
const error = normalizeError(

@@ -200,4 +195,3 @@ this.runValidator({

for (const validateObj of validates) {
if (!validateObj.validate)
continue;
if (!validateObj.validate) continue;
const key = getErrorMapKey(validateObj.cause);

@@ -216,4 +210,3 @@ const fieldValidatorMeta = this.state.validationMetaMap[key];

setTimeout(async () => {
if (controller.signal.aborted)
return rawResolve(void 0);
if (controller.signal.aborted) return rawResolve(void 0);
try {

@@ -277,4 +270,3 @@ rawResolve(

}));
if (!this.state.canSubmit)
return;
if (!this.state.canSubmit) return;
this.store.setState((d) => ({ ...d, isSubmitting: true }));

@@ -281,0 +273,0 @@ const done = () => {

@@ -7,4 +7,3 @@ function functionalUpdate(updater, input) {

return pathObj.reduce((current, pathPart) => {
if (current === null)
return null;
if (current === null) return null;
if (typeof current !== "undefined") {

@@ -52,4 +51,3 @@ return current[pathPart];

function doDelete(parent) {
if (!parent)
return;
if (!parent) return;
if (path.length === 1) {

@@ -56,0 +54,0 @@ const finalPath = path[0];

{
"name": "@tanstack/form-core",
"version": "0.25.3",
"version": "0.26.3",
"description": "Powerful, type-safe, framework agnostic forms.",

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

"dependencies": {
"@tanstack/store": "^0.5.0"
"@tanstack/store": "^0.5.4"
},
"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

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