Closed JP-Dhabolt closed 1 year ago
@JP-Dhabolt I will look into that
You are correct, to_json
is missing from the cloudevents.http
module __init__
.
I fixed the issue in #191 and added a regression test so it wont happen again as-well
Hey @JP-Dhabolt, thx for raising this.
The fix is merged already and should be released shortly.
Expected Behavior
Minor version updates do not introduce breaking changes
Actual Behavior
Minor version updates introduced breaking change.
Steps to Reproduce the Problem
cloudevents~=1.2
1.6.0
, which is minor version updates onlyfrom cloudevents.http import to_json
. This is not the only breaking change introduced, just the one that specifically impacted my team.Specifications
It looks like it was #188 that caused the breaking change, based on the Changelog and the history of
cloudevents/http/__init__.py
. It looks like the intention was to deprecate some functionality, but by changing the import path, it broke the functionality instead.