From 688ec7dc9147dc99443c2dc32f758e1034b9a26b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 22 Aug 2021 21:01:30 -0700 Subject: [PATCH] release: Release cloud_events 0.6.0 (#70) Signed-off-by: CNCF CloudEvents Bot --- CHANGELOG.md | 11 +++++++++++ lib/cloud_events/version.rb | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3f6d6b3..0f9eee3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,16 @@ # Changelog +### v0.6.0 / 2021-08-23 + +This update further clarifies and cleans up the encoding behavior of event payloads. In particular, the event object now includes explicitly encoded data in the new `data_encoded` field, and provides information on whether the existing `data` field contains an encoded or decoded form of the payload. + +* Added `data_encoded`, `data_decoded?` and `data?` methods to `CloudEvents::Event::V1`, added `:data_encoded` as an input attribute, and clarified the encoding semantics of each field. +* Changed `:attributes` keyword argument in event constructors to `:set_attributes`, to avoid any possible collision with a real extension attribute name. (The old argument name is deprecated and will be removed in 1.0.) +* Fixed various inconsistencies in the data encoding behavior of `JsonFormat` and `HttpBinding`. +* Support passing a data content encoder/decoder into `JsonFormat#encode_event` and `JsonFormat#decode_event`. +* Provided `TextFormat` to handle media types with trivial encoding. +* Provided `Format::Multi` to handle checking a series of encoders/decoders. + ### v0.5.1 / 2021-06-28 * ADDED: Add HttpBinding#probable_event? diff --git a/lib/cloud_events/version.rb b/lib/cloud_events/version.rb index 0b8d50e..5f4067c 100644 --- a/lib/cloud_events/version.rb +++ b/lib/cloud_events/version.rb @@ -5,5 +5,5 @@ module CloudEvents # Version of the Ruby CloudEvents SDK # @return [String] # - VERSION = "0.5.1" + VERSION = "0.6.0" end