fix(smartproxy): Consolidate duplicate IRouteSecurity interfaces to use standardized property names (ipAllowList and ipBlockList), fix port preservation logic for preserve mode in forward actions, and update dependency versions in package.json.

This commit is contained in:
2025-05-15 09:56:32 +00:00
parent 3e411667e6
commit 94e9eafa25
6 changed files with 327 additions and 112 deletions

View File

@ -1,5 +1,14 @@
# Changelog
## 2025-05-15 - 18.0.1 - fix(smartproxy)
Consolidate duplicate IRouteSecurity interfaces to use standardized property names (ipAllowList and ipBlockList), fix port preservation logic for 'preserve' mode in forward actions, and update dependency versions in package.json.
- Unified the duplicate IRouteSecurity interfaces into a single definition using ipAllowList and ipBlockList.
- Updated security checks (e.g. isClientIpAllowed) to use the new standardized property names.
- Fixed the resolvePort function to properly handle 'preserve' mode and function-based port mapping.
- Bumped dependency versions: @push.rocks/smartacme from 7.3.2 to 7.3.3 and @types/node to 22.15.18, and updated tsbuild from 2.3.2 to 2.4.1.
- Revised documentation and changelog to reflect the interface consolidation and bug fixes.
## 2025-05-15 - 18.0.0 - BREAKING CHANGE(IRouteSecurity)
Consolidate duplicated IRouteSecurity interfaces by unifying property names (using 'ipAllowList' and 'ipBlockList' exclusively) and removing legacy definitions, updating security checks throughout the codebase to handle IPv6-mapped IPv4 addresses and cleaning up deprecated forwarding helpers.