Skip to content

docs(release): 1.19.0 - #185

Merged
davidgrayston-paddle merged 4 commits into
mainfrom
docs/release-1.19.0
Nov 24, 2026
Merged

davidgrayston-paddle merged 4 commits into
mainfrom
docs/release-1.19.0

Conversation

@davidgrayston-paddle

@davidgrayston-paddle davidgrayston-paddle commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

1.19.0 - 2026-11-24

v1.18.0...docs/release-1.19.0

Added

  • Added support for API keys. See related changelog
    • Client.api_keys.list
    • Client.api_keys.get
  • Added support for API key rotation. See related changelog. The rotation methods act on the API key the client is authenticated with, as a key can only manage its own rotations. To rotate another key, create a client with that key's secret. The full new_key is only returned on create, so store it securely
    • Client.api_keys.create_rotation_for_current_key
    • Client.api_keys.list_rotations_for_current_key
    • Client.api_keys.get_rotation_for_current_key
  • Added api_key.read to ApiKeyPermission
  • Added api_key_rotation.created and api_key_rotation.updated events, including simulation payload support
  • Added a py.typed marker, so mypy and pyright check your code against the SDK's type annotations
  • Added BodyRequest, ContentRequest and DataRequest protocols to paddle_billing.Notifications.Requests, for typing your own webhook request objects

Changed

  • UpdateCheckoutUrl now requires default_url as a non-null str. The API no longer accepts None or a missing default_url when updating the checkout URL, so a default checkout URL can be changed but not cleared
  • Verifier.verify() logs expected rejections at WARNING instead of CRITICAL: a missing Paddle-Signature header, or a timestamp outside the allowed variance or in the future. If you alert on CRITICAL records from the paddle_billing logger, update the alert
  • mypy now checks code that uses the SDK against its annotations, where before it treated the SDK as untyped, so upgrading may report new errors. For example, client.customers.response is Response | None, and fields the API can return as null include None in their type, such as PaymentMethod.card: Card | None. Under mypy --strict, a bare CreateReport annotation needs type arguments, such as CreateReport[Any, Any]. Pyright already read the SDK's annotations
  • Verifier.verify() and NotificationEvent.from_request() take Request | BodyRequest | ContentRequest | DataRequest, so Django, Flask, httpx and requests request objects pass type checkers

Fixed

  • Cloudflare 520–524 errors are now retried with backoff for idempotent methods such as GET, like other transient errors
  • DateTime now converts timezone-aware values to UTC instead of dropping their offset. For example, 12:00:00+02:00 was previously sent as 12:00:00Z, two hours late. Naive values are still treated as UTC
  • GET and DELETE requests that exhaust their retries on a 429 or 5xx now raise the error from the last response instead of requests.exceptions.RetryError: ApiError (with retry_after from any Retry-After header), or requests.HTTPError for a Cloudflare error page with no JSON body. If you catch RetryError, catch ApiError or requests.RequestException instead
  • Verifier(maximum_variance=None) no longer raises a TypeError on verify(). None skips the time drift check, like 0
  • Verifier.verify() and NotificationEvent.from_request() skip a body, content or data attribute that is None and read the next one, instead of raising AttributeError
  • NotificationPayout.from_dict() no longer raises TypeError: 'module' object is not callable
  • Importing paddle_billing.Notifications.Events.PaymentMethodDeleted no longer raises an ImportError

@davidgrayston-paddle davidgrayston-paddle self-assigned this Nov 19, 2026
@davidgrayston-paddle
davidgrayston-paddle merged commit 74ffcae into main Nov 24, 2026
6 checks passed
@davidgrayston-paddle
davidgrayston-paddle deleted the docs/release-1.19.0 branch November 24, 2026 16:45

This branch was successfully deployed

1 active deployment
dev — 586c1006 Deployed Nov 24, 2026 by davidgrayston-paddle via Package stability #539
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants