Skip to content

v7.0.0

Latest
Compare
Choose a tag to compare
@cl77 cl77 released this 15 Jul 20:16
· 1 commit to master since this release

πŸš€ Release v7.0.0

πŸ’₯ Breaking Changes

  • sentWith parameter in Client constructor is now deprecated and ignored
  • Several resource properties changed from required to nullable
  • Enhanced error handling may throw exceptions in previously silent cases

✨ Features

  • Deprecate sentWith parameter and always use 'php-api' constant
  • Enhanced error handling with proper exception throwing
  • Improved error detection for quoted error codes
  • Better error messages with HTTP status codes

πŸ› Bug Fixes

  • Fixed RcsMessage class usage (was incorrectly using SmsMessage)
  • Set correct API error codes in exception classes (900-903)
  • Fixed date format in ContactsTest (German to ISO format)
  • Fixed InvalidApiKeyException not being thrown on error 900 (#19)

πŸ”§ Improvements

  • Improved null safety across lookup resources
  • Better resource payload building (only include non-null values)
  • More flexible test assertions to handle API variations
  • Enhanced test reliability with null checks
  • Removed unused JournalResource::replies method

πŸ“¦ Changed Files

  • Client error handling and sentWith deprecation
  • All exception classes with proper error codes
  • Lookup resources (Carrier, LookupHlr) with nullable properties
  • Contact and Properties resources with conditional payload building
  • ValidateForVoice with nullable sender
  • Comprehensive test improvements

πŸ€– Generated with Claude Code