github markus-wa/demoinfocs-golang v3.0.0-beta.3

latest releases: v4.1.3, v4.1.2, v4.1.1...
pre-release23 months ago

The primary purpose of v3 is to upgrade/replace dependencies, including some which are deprecated and/or dependencies with security vulnerabilities. While the parser itself has no known vulnerabilities and no known code paths to vulnerabilities in dependencies, it's 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/v3@v3.0.0-beta.3

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.
As this is a pre-release / beta, it is not covered by semver guarantees

Don't miss a new demoinfocs-golang release

NewReleases is sending notifications on new releases.