Skip to content

chore(deps): bump github.com/posthog/posthog-go from 1.9.1 to 1.10.0 in the go-dependencies group#148

Merged
gtrrz-victor merged 1 commit intomainfrom
dependabot/go_modules/go-dependencies-8fdfec68a0
Feb 4, 2026
Merged

chore(deps): bump github.com/posthog/posthog-go from 1.9.1 to 1.10.0 in the go-dependencies group#148
gtrrz-victor merged 1 commit intomainfrom
dependabot/go_modules/go-dependencies-8fdfec68a0

Conversation

@dependabot
Copy link

@dependabot dependabot bot commented on behalf of github Feb 4, 2026

Bumps the go-dependencies group with 1 update: github.com/posthog/posthog-go.

Updates github.com/posthog/posthog-go from 1.9.1 to 1.10.0

Release notes

Sourced from github.com/posthog/posthog-go's releases.

v1.10.0

1.10.0 - 2026-02-04

New Features

  • GetFeatureFlagResult: New method that returns both the flag value and payload in a single call, while properly tracking feature flag usage via $feature_flag_called events.

Deprecations

  • GetFeatureFlagPayload: Deprecated in favor of GetFeatureFlagResult. The new method provides better tracking and a more convenient API.

Migration Guide

// Before (two calls, no event tracking for payload-only):
flag, _ := client.GetFeatureFlag(payload)
payloadStr, _ := client.GetFeatureFlagPayload(payload)
// After (single call, always tracks):
result, err := client.GetFeatureFlagResult(payload)
if err != nil { /* handle */ }
if result.Enabled {
var config MyConfig
result.GetPayloadAs(&config)
}

Note: GetFeatureFlagResult returns nil, error when a flag doesn't exist (rather than a result with Enabled: false). Check for errors to distinguish between a disabled flag and a missing flag:

result, err := client.GetFeatureFlagResult(payload)
if errors.Is(err, posthog.ErrFlagNotFound) {
    // Flag doesn't exist - use default behavior
}
if err != nil {
    // Other error (e.g., network issue)
}
if result.Enabled {
    // Flag exists and is enabled
} else {
    // Flag exists but is disabled
}
Changelog

Sourced from github.com/posthog/posthog-go's changelog.

1.10.0 - 2026-02-04

New Features

  • GetFeatureFlagResult: New method that returns both the flag value and payload in a single call, while properly tracking feature flag usage via $feature_flag_called events.

Deprecations

  • GetFeatureFlagPayload: Deprecated in favor of GetFeatureFlagResult. The new method provides better tracking and a more convenient API.

Migration Guide

// Before (two calls, no event tracking for payload-only):
flag, _ := client.GetFeatureFlag(payload)
payloadStr, _ := client.GetFeatureFlagPayload(payload)
// After (single call, always tracks):
result, err := client.GetFeatureFlagResult(payload)
if err != nil { /* handle */ }
if result.Enabled {
var config MyConfig
result.GetPayloadAs(&config)
}

Note: GetFeatureFlagResult returns nil, error when a flag doesn't exist (rather than a result with Enabled: false). Check for errors to distinguish between a disabled flag and a missing flag:

result, err := client.GetFeatureFlagResult(payload)
if errors.Is(err, posthog.ErrFlagNotFound) {
    // Flag doesn't exist - use default behavior
}
if err != nil {
    // Other error (e.g., network issue)
}
if result.Enabled {
    // Flag exists and is enabled
} else {
    // Flag exists but is disabled
}
Commits
  • c5bb4da chore: bump version to 1.10.0 [version bump]
  • 3fc9731 feat: Add device_id parameter to /flags requests (#157)
  • 634f3b8 fix(flags): avoid setting flags to false on transient errors (#162)
  • 7ae0fe8 fix: Flag payloads can contain JSON types (#161)
  • 945f3c8 feat: Add GetFeatureFlagResult method to client (#159)
  • 3539620 ci: Validate go fmt has been run (#160)
  • 3335d4d Trivial: Remove leading $ from go get command, so it doesn't get copied autom...
  • ec17963 feat: SDK Compliance (#150)
  • See full diff in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

Note

Low Risk
Low risk dependency bump limited to the PostHog Go client used for CLI telemetry; behavior changes are confined to analytics/feature-flag SDK internals.

Overview
Updates github.com/posthog/posthog-go from v1.9.1 to v1.10.0 by changing go.mod and refreshing go.sum checksums.

No application code changes are included; the only functional impact is whatever upstream SDK behavior changes occur in PostHog telemetry usage.

Written by Cursor Bugbot for commit cbe06ae. This will update automatically on new commits. Configure here.

Bumps the go-dependencies group with 1 update: [github.com/posthog/posthog-go](https://github.com/posthog/posthog-go).


Updates `github.com/posthog/posthog-go` from 1.9.1 to 1.10.0
- [Release notes](https://github.com/posthog/posthog-go/releases)
- [Changelog](https://github.com/PostHog/posthog-go/blob/master/CHANGELOG.md)
- [Commits](PostHog/posthog-go@v1.9.1...v1.10.0)

---
updated-dependencies:
- dependency-name: github.com/posthog/posthog-go
  dependency-version: 1.10.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update go code labels Feb 4, 2026
@dependabot dependabot bot requested a review from a team as a code owner February 4, 2026 18:27
@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update go code labels Feb 4, 2026
@gtrrz-victor gtrrz-victor merged commit 64503a4 into main Feb 4, 2026
4 checks passed
@gtrrz-victor gtrrz-victor deleted the dependabot/go_modules/go-dependencies-8fdfec68a0 branch February 4, 2026 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update go code

Development

Successfully merging this pull request may close these issues.

1 participant