v0.13.0
This release is a bugfix release and includes mostly cosmetic changes to the Go codebase that were reported by various linters via golangci-lint
. I fixed the CI to use the golangci-lint-action
and created a configuration file to enable all linters, including gosec
, except a few. All constructors and functions are now unexported and you can access them via either of these classes: Writer
, Reader
or Connection
.
I addressed these issues:
- Fix all (feasible) linter errors
- Fix configuration objects in the example scripts
- Constructors and non-constructors needn't be exported
- Refactor and remove deprecated kafka-go functions
Also, @thmshmm was kind enough to fix a bug in #129 that I introduced in the byte array serializer. 🙏
What's Changed
- Update referenced branch in the JS API docs by @mostafa in #105
- Instantiate the
kafkago.Writer
object directly by @mostafa in #107 - Remove duplicate test and merge the assertion by @mostafa in #110
- Reduce function length, hence complexity by @mostafa in #111
- Extract constants by @mostafa in #113
- Fix
gocritic
suggestions by @mostafa in #114 - Fix
godot
errors by @mostafa in #115 - Fix reported issues by gofumpt and goimports by @mostafa in #117
- Fix
golint
errors by @mostafa in #118 - Fix long lines reported by
lll
by @mostafa in #120 - Fix
maligned
errors by @mostafa in #121 - Fix Schema Registry configuration object in the scripts by @mostafa in #123
- Fix
if
statement complexity errors by uwrapping theif
statements by @mostafa in #127 - Generic
Message.value
field type to handle values other than string by @thmshmm in #129 - Force type assertions by @mostafa in #131
- Use static error messages to fix
goerr133
linter errors by @mostafa in #132 - Fix numeric constants throughout the code by @mostafa in #133
- Fix JSON tags by @mostafa in #134
- Fix issues reported by
thelper
by @mostafa in #135 - Fix the length of the variable names by @mostafa in #136
- Unwrap errors from external packages by @mostafa in #137
- Fix remaining linter issues by @mostafa in #138
- Enable all linters and remove
gosec
by @mostafa in #139 - Unexport constructors with
X
prefix and also module-level exported functions by @mostafa in #140 - Upgrade k6 to v0.39.0 and other dependencies to their latest versions by @mostafa in dc5b114
- A few other changes and fixes by @mostafa in 9551edb c6bdb87
Full Changelog: v0.12.0...v0.13.0