Skip to content

Bump github.com/posthog/posthog-ios from 3.93.1 to 4.0.2 - #158

Open
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/swift/github.com/posthog/posthog-ios-4.0.2
Open

dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/swift/github.com/posthog/posthog-ios-4.0.2

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 24, 2026

Copy link
Copy Markdown
Contributor

Bumps github.com/posthog/posthog-ios from 3.93.1 to 4.0.2.

Release notes

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

4.0.2

Patch Changes

  • 4285e5b: Only attach $sdk_debug_pending_queue_size once the event queue reaches flushAt, so healthy queues no longer add it to every event

4.0.1

Patch Changes

  • 58b9065: Fix GPU session replay capture showing masked React Native New Architecture text as blank space instead of * rows.

4.0.0

Major Changes

  • 0dbc224: To upgrade to posthog-ios 4.0.0 from 3.x.x, follow the migration guide.

    • Breaking: stop publishing to CocoaPods. Install with Swift Package Manager (3.x.x versions stay on CocoaPods)
    • Breaking: raise minimum deployment targets to iOS and Mac Catalyst 15.0, macOS 12.0, tvOS 15.0 and watchOS 10.0
    • Breaking: require Xcode 26 or later (swift-tools-version 6.2)
    • Breaking: always record session replay as masked screenshots, which shows custom-drawn content and uses more bandwidth and CPU than wireframes. Remove screenshotMode assignments and mask sensitive content with postHogMask() or ph-no-capture
    • Breaking: pass a PostHogFeatureFlagsLoaded to the reloadFeatureFlags(_:) callback. Use { result in ... } or { _ in ... }
    • Breaking: mark reloadFeatureFlags(_:), setBeforeSend(_:), getAnonymousId, pushIdentityProvider and logSanitizer callbacks @Sendable, fixing a crash in Swift 6 apps
    • Breaking: rename PostHogLogLevel to PostHogConsoleLogLevel and PostHogLogEntry to PostHogConsoleLogEntry
    • Breaking: return nil instead of the raw string for a malformed, empty or whitespace-only feature flag payload
    • Breaking: treat a feature flag whose variant is an empty string as disabled in isFeatureEnabled, getFeatureFlagResult(_:).enabled, PostHogFeatureFlagsLoaded and $active_feature_flags
    • Breaking: stop decoding string payloads in PostHogBootstrapConfig.featureFlagPayloads a second time, so a bootstrapped "123" stays a String
    • Breaking: delete events still queued on disk by a 2.x.x SDK instead of sending them, and ignore a top-level $set and message_id in queued events
    • Breaking: remove version and build from Application Installed, Application Updated and Application Opened events. Use $app_version and $app_build
    • Breaking: remove PostHogConfig.apiKey, PostHogConfig(apiKey:) and PostHogConfig(apiKey:host:). Use projectToken, PostHogConfig(projectToken:) and PostHogConfig(projectToken:host:)
    • Breaking: remove PostHogConfig.propertiesSanitizer and PostHogPropertiesSanitizer. Use setBeforeSend(_:)
    • Breaking: remove PostHogConfig.evaluationEnvironments. Use evaluationContexts
    • Breaking: remove the no-op PostHogConfig.remoteConfig and PostHogSessionReplayConfig.maskPhotoLibraryImages options
    • Breaking: remove PostHogSDK.getFeatureFlagPayload(_:). Use getFeatureFlagResult(_:sendFeatureFlagEvent:)?.payload
    • Breaking: remove PostHogSessionReplayConfig.debouncerDelay. Use throttleDelay
    • Breaking: remove background screenshot capture (PostHogSessionReplayConfig.screenshotModeBackgroundCapture), which rendered off the main thread, so a frame could show content that had moved away from its mask. Delete the assignment, or use captureMethod = .gpu
    • Breaking: replace PostHogSessionReplayConfig.screenshotModeGPUCapture with captureMethod. Use captureMethod = .gpu
    • Breaking: remove the PostHogSDK.didReceiveFeatureFlags notification. Use onFeatureFlags(_:)
    • Breaking: remove PostHogDataMode.cellular. Use .any
    • Breaking: move postHogSdkName, postHogVersion, PostHogConfig.snapshotEndpoint, PostHogSessionManager, PostHogStorageManager, PostHogConfig.storageManager, dateToMillis(_:) and imageToBase64(_:_:) behind @_spi(PostHogInternal). Use PostHogSDK session and identity methods
    • Breaking: remove toISO8601String(_:), toISO8601Date(_:), sanitizeDictionary(_:), deleteSafely(_:), postHogiOSSdkName, Gzip, GzipError, CompressionLevel, ReachabilityError, ReachabilityChangedNotification, UIColor.init(hex:) and UIColor.hexDescription(_:) from the public API
    • Breaking: send analytics events to capture V1 (/i/v1/analytics/events) with the project token in an Authorization: Bearer header, replacing any Authorization from requestHeaders. Update your reverse proxy to serve this path
    • Breaking: follow only 307 and 308 redirects to the same origin as host, at most 5 times, and drop events on any other redirect
    • Breaking: drop an event whose distinct ID is over 200 UTF-8 bytes instead of shortening the ID
    • Breaking: disable the SDK at setup when projectToken is a personal API key (phx_...). Use your project token (phc_...)
    • Breaking: pause sending for at most 30 seconds on Retry-After, including session replay and logs
    • Breaking: send $process_person_profile, $cookieless_mode, $ignore_sent_at and $product_tour_id as capture options, so PostHog drops an event whose option value it can't read
    • Breaking: let registered super properties override SDK properties such as $os, and let super and event properties override $is_identified, $process_person_profile, $geoip_disable and the session replay debug values
    • Ignore a registered $process_person_profile or process_person_profile option on $identify, $create_alias, $merge_dangerously, $groupidentify, $set and $set_once, so a registered false doesn't stop identifying users

