From 2b6f9e20f42953f9d83fe1cb076ba51179a2eba8 Mon Sep 17 00:00:00 2001 From: Rory Powell Date: Thu, 20 Jan 2022 21:40:10 +0000 Subject: [PATCH] Add deprecation notice --- packages/builder/src/helpers/validation/validation.js | 2 ++ packages/builder/src/helpers/validation/validators.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/packages/builder/src/helpers/validation/validation.js b/packages/builder/src/helpers/validation/validation.js index 8d80d720a1..db5dfe4430 100644 --- a/packages/builder/src/helpers/validation/validation.js +++ b/packages/builder/src/helpers/validation/validation.js @@ -1,5 +1,7 @@ import { writable, derived } from "svelte/store" +// DEPRECATED - Use the yup based validators for future validation + export function createValidationStore(initialValue, ...validators) { let touched = false diff --git a/packages/builder/src/helpers/validation/validators.js b/packages/builder/src/helpers/validation/validators.js index 036487fd50..f842f11313 100644 --- a/packages/builder/src/helpers/validation/validators.js +++ b/packages/builder/src/helpers/validation/validators.js @@ -1,3 +1,5 @@ +// TODO: Convert to yup based validators + export function emailValidator(value) { return ( (value &&