v0.10.0 - Adding support for CloudEvents v1.0
Pre-release
Pre-release
Changes to support 1.0
- Added new types,
types.URI
andtypes.URIRef
- Lots of work into converting extensions in and out of canonical string forms.
- Deprecated DataContentEncoding, replaced with json property called data_base64.
This is accessed by setting a[]byte
as data and using structured encoding. - All currently supported Transports (soon to be called Bindings) support 1.0.
Bug Fixes:
- HTTP codec creation race condition has been fixed.
- Time is parsed only in the type converters now.
- Content-Type was assumed to always be Application/json. The sdk no longer
defaults. If you find issues, try setting the DataContentType toapplication/json
DataContentType
now supportstext/plain
.- Converter functions are now allowed to return
nil, nil
to mean nop/skip this
payload, which results in a 204 status code for HTTP.
Prep for SDKv2:
- AMQP binding has been rewritten in the internal details.
- New packages now exist,
pkg/binding
andpkg/bindings
exist as an attempt
to rewrite the SDK to be a bit more event-like, the plan is to standardize
some of the API and create Bindings (renamed from Transport) without assumed
responses. We will have two kinds of Bindings, unidirectional, and
bidirectional. More details to come as work continues.