Releases: codeinchq/url
Releases · codeinchq/url
2.0.1
2.0.0
Breaking changes
- Requires PHP ^8.2 (was >=7.1)
- Requires
psr/http-message^2.0 (was ^1.0) withQuery()now acceptsstringonly (PSR-7 strict); use newwithQueryParams(iterable)for merging key/value pairs- PSR-7 string getters (
getScheme(),getHost(),getPath(), etc.) return''instead ofnullwhen unset getPort()returnsnullfor standard ports (80/http, 443/https) per PSR-7- Host is normalized to lowercase per PSR-7
- Query/fragment encoding uses
rawurlencode()(RFC 3986%20) instead ofurlencode()(+) - Schemeless authority (
//host/) when no scheme is set, instead of defaulting tohttp://
Changes
1c5992aModernize library for PHP 8.2+ and PSR-7 2.0 (#11)5bae69dAddress Copilot review: RFC3986 encoding, PSR-7 compliance fixes (#11)
Highlights
- Typed properties,
staticreturn types, and full PSR-7 2.0UriInterfacecompliance - New
withQueryParams(iterable)method for merging query parameters - Expanded test suite: 61 tests / 121 assertions (was 3 tests)
- GitHub Actions CI on PHP 8.2, 8.3, 8.4
- Dependabot enabled for automated dependency updates
- Branch protection on master
1.5.4
1.5.3
1.5.2
1.5.1
1.5.0
1.4.0
New package name codeinc/url
1.3.5
New package name codeinc/lib-url
1.3.4
Bug fix (case issue with the file Url.php named URL.php)