2.1: CESQL and Protobuf
Hi everybody!
On the behalf of the CloudEvents community, I'm pleased to announce that we have a new release of CloudEvents SDK Java with some new shiny features!
New modules
We have two new modules:
cloudevents-sql: Implements the newborn CloudEvents SQL Expression Languagecloudevents-protobuf:EventFormatimplementation of Protobuf event format
Although these modules use the same semver of the rest of the sdk, they are to be considered unstable, and their APIs might change anytime. We'll work on stabilizing them in the next releases. Please reach us out with any feedback about them!
New features
- Now the
io.cloudeventsAPIs support handling of binary CloudEvent attributes: #353 - Added some methods to the
CloudEventBuilderto remove data, datacontenttype and dataschema: #374 - Spring module now supports RSockets: #349
- List available eventformat implementations: #350
Deprecations
io.cloudevents.rw.CloudEventContextWriter#withContextAttribute(String, Number)is deprecated, you should use insteadio.cloudevents.rw.CloudEventContextWriter#withContextAttribute(String, Integer). This change was necessary in order to enforce to use onlyIntegeras numeric types of your CloudEvents attributes, which is the only numeric type supported by the CloudEvents spec type system. For more details: #358
Fixes
- Now parsing incoming cloudevents doesn't fail anymore if the attribute name is longer than 20 chars: #366
- Fail parsing on bad cloudevents content type: #362
- Don't print null for missing attributes when invoking
CloudEvent#toString(): #376
You can check out all the changes here: https://github.com/cloudevents/sdk-java/milestone/8?closed=1
To start using the sdk, look at the documentation on the official website and check out the examples
Happy hacking!