chore: bump to 2.1.0 - #53
Merged
Merged
Conversation
Minor rather than patch: the release adds support for survey-interaction segment filters, and it changes behaviour for every app that upgrades — the user-state sync timer never fired before, so user state now actually refreshes on expiry where it previously stayed frozen for the whole session. No public API changed; every declaration this release touched is internal. Also refreshes the two concrete versions named in the README install snippets.
WalkthroughThe podspec version changed from 2.0.0 to 2.1.0. The README now uses version 2.1.0 in the Swift Package Manager and CocoaPods installation examples. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@README.md`:
- Line 26: Update the CocoaPods example in the README code block so the
FormbricksSDK dependency uses a valid Podfile version requirement in the pod
declaration, and move any “or the latest version” wording out of the code sample
into surrounding prose. Keep the example anchored on the pod line itself and
ensure the snippet can be copied directly into a Podfile without syntax errors.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: da1eedcc-cb64-458e-8833-a97ddcc4cfd8
📒 Files selected for processing (2)
FormbricksSDK.podspecREADME.md
|
Dhruwang
approved these changes
Aug 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Release prep for #52.
Why minor, not patch
It adds a feature. Survey-interaction segment filters ("have seen X", "have completed X", …) did not work on iOS at all before — the SDK kept using the segment list it received at app launch, so a rule like "completed survey A → show survey B" never fired in the same session.
It changes behaviour for every app that upgrades, whether or not they use the feature. The user-state sync timer never fired:
startSyncTimer()ran on URLSession's background delegate queue, andTimer.scheduledTimerinstalls onRunLoop.current, which has no run loop there. So user state was frozen for the whole session and only ever refreshed by the lazy check insidesetup(). It now refreshes on expiry as intended — which means new periodicPOST /usertraffic that wasn't there before. That is the main thing to be aware of when rolling this out, and it's why patch would be the wrong signal: patch reads as "nothing to think about".Workspaces that use interaction targeting also get an extra
/usercall after a display, response or finish, gated per survey and per event and debounced so a burst costs one request.No public API changed. Every declaration the release touched is internal — verified there are no added
publicoropendeclarations in the diff. Nothing to migrate.Changes
FormbricksSDK.podspec:2.0.0→2.1.0README.md: the two install snippets that name a concrete versionThe podspec's
s.sourcetag is derived froms.version, so the release tag needs to be2.1.0to match.Verification
xcodebuild buildpasses. The full suite on main is 92 tests, 0 failures.