Skip to content

chore: update the no-traits API snapshot for the 4.0 API changes - #981

Merged
turnipdabeets merged 1 commit into
chore/v4-remove-deprecatedfrom
chore/v4-no-traits-api-snapshot
Oct 28, 2026
Merged

turnipdabeets merged 1 commit into
chore/v4-remove-deprecatedfrom
chore/v4-no-traits-api-snapshot

Conversation

@turnipdabeets

Copy link
Copy Markdown
Contributor

💡 Motivation and Context

The Public API snapshot job fails on #873: scripts/check-public-api.sh --no-traits no longer matches api/posthog-ios.public-api.no-traits.txt. The snapshot still lists the removed PostHogSDK.didReceiveFeatureFlags (#965) and is missing the plain-closure setBeforeSend(_:) overloads for events and logs (#974). This updates those three lines.

💚 How did you test it?

  • The three changed lines are exactly the diff the CI job printed on chore!: iOS Major Release 4.0 #873 (Xcode 26.3), in the same order.
  • Locally (Xcode 26.4.1), scripts/check-public-api.sh --no-traits now differs only in how closure types are spelled (@Sendable on 6 symbols). Xcode 26.4 prints that and CI's Xcode 26.3 doesn't, and the default snapshot has the same local-only difference while passing in CI. So I didn't regenerate the whole file with 26.4.

📝 Checklist

  • All commits are signed (see Commit signing)
  • I reviewed the submitted code.
  • I added tests to verify the changes.
  • I updated the docs if needed.
  • No breaking change or entry added to the changelog.

🤖 Agent context

Autonomy: Human-driven (agent-assisted)

Claude Code (address-comments skill) handled the PostHog Review finding on #873 as a follow-up into the v4 branch, instead of pushing to #873 directly.

🤖 Generated with Claude Code

Drops the removed didReceiveFeatureFlags and adds the plain-closure
setBeforeSend overloads, matching the Xcode 26.3 output in CI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@turnipdabeets turnipdabeets self-assigned this Oct 27, 2026
@turnipdabeets
turnipdabeets requested a review from a team as a code owner October 27, 2026 22:41

@dustinbyrne dustinbyrne left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The no-traits snapshot now matches the existing public API and the Xcode 26.3 generated output. Both API snapshot checks pass. No actionable issues found.

AI-assisted review.

@turnipdabeets
turnipdabeets merged commit 75dc8f8 into chore/v4-remove-deprecated Oct 28, 2026
43 checks passed
@turnipdabeets
turnipdabeets deleted the chore/v4-no-traits-api-snapshot branch October 28, 2026 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants