Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm

### Added

- [`xkafka`](./xkafka): Add `xkafka.BatchConsumer` to consume messages in batches. ([#60](https://github.com/gojekfarm/xtools/pull/60))
- Add middleware for `xkafka.BatchConsumer` ([#61](https://github.com/gojekfarm/xtools/pull/61))

## [0.9.0]

### Added

- [`xprom`](./xprom): Add `xprom` package to standardize Prometheus metrics with OTEL conventions. ([#55](https://github.com/gojekfarm/xtools/pull/55))
- [`riverkfq`](./riverkfq): Add `riverkfq` package to provide async publishing of messages to Kafka. ([#47](https://github.com/gojekfarm/xtools/pull/47))

Expand Down Expand Up @@ -119,7 +126,8 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
- [`generic`](./generic) package added
- [`xproto`](./xproto) package added

[Unreleased]: https://github.com/gojekfarm/xtools/compare/v0.9.0...HEAD
[Unreleased]: https://github.com/gojekfarm/xtools/compare/v0.10.0...HEAD
[0.10.0]: https://github.com/gojekfarm/xtools/releases/tag/v0.10.0
[0.9.0]: https://github.com/gojekfarm/xtools/releases/tag/v0.9.0
[0.8.1]: https://github.com/gojekfarm/xtools/releases/tag/v0.8.1
[0.8.0]: https://github.com/gojekfarm/xtools/releases/tag/v0.8.0
Expand Down
4 changes: 2 additions & 2 deletions examples/xkafka/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ replace (
require (
github.com/confluentinc/confluent-kafka-go/v2 v2.0.2
github.com/gojekfarm/xrun v0.3.0
github.com/gojekfarm/xtools/xkafka v0.9.0
github.com/gojekfarm/xtools/xkafka/middleware/zerolog v0.0.0-00010101000000-000000000000
github.com/gojekfarm/xtools/xkafka v0.10.0
github.com/gojekfarm/xtools/xkafka/middleware/zerolog v0.10.0
github.com/rs/xid v1.5.0
github.com/rs/zerolog v1.29.0
github.com/urfave/cli/v2 v2.23.7
Expand Down
4 changes: 2 additions & 2 deletions examples/xload/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ replace (
)

require (
github.com/gojekfarm/xtools/xload v0.9.0
github.com/gojekfarm/xtools/xload/providers/yaml v0.9.0
github.com/gojekfarm/xtools/xload v0.10.0
github.com/gojekfarm/xtools/xload/providers/yaml v0.10.0
)

require (
Expand Down
5 changes: 2 additions & 3 deletions pre_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,11 @@ if [ -n "${XTOOLS_TAG}" ]; then
patch_gomods github.com/gojekfarm/xtools "${XTOOLS_TAG}"
fi

# Run lint to update go.sum
make lint
# Run gomod.tidy to update go.sum
make gomod.tidy

# Add changes and commit.
git add .
make ci

declare COMMIT_MSG=""
COMMIT_MSG+="Releasing ${XTOOLS_TAG}"
Expand Down
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ package xtools

// Version can be used to get the current xtools library version
func Version() string {
return "0.9.0"
return "0.10.0"
// This string is updated by the pre_release.sh script during release
}
2 changes: 1 addition & 1 deletion xkafka/middleware/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ toolchain go1.21.0
replace github.com/gojekfarm/xtools/xkafka => ../

require (
github.com/gojekfarm/xtools/xkafka v0.9.0
github.com/gojekfarm/xtools/xkafka v0.10.0
github.com/stretchr/testify v1.8.1
)

Expand Down
2 changes: 1 addition & 1 deletion xkafka/middleware/retry/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ replace github.com/gojekfarm/xtools/xkafka => ../../

require (
github.com/cenkalti/backoff/v4 v4.3.0
github.com/gojekfarm/xtools/xkafka v0.9.0
github.com/gojekfarm/xtools/xkafka v0.10.0
github.com/stretchr/testify v1.8.1
)

Expand Down
2 changes: 1 addition & 1 deletion xkafka/middleware/zerolog/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ toolchain go1.21.0
replace github.com/gojekfarm/xtools/xkafka => ../../

require (
github.com/gojekfarm/xtools/xkafka v0.9.0
github.com/gojekfarm/xtools/xkafka v0.10.0
github.com/rs/zerolog v1.29.0
github.com/stretchr/testify v1.8.1
)
Expand Down
2 changes: 1 addition & 1 deletion xload/providers/cached/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.20
replace github.com/gojekfarm/xtools/xload => ../..

require (
github.com/gojekfarm/xtools/xload v0.9.0
github.com/gojekfarm/xtools/xload v0.10.0
github.com/stretchr/testify v1.8.4
)

Expand Down
2 changes: 1 addition & 1 deletion xload/providers/viper/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.21.3
replace github.com/gojekfarm/xtools/xload => ../..

require (
github.com/gojekfarm/xtools/xload v0.9.0
github.com/gojekfarm/xtools/xload v0.10.0
github.com/spf13/viper v1.18.2
github.com/stretchr/testify v1.8.4
)
Expand Down
2 changes: 1 addition & 1 deletion xload/providers/yaml/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.20
replace github.com/gojekfarm/xtools/xload => ../..

require (
github.com/gojekfarm/xtools/xload v0.9.0
github.com/gojekfarm/xtools/xload v0.10.0
gopkg.in/yaml.v3 v3.0.1
)

Expand Down
2 changes: 1 addition & 1 deletion xpod/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/gojekfarm/xtools/xpod
go 1.20

require (
github.com/gojekfarm/xtools/generic v0.9.0
github.com/gojekfarm/xtools/generic v0.10.0
github.com/stretchr/testify v1.9.0
)

Expand Down
4 changes: 2 additions & 2 deletions xprom/xpromkafka/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ replace (
)

require (
github.com/gojekfarm/xtools/xkafka v0.9.0
github.com/gojekfarm/xtools/xprom/semconv v0.9.0
github.com/gojekfarm/xtools/xkafka v0.10.0
github.com/gojekfarm/xtools/xprom/semconv v0.10.0
github.com/prometheus/client_golang v1.14.0
github.com/stretchr/testify v1.8.1
)
Expand Down