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.
Fixes #1664
The JS SDK in devtools was out of date by several versions. Only recently have regressions started coming up (as noted in above linked issue). This PR 1) adds a CI job to catch when
@growthbook/growthbook
is out-of-date and 2) upgrades said package to latestCaveats - The opening of a pull request isn't the most ideal time to check whether our SDK is out of date - it's best to check before publishing the extension. However having a CI job check for this the quickest way to have a forcing function somewhere in the lifecycle to ensure we stay up to date. No doubt if this CI check was there prior we would have caught this much earlier.
Changes:
src/**/*.ts
@growthbook/growthbook
to 0.28.0CI Job successfully failing:
![Screenshot 2023-09-12 at 8 28 55 PM](https://private-user-images.githubusercontent.com/2374625/267526721-ab0f7d51-e908-4c92-9f5d-5fe236cf3c97.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjExNDMxOTgsIm5iZiI6MTcyMTE0Mjg5OCwicGF0aCI6Ii8yMzc0NjI1LzI2NzUyNjcyMS1hYjBmN2Q1MS1lOTA4LTRjOTItOWY1ZC01ZmUyMzZjZjNjOTcucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcxNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MTZUMTUxNDU4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NDhkMTVjZjY5YThiNTBkYzFkODRiZWUyY2Y0ODI4ZGE4YWY1MjhhMzcyNTRmOWM2YzIzY2Y3NGFmM2YwZmY4YyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.LwTPWMCt_oi6rAavR7YU_vn87FoNni49Fz9_QxZ_Ia0)