Skip to content

v3.0.0

Compare
Choose a tag to compare
@markus-wa markus-wa released this 15 Jul 22:03
· 442 commits to master since this release
23b6816

v3 is out 🥳

The primary purpose of v3 is to upgrade/replace dependencies, including some which are deprecated and/or dependencies with security vulnerabilities. The parser itself has no known vulnerabilities and no known code paths to vulnerabilities in dependencies, but it's still important to keep on top of this nonetheless.
As secondary objectives we want to modernise some of the API and enable usage of generics for the project (go1.18).

Installation

go get github.com/markus-wa/demoinfocs-golang/[email protected]

Migration

change all imports of v2 to v3 - so github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs -> github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs

SED command
sed -i 's#github.com/markus-wa/demoinfocs-golang/v2#github.com/markus-wa/demoinfocs-golang/v3#g' **/*.go

Breaking Changes

  • Removed code marked as deprecated from codebase
  • Increased minimum Go requirement from go1.11 to go1.18
  • Upgraded from the protobuf v1 API to v2 (https://go.dev/blog/protobuf-apiv2)
    • This will affect users that rely on raw net messages (i.e. import github.com/markus-wa/demoinfocs-golang/v2/demoinfocs/msg)
    • Stopped using gogo-protobuf (this has no negative performance impact 🥳)
  • Removed /assets and /pkg/demoinfocs/metadata (was mostly used for examples)
  • Moved internal/constants to pkg/demoinfocs/constants
  • Deps: replaced dustin/go-heatmap with markus-wa/go-heatmap to avoid replace directive (examples only)

Changes

  • Upgraded all dependencies to latest version (including security fixes)

Please let me know if you encounter any issues.