Releases: xp-forge/rest-client
Releases · xp-forge/rest-client
2.1.0: High-level APIs
- Merged PR #15: Deprecate high-level functions on low-level response
(@thekid) - Added
webservices.rest.Result::status()
method to access HTTP status
(@thekid) - Added
webservices.rest.Result::link()
method to access links with a
givenrel
attribute, see for example how GitHub implements pagination:
https://docs.github.com/en/rest/overview/resources-in-the-rest-api#pagination
(@thekid) - Merged PR #14: Fluent result interface. This pull request adds a new
RestResponse::result()
method which returnsResult
instances with
high-level access to responses including handling of unexpected status
codes along typical REST usage patterns.
(@thekid)
2.0.2: PHP 8.1 compatibility
2.0.1: Content-less response fixes
2.0.0: Drop PHP 5 support
This major release drops PHP 5 support. PHP 5 has been EOL since the end 2018, see https://www.php.net/eol.php. Dropping support for it enables us to make use a variety of PHP 7 features.
- Implemented xp-framework/rfc#334: Drop PHP 5.6:
. Heads up: Minimum required PHP version now is PHP 7.0.0
. Rewrote code base, grouping use statements
. Convertednewinstance
to anonymous classes
. Rewroteisset(X) ? X : default
toX ?? default
(@thekid)
1.0.3: Library compatibility
- Made compatible with
xp-forge/uri
version 2.0.0 - @thekid
1.0.2: Annotation syntax
- Implemented RFC #335: Remove deprecated key/value pair annotation syntax
(@thekid)
1.0.1: XP10 compatibility
- Made compatible with XP 10 - @thekid
1.0.0: Headers
0.8.0: NDJson
0.7.3: Exceptions wrapping fix
- Fixed wrapping of exceptions from
execute()
inRestException
s.
(@thekid)