From 982045e5597f2906714a9f38674880d8ee649645 Mon Sep 17 00:00:00 2001 From: Fabian Hiller Date: Sun, 8 Oct 2023 01:41:55 -0400 Subject: [PATCH] Deprecate equal validation in favor of value #192 --- library/CHANGELOG.md | 1 + library/src/validations/equal/equal.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/library/CHANGELOG.md b/library/CHANGELOG.md index 04b4852a3..28e782440 100644 --- a/library/CHANGELOG.md +++ b/library/CHANGELOG.md @@ -7,6 +7,7 @@ All notable changes to the library will be documented in this file. - Add `notBytes`, `notLength`, `notSize` and `notValue` validation function (pull request #194) - Change regex of `email` validation (pull request #180) - Fix types at `brand`, `transform` and `unwrap` method (issue #195) +- Deprecate `equal` validation function in favor of `value` (issue #192) ## v0.18.0 (September 30, 2023) diff --git a/library/src/validations/equal/equal.ts b/library/src/validations/equal/equal.ts index c2e4620ae..80c140c06 100644 --- a/library/src/validations/equal/equal.ts +++ b/library/src/validations/equal/equal.ts @@ -4,6 +4,8 @@ import { getOutput, getPipeIssues } from '../../utils/index.ts'; /** * Creates a validation function that checks the value for equality. * + * @deprecated Function has been renamed to `value`. + * * @param requirement The required value. * @param error The error message. *