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.
Changes proposed ✍️
We just updated our
@formbricks/js
package with a new workflow and are currently experiencing problems with old versions of@formbricks/js
with our current cloud backend.I updated
@formbricks/js
in the crowd.dev codebase to the newest version and also slightly changed the workflow since thesetUserId
is now deprecated.What
🤖 Generated by Copilot at f3eb962
This pull request updates the
@formbricks/js
dependency to the latest version and refactors the code to use a new functionsetupFormbricks
that initializes the Formbricks library with the current user data. This improves the code quality and enables the use of new features and bug fixes from the Formbricks library.
🤖 Generated by Copilot at f3eb962
Why
How
🤖 Generated by Copilot at f3eb962
@formbricks/js
dependency from1.0.2
to1.2.0
in thepackage.json
andpackage-lock.json
files to use the latest features and bug fixes of the Formbricks library (link, link, link, link)setupFormbricks
in theformbricks.js
module that initializes the Formbricks library with the current user data (link)setupFormbricks
function in themutations.js
file to simplify the code and avoid repetition (link, link, link)config.js
file to follow the code style and formatting rules of the project (link, link, link)composedConfig
object definition in theconfig.js
file by using thetenantMode
andisPlanEnabled
variables directly instead of repeating their values (link)selectAndSaveOnStorageFor
function call in themutations.js
file to follow the code style and formatting rules of the project (link)Checklist ✅
Feature
,Improvement
, orBug
.