Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump Javascript SDK to 0.33.0, React SDK to 0.23.0 #2090

Merged
merged 1 commit into from Feb 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
27 changes: 27 additions & 0 deletions CONTRIBUTING.md
Expand Up @@ -147,6 +147,33 @@ To work on the SDKs, `cd` into the desired directory and the following commands
- `yarn build` - Run the rollup build process
- `yarn size` - Get the gzip size of the bundle (must run `yarn build` first)

#### Releasing SDK Updates

Releasing SDK updates is a very manual process right now. It requires bumping versions in many different files, updating changelogs, and adding metadata to shared packages.

1. Create a branch from the latest main
2. Bump version of the Javascript SDK
- Bump version in `packages/sdk-js/package.json`
- Bump dependency version in `packages/back-end/package.json`
- Bump dependency version in `package/shared/package.json`
- Bump dependency version in `packages/sdk-react/package.json`
- Add new entry to `packages/sdk-js/CHANGELOG.md`
- Add new entry to `packages/shared/src/sdk-versioning/sdk-versions/javascript.json`
- Add new entry to `packages/shared/src/sdk-versioning/sdk-versions/nodejs.json`
3. Bump versions of the React SDK
- Bump version in `packages/sdk-react/package.json`
- Bump dependency version in `package/front-end/package.json`
- Add new entry to `packages/shared/src/sdk-versioning/sdk-versions/react.json`
4. Do a global search for the old version strings for both Javascript and React to make sure nothing was missed. Update these instructions if needed.
5. Create a PR and let CI complete successfully
6. Publish the Javascript SDK
- `yarn build`
- `npm publish`
7. Publish the React SDK
- `yarn build`
- `npm publish`
8. Merge the PR

### Working on the stats engine

Ensure you have run `yarn setup` first to install the poetry virtual environment before working in the stats engine. Otherwise, pre-commit hooks and the following commands will error.
Expand Down
2 changes: 1 addition & 1 deletion packages/back-end/package.json
Expand Up @@ -31,7 +31,7 @@
"@dqbd/tiktoken": "^1.0.7",
"@google-cloud/bigquery": "5",
"@google-cloud/storage": "^5.20.5",
"@growthbook/growthbook": "^0.32.0",
"@growthbook/growthbook": "^0.33.0",
"@growthbook/proxy-eval": "^1.0.0",
"@octokit/auth-app": "^6.0.1",
"@octokit/core": "^5.0.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/front-end/package.json
Expand Up @@ -19,7 +19,7 @@
"@dnd-kit/core": "^4.0.3",
"@dnd-kit/sortable": "^5.1.0",
"@floating-ui/react": "^0.25.4",
"@growthbook/growthbook-react": "^0.22.0",
"@growthbook/growthbook-react": "^0.23.0",
"@jitsu/sdk-js": "^2.2.0",
"@jukben/emoji-search": "^2.0.1",
"@popperjs/core": "^2.11.5",
Expand Down
5 changes: 5 additions & 0 deletions packages/sdk-js/CHANGELOG.md
@@ -1,5 +1,10 @@
# Changelog

## **0.33.0** - Jan 31, 2024

- Add new `maxAge` cache setting that limits how old cached features can be before we force a re-fetch from the server. Defaults to 24 hours.
- Fix broken visual editor preview links for multi-page experiments

## **0.32.0** - Jan 11, 2024

- Fix bug when visual editor loaded before `document.body` was available
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-js/package.json
@@ -1,6 +1,6 @@
{
"name": "@growthbook/growthbook",
"version": "0.32.0",
"version": "0.33.0",
"license": "MIT",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/sdk-react/package.json
@@ -1,6 +1,6 @@
{
"name": "@growthbook/growthbook-react",
"version": "0.22.0",
"version": "0.23.0",
"license": "MIT",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down Expand Up @@ -38,7 +38,7 @@
"react": "^16.8.0-0 || ^17.0.0-0 || ^18.0.0-0"
},
"dependencies": {
"@growthbook/growthbook": "^0.32.0"
"@growthbook/growthbook": "^0.33.0"
},
"devDependencies": {
"@babel/cli": "^7.19.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/package.json
Expand Up @@ -17,7 +17,7 @@
"type-check": "tsc --pretty --noEmit"
},
"dependencies": {
"@growthbook/growthbook": "^0.32.0",
"@growthbook/growthbook": "^0.33.0",
"ajv": "^8.12.0",
"date-fns": "^2.15.0",
"dirty-json": "^0.9.2",
Expand Down
@@ -1,5 +1,8 @@
{
"versions": [
{
"version": "0.33.0"
},
{
"version": "0.32.0",
"capabilities": ["stickyBucketing"]
Expand Down
3 changes: 3 additions & 0 deletions packages/shared/src/sdk-versioning/sdk-versions/nodejs.json
@@ -1,5 +1,8 @@
{
"versions": [
{
"version": "0.33.0"
},
{
"version": "0.32.0",
"capabilities": ["stickyBucketing"]
Expand Down
3 changes: 3 additions & 0 deletions packages/shared/src/sdk-versioning/sdk-versions/react.json
@@ -1,5 +1,8 @@
{
"versions": [
{
"version": "0.23.0"
},
{
"version": "0.22.0",
"capabilities": ["stickyBucketing"]
Expand Down