github cloudevents/sdk-go v2.16.1
Release v2.16.1

latest releases: sql/v2.16.1, protocol/ws/v2.16.1, protocol/stan/v2.16.1...
2 months ago

CloudEvents SDK Go v2.16.1

πŸ› Bug Fixes and Improvements

  • ⚑ NATS JetStream Enhancement: Made send subject optional via context by @kmpm in #1143

    • Added WithSubject function to override the default subject when sending messages
    • Added comprehensive tests and updated samples
    • Non-breaking enhancement that adds flexibility for NATS users
  • πŸ“ CloudEvents JSON Handling Fixes by @alank-ps:

    • WriteJson Fix in #1162: Fixed WriteJson to properly handle data as JSON when dataContentType is application/cloudevents+json or batch
    • ConsumeData Fix in #1164: Fixed consumeData functions to properly recognize structured mode JSON content types
    • Improves compatibility with the CloudEvents specification
  • πŸ”§ CI/Test Improvements: Fix failing CI tests by @embano1 in #1156

πŸ”„ Maintenance and Dependency Updates

  • πŸ› οΈ Dependency Management Overhaul by @embano1 in #1145
    • Added script (hack/update-deps.sh) to update Go dependencies across all modules
    • Replaced Dependabot with custom script for better dependency management
    • Removed stale and broken OpenTelemetry samples

πŸ“¦ Key Dependency Updates:

  • github.com/google/go-cmp: v0.6.0 β†’ v0.7.0
  • golang.org/x/sync: v0.12.0 β†’ v0.13.0
  • github.com/nats-io/nats.go: v1.37.0 β†’ v1.41.2
  • github.com/IBM/sarama: v1.40.1 β†’ v1.45.1
  • github.com/docker/docker: v20.10.17 β†’ v27.1.1
  • go.opentelemetry.io/otel: v1.18.0 β†’ v1.35.0
  • 🐹 Go version: Updated from 1.22 to 1.23.0 (toolchain 1.23.8)

🚨 Breaking Changes

None. All updates are either backward-compatible improvements, bug fixes, or internal refactors.

πŸ‘₯ New Contributors

  • @github-actions made their first contribution in #1147
  • @kmpm made their first contribution in #1143
  • @alank-ps made their first contribution in #1162

πŸ“‹ What's Changed

  • Dependency Management Improvements by @embano1 in #1145
  • chore(deps): Bump the go_modules group across 2 directories with 2 updates by @dependabot in #1146
  • chore: update dependencies by @github-actions in #1147
  • chore: update dependencies by @github-actions in #1148
  • chore: update dependencies by @github-actions in #1149
  • chore(deps-dev): Bump nokogiri from 1.18.4 to 1.18.8 in /docs in the bundler group across 1 directory by @dependabot in #1150
  • chore: update dependencies by @github-actions in #1151
  • chore: update dependencies by @github-actions in #1152
  • fix: make send subject optional via context by @kmpm in #1143
  • chore(deps): Bump actions/setup-go from 5.4.0 to 5.5.0 by @dependabot in #1157
  • Fix failing CI tests by @embano1 in #1156
  • chore: update dependencies by @github-actions in #1158
  • chore: update dependencies by @github-actions in #1159
  • chore: update dependencies by @github-actions in #1160
  • chore: update dependencies by @github-actions in #1163
  • fix: WriteJson should write data as a JSON value when dataContentType… by @alank-ps in #1162
  • chore: update dependencies by @github-actions in #1165
  • fix: consumeData(and consumeDataAsBytes) should consider structued mode JSON … by @alank-ps in #1164

Full Changelog: v2.16.0...v2.16.1

Don't miss a new sdk-go release

NewReleases is sending notifications on new releases.