Skip to content

2.11.0 Marking additional events as non-defer()able, and other minor improvements

Compare
Choose a tag to compare
@tonyandrewmeyer tonyandrewmeyer released this 29 Feb 04:32
· 158 commits to main since this release
b601088

This release marks additional events as not suitable for deferring: StopEvent, RemoveEvent, and the LifecycleEvents: CollectStatusEvent, CommitEvent, and PreCommitEvent. The defer() method on these event classes is marked as NoReturn and calling it will raise a RuntimeError.

Features

  • feat: add the action's ID to the ActionEvent object in #1124
  • feat: add the ability to compare two Plan objects with == and create a Plan from a dict in #1134
  • feat: only have a defer() method on events that can be deferred in #1122

Fixes

  • fix(testing): set JUJU_REMOTE_APP and allow fetching relation data in relation-broken in #1130

Documentation

  • docs: tweak the wording around can_connect() usage in #1123

Tooling

  • chore: move to ruff for linting in #1120
  • chore: adjust isort to be more compatible with ruff in #1139
  • chore: expand ruff rule sets and make corresponding minor adjustments in #1114

Full Changelog: 2.10.0...2.11.0