Releases: CrowdStrike/csproto
Releases · CrowdStrike/csproto
v0.20.0: feat: Enable partially/lazily decoding Protobuf messages (#97)
* first pass of partial decode * cleaned up partial decode logic fixed a bug in `decodeVarint()` that lead to incorrect results for 10-byte encoded values added encoder unit test for negative values * moved partial decoding logic to a new `lazyproto` sub-package * code cleanup after refactors * added new Def type to obfuscate map[int]any * moved detailed example for DecodeResult.FieldData to an example test * renamed Def methods for clarity added type constraint for generic FieldData helper functions * refactored `Def` to not use an unexported field updated `NewDef()` to pre-alloc the map based on the number of tags specified added logic to validate `Def` values cleaned up doc comments * add ability to run specific benchmarks with `make bench` * fix intermittent test failures when generating consecutive test messages results in the same timestamp value * feat(lazyproto): add support for negative tag mapping for retrieving raw bytes of nested messages also added internal resource pooling to cut down on repeated small allocs of maps
v0.19.0
v0.18.1
What's Changed
- fix(decoder): address panic when decoding invalid/corrupt messages by @dylan-bourque in #96
Full Changelog: v0.18.0...v0.18.1
v0.18.0
What's Changed
- fix: incorrect error unmarshaling empty buffer when using protoc-gen-fastmarshal by @dylan-bourque in #95
Full Changelog: v0.17.0...v0.18.0
v0.17.0
What's Changed
- chore(deps): bump goreleaser/goreleaser-action from 3 to 4 by @dependabot in #93
- fix: added examples and fixes for maps by @dsexton in #94
New Contributors
Full Changelog: v0.16.0...v0.17.0
v0.16.0
What's Changed
- Avoid panics when decoding invalid messages by @dylan-bourque in #92
Full Changelog: v0.15.0...v0.16.0
v0.15.0
What's Changed
- feat: add ExtensionFieldNumber() function by @dylan-bourque in #91
Full Changelog: v0.14.1...v0.15.0
v0.14.1
What's Changed
- chore(deps): bump github.com/huandu/xstrings from 1.3.3 to 1.4.0 by @dependabot in #87
- chore(deps): bump github.com/Masterminds/sprig/v3 from 3.2.2 to 3.2.3 by @dependabot in #88
- fix: avoid panic when decoding an invalid length-delimited field by @dylan-bourque in #90
Full Changelog: v0.14.0...v0.14.1
v0.14.0
v0.13.0
What's Changed
- chore(deps): bump golangci/golangci-lint-action from 3.2.0 to 3.3.0 by @dependabot in #77
- chore(deps): bump github.com/stretchr/testify from 1.8.0 to 1.8.1 in /example by @dependabot in #79
- chore(deps): bump github.com/stretchr/testify from 1.8.0 to 1.8.1 by @dependabot in #78
- chore(deps): bump github.com/huandu/xstrings from 1.3.2 to 1.3.3 by @dependabot in #80
- chore(deps): bump golangci/golangci-lint-action from 3.3.0 to 3.3.1 by @dependabot in #82
- chore(deps): bump github.com/gofrs/uuid from 4.3.0+incompatible to 4.3.1+incompatible in /example by @dependabot in #81
- feat: add Clone() function by @dylan-bourque in #83
Full Changelog: v0.12.0...v0.13.0