From 161cfd796656c3cb08af3f33179257b31e6170ad Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 2 Dec 2024 12:25:06 +1300 Subject: [PATCH 1/2] Bump elliptic from 6.5.4 to 6.6.0 (#560) Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.4 to 6.6.0. - [Commits](https://github.com/indutny/elliptic/compare/v6.5.4...v6.6.0) --- updated-dependencies: - dependency-name: elliptic dependency-type: indirect ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- yarn.lock | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/yarn.lock b/yarn.lock index a052fcc4..36a69150 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1548,8 +1548,9 @@ electron-to-chromium@^1.2.7, electron-to-chromium@^1.3.30: resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.32.tgz#11d0684c0840e003c4be8928f8ac5f35dbc2b4e6" elliptic@^6.0.0: - version "6.5.4" - resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.4.tgz#da37cebd31e79a1367e941b592ed1fbebd58abbb" + version "6.6.0" + resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.6.0.tgz#5919ec723286c1edf28685aa89261d4761afa210" + integrity sha512-dpwoQcLc/2WLQvJvLRHKZ+f9FgOdjnq11rurqwekGQygGPsYSK29OMMD2WalatiqQ+XGFDglTNixpPfI+lpaAA== dependencies: bn.js "^4.11.9" brorand "^1.1.0" From dbb5a33cd0a029979b59d5fb3bf640df54053703 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Wed, 4 Dec 2024 10:46:02 +1300 Subject: [PATCH 2/2] API Deprecate renamed validator --- src/Forms/AWRequiredFields.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Forms/AWRequiredFields.php b/src/Forms/AWRequiredFields.php index 903a8ad1..5a2c53db 100644 --- a/src/Forms/AWRequiredFields.php +++ b/src/Forms/AWRequiredFields.php @@ -3,6 +3,7 @@ namespace Symbiote\AdvancedWorkflow\Forms; use SilverStripe\Forms\RequiredFields; +use SilverStripe\Dev\Deprecation; /** * Extends RequiredFields so we can prevent DO writes in AW's controller(s) without needing to catch Exceptions @@ -11,12 +12,21 @@ * * @author Russell Michell russell@silverstripe.com * @package advancedworkflow + * + * @deprecated 5.4.0 Will be renamed to Symbiote\AdvancedWorkflow\Forms\AWRequiredFieldsValidator */ class AWRequiredFields extends RequiredFields { protected $data = array(); protected static $caller; + public function __construct() + { + $message = 'Will be renamed to Symbiote\\AdvancedWorkflow\\Forms\\AWRequiredFieldsValidator'; + Deprecation::noticeWithNoReplacment('5.4.0', $message, Deprecation::SCOPE_CLASS); + parent::__construct(...func_get_args()); + } + public function php($data) { $valid = parent::php($data);