Skip to content

v2.0.0

Choose a tag to compare

@github-actions github-actions released this 05 Oct 22:11
· 41 commits to main since this release
  • feat!: normalize WhatsApp IDs and fix display_phone_number handling (ae5293a)

BREAKING CHANGES

    • SimulateIncomingTextRequest.name is now optional (defaults to 'Test User')
  • SimulateIncomingMessageResponse now includes 'input' field with original value
  • EmulatorConfig now accepts optional 'displayPhoneNumber' field

Changes:

  • Add normalizeWhatsAppId() utility to strip '+' prefix from phone numbers
  • Fix display_phone_number vs phone_number_id distinction in webhooks
    • display_phone_number: actual phone number (e.g., "17871231234")
    • phone_number_id: business account ID (e.g., "50000000000001")
  • Generate default displayPhoneNumber as 1555 + last 7 digits of businessPhoneNumberId
  • Normalize all phone IDs in webhook payloads and API responses
  • Update documentation with clarifications about '+' prefix handling
  • Add comprehensive phone number terminology guide to README