You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you are not ready to migrate to the v2 core API, the `cloudevents.v1` package provides a drop-in compatibility layer that preserves the v1 API under a new namespace. This lets you unpin from the old top-level imports without rewriting your event-handling logic.
15
+
16
+
Swap the old top-level imports for their `cloudevents.v1.*` equivalents:
The compat layer behaviour is identical to the old v1 SDK: events are dict-like and mutable, marshallers/unmarshallers are accepted as callables, and `is_binary`/`is_structured` helpers are still available. The compat layer does **not** enforce strict mypy and is not under the v2 validation rules.
34
+
35
+
When you are ready to move fully to v2, follow the rest of this guide.
36
+
12
37
## Architectural Changes
13
38
14
39
v2 is a ground-up rewrite with four fundamental shifts:
0 commit comments