Skip to content

2.2.0

Latest

Choose a tag to compare

@mdwcrft mdwcrft released this 28 Nov 18:59
b141ce5

Highlights

  • Fix for #791: a malformed message can no longer end the message loop in ChargePoint.start(). A Call whose action is a JSON array or object is now answered with a NotSupported CallError. Deeply nested JSON is now treated as a format violation and logged. Before this fix, either message raised an unhandled exception that ended the session, and could exit a charger process written like the library's examples. Affects 1.6, 2.0.1 and 2.1. By @hippi345 in #792
  • The @on handler's response can now be passed to the @after hook (opt-in via inject_response=True) by @OSkrk in #683
  • Type annotations throughout, mypy --strict passes, and a py.typed marker is shipped, so type checkers use the package's type hints. By @fjovell-swish in #771 and @Amraa1 in #755

Features

Fixes

  • Spell receiptUrl the way the 2.1 schemas do by @OSkrk in #780
  • Handle v2.1 NotImplemented errors by @OSkrk in #744
  • Align v2.1 and v2.0.1 payloads for the ISO 15118 certificate hash data attribute by @OSkrk in #743
  • Fix intermittent reconnect failures and missing charge point ID extraction by @rishabhvaish in #752
  • Remove duplicate v2.0.1 types by @mdwcrft in #767
  • Revert the create_and_start_charge_point helper function by @a-alak in #766

Packaging, CI and chores

  • Make Python 3.11 the consistently declared minimum and add the 3.14 classifier by @mdwcrft in #782 (the python = "^3.11" requirement is unchanged from 2.1.0)
  • Advertise OCPP 2.1 support in the README by @huangkongsheng in #784
  • Replace the deprecated set-output command and update GitHub Actions versions by @mdwcrft in #789
  • Run the CI test matrix on the matrix interpreter and split lint from tests by @mdwcrft in #768
  • Makefile respects global poetry installs by @a-alak in #737
  • Remove the executable bit from JSON schema files by @a-detiste in #765
  • Add OSkrk to CODEOWNERS by @mdwcrft in #785

Dependencies

Dependabot updates: certifi (#787), black (#786, #764), urllib3 (#781, #749), idna (#763), requests (#761, #730), pygments (#760)

Tested as release candidates 2.2.0rc1 and 2.2.0rc2.

Full Changelog: 2.1.0...2.2.0