Skip to content

Commit

Permalink
refactor: upgrade to Expo SDK 52.0.14 (#620)
Browse files Browse the repository at this point in the history
* refactor(runtime): upgrade to Expo SDK `52.0.14`

* refactor: upgrade `snack-content` and `snack-sdk` to Expo SDK `52.0.14`

* chore: publish new `snack-content` and `snack-sdk` packages

* chore: ignore scripts in dockerfile before `turbo.json` is available

* docs: update contributing guide with new bootstrap command
  • Loading branch information
byCedric authored Dec 4, 2024
1 parent 7aa1592 commit 32cb15d
Show file tree
Hide file tree
Showing 15 changed files with 385 additions and 255 deletions.
3 changes: 1 addition & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
- Update `~/.chalet/conf.json` to use `{ "tld": "test" }`
- [Configure your system or browser to use the `.test` domain](https://github.com/jeansaad/chalet/blob/master/docs/README.md#system-configuration-recommended)
- Restart or refresh your network settings to apply the chalet changes
5. Run `yarn build` in the root directory to prepare the installation.
5. Run `yarn bootstrap` in the root directory to prepare the installation.

## 🏎️ Start the Development environment

Expand Down Expand Up @@ -69,4 +69,3 @@ Hungry for more, check out these great guides:
- [Expo JavaScript/TypeScript Style Guide](https://github.com/expo/expo/blob/master/guides/Expo%20JavaScript%20Style%20Guide.md)
- [Git and Code Reviews at Expo](https://github.com/expo/expo/blob/master/guides/Git%20and%20Code%20Reviews.md)
- [Our Open Source Standards](https://github.com/expo/expo/blob/master/guides/Our%20Open%20Source%20Standards.md)

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"lint": "turbo lint --filter './packages/*' --",
"test": "turbo test --filter './packages/*' --",
"build": "turbo build --filter './packages/*' --",
"bootstrap": "yarn install && yarn build && yarn --cwd ./packages/snack-babel-standalone bootstrap && yarn --cwd ./packages/snack-eslint-standalone bootstrap"
"bootstrap": "yarn install && yarn --cwd ./packages/snack-babel-standalone bootstrap && yarn --cwd ./packages/snack-eslint-standalone bootstrap",
"postinstall": "turbo build --filter './packages/*' --"
},
"workspaces": {
"packages": [
Expand Down
2 changes: 1 addition & 1 deletion packages/snack-content/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "snack-content",
"version": "3.3.0",
"version": "3.4.0",
"description": "Functions and types that describe the contents of Snack projects",
"main": "build/index.js",
"types": "build/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/snack-content/src/sdks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ const sdks: { [version: string]: SDKSpec } = {
expo: '~52.0.2',
react: '18.3.1',
'react-dom': '18.3.1',
'react-native': '0.76.1',
'react-native': '0.76.3',
'react-native-web': '*',
// Used by @shopify/react-native-skia, on web only
// See runtime/src/NativeModules/ReactNativeSkia.tsx for more info
Expand Down
2 changes: 1 addition & 1 deletion packages/snack-runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"path": "^0.12.7",
"pubnub": "^7.2.0",
"snack-babel-standalone": "^4.0.0",
"snack-content": "~3.3.0",
"snack-content": "~3.4.0",
"snack-require-context": "^0.1.0",
"socket.io-client": "~4.5.4",
"source-map": "0.6.1"
Expand Down
8 changes: 4 additions & 4 deletions packages/snack-runtime/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8851,10 +8851,10 @@ snack-babel-standalone@^4.0.0:
resolved "https://registry.yarnpkg.com/snack-babel-standalone/-/snack-babel-standalone-4.0.0.tgz#17ee9134a515af3e2fc44d90598656c0903f665c"
integrity sha512-DB01CChul97KielzlP88miUx93E0o6ebnbNa2aah+KIl+vwcXbTuzc55KNNNrGELF5N8rpd74PYi23y/DqemKA==

snack-content@~3.3.0:
version "3.3.0"
resolved "https://registry.yarnpkg.com/snack-content/-/snack-content-3.3.0.tgz#744d85bf9dec3e031823a31e98984fdd5772718b"
integrity sha512-WSu9lMAE5ZgOleKnXng3oWaP4MNncv3rrPyhqv91zlYcycsQAQVXCj0kexX26xz+VDk77jUWVp9nRLPuDanUwg==
snack-content@~3.4.0:
version "3.4.0"
resolved "https://registry.yarnpkg.com/snack-content/-/snack-content-3.4.0.tgz#d1139d187adfce6b6da2f86849dc97a95ee2e794"
integrity sha512-ArFzg4WyDUVzGT/1NnqeniUaxAHiaanp+cqUncksOJFUAPIltJrnTiTfKonACpRg0PiX72QwfRHS2OQwqqJ44Q==
dependencies:
semver "^7.3.4"

Expand Down
4 changes: 2 additions & 2 deletions packages/snack-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "snack-sdk",
"version": "6.3.0",
"version": "6.4.0",
"description": "The Expo Snack SDK",
"main": "build/index.js",
"types": "build/index.d.ts",
Expand Down Expand Up @@ -71,7 +71,7 @@
"nullthrows": "^1.1.1",
"pubnub": "^7.2.0",
"semver": "^7.3.4",
"snack-content": "~3.3.0",
"snack-content": "~3.4.0",
"socket.io-client": "~4.5.4",
"ua-parser-js": "^0.7.22",
"validate-npm-package-name": "^3.0.0"
Expand Down
78 changes: 39 additions & 39 deletions packages/snack-sdk/src/__fixtures__/bundledNativeModules.json
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@
"@expo/vector-icons": "^14.0.2",
"@react-native-async-storage/async-storage": "1.23.1",
"@react-native-community/datetimepicker": "8.2.0",
"@react-native-masked-view/masked-view": "0.3.1",
"@react-native-masked-view/masked-view": "0.3.2",
"@react-native-community/netinfo": "11.4.1",
"@react-native-community/slider": "4.5.5",
"@react-native-community/viewpager": "5.0.11",
Expand All @@ -545,95 +545,95 @@
"expo-analytics-amplitude": "~11.3.0",
"expo-app-auth": "~11.1.0",
"expo-app-loader-provider": "~8.0.0",
"expo-apple-authentication": "~7.0.1",
"expo-apple-authentication": "~7.1.2",
"expo-application": "~6.0.1",
"expo-asset": "~11.0.1",
"expo-audio": "~0.2.3",
"expo-auth-session": "~6.0.0",
"expo-audio": "~0.3.0",
"expo-auth-session": "~6.0.1",
"expo-av": "~15.0.1",
"expo-background-fetch": "~13.0.2",
"expo-background-fetch": "~13.0.3",
"expo-battery": "~9.0.1",
"expo-blur": "~14.0.1",
"expo-brightness": "~13.0.2",
"expo-build-properties": "~0.13.1",
"expo-calendar": "~14.0.2",
"expo-camera": "~16.0.3",
"expo-calendar": "~14.0.4",
"expo-camera": "~16.0.8",
"expo-cellular": "~7.0.1",
"expo-checkbox": "~4.0.0",
"expo-clipboard": "~7.0.0",
"expo-constants": "~17.0.2",
"expo-constants": "~17.0.3",
"expo-contacts": "~14.0.2",
"expo-crypto": "~14.0.1",
"expo-dev-client": "~5.0.0",
"expo-dev-client": "~5.0.5",
"expo-device": "~7.0.1",
"expo-document-picker": "~13.0.1",
"expo-face-detector": "~13.0.1",
"expo-file-system": "~18.0.2",
"expo-file-system": "~18.0.4",
"expo-font": "~13.0.1",
"expo-gl": "~15.0.1",
"expo-gl": "~15.0.2",
"expo-google-app-auth": "~8.3.0",
"expo-haptics": "~14.0.0",
"expo-image": "~2.0.0",
"expo-image": "~2.0.3",
"expo-image-loader": "~5.0.0",
"expo-image-manipulator": "~13.0.5",
"expo-image-picker": "~16.0.1",
"expo-image-picker": "~16.0.3",
"expo-intent-launcher": "~12.0.1",
"expo-insights": "~0.8.1",
"expo-keep-awake": "~14.0.1",
"expo-linear-gradient": "~14.0.1",
"expo-linking": "~7.0.2",
"expo-linking": "~7.0.3",
"expo-local-authentication": "~15.0.1",
"expo-localization": "~16.0.0",
"expo-location": "~18.0.1",
"expo-location": "~18.0.3",
"expo-mail-composer": "~14.0.1",
"expo-media-library": "~17.0.2",
"expo-module-template": "~10.15.7",
"expo-modules-core": "~2.0.0",
"expo-navigation-bar": "~4.0.2",
"expo-network": "~7.0.0",
"expo-notifications": "~0.29.6",
"expo-media-library": "~17.0.3",
"expo-module-template": "~10.15.12",
"expo-modules-core": "~2.1.1",
"expo-navigation-bar": "~4.0.5",
"expo-network": "~7.0.3",
"expo-notifications": "~0.29.10",
"expo-print": "~14.0.2",
"expo-router": "~4.0.2",
"expo-router": "~4.0.11",
"expo-screen-capture": "~7.0.0",
"expo-screen-orientation": "~8.0.0",
"expo-secure-store": "~14.0.0",
"expo-sensors": "~14.0.1",
"expo-sharing": "~13.0.0",
"expo-sms": "~13.0.0",
"expo-speech": "~13.0.0",
"expo-splash-screen": "~0.29.6",
"expo-sqlite": "~15.0.2",
"expo-splash-screen": "~0.29.13",
"expo-sqlite": "~15.0.3",
"expo-status-bar": "~2.0.0",
"expo-store-review": "~8.0.0",
"expo-symbols": "~0.2.0",
"expo-system-ui": "~4.0.2",
"expo-task-manager": "~12.0.2",
"expo-tracking-transparency": "~5.0.0",
"expo-updates": "~0.26.5",
"expo-video-thumbnails": "~9.0.0",
"expo-video": "~2.0.0",
"expo-web-browser": "~14.0.0",
"jest-expo": "~52.0.0",
"lottie-react-native": "7.0.0",
"expo-system-ui": "~4.0.5",
"expo-task-manager": "~12.0.3",
"expo-tracking-transparency": "~5.1.0",
"expo-updates": "~0.26.9",
"expo-video-thumbnails": "~9.0.2",
"expo-video": "~2.0.2",
"expo-web-browser": "~14.0.1",
"jest-expo": "~52.0.2",
"lottie-react-native": "7.1.0",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-native": "0.76.1",
"react-native": "0.76.3",
"react-native-web": "~0.19.13",
"react-native-gesture-handler": "~2.20.2",
"react-native-get-random-values": "~1.11.0",
"react-native-maps": "1.18.0",
"react-native-pager-view": "6.4.1",
"react-native-pager-view": "6.5.1",
"react-native-reanimated": "~3.16.1",
"react-native-screens": "4.0.0",
"react-native-screens": "~4.1.0",
"react-native-safe-area-context": "4.12.0",
"react-native-svg": "15.8.0",
"react-native-view-shot": "~4.0.0",
"react-native-view-shot": "4.0.2",
"react-native-webview": "13.12.2",
"sentry-expo": "~7.0.0",
"unimodules-app-loader": "~5.0.0",
"unimodules-image-loader-interface": "~6.1.0",
"@shopify/react-native-skia": "1.5.0",
"@shopify/flash-list": "1.7.1",
"@sentry/react-native": "~6.1.0"
}
"@sentry/react-native": "~6.3.0"
}
}
26 changes: 13 additions & 13 deletions runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,31 +29,31 @@
"canvaskit-wasm": "0.38.0",
"diff": "^5.0.0",
"escape-string-regexp": "^5.0.0",
"expo": "~52.0.2",
"expo": "~52.0.14",
"expo-asset": "~11.0.1",
"expo-camera": "~16.0.3",
"expo-constants": "~17.0.2",
"expo-camera": "~16.0.8",
"expo-constants": "~17.0.3",
"expo-crypto": "~14.0.1",
"expo-file-system": "~18.0.2",
"expo-file-system": "~18.0.4",
"expo-font": "~13.0.1",
"expo-keep-awake": "~14.0.1",
"expo-linking": "~7.0.2",
"expo-router": "~4.0.2",
"expo-splash-screen": "~0.29.6",
"expo-linking": "~7.0.3",
"expo-router": "~4.0.11",
"expo-splash-screen": "~0.29.13",
"expo-status-bar": "~2.0.0",
"expo-updates": "~0.26.5",
"expo-updates": "~0.26.9",
"path": "^0.12.7",
"prop-types": "^15.7.2",
"pubnub": "^7.2.0",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-native": "0.76.1",
"react-native": "0.76.3",
"react-native-gesture-handler": "~2.20.2",
"react-native-pager-view": "6.4.1",
"react-native-pager-view": "6.5.1",
"react-native-reanimated": "~3.16.1",
"react-native-safe-area-context": "4.12.0",
"react-native-screens": "^4.0.0",
"react-native-view-shot": "~4.0.0",
"react-native-screens": "~4.1.0",
"react-native-view-shot": "4.0.2",
"react-native-web": "~0.19.13",
"snack-babel-standalone": "file:../packages/snack-babel-standalone",
"snack-content": "file:../packages/snack-content",
Expand All @@ -75,7 +75,7 @@
"expo-atlas": "^0.3.27",
"getenv": "^1.0.0",
"jest": "^29.2.1",
"jest-expo": "~52.0.0",
"jest-expo": "~52.0.2",
"patch-package": "^6.4.7",
"postinstall-postinstall": "^2.1.0",
"prettier": "^3.2.4",
Expand Down
File renamed without changes.
Loading

0 comments on commit 32cb15d

Please sign in to comment.