Skip to content

Releases: CrowdStrike/csproto

v0.20.0: feat: Enable partially/lazily decoding Protobuf messages (#97)

19 Jan 00:22
ca51658
Compare
Choose a tag to compare
* 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

17 Jan 20:55
e3d70c2
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.18.1...v0.19.0

v0.18.1

30 Dec 17:40
5ea1e29
Compare
Choose a tag to compare

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

21 Dec 17:11
579dcb5
Compare
Choose a tag to compare

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

20 Dec 19:41
4559ba2
Compare
Choose a tag to compare

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

16 Dec 01:15
93ef2b2
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.15.0...v0.16.0

v0.15.0

12 Dec 19:01
f97268d
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.14.1...v0.15.0

v0.14.1

09 Dec 16:01
d7f8115
Compare
Choose a tag to compare

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

29 Nov 15:46
a9cf436
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.13.0...v0.14.0

v0.13.0

14 Nov 22:05
4b67217
Compare
Choose a tag to compare

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