Skip to content

v0.2.1

Choose a tag to compare

@cmilesio cmilesio released this 17 Oct 17:55

Changes

  • Patch klauspost/compress to 1.20.2 for the Kafka, NATS, and JetStream drivers.
  • Patch the Google Pub/Sub driver's HTTP/2 dependencies, including x/net 0.61.0.
  • Update compatible driver dependencies while retaining Redis read/write timeouts, retry backoff, and TCP keepalive behavior.
  • Update all ten Events modules to v0.2.1.

Go compatibility

Some drivers require a newer Go version when upgrading from v0.2.0:

Module suffix under github.com/goforj/events v0.2.0 declared Go v0.2.1 minimum
driver/gcppubsubevents Go 1.24 Go 1.26
driver/kafkaevents Go 1.24 Go 1.25
driver/natsevents Go 1.24 Go 1.26
driver/natsjetstreamevents Go 1.24 Go 1.26

The root module, eventscore, eventstest, eventsfake, driver/redisevents, and driver/snsevents retain Go 1.24. These requirements are per module; using only Redis or SNS does not require Go 1.26. Kafka's compression fix requires Go 1.25. Google Pub/Sub, NATS, and JetStream drivers require Go 1.26.

Upgrade

Upgrade the compiler first if the selected driver needs it, then update the root module and the drivers or helpers the application imports to v0.2.1. For example, with Go 1.25 or newer:

go get github.com/goforj/events@v0.2.1 github.com/goforj/events/driver/kafkaevents@v0.2.1

All ten Events modules are available at v0.2.1. The API and event serialization are unchanged; no message-data migration is required.

See HTTP/2 fixes, compression fixes and Kafka minimum, coordinated release manifests, and the full v0.2.0 to v0.2.1 comparison.