Skip to content

Commit 70aa1be

Browse files
authored
Update CHANGELOG.md
1 parent 2e60996 commit 70aa1be

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

CHANGELOG.md

+22-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212
- **Separate Processing Pipelines:** Implemented distinct processing logic for IPv4 and IPv6 ranges to optimize performance and maintain code clarity.
1313
- **Range Merging and Sorting:** Added functionality to merge and sort cloud IP ranges upfront, reducing redundancy and enhancing subtraction efficiency.
1414
- **Optimized Bitwise Operations:** Improved bitwise operations for both GMP and BCMath extensions to minimize computational overhead and speed up processing.
15-
- **Enhanced IP Conversion Functions:** Updated IP conversion functions to support IPv6 addresses using `inet_pton` and `inet_ntop`.
15+
- **Enhanced Functionality:**
16+
- Updated IP conversion functions to support IPv6 addresses using `inet_pton` and `inet_ntop`.
17+
- Refactored CIDR to range and range to CIDR conversion functions to accommodate IPv6 addressing.
1618
- **Composer Dependencies:** Updated `composer.json` to include dependencies for PHP extensions **GMP** and **BCMath**, along with scripts to enforce their presence.
1719
- **Comprehensive Documentation:** Enhanced script comments and documentation to reflect IPv6 support and the associated changes in functionality.
1820

@@ -24,6 +26,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2426
### Fixed
2527
- **Range Difference Logic:** Corrected the range difference calculations to ensure accurate subtraction of cloud IP ranges from Google's IP ranges for both IPv4 and IPv6.
2628

29+
### Performance Optimizations
30+
- **Execution Speed:** The script now executes in under **500ms** on our test server, a significant improvement from the original Python script's **1.5 seconds** for the same task. This enhancement ensures faster IP range calculations, making the script more efficient and responsive.
31+
32+
## [1.0.1] - 2024-11-20
33+
### **New Feature: Direct CLI Output**
34+
35+
This release introduces the ability for the script to output the calculated IP prefixes directly to the CLI when executed from the command line.
36+
37+
#### **What's New?**
38+
- When the script is run via CLI (`php google_ip_prefix_diff.php`), it now outputs the resulting IP prefixes (CIDR blocks) line by line.
39+
- This makes it easier to redirect the output to a file for caching or further processing:
40+
```bash
41+
php google_ip_prefix_diff.php > cached_ip_ranges.txt
42+
```
43+
44+
#### **Benefits:**
45+
- **Automation-Friendly**: Enables easy integration with cron jobs or other automation tools.
46+
- **Improved Usability**: Users no longer need to manually handle the returned array when running the script via CLI.
47+
2748
## [1.0.0] - 2024-11-19
2849

2950
### Added

0 commit comments

Comments
 (0)