Releases: phpgt/Http
May 2023 release (PSR-7 v2)
This minor patch release introduces compatibility changes for PSR-7 v2, which defines type safety throughout the HTTP classes.
CI and QA improvements
In this patch release, we introduce a CI build matrix. All supported PHP versions will be tested on PHPUnit, PHPStan, PHP Mess Detector and PHP Code Sniffer. Lovely!
What's Changed
Full Changelog: v1.1.8...v1.1.9
February 2023
What's Changed
- feature: reload and throw away query string by @g105b in #178
- Bump phpstan/phpstan from 1.8.6 to 1.9.4 by @dependabot in #182
- feature: request factory creates uri with all parts by @g105b in #183
Full Changelog: v1.1.7...v1.1.8
Readonly headers on HTTP messages
What's Changed
Full Changelog: v1.1.6...v1.1.7
September 2022 release
What's Changed
- Bump phpunit/phpunit from 9.5.21 to 9.5.23 by @dependabot in #162
- maintenance: dependabot by @g105b in #170
- tweak: safely check presence of current protocol by @g105b in #171
- tweak: pass request to response to redirect to current path by @g105b in #173
- Update README.md by @g105b in #174
Full Changelog: v1.1.5...v1.1.6
Response redirect/reload functions
Two new non-standard functions are added for convenience within WebEngine and other frameworks. Response::redirect and Response::reload.
What's Changed
- Abstract exception removal by @g105b in #80
- 45 phpstan level 6 by @g105b in #114
- build: hard dependencies by @g105b in #154
- Bump willdurand/negotiation from 3.0.0 to 3.1.0 by @dependabot in #110
- Bump phpstan/phpstan from 1.8.0 to 1.8.1 by @dependabot in #155
- feature: Uri::getQueryValue by @g105b in #157
- 159 response redirect by @g105b in #160
New Contributors
- @dependabot made their first contribution in #110
Full Changelog: v1.1.4...v1.1.5
Global state factory
Ready for the v4 release of WebEngine, there needed to be a way to produce a PSR-7 ServerRequest from the global state rather than by supplying a pre-populated RequestInterface. This release contains this the new functionality, along with many minor improvements.
CI improvements and PHP 8 compatibility
We're one step closer to a CI environment fully hosted within Github Actions now, with PHPUnit and PHPStan tests being run within Actions. Codesniffer is planned soon too.
PHP 8 compatibility is made possible thanks to an updated dependency tree.
Further organisation of Http exceptions
This minor release simply adds an extra layer of organisation to the various HTTP exceptions relating to HTTP response statuses. The different exception types are now organised into Redirect (3XX), Client (4XX) and Server (5XX) namespaces.
Hotfix: change visibility to public for all HTTP exceptions' getStatusCode method
Http exception visibility (#37) * Build up request URI in parts for greater compatibility * Change visibility to public for all getStatusCode functions