Skip to content

Make Topic and Subscription classes standalone

Compare
Choose a tag to compare
@github-actions github-actions released this 27 Sep 11:20
476c930

Summary

Make the Topic and Subscription classes standalone instead of relying on a Service instance and a related subscriber.

Contents (#523)

IMPORTANT: There are 2 breaking changes.

Enhancements

  • 💥 BREAKING CHANGE: Remove service argument from Topic constructor
  • 💥 BREAKING CHANGE: Remove subscriber argument from Subscription constructor
  • Implicitly get Service credentials from environment and remove credentials attribute

Fixes

  • Move finally clause to correct nesting level in OrderedMessageHandler.handle_messages

Upgrade instructions

💥 Remove `service` argument from `Topic` constructor

Provide the project_name argument instead of the old service argument.

💥 Remove `subscriber` argument from `Subscription` constructor

Remove the old subscriber argument as it's no longer needed.