From dc2beb7a9640fbc603bd7c82e35eef870e434728 Mon Sep 17 00:00:00 2001 From: Igor Zinovyev Date: Tue, 1 Oct 2024 20:55:18 +0300 Subject: [PATCH] Release WAF 0.20.1. (#39607) --- projects/packages/waf/CHANGELOG.md | 5 +++++ .../waf/changelog/add-removed-waf-methods-as-deprecated | 4 ---- projects/packages/waf/src/class-waf-stats.php | 8 ++++---- 3 files changed, 9 insertions(+), 8 deletions(-) delete mode 100644 projects/packages/waf/changelog/add-removed-waf-methods-as-deprecated diff --git a/projects/packages/waf/CHANGELOG.md b/projects/packages/waf/CHANGELOG.md index 6d14307b63a4e..ea335f992a368 100644 --- a/projects/packages/waf/CHANGELOG.md +++ b/projects/packages/waf/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.20.1] - 2024-10-01 +### Deprecated +- Added back public API as deprecated. [#39606] + ## [0.20.0] - 2024-09-30 ### Added - Added Waf_Blocklog_Manager class [#35739] @@ -374,6 +378,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - Core: do not ship .phpcs.dir.xml in production builds. +[0.20.1]: https://github.com/Automattic/jetpack-waf/compare/v0.20.0...v0.20.1 [0.20.0]: https://github.com/Automattic/jetpack-waf/compare/v0.19.0...v0.20.0 [0.19.0]: https://github.com/Automattic/jetpack-waf/compare/v0.18.5...v0.19.0 [0.18.5]: https://github.com/Automattic/jetpack-waf/compare/v0.18.4...v0.18.5 diff --git a/projects/packages/waf/changelog/add-removed-waf-methods-as-deprecated b/projects/packages/waf/changelog/add-removed-waf-methods-as-deprecated deleted file mode 100644 index 37bdca77ada67..0000000000000 --- a/projects/packages/waf/changelog/add-removed-waf-methods-as-deprecated +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: deprecated - -Added back public API as deprecated. diff --git a/projects/packages/waf/src/class-waf-stats.php b/projects/packages/waf/src/class-waf-stats.php index b11aac7bb9c40..71494971ea830 100644 --- a/projects/packages/waf/src/class-waf-stats.php +++ b/projects/packages/waf/src/class-waf-stats.php @@ -32,10 +32,10 @@ public static function get_blocked_requests() { * * @return int The number of valid IP addresses in the allow list * - * @deprecated $$next-version$$ Use Automattic\Jetpack\Waf\Waf_Blocklog_Manager API instead. + * @deprecated 0.20.1 Use Automattic\Jetpack\Waf\Waf_Blocklog_Manager API instead. */ public static function get_ip_allow_list_count() { - _deprecated_function( __METHOD__, 'waf-$$next-version$$', 'Automattic\Jetpack\Waf\Waf_Blocklog_Manager' ); + _deprecated_function( __METHOD__, 'waf-0.20.1', 'Automattic\Jetpack\Waf\Waf_Blocklog_Manager' ); $ip_allow_list = get_option( Waf_Rules_Manager::IP_ALLOW_LIST_OPTION_NAME ); @@ -53,10 +53,10 @@ public static function get_ip_allow_list_count() { * * @return int The number of valid IP addresses in the block list * - * @deprecated $$next-version$$ Use Automattic\Jetpack\Waf\Waf_Blocklog_Manager API instead. + * @deprecated 0.20.1 Use Automattic\Jetpack\Waf\Waf_Blocklog_Manager API instead. */ public static function get_ip_block_list_count() { - _deprecated_function( __METHOD__, 'waf-$$next-version$$', 'Automattic\Jetpack\Waf\Waf_Blocklog_Manager' ); + _deprecated_function( __METHOD__, 'waf-0.20.1', 'Automattic\Jetpack\Waf\Waf_Blocklog_Manager' ); $ip_block_list = get_option( Waf_Rules_Manager::IP_BLOCK_LIST_OPTION_NAME );