Skip to content

Commit

Permalink
Release WAF 0.20.1. (#39607)
Browse files Browse the repository at this point in the history
  • Loading branch information
zinigor authored Oct 1, 2024
1 parent 3583df8 commit dc2beb7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
5 changes: 5 additions & 0 deletions projects/packages/waf/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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
Expand Down

This file was deleted.

8 changes: 4 additions & 4 deletions projects/packages/waf/src/class-waf-stats.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

Expand All @@ -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 );

Expand Down

0 comments on commit dc2beb7

Please sign in to comment.