Skip to content

Latest commit

 

History

History
145 lines (94 loc) · 3.95 KB

File metadata and controls

145 lines (94 loc) · 3.95 KB

Changelog

All Notable changes to digipolisgent/api-client package.

Added

  • Added API key authentication using the apiKey and applicationId headers.
  • Added ApiKeyConfiguration and LegacyConfiguration, with a shared ClientConfigurationInterface for endpoint, version, and timeout settings.
  • Added a v3 to v4.3 upgrade guide and offline authentication compatibility tests.

Changed

  • Made the client token cache optional for API key and legacy configurations; OIDC still requires it. Existing OIDC configuration signatures, interface methods, protected property types, and token-provider behavior are preserved.

Changed

  • Added Guzzle 8 support, allowing consumers such as Drupal 12 to resolve Guzzle PSR-7 3.x while retaining Guzzle 6 and 7 compatibility.
  • Added PHP 8.5 to the continuous-integration matrix.
  • Updated development tooling to QA PHP 3.1, including shared PHPUnit 11/12 configuration generation.
  • Updated the README requirements, testing guidance, and continuous-integration badge.

Removed

  • Removed the project-specific PHPUnit XML configuration, now provided by QA PHP.

Updated

  • Update qa-php to 2.x.
  • Update psr/http-message to 1.x or 2.x.
  • Update psr/simple-cache to 1.x or 2.x or 3.x.

Use version 4 of this module to switch over to OAuth authentication. Key/secret authentication is dropped from the client. The client and configuration objects have changed parameters.

Added

  • ZALENZOEK-689: Add OAuth2 API authentication.

Fixed

  • Fix minimal supported Guzzle version: Drupal recommended still uses Guzzle 6.

Added

  • Add PHP8.1 support.

Changed

  • Bumped minimum PHP version to 7.4.
  • Bumped minimal Guzzle version to 7.x.

Updated

  • Update qa-php package to 1.x.

Added

  • Add district09/qa-php to instal QA tools.
  • Add also support for Guzzle 7.x.

Added

  • Added AbstractXmlRequest class.

Changed

  • Made the code strict.
  • Renamed the AbstractRequest class to AbstractJsonRequest.
  • The client in ServiceAbstract is now only accessible in extending classes trough protected method ServiceAbstract::client().

Removed

  • Removed chaining ClientInterface::addHandler() method calls.

Added

  • Added code style checks.

Changed

  • Allow setting a TTL for cache entries.

Added

  • AccepType enum
  • MethodType enum
  • Uri component
  • AbstractRequest
  • Allow handlers to support multiple request types
  • Code of Conduct
  • Security guidelines
  • Make the request, not the client, responsible for Accept and Content-Type headers

Initial release of the digipolisgent/api-client package.

This includes:

  • PSR-7 client implementation.
  • Interfaces to use caching in client packages.
  • Interfaces to use logging in client packages.
  • Interfaces to create services in client packages.