You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+22-1
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
12
12
-**Separate Processing Pipelines:** Implemented distinct processing logic for IPv4 and IPv6 ranges to optimize performance and maintain code clarity.
13
13
-**Range Merging and Sorting:** Added functionality to merge and sort cloud IP ranges upfront, reducing redundancy and enhancing subtraction efficiency.
14
14
-**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.
16
18
-**Composer Dependencies:** Updated `composer.json` to include dependencies for PHP extensions **GMP** and **BCMath**, along with scripts to enforce their presence.
17
19
-**Comprehensive Documentation:** Enhanced script comments and documentation to reflect IPv6 support and the associated changes in functionality.
18
20
@@ -24,6 +26,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
24
26
### Fixed
25
27
-**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.
26
28
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:
0 commit comments