* refactor: switch to new Snack Runtime web host
* chore: move staging test URLs to production urls
* chore: drop `SNACK_WEBPLAYER_CDN` from code
* chore: migrate Snack Runtime deployment script
* refactor(runtime): upgrade to Expo SDK 54 beta
* refactor(runtime): drop `babel.config.js` to use Expo default
* refactor(runtime): add `react-native-worklets` for Reanimated 4
* refactor(runtime): replace vendored reanimated plugin with worklets plugin
* refactor(runtime): update file system caching to new `expo-file-system` API
* refactor(snack-content): upgrade to Expo SDK 54 beta
* refactor(snack-sdk): upgrade to Expo SDK 54 beta
* refactor(website): upgrade to Expo SDK 54 beta
* refactor(website): add new Appetize builds for Expo SDK 54
* refactor(runtime): use fixed Expo SDK beta version to avoid semver weirdness
* refactor(snack-runtime): upgrade to Expo SDK 54 beta
* refactor(snack-runtime): re-apply the same fixes from runtime
* chore: bump all package versions to next published versions for Expo SDK 54
* chore: update lockfiles
* fix(snackager): prefer the `react-native-worklets/plugin` but fallback to `react-native-reanimated/plugin`
* fix: make Appetize button text colors white
* fix(runtime): replace `expo-file-system` usage with `ModuleCache` to support web
* fix(website): drop `SafeAreaView` from default template
* fix(website): import missing `View` component
* refactor(runtime): upgrade to latest Expo SDK 54 beta
* refactor(runtime): upgrade to latest Expo SDK 54 stable
* refactor(snack-content): upgrade to Expo SDK 54 stable
* refactor(snack-sdk): upgrade to Expo SDK 54 stable
* test(snack-sdk): update snapshots
* 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
* refactor(runtime): upgrade to Expo SDK `51.0.0-preview.4`
* refactor(runtime): drop root `expo` prefix in `app.json`
* refactor(runtime): update `react-native` patch
* refactor(snack-content): add Expo SDK 51
* refactor(snack-sdk): add Expo SDK 51
* refactor(website): configure new Appetize apps
* refactor(website): configure new Expo SDK
* fix(snack-content): use the proper `expo` version for 51
* refactor(runtime): use `experiments.baseUrl` for web exports instead of workaround
* refactor(runtime): use `appVersion` with major Expo SDK version instead of `sdkVersion`
* feature(snack-content): add support for `appVersion` urls starting from SDK 51
* chore(website): enable SDK 51 in dropdown
* refactor: revert `appVersion` changes to rely on `sdkVersion` for now
* refactor(runtime): upgrade to Expo SDK `51.0.0`
* refactor(snack-content): upgrade to Expo SDK `51.0.0`
* refactor(snack-sdk): upgrade to Expo SDK `51.0.0`
* test(snack-sdk): update snapshot test
* docs: update `expo-sdk-upgrade.md` guide for runtime upgrades
* refactor(runtime): upgrade to `[email protected]` and run `expo install --fix`
* refactor(runtime): upgrade to required `patch-package` patches
* refactor(runtime): add reanimated plugin through vendoring
* refactor(babel-standalone): restructure and update for `[email protected]`
* fix(runtime): ignore faulty `expo-router/head` type for `Head.Provider` children
* refactor(runtime-shell): apply same update to runtime shell app
* fix: upgrade to `[email protected]`
* refactor(runtime): apply same update to runtime package
* chore(runtime): force all runtime versions to use the new babel package
* chore(content): upgrade to `[email protected]`
* chore(sdk): upgrade to `[email protected]`
* fix(runtime): add missing `LogBox` mock to transport test
* chore(website): upgrade to `[email protected]`
* fix(runtime): add missing `LogBox` mock to transport test
* chore: temporarily add babel build when setting up runtime
* chore(runtime): add assert polyfill for now
* chore(runtime): add missing `mjs` extension to source resolver
* chore(runtime): add missing `useClassicUpdates` to `app.json`
* chore(snack-sdk): bump version to `4.2.0` to link from website and snackager
* fix(snackager): update testing sdk and snapshots
* chore(snack-content): bump version to `1.5.0` to link from `snack-sdk`
* fix: bundle `react-native-pager-view` inside the runtime to avoid Snackager errors
* refactor(runtime-shell): make platform-specific modules more readable
* refactor(runtime): update deployment script to make it Metro web compatible
* fix(runtime): use `fs/promises` in web deploy script
* fix(runtime): improve paths pass through for web deployment script
* chore(runtime): revert gitignore
* fix(runtime): use proper paths in `s3-deploy` script
* refactor(runtime): run `expo install --fix`
* refactor(runtime): upgrade typescript eslint
* feature(require-context): add package to share the `require.context` implementation
* chore(require-context): add package to monorepo and ci
* refactor(require-context): allow path post-processing while keeping keys correct
* feature(runtime): implement `require.context` using virtual modules
* fix(require-context): make babel plugin compatible with snackager and environment variables
* fix(runtime): update implementation for new babel plugin changes
* feature(snackager): implement virtual modules for require.context in libraries
* chore(snackager): drop unused test code
* chore(runtime): drop unused test code
* chore: update workflows to include snack-require-context
* fix(require-context): add entrypoint fallback for snackager
* fix(snackager): add require-context package to the dockerfile
* fix(require-context): limit file path sanitization a bit more
Co-authored-by: Kudo Chien <[email protected]>
* fix(require-context): do not use virtual module for garbage paths
* fix(snackager): simplify docker file and fix remaining require-context issue
* fix(snackager): never include Metro as peer dependency
* chore(snackager): drop test file
* fix(require-context): properly filter garbage paths
---------
Co-authored-by: Kudo Chien <[email protected]>
* refactor(runtime): install `[email protected]`
* refactor(runtime): run `expo install --fix`
* refactor(runtime): update `react-native` patch to used version
* refactor(runtime): update `react-native-web` patch to used version
* refactor(runtime): update `react-native-reanimated` patch to used version
* refactor(runtime): drop resolution workaround for react types
* refactor(snack-content): upgrade to Expo SDK 48
* refactor(snack-sdk): upgrade to Expo SDK 48
* refactor(website): upgrade to Expo SDK 48
* refactor(website): drop `import "react";` from template
* refactor(runtime): upgrade typescript eslint
* refactor(runtime): upgrade canvaskit to 0.38.0
* chore(runtime): use latest `[email protected]`
# Why
close ENG-7103
close ENG-7101
# How
- similiar to snack-sdk, now we have three different transports:
- RuntimeTransportImplPubNub
- RuntimeTransportImplWebPlayer
- RuntimeTrafficMirroringTransport = RuntimeTransportImplPubNub + RuntimeTransportImplSocketIO (for traffic mirror)
- use the initialUrl to determine which transport to use. the website and snack-sdk will append `testTransport` to the initialUrl.
- to prevent duplicated events from the traffic mirror, we implement the deduplication in runtime. the `RuntimeTrafficMirroringTransport` will try `RuntimeTransportImplSocketIO` as the primary transport to send messages or pass messages to upper event handlers. only if the socketio transport is not stable, we will use the RuntimeTransportImplPubNub as fallback.
# Test Plan
- unit tests in runtime
- snackpub integration test
- ci passed
Co-authored-by: Cedric van Putten <[email protected]>
* [snack-babel-standalone] Add dynamic import transforms to make it work with systemjs
* [runtime] Add dynamic import transform babel plugins
* [runtime] Use return type instead of hard babel type
* [runtime] Upgrade to expo sdk 46 beta
* [runtime] Change app.json to sdk 46
* [runtime] Change entrypoint to index
* [runtime] Customized web files
* [runtime] Disable unknown exceptions in typescript
* [runtime] Remove react 17 types with resolutions
This is caused by https://github.com/DefinitelyTyped/DefinitelyTyped/issues/59862\#issuecomment-1097551922
* [runtime] Upgrade eslint to latest version for typescript
* [runtime] Fix all new eslint errors
* [docs] Change upgrade instructions to match snack-content types
* [snack-content] Update SDK types dropping 43 and adding 46
* [snack-sdk] Update all tests for sdk 46
* [snack-sdk] Update snapshots for sdk 46
* [website] Update sdk list for sdk 46
* [website] Update snapshots for sdk 46
* [snackager] Update snapshot tests for sdk 46
* [runtime] Switch to expo export:web for web deployments
* [runtime] Force old expo-cli for publish
* [runtime] Update all patches to latest versions
* [CI] Use opt-in to skaffold push to allow custom branches
This defers security to GitHub and environments to prevent accidential deployments. Locally, you have to add this environment variable to enable pushing, which is an opt-in and prevents accidental pushes too
* [runtime] Disable Amplitude since its unavailable for SDK 46
* [runtime] Add babel polyfill in production app
Not sure why this is necessary, probably good to check on this after stable release
* [runtime] Bump snack-babel-standalone to version to 1.1.0
* [CI] Allow runtime to take 4gb when publishing
* [snack-content] Set SDK 46 as default SDK for web
* [snackager] Fix bundling [email protected] (#316)
* [snackager] Add babel proposal export namespace from for reanimated
* [snackager] Add test for react native reanimated 2.9.1
* [snackager] Add reanimated as external for skia since its bundled inside the runtime
* [snackager] Remove reanimated hidden peer dep because it can now bundle
* [snackager] Update bundling snapshot for reanimated 2.9.1
* [snackager] Update snapshot tests for default sdk 46
* [snack-sdk] Update snapshot tests for default sdk 46
* [runtime] Add CanvasKit for Skia web support
* [snack-content] Mark CanvasKit as core module to prevent downloading it
* [snack-content] Move canvaskit to skia web API
* [runtime] Add Snack specific initialization of Skia web
* [runtime] Upgrade to expo sdk 46 beta
* [runtime] Change app.json to sdk 46
* [runtime] Change entrypoint to index
* [runtime] Customized web files
* [runtime] Disable unknown exceptions in typescript
* [runtime] Remove react 17 types with resolutions
This is caused by https://github.com/DefinitelyTyped/DefinitelyTyped/issues/59862\#issuecomment-1097551922
* [runtime] Upgrade eslint to latest version for typescript
* [runtime] Fix all new eslint errors
* [docs] Change upgrade instructions to match snack-content types
* [snack-content] Update SDK types dropping 43 and adding 46
* [snack-sdk] Update all tests for sdk 46
* [snack-sdk] Update snapshots for sdk 46
* [website] Update sdk list for sdk 46
* [website] Update snapshots for sdk 46
* [snackager] Update snapshot tests for sdk 46
* [runtime] Switch to expo export:web for web deployments
* [runtime] Force old expo-cli for publish
* [runtime] Update all patches to latest versions
* [CI] Use opt-in to skaffold push to allow custom branches
This defers security to GitHub and environments to prevent accidential deployments. Locally, you have to add this environment variable to enable pushing, which is an opt-in and prevents accidental pushes too
* [runtime] Disable Amplitude since its unavailable for SDK 46
* [runtime] Add babel polyfill in production app
Not sure why this is necessary, probably good to check on this after stable release
* [runtime] Bump snack-babel-standalone to version to 1.1.0
* [CI] Allow runtime to take 4gb when publishing
* [snack-content] Set SDK 46 as default SDK for web
* [snackager] Fix bundling [email protected] (#316)
* [snackager] Add babel proposal export namespace from for reanimated
* [snackager] Add test for react native reanimated 2.9.1
* [snackager] Add reanimated as external for skia since its bundled inside the runtime
* [snackager] Remove reanimated hidden peer dep because it can now bundle
* [snackager] Update bundling snapshot for reanimated 2.9.1
* [snackager] Update snapshot tests for default sdk 46
* [snack-sdk] Update snapshot tests for default sdk 46
Instead of letting yarn install two separate instances of a package, we copy the plugin before applying a patch to it. That way, we can use a version in the snack runtime, and one in the snack code itself.
We might want to look for alternatives to this issue though.
* fix(runtime): update the dependencies to match sdk 44
* fix(runtime): add reanimated in runtime and use a separate version for babel-standalone
* fix: switch over to the newer babel instance
* fix: linting issue
* fix: use same reanimated versions for runtime and standalone plugin
Co-authored-by: Peter Piekarczyk <[email protected]>
Co-authored-by: Peter Piekarczyk <[email protected]>
* refactor: pull eslint to root of the project
This is a step to equalize the current eslint configurations across the monorepo
* refactor: use specific eslint config for each project
This avoids loading huge plugins like eslint-plugin-react for node packages/projects, and drastically speeds up eslint.
* refactor: add eslint to monorepo-detached runtime
Because its not part of the monorepo (not listed as workspace) we need to add it here too.
* refactor: add eslint to monorepo-detached snack-sdk-legacy
Because its not part of the monorepo (not listed as workspace) we need to add it here too.
* fix: add missing root to all configs
* fix: missing flow types for platform and node_modules ignore