Commit Graph
57 Commits
Author SHA1 Message Date
Cedric van Putten d9907118ec refactor(runtime): upgrade to [email protected] 2026-01-28 17:45:03 +01:00
Cedric van Putten 257ee8a351 refactor: switch to new Snack Runtime web host (#663)
* 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
2026-01-28 17:12:48 +01:00
Cedric van Putten a694b8fafd refactor: upgrade Snack to latest SDK 54 (#662)
* refactor: upgrade Snack with Claude

* refactor: upgrade Snack Runtime package with React Native

* chore(runtime): regenerate lockfile

* chore(website): revert snapshot changes

* chore(snack-runtime): regenerate lockfile
2026-01-27 14:49:06 +01:00
Kudo Chien 8c38a47170 chore: remove pubnub (#660)
* chore: remove pubnub

* fix lint errors

* fix ci
2026-01-27 20:58:24 +08:00
Cedric van Putten 7f676fda7a fix(runtime): deduplicate React Navigation for Expo Router (#650) 2025-11-21 21:36:45 +08:00
Cedric van Putten ff42aef45b refactor(runtime): upgrade to latest Expo SDK 54 (#645)
* refactor(runtime): upgrade to latest Expo SDK 54

* refactor(runtime): upgrade the vendored worklets babel plugin

* chore(runtime): bump jest-expo to avoid `expo-modules-core` mocking error
2025-09-26 11:55:50 +02:00
Cedric van Putten b81f186d0f refactor: upgrade to Expo SDK 54 stable (#642)
* 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
2025-09-10 21:34:01 +02:00
Cedric van Putten 5fb6239cb9 chore(runtime): upgrade to Expo SDK 53 latest (#640) 2025-08-25 09:40:56 +02:00
Cedric van Putten 4a5bad2e1e refactor: upgrade to Expo SDK 53 (#631)
* refactor(runtime): upgrade to Expo SDK 53

* chore(runtime): update `tsconfig.json` to latest from template

* refactor(runtime): explicitly mark `error` as `any` in `try catch`

* fix(runtime): use proper `ref` function for Error boundary in root

* refactor(snack-content): upgrade to Expo SDK 53

* refactor(snack-sdk): upgrade to Expo SDK 53

* feature(website): add Expo SDK 53 Appetize builds

* chore(ci): upgrade Node to oldest LTS

* fix(website): add Expo SDK 53 to input selector

* refactor(snack-runtime): upgrade to Expo SDK 53

* fix(website): remove unused puppeteer import

* test(snackager): update snapshot for `draftbit-ui` tests

* fix(runtime): use proper `primaryColor` in `app.json`
2025-05-07 12:46:43 +02:00
Cedric van Putten 32cb15d31a refactor: upgrade to Expo SDK 52.0.14 (#620)
* 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
2024-12-04 14:23:18 +01:00
Cedric van Putten 29ca4125a3 refactor: upgrade to Expo SDK 52 (#614)
* fix(runtime): workaround browserslist db invariant issue when installing

* refactor(runtime): upgrade to Expo SDK `52.0.0-preview.7`

* refactor(sdk): upgrade to Expo SDK `52.0.0-preview.7`

* refactor(website): upgrade to Expo SDK `52.0.0-preview.7`

* chore(snackager): update failing snapshot

* refactor(runtime): upgrade to Expo SDK `52.0.0-preview.12`

* fix(runtime): workaround `snack-content` causing Hermes syntax crashes

* fix(runtime): workaround `expo-updates` crashing on web due to missing `.addListener` method

* fix(runtime): use new `@react-native/assets-registry/registry` for assets

* fix(runtime): swap out `expo-random` for `expo-crypto`

* fix(runtime): inject `__DEV__ = false` when evaluating code only

* fix(runtime): swap out `expo-barcode-scanner` for `expo-camera`

* refactor: upgrade to Expo SDK 52 preview 18

* refactor(runtime): upgrade to Expo SDK `52.0.0-preview.23`

* refactor(snack-sdk): upgrade to Expo SDK `52.0.0-preview.23`

* refactor: upgrade to Expo SDK 52 stable

* refactor: bump `snack-content` and `snack-sdk` by minor version

* refactor: upgrade vendored reanimated plugin and snack babel standalone

* fix(runtime): move off preview versions

* chore(runtime: realign jest types

* chore(runtime): update eslint config universe
2024-11-11 14:39:30 +01:00
Cedric van Putten 30fb80f009 chore: upgrade runtime and packages to latest SDK 51 (#608)
* chore(runtime): upgrade to latest Expo SDK 51

* chore(runtime): upgrade the vendored reanimated plugin to `3.10.1`

* chore: upgrade `snack-content` and `snack-sdk` for latest 51

* chore(snack-sdk): update test and fixtures

* chore: upgrade `snack-content` and `snack-sdk` versions for release

* chore: sync all package versions

* chore(snack-runtime): bump to Expo sDK 51

* chore(runtime-shell): bump to Expo sDK 51

* chore(runtime): eslint to latest
2024-09-20 17:57:07 +02:00
Cedric van Putten 6b9939362f refactor: upgrade to latest [email protected] (#595)
* refactor(runtime): upgrade to Expo SDK `51.0.20`

* refactor(sdk): upgrade to Expo SDK `51.0.20`

* chore(sdk): bump minor versions

* chore(sdk): update test for `50.0.20`

* chore(runtime): update lockfile

* chore(snackager): bump react navigation to latest rc
2024-08-01 14:31:13 +02:00
Cedric van Putten 4170f1c37d refactor: upgrade to latest Expo SDK 51 (#586)
* chore(runtime): upgrade to latest Expo SDK 51

* chore(snack-sdk): update bundled native modules fixture
2024-06-01 12:40:31 +02:00
Cedric van Putten d73e748670 refactor: upgrade to Expo SDK 51 (#577)
* 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
2024-05-07 15:15:26 +02:00
Cedric van Putten ba049d8613 refactor: upgrade to Expo SDK 50.0.17 (#575)
* refactor(runtime): upgrade to Expo SDK `50.0.17`

* refactor(snack-content): upgrade to latest Expo SDK `50.0.17`

* refactor(snack-sdk): upgrade to latest Expo SDK `50.0.17`

* test(snackager): update snapshot for `react-native-webview`
2024-04-25 15:26:08 +02:00
Cedric van Putten f496d87910 refactor: upgrade to latest Expo SDK 50 (#556)
* refactor(runtime): upgrade to Expo SDK 50

* refactor(snack-content): upgrade to latest Expo SDK 50

* refactor(snack-sdk): upgrade to latest Expo SDK 50

* fix(snack-sdk): add missing snackager mock

* test(snackager): update to SDK 50
2024-02-12 18:48:13 +01:00
Cedric van Putten bcae577f07 fix(runtime): use production channel name on staging 2024-01-20 00:21:48 +01:00
Cedric van Putten 0016b3b7e1 chore(runtime): update deployment workflow for eas (#542)
* chore(runtime): update deployment workflow for eas

* chore(runtime): update `package.json` deployment scripts
2024-01-19 22:21:46 +01:00
Cedric van Putten 755b85a0e4 refactor(runtime): upgrade to Expo SDK 50 (#538)
* refactor(runtime): upgrade to Expo SDK 50

* refactor(runtime): drop extraneous `export-namespace-from` babel plugin

* fix(runtime): resolve typescript errors

* refactor(runtime): update eslint and resolve linting issues

* refactor(runtime): update web deployment patches
2024-01-19 18:53:54 +01:00
Cedric van Putten bfe8a6dffe refactor(runtime): drop legacy webpack configuration 2024-01-19 18:27:24 +01:00
Cedric van Putten 04733e0a8b chore(runtime): use right preset for *.config.js files (#537) 2024-01-19 18:23:37 +01:00
Cedric van Putten 1bda2e6291 refactor(runtime): replace cloudEnv with EXPO_PUBLIC_SNACK_ENV (#536)
* refactor(runtime): replace `cloudEnv` with `EXPO_PUBLIC_SNACK_ENV`

* chore(runtime): add `.env.example` file

* chore(runtime): fix linting issue
2024-01-19 18:21:25 +01:00
Cedric van Putten e46845a11b feature!: move snack runtime URLs to snack-content and add EAS Update URLs (#527)
* feature(snack-content): add snack runtime url helpers in base library

* chore(snack-sdk): re-export snack runtime url helpers from `snack-content`

* feature(snack-content): add `parseSnackRuntimeUrl` helper

* feature!(snack-sdk): use `createSnackRuntimeUrl` when creating device links

* refactor(runtime): use `parseSnackUrl` instead of own url helpers

* fix(website): pass `testTransports` properly for new and old url formats

* chore: bump package lockfile

* fix(runtime): update `testTransport` tests

* chore(snack-content): resolve linting issue

* refactor(snack-content): unify the `parseEASUpdateSnackRuntimeUrl` if statements
2024-01-11 13:31:04 +01:00
Cedric van Putten e92c8aeee5 refactor(runtime): clean up unused amplitude and analytics code (#492) 2023-10-11 14:57:02 +02:00
Cedric van Putten b69de70236 fix(runtime): bump dependencies to latest and fix patch-package issue 2023-09-19 11:27:32 +02:00
Cedric van Putten 1ee31e6d7b refactor: upgrade eslint to latest versions (#469)
* refactor(snack-content): upgrade to latest eslint

* refactor(snack-proxies): upgrade to latest eslint

* refactor(snack-require-context): upgrade to latest eslint

* refactor(snack-runtime): upgrade to latest eslint

* refactor(snack-sdk): upgrade to latest eslint

* refactor(snack-term): upgrade to latest eslint

* chore: clean up eslint configs

* refactor(runtime): upgrade to latest eslint

* refactor(runtime-shell): upgrade to latest eslint

* refactor(snackager): upgrade to latest eslint

* refactor(snackpub): upgrade to latest eslint

* refactor(website): upgrade to latest eslint

* fix(snack-sdk): use `_` prefix to intentionally mark variables as unused

* fix(snack-sdk): use proper `node-fetch` mock path to resolve test failures

* fix: align `@typescript-eslint/no-unused-vars` with `no-unused-vars` rule
2023-09-18 18:27:10 +02:00
Cedric van Putten 727de83a2f refactor: upgrade to Expo SDK 49 (#463)
* 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`
2023-09-18 10:41:45 +02:00
Cedric van Putten 05aa3e1035 fix: bundle react-native-pager-view inside the runtime to avoid Snackager errors (#462)
* fix: bundle `react-native-pager-view` inside the runtime to avoid Snackager errors

* refactor(runtime-shell): make platform-specific modules more readable
2023-09-13 16:32:08 +02:00
Cedric van Putten ddf0c03922 fix(runtime): use transformer.publicPath with deploy workaround for asset paths on web (#457) 2023-08-25 15:43:42 +02:00
Cedric van Putten 1884dd9130 feature(runtime): vendor Expo Router to enable partial usage (#436)
* fix(runtime): add scheme for `expo-router` internal linking

* chore(runtime): vendor `expo-router` and dependencies

* chore(runtime): vendor `expo-router` within the runtime

* chore(runtime): linting issue

* refactor(require-context): expose `createVirtualModulePath` for the Snack Runtime

* refactor(runtime): replace hardcoded virtual module with `createVirtualModulePath`
2023-06-22 22:45:30 +02:00
Cedric van Putten 723f704c18 refactor(runtime): make web deployment script compatible with Metro (#432)
* 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
2023-06-15 14:48:53 +02:00
Cedric van PuttenandKudo Chien 4ed5adb91c feature: add support for require.context through Snackager and Snack Runtime (#430)
* 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]>
2023-06-08 15:42:40 +02:00
Cedric van Putten 43368119fe refactor: upgrade to expo sdk 48 (#392)
* 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]`
2023-06-08 15:24:21 +02:00
Kudo ChienandCedric van Putten 8c0a6d4e63 [runtime] add snackpub integration (#379)
# 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]>
2023-03-11 23:52:27 +08:00
Cedric van Putten c7775ed21e Upgrade to Expo SDK 47 (#360)
* fix(runtime): drop sdkVersion from app.json

* refactor(runtime): upgrade to Expo SDK 47 beta

* refactor(runtime): update patches to used package versions

* refactor(snack-content): upgrade to Expo SDK 47 beta

* refactor(snack-sdk): upgrade bundled native modules fixture to Expo SDK 47 beta

* test(snack-sdk): update the tests for Expo SDK 47 beta

* docs(snack-sdk): add changelog entries

* refactor(website): upgrade to Expo SDK 47 beta

* fix(runtime): use event subscriptions in app

* fix(runtime: change barcode scanned types to match code

* test(snackager): update to Expo SDK 47 beta

* docs: update changelogs to include pr

* fix(runtime): work around reanimated issue #3437

See: https://github.com/software-mansion/react-native-reanimated/pull/3437
See: https://github.com/expo/expo/pull/19305\#issuecomment-1263114915

* fix(runtime): fix deployment script removing sdkVersion usage

* refactor(runtime): update dependencies for SDK 47 stable

* refactor(snack-sdk): upgrade bundled native modules fixture to Expo SDK 47 stable

* test(snack-sdk): update the tests for Expo SDK 47 stale
2022-11-10 12:57:41 +01:00
Cedric van Putten c04c1ec259 [runtime] Update Expo and React Native to latest (#353) 2022-08-18 18:09:47 +02:00
Cedric van Putten cb96297f0c Enable automatic jsx runtime (#336)
* [website] Add type failure warning and vendored types

* [website] Fix eslint errors

* [snack-babel-standalone] Add automatic jsx runtime babel plugin for React 17+

* [snack-eslint-standalone] Disabled react-jsx-in-scope rule for REact 17+

* [runtime] Enable automatic jsx runtime for React 17+

* [website] Update eslint standalone to support automatic jsx runtime

* [website] Fix react/jsx-runtime types and remove react import from defaults

* [website] Add back import react for SDK <46 support
2022-08-02 12:19:47 +02:00
Cedric van Putten ffa8b4616a Upgrade to Expo SDK 46 stable (#337)
* [runtime] Upgrade to Expo SDK 46 stable

* [snack-content] Upgrade to Expo SDK 46 stable

* [snack-sdk] Upgrade to Expo SDK 46 stable
2022-08-02 12:19:47 +02:00
Cedric van Putten 89a8cfae41 [runtime] Add support for dynamic imports (#333)
* [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
2022-08-02 12:19:47 +02:00
Cedric van Putten 544eb13d76 [runtime] Add Skia support for web (#325)
* [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
2022-08-02 12:19:47 +02:00
Cedric van Putten 92230917c5 Upgrade Snack to Expo SDK 46 beta (#315)
* [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
2022-08-02 12:19:47 +02:00
Cedric van Putten d298f282de [runtime] Upgrade pubnub to drop unimodules (#314) 2022-07-20 12:25:10 +02:00
Cedric van Putten eb307638c1 [runtime] Drop expo-app-loading from dependencies (#313) 2022-07-20 12:16:48 +02:00
Dan Stepanov 72b0944e86 Upgrade Snack to Expo SDK 45 (#290) 2022-05-13 14:20:25 -07:00
Cedric van Putten f751deb2ad [runtime] Replace non-deterministic yarn behavior with two same packages (#273)
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.
2022-04-13 21:23:55 +02:00
Cedric van PuttenandPeter Piekarczyk 6e33e97473 [runtime] Add workaround for Reanimated on SDK 44 (#271)
* 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]>
2022-04-13 20:18:11 +02:00
Dan Stepanov 2f0285aadd Revert "Revert "Upgrade Snack to Expo SDK 44 (#243)" (#256) (#269)
* [runtime] Upgrade project and patches to Expo SDK 44

* [sdk] Upgrade to Expo SDK 44

* [sdk] Add newest and oldest sdk versions for tests

* [sdk] Update fixtures and tests for Expo SDK 44

* [website] Add Expo SDK 44 and set 44 as default

* Update appetize workflow with options

* [snackager] Update Snack SDK and fix tests

* [snackager] Enable bundler tests again

* Add build script for snack-content and snack-sdk

* Update react-native-reanimated

* [sdk] Update node version
2022-04-13 15:41:29 +02:00
Cedric van Putten 0614f5fd5e Refresh the eslint implementation across the repo (#260)
* 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
2022-04-07 08:24:27 -07:00
Cedric van Putten a7adca1dd5 Revert "Upgrade Snack to Expo SDK 44 (#243)" (#256)
* Revert "Upgrade Snack to Expo SDK 44 (#243)"

* chore: neutralize the workflow reverts

* [snack-sdk] Add the sdk version tests back after incorrect conflict resolve

* [snackager] Update snapshot bundle sizes

* [snackager] Disable test with newer flow indexed access types
2022-03-31 16:11:41 +02:00