Skip to content

v2.0.0

Latest

Choose a tag to compare

@yannelli yannelli released this 13 Mar 18:18
· 1 commit to main since this release
Immutable release. Only release title and notes can be modified.

⚠️ Breaking Changes

  • Namespace Change: Nextvisit\ClaimMDWrapper has been renamed to Nextvisit\ClaimMD. All imports must be updated.
  • PHP 8.3 Required: Minimum PHP version bumped from 8.2 to 8.3.

What's New

Webhook Support

  • Added webhook integration with documentation and usage examples for enroll and appeal events.
  • Introduced WebhookEventDTO, WebhookEnrollEventDTO, WebhookAppealEventDTO, and WebhookPayloadDTO for managing and validating webhook payloads.

Improved Error Handling

  • Implemented custom exceptions across ClaimRequest, FileRequest, ProviderRequest, and other request classes.
  • Expanded ClaimMD-specific error handling for Client and SDK requests.

Validation Improvements

  • Added empty array checks and date validation across DTOs and request implementations.
  • Enhanced error messaging for validation failures.

Code Quality

  • Enforced stricter type declarations throughout.
  • Improved docblock consistency for better maintainability.
  • Updated test configurations and Pest namespaces to align with the new structure.

Upgrading from v1.x

  1. Update your composer.json to require PHP ^8.3.
  2. Find and replace Nextvisit\ClaimMDWrapper with Nextvisit\ClaimMD across your codebase.
  3. Run composer update and verify tests pass.