Skip to content

Commit

Permalink
[website] Set default back to sdk 44 and centralize switch
Browse files Browse the repository at this point in the history
  • Loading branch information
byCedric committed May 19, 2022
1 parent 1cce5c4 commit 7ce2363
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/snack-content/src/defaults.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { SDKVersion } from './types';

export const defaultSdkVersion: SDKVersion = '45.0.0';
export const defaultSdkVersion: SDKVersion = '44.0.0';

// Mostly used for tests
export const oldestSdkVersion: SDKVersion = '43.0.0';
Expand Down
1 change: 1 addition & 0 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
"recast": "^0.20.3",
"redux": "^4.0.1",
"sanitize-html": "^1.20.0",
"snack-content": "*",
"snack-sdk": "*",
"stoppable": "^1.1.0",
"validate-npm-package-name": "^3.0.0"
Expand Down
3 changes: 2 additions & 1 deletion website/src/client/configs/sdk.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { defaultSdkVersion } from 'snack-content';
import { SDKVersion } from 'snack-sdk';

/**
Expand All @@ -11,5 +12,5 @@ export const versions: Record<SDKVersion, boolean> = {
'45.0.0': true,
};

export const DEFAULT_SDK_VERSION: SDKVersion = '45.0.0';
export const DEFAULT_SDK_VERSION: SDKVersion = defaultSdkVersion;
export const TEST_SDK_VERSION: SDKVersion = '43.0.0';
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4474,11 +4474,6 @@ b64u-lite@^1.0.1:
dependencies:
b64-lite "^1.4.0"

[email protected]:
version "7.0.0-bridge.0"
resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-7.0.0-bridge.0.tgz#95a492ddd90f9b4e9a4a1da14eb335b87b634ece"
integrity sha512-poPX9mZH/5CSanm50Q+1toVci6pv5KSRv/5TWCwtzQS5XEwn40BcCrgIeMFWP9CKKIniKXNxoIOnOq4VVlGXhg==

babel-jest@^26.6.3:
version "26.6.3"
resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-26.6.3.tgz#d87d25cb0037577a0c89f82e5755c5d293c01056"
Expand Down

0 comments on commit 7ce2363

Please sign in to comment.