github smkent/jmapc v0.2.0

latest releases: v0.2.23, v0.2.22, v0.2.21...
3 years ago

Breaking changes

  • Client authentication is now generic. For HTTP Basic or Bearer authentication, construct a Client using Client.create_with_password or Client.create_with_api_token, respectively. Arbitrary authentication methods via requests.auth.AuthBase are supported by the Client constructor's auth argument.
  • JMAP requests are now run using Client.request instead of Client.method_call or Client.method_calls, both of which have been removed. Client.request supports the previous multi-method use cases, with a new pair of classes Invocation and InvocationResponse instead of using tuples for multiple requests and responses. Multiple Client.request overloads with specific typing are provided.
  • Result references should now use Ref instead of ResultReference. ResultReference remains but is now intended for internal use. Ref is simpler to use; in most cases you can simply use Ref("/path") to reference the /path value of the immediately preceding method.

What's Changed

  • Add repository image by @smkent in #30
  • Add pull_request to CI triggers by @smkent in #32
  • Rework client authentication and add factory methods for basic, bearer auth by @smkent in #33
  • Added Set Mailbox Functionality by @bwilliams18 in #31
  • Add on_destroy_remove_emails to MailboxSet, unit tests by @smkent in #34
  • Implement /changes methods for all models by @smkent in #35
  • Implement /queryChanges methods for Mailbox and Email by @smkent in #36
  • Implement Identity/set method by @smkent in #37
  • Remove unnecessary using property from MailboxSetResponse by @smkent in #38
  • Test Thread len by @smkent in #40
  • Implement support for EventSource events by @smkent in #39
  • Add event source usage example by @smkent in #42
  • Rework request interaction by @smkent in #41
  • Add remaining fields to MailboxQueryFilterCondition by @smkent in #45
  • Implement remaining EmailSubmission methods by @smkent in #46
  • Implement Email/copy by @smkent in #47
  • Rework JMAP method name configuration code by @smkent in #48
  • Improve and streamline type hints by @smkent in #49
  • Surface EventSource state events regardless of whether ID is present by @smkent in #50

New Contributors

Full Changelog: v0.1.7...v0.2.0

Don't miss a new jmapc release

NewReleases is sending notifications on new releases.