... (truncated)

Changelog

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

Next

4.0.5

Patch Changes

  • 7db331f: Keep the background colour of enclosing views under a postHogMask() region and draw SwiftUI text * rows in grey when captureMethod is .gpu, so masked text no longer uploads as a solid black box; colours belonging to the masked view itself stay black.

4.0.4

Patch Changes

  • f10aeb4: Fix GPU session replay capture showing content drawn over a ph-no-capture view, such as the text of a React Native View tagged ph-no-capture, which is now a solid black block as on the default capture path.
  • 4ad26ec: Mask the text of a CATextLayer under a postHogMask() extent with captureMethod = .gpu. Its glyphs were uploaded readable.

4.0.3

Patch Changes

  • 9e2ba68: Draw masked text in a newly presented alert, sheet or screen as * on its first capture with captureMethod = .gpu, instead of showing placeholder bars for a few seconds.
  • 370574f: Drop the $sdk_debug_replay_* and $sdk_debug_session_start keys from events while session replay is off locally or remotely; $recording_status stays

4.0.2

Patch Changes

  • 4285e5b: Only attach $sdk_debug_pending_queue_size once the event queue reaches flushAt, so healthy queues no longer add it to every event

4.0.1

Patch Changes

  • 58b9065: Fix GPU session replay capture showing masked React Native New Architecture text as blank space instead of * rows.

4.0.0

Major Changes

  • 0dbc224: To upgrade to posthog-ios 4.0.0 from 3.x.x, follow the migration guide.

    • Breaking: stop publishing to CocoaPods. Install with Swift Package Manager (3.x.x versions stay on CocoaPods)
    • Breaking: raise minimum deployment targets to iOS and Mac Catalyst 15.0, macOS 12.0, tvOS 15.0 and watchOS 10.0
    • Breaking: require Xcode 26 or later (swift-tools-version 6.2)
    • Breaking: always record session replay as masked screenshots, which shows custom-drawn content and uses more bandwidth and CPU than wireframes. Remove screenshotMode assignments and mask sensitive content with postHogMask() or ph-no-capture
    • Breaking: pass a PostHogFeatureFlagsLoaded to the reloadFeatureFlags(_:) callback. Use { result in ... } or { _ in ... }
    • Breaking: mark reloadFeatureFlags(_:), setBeforeSend(_:), getAnonymousId, pushIdentityProvider and logSanitizer callbacks @Sendable, fixing a crash in Swift 6 apps
    • Breaking: rename PostHogLogLevel to PostHogConsoleLogLevel and PostHogLogEntry to PostHogConsoleLogEntry
    • Breaking: return nil instead of the raw string for a malformed, empty or whitespace-only feature flag payload
    • Breaking: treat a feature flag whose variant is an empty string as disabled in isFeatureEnabled, getFeatureFlagResult(_:).enabled, PostHogFeatureFlagsLoaded and $active_feature_flags
    • Breaking: stop decoding string payloads in PostHogBootstrapConfig.featureFlagPayloads a second time, so a bootstrapped "123" stays a String

... (truncated)

Commits
  • 4a6940a chore: release v4.0.2 [version bump] [skip ci]
  • 4285e5b fix: only attach $sdk_debug_pending_queue_size once the queue reaches flushAt...
  • dd930fe ci: send the release approval ping when the approval gate opens (#1107)
  • 16f5f1e chore: release v4.0.1 [version bump] [skip ci]
  • 58b9065 fix(replay): draw masked React Native Fabric text as rows in GPU capture (#1097)
  • 14131ff chore: release v4.0.0 [version bump] [skip ci]
  • 4117848 ci: generate the SDK reference on PRs with the pending version applied (#1108)
  • 0dbc224 chore!: iOS Major Release 4.0 (#873)
  • a4deb72 chore: release v3.98.2 [version bump] [skip ci]
  • 8cace5e perf(replay): defer GPU mask-walk rect measurement until the rect is read (#1...
  • Additional commits viewable 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 this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/posthog/posthog-ios](https://github.com/PostHog/posthog-ios) from 3.93.1 to 4.0.2.
- [Release notes](https://github.com/PostHog/posthog-ios/releases)
- [Changelog](https://github.com/PostHog/posthog-ios/blob/main/CHANGELOG.md)
- [Commits](PostHog/posthog-ios@3.93.1...4a6940a)

---
updated-dependencies:
- dependency-name: github.com/posthog/posthog-ios
  dependency-version: 4.0.2
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file swift_package_manager Pull requests that update swift_package_manager code labels Nov 24, 2026

This branch has not been deployed

No deployments
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 swift_package_manager Pull requests that update swift_package_manager code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants