From d9ccb77fef82ff7e2cf16eb19902e729759d14c2 Mon Sep 17 00:00:00 2001 From: Christiaan Landman Date: Wed, 17 Jul 2024 17:51:24 +0200 Subject: [PATCH] Started updating dependencies and polyfills. --- .../library/stores/system.ts | 10 --- .../django-react-native-todolist/package.json | 1 - demos/example-capacitor/vite.config.ts | 9 +-- .../example-electron/vite.renderer.config.ts | 12 +--- demos/example-nextjs/package.json | 1 - .../components/providers/SystemProvider.tsx | 7 -- demos/example-vite/vite.config.ts | 12 +--- demos/react-multi-client/vite.config.mts | 12 +--- .../ios/Podfile.lock | 20 +++--- .../package.json | 1 - demos/react-supabase-todolist/package.json | 1 - demos/react-supabase-todolist/vite.config.mts | 12 +--- demos/vue-supabase-todolist/vite.config.ts | 12 +--- .../vite.config.mts | 12 +--- packages/react-native/README.md | 40 ++--------- packages/web/README.md | 26 +------ packages/web/package.json | 2 - packages/web/vite.config.mts | 28 -------- pnpm-lock.yaml | 72 +------------------ tools/diagnostics-app/vite.config.mts | 12 +--- 20 files changed, 26 insertions(+), 276 deletions(-) delete mode 100644 packages/web/vite.config.mts diff --git a/demos/django-react-native-todolist/library/stores/system.ts b/demos/django-react-native-todolist/library/stores/system.ts index 5e00329b..e1519c8a 100644 --- a/demos/django-react-native-todolist/library/stores/system.ts +++ b/demos/django-react-native-todolist/library/stores/system.ts @@ -2,19 +2,9 @@ import '@azure/core-asynciterator-polyfill'; import 'react-native-polyfill-globals/auto'; import React from 'react'; import { AbstractPowerSyncDatabase, PowerSyncDatabase, SyncStreamConnectionMethod } from '@powersync/react-native'; -import { Buffer } from '@craftzdog/react-native-buffer'; import { AppSchema } from '../powersync/AppSchema'; import { DjangoConnector } from '../django/DjangoConnector'; -if (typeof process.nextTick == 'undefined') { - process.nextTick = setImmediate; -} - -if (typeof global.Buffer == 'undefined') { - // @ts-ignore - global.Buffer = Buffer; -} - export class System { djangoConnector: DjangoConnector; powersync: AbstractPowerSyncDatabase; diff --git a/demos/django-react-native-todolist/package.json b/demos/django-react-native-todolist/package.json index 6c85357e..bcabb7d9 100644 --- a/demos/django-react-native-todolist/package.json +++ b/demos/django-react-native-todolist/package.json @@ -9,7 +9,6 @@ }, "dependencies": { "@azure/core-asynciterator-polyfill": "^1.0.2", - "@craftzdog/react-native-buffer": "^6.0.5", "@expo/vector-icons": "^14.0.0", "@journeyapps/react-native-quick-sqlite": "^1.1.7", "@powersync/common": "workspace:*", diff --git a/demos/example-capacitor/vite.config.ts b/demos/example-capacitor/vite.config.ts index 93e2a82f..7bfecd6b 100644 --- a/demos/example-capacitor/vite.config.ts +++ b/demos/example-capacitor/vite.config.ts @@ -17,14 +17,7 @@ export default defineConfig({ optimizeDeps: { // Don't optimize these packages as they contain web workers and WASM files. // https://github.com/vitejs/vite/issues/11672#issuecomment-1415820673 - exclude: ['@journeyapps/wa-sqlite', '@powersync/web'], - include: [ - '@powersync/web > uuid', - '@powersync/web > event-iterator', - '@powersync/web > js-logger', - '@powersync/web > lodash/throttle', - '@powersync/web > can-ndjson-stream' - ] + exclude: ['@journeyapps/wa-sqlite', '@powersync/web'] }, plugins: [wasm(), topLevelAwait()], worker: { diff --git a/demos/example-electron/vite.renderer.config.ts b/demos/example-electron/vite.renderer.config.ts index 7ea35e2b..d7839d6e 100644 --- a/demos/example-electron/vite.renderer.config.ts +++ b/demos/example-electron/vite.renderer.config.ts @@ -24,17 +24,7 @@ export default defineConfig((env) => { optimizeDeps: { // Don't optimize these packages as they contain web workers and WASM files. // https://github.com/vitejs/vite/issues/11672#issuecomment-1415820673 - exclude: ['@journeyapps/wa-sqlite', '@powersync/web'], - include: [ - '@powersync/web > event-iterator', - '@powersync/web > js-logger', - '@powersync/web > lodash/throttle', - '@powersync/web > can-ndjson-stream', - '@powersync/web > buffer', - '@powersync/web > rsocket-core', - '@powersync/web > rsocket-websocket-client', - '@powersync/web > cross-fetch' - ] + exclude: ['@journeyapps/wa-sqlite', '@powersync/web'] }, plugins: [ // @ts-expect-error there is TS issue that doesn't actually affect the runtime diff --git a/demos/example-nextjs/package.json b/demos/example-nextjs/package.json index 388f3488..7df14e82 100644 --- a/demos/example-nextjs/package.json +++ b/demos/example-nextjs/package.json @@ -19,7 +19,6 @@ "@mui/material": "^5.15.18", "@powersync/react": "workspace:*", "@powersync/web": "workspace:*", - "buffer": "^6.0.3", "js-logger": "^1.6.1", "lato-font": "^3.0.0", "lexical": "^0.15.0", diff --git a/demos/example-nextjs/src/components/providers/SystemProvider.tsx b/demos/example-nextjs/src/components/providers/SystemProvider.tsx index 69f4c7bc..21ed328e 100644 --- a/demos/example-nextjs/src/components/providers/SystemProvider.tsx +++ b/demos/example-nextjs/src/components/providers/SystemProvider.tsx @@ -8,13 +8,6 @@ import { CircularProgress } from '@mui/material'; import Logger from 'js-logger'; import React, { Suspense } from 'react'; -import { Buffer } from 'buffer'; - -// Polyfill for WebSockets -if (typeof self.Buffer == 'undefined') { - self.Buffer = Buffer; -} - // eslint-disable-next-line react-hooks/rules-of-hooks Logger.useDefaults(); Logger.setLevel(Logger.DEBUG); diff --git a/demos/example-vite/vite.config.ts b/demos/example-vite/vite.config.ts index 974c8f27..35cbc75f 100644 --- a/demos/example-vite/vite.config.ts +++ b/demos/example-vite/vite.config.ts @@ -16,17 +16,7 @@ export default defineConfig({ optimizeDeps: { // Don't optimize these packages as they contain web workers and WASM files. // https://github.com/vitejs/vite/issues/11672#issuecomment-1415820673 - exclude: ['@journeyapps/wa-sqlite', '@powersync/web'], - include: [ - '@powersync/web > event-iterator', - '@powersync/web > js-logger', - '@powersync/web > lodash/throttle', - '@powersync/web > can-ndjson-stream', - '@powersync/web > buffer', - '@powersync/web > rsocket-core', - '@powersync/web > rsocket-websocket-client', - '@powersync/web > cross-fetch' - ] + exclude: ['@journeyapps/wa-sqlite', '@powersync/web'] }, plugins: [wasm(), topLevelAwait()], worker: { diff --git a/demos/react-multi-client/vite.config.mts b/demos/react-multi-client/vite.config.mts index 26a42a3c..980e9d4f 100644 --- a/demos/react-multi-client/vite.config.mts +++ b/demos/react-multi-client/vite.config.mts @@ -24,17 +24,7 @@ export default defineConfig({ optimizeDeps: { // Don't optimize these packages as they contain web workers and WASM files. // https://github.com/vitejs/vite/issues/11672#issuecomment-1415820673 - exclude: ['@journeyapps/wa-sqlite', '@powersync/web'], - include: [ - '@powersync/web > event-iterator', - '@powersync/web > js-logger', - '@powersync/web > lodash/throttle', - '@powersync/web > can-ndjson-stream', - '@powersync/web > buffer', - '@powersync/web > rsocket-core', - '@powersync/web > rsocket-websocket-client', - '@powersync/web > cross-fetch' - ] + exclude: ['@journeyapps/wa-sqlite', '@powersync/web'] }, plugins: [ wasm(), diff --git a/demos/react-native-supabase-todolist/ios/Podfile.lock b/demos/react-native-supabase-todolist/ios/Podfile.lock index ace74177..3c3959db 100644 --- a/demos/react-native-supabase-todolist/ios/Podfile.lock +++ b/demos/react-native-supabase-todolist/ios/Podfile.lock @@ -7,7 +7,7 @@ PODS: - ExpoModulesCore - ExpoAsset (10.0.10): - ExpoModulesCore - - ExpoCamera (15.0.12): + - ExpoCamera (15.0.14): - ExpoModulesCore - ZXingObjC/OneD - ZXingObjC/PDF417 @@ -15,7 +15,7 @@ PODS: - ExpoModulesCore - ExpoFileSystem (17.0.1): - ExpoModulesCore - - ExpoFont (12.0.7): + - ExpoFont (12.0.9): - ExpoModulesCore - ExpoHead (3.5.15): - ExpoModulesCore @@ -1005,7 +1005,7 @@ PODS: - React-debug - react-native-encrypted-storage (4.0.3): - React-Core - - react-native-quick-sqlite (1.1.7): + - react-native-quick-sqlite (1.1.8): - powersync-sqlite-core (~> 0.1.6) - React - React-callinvoker @@ -1340,7 +1340,7 @@ DEPENDENCIES: - boost (from `../../../node_modules/react-native/third-party-podspecs/boost.podspec`) - DoubleConversion (from `../../../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`) - EXConstants (from `../../../node_modules/expo-constants/ios`) - - Expo (from `../../../node_modules/expo`) + - Expo (from `../node_modules/expo`) - ExpoAsset (from `../../../node_modules/expo-asset/ios`) - ExpoCamera (from `../../../node_modules/expo-camera/ios`) - ExpoCrypto (from `../../../node_modules/expo-crypto/ios`) @@ -1348,7 +1348,7 @@ DEPENDENCIES: - ExpoFont (from `../../../node_modules/expo-font/ios`) - ExpoHead (from `../../../node_modules/expo-router/ios`) - ExpoKeepAwake (from `../../../node_modules/expo-keep-awake/ios`) - - ExpoModulesCore (from `../../../node_modules/expo-modules-core`) + - ExpoModulesCore (from `../node_modules/expo-modules-core`) - ExpoSecureStore (from `../../../node_modules/expo-secure-store/ios`) - EXSplashScreen (from `../../../node_modules/expo-splash-screen/ios`) - FBLazyVector (from `../../../node_modules/react-native/Libraries/FBLazyVector`) @@ -1428,7 +1428,7 @@ EXTERNAL SOURCES: EXConstants: :path: "../../../node_modules/expo-constants/ios" Expo: - :path: "../../../node_modules/expo" + :path: "../node_modules/expo" ExpoAsset: :path: "../../../node_modules/expo-asset/ios" ExpoCamera: @@ -1444,7 +1444,7 @@ EXTERNAL SOURCES: ExpoKeepAwake: :path: "../../../node_modules/expo-keep-awake/ios" ExpoModulesCore: - :path: "../../../node_modules/expo-modules-core" + :path: "../node_modules/expo-modules-core" ExpoSecureStore: :path: "../../../node_modules/expo-secure-store/ios" EXSplashScreen: @@ -1577,10 +1577,10 @@ SPEC CHECKSUMS: EXConstants: 409690fbfd5afea964e5e9d6c4eb2c2b59222c59 Expo: 3bc69739da02780763c1fd66dde56f84fc46d0d8 ExpoAsset: 323700f291684f110fb55f0d4022a3362ea9f875 - ExpoCamera: 7ab9e10ffef972d5bdb0f1a815ba19f86a6284ed + ExpoCamera: a5d000b22cd7dfd2c5904ed960e549de42c96da0 ExpoCrypto: 156078f266bf28f80ecf5e2a9c3a0d6ffce07a1c ExpoFileSystem: 80bfe850b1f9922c16905822ecbf97acd711dc51 - ExpoFont: 43b69559cef3d773db57c7ae7edd3cb0aa0dc610 + ExpoFont: e7f2275c10ca8573c991e007329ad6bf98086485 ExpoHead: 8eb4deb289c2fdd8bb624f996cd31414cd07f38a ExpoKeepAwake: 3b8815d9dd1d419ee474df004021c69fdd316d08 ExpoModulesCore: a4b45b5f081f5fe9b8e87667906d180cd52f32d7 @@ -1616,7 +1616,7 @@ SPEC CHECKSUMS: React-logger: 7e7403a2b14c97f847d90763af76b84b152b6fce React-Mapbuffer: 11029dcd47c5c9e057a4092ab9c2a8d10a496a33 react-native-encrypted-storage: db300a3f2f0aba1e818417c1c0a6be549038deb7 - react-native-quick-sqlite: e563f1ed38b4064be3cb61366bf1c7560f9581dc + react-native-quick-sqlite: 7ad498d81c8506803da2e1c2b64c8cb7758e04cb react-native-safe-area-context: dcab599c527c2d7de2d76507a523d20a0b83823d React-nativeconfig: b0073a590774e8b35192fead188a36d1dca23dec React-NativeModulesApple: df46ff3e3de5b842b30b4ca8a6caae6d7c8ab09f diff --git a/demos/react-native-supabase-todolist/package.json b/demos/react-native-supabase-todolist/package.json index 489bf187..760ab44e 100644 --- a/demos/react-native-supabase-todolist/package.json +++ b/demos/react-native-supabase-todolist/package.json @@ -9,7 +9,6 @@ }, "dependencies": { "@azure/core-asynciterator-polyfill": "^1.0.2", - "@craftzdog/react-native-buffer": "^6.0.5", "@expo/vector-icons": "^14.0.0", "@journeyapps/react-native-quick-sqlite": "^1.1.7", "@powersync/attachments": "workspace:*", diff --git a/demos/react-supabase-todolist/package.json b/demos/react-supabase-todolist/package.json index 3f7ffebe..4a66bccd 100644 --- a/demos/react-supabase-todolist/package.json +++ b/demos/react-supabase-todolist/package.json @@ -18,7 +18,6 @@ "@mui/material": "^5.15.12", "@mui/x-data-grid": "^6.19.6", "@supabase/supabase-js": "^2.39.7", - "buffer": "^6.0.3", "formik": "^2.4.6", "js-logger": "^1.6.1", "lodash": "^4.17.21", diff --git a/demos/react-supabase-todolist/vite.config.mts b/demos/react-supabase-todolist/vite.config.mts index a994afaf..1fee0eac 100644 --- a/demos/react-supabase-todolist/vite.config.mts +++ b/demos/react-supabase-todolist/vite.config.mts @@ -24,17 +24,7 @@ export default defineConfig({ optimizeDeps: { // Don't optimize these packages as they contain web workers and WASM files. // https://github.com/vitejs/vite/issues/11672#issuecomment-1415820673 - exclude: ['@journeyapps/wa-sqlite'] - // include: [ - // '@powersync/web > event-iterator', - // '@powersync/web > js-logger', - // '@powersync/web > lodash/throttle', - // '@powersync/web > can-ndjson-stream', - // '@powersync/web > buffer', - // '@powersync/web > rsocket-core', - // '@powersync/web > rsocket-websocket-client', - // '@powersync/web > cross-fetch' - // ] + exclude: ['@journeyapps/wa-sqlite', '@powersync/web'] }, plugins: [ wasm(), diff --git a/demos/vue-supabase-todolist/vite.config.ts b/demos/vue-supabase-todolist/vite.config.ts index 0a10592e..fa242f6b 100644 --- a/demos/vue-supabase-todolist/vite.config.ts +++ b/demos/vue-supabase-todolist/vite.config.ts @@ -76,17 +76,7 @@ export default defineConfig({ optimizeDeps: { // Don't optimize these packages as they contain web workers and WASM files. // https://github.com/vitejs/vite/issues/11672#issuecomment-1415820673 - exclude: ['@journeyapps/wa-sqlite', '@powersync/web'], - include: [ - '@powersync/web > event-iterator', - '@powersync/web > js-logger', - '@powersync/web > lodash/throttle', - '@powersync/web > can-ndjson-stream', - '@powersync/web > buffer', - '@powersync/web > rsocket-core', - '@powersync/web > rsocket-websocket-client', - '@powersync/web > cross-fetch' - ] + exclude: ['@journeyapps/wa-sqlite', '@powersync/web'] }, worker: { format: 'es', diff --git a/demos/yjs-react-supabase-text-collab/vite.config.mts b/demos/yjs-react-supabase-text-collab/vite.config.mts index d7267217..3e140731 100644 --- a/demos/yjs-react-supabase-text-collab/vite.config.mts +++ b/demos/yjs-react-supabase-text-collab/vite.config.mts @@ -32,17 +32,7 @@ export default defineConfig({ optimizeDeps: { // Don't optimize these packages as they contain web workers and WASM files. // https://github.com/vitejs/vite/issues/11672#issuecomment-1415820673 - exclude: ['@journeyapps/wa-sqlite', '@powersync/web'], - include: [ - '@powersync/web > event-iterator', - '@powersync/web > js-logger', - '@powersync/web > lodash/throttle', - '@powersync/web > can-ndjson-stream', - '@powersync/web > buffer', - '@powersync/web > rsocket-core', - '@powersync/web > rsocket-websocket-client', - '@powersync/web > cross-fetch' - ] + exclude: ['@journeyapps/wa-sqlite', '@powersync/web'] }, plugins: [ wasm(), diff --git a/packages/react-native/README.md b/packages/react-native/README.md index c0802391..7eca4d98 100644 --- a/packages/react-native/README.md +++ b/packages/react-native/README.md @@ -4,7 +4,7 @@ # PowerSync SDK for React Native -*[PowerSync](https://www.powersync.com) is a Postgres-SQLite sync layer, which helps developers to create local-first real-time reactive apps that work seamlessly both online and offline.* +_[PowerSync](https://www.powersync.com) is a Postgres-SQLite sync layer, which helps developers to create local-first real-time reactive apps that work seamlessly both online and offline._ This package (`packages/react-native`) is the PowerSync SDK for React Native clients. It is an extension of `packages/common`. @@ -30,10 +30,11 @@ npx expo install @journeyapps/react-native-quick-sqlite ## Install Polyfills -This package connects to a PowerSync instance via HTTP streams (enabled by default) or WebSockets. -* Both connection methods require the [React Native Common Polyfills](#react-native-common-polyfills), as detailed below. -* The WebSocket method requires an [additional polyfill](#web-sockets-buffer) for the `Buffer` interface. -* Other polyfills are required for [watched queries](#babel-plugins-watched-queries) using the Async Iterator response format. +This package connects to a PowerSync instance via HTTP streams (enabled by default) or WebSockets. + +- Both connection methods require the [React Native Common Polyfills](#react-native-common-polyfills), as detailed below. +- The WebSocket method requires an [additional polyfill](#web-sockets-buffer) for the `Buffer` interface. +- Other polyfills are required for [watched queries](#babel-plugins-watched-queries) using the Async Iterator response format. ### React Native Common Polyfills @@ -62,37 +63,8 @@ import 'react-native-polyfill-globals/auto'; HTTP connections require the HTTP streaming polyfills included in the [common section](#react-native-common-polyfills). See additional [setup](https://docs.powersync.com/client-sdk-references/react-native-and-expo#android-flipper-network-plugin) required for Android. -### WebSocket Connections: Buffer - -Note: Beta Release - WebSockets are currently in a beta release. It should be safe to use in production if sufficient testing is done on the client side. - -Our WebSocket implementation supports binary payloads which are encoded as BSON documents. - -This requires support for the `Buffer` interface. - -Apply the `Buffer` polyfill - -```bash -npx expo install @craftzdog/react-native-buffer -``` - -```javascript -import { Buffer } from '@craftzdog/react-native-buffer'; - -if (typeof global.Buffer == 'undefined') { - // @ts-ignore If using TypeScript - global.Buffer = Buffer; -} -``` - This library uses `RSocket` for reactive WebSocket streams which requires `process.nextTick` to be available. Apply a polyfill if not available. -```javascript -if (typeof process.nextTick == 'undefined') { - process.nextTick = setImmediate; -} -``` - ### Babel Plugins: Watched Queries Watched queries can be used with either a callback response or Async Iterator response. diff --git a/packages/web/README.md b/packages/web/README.md index cc921199..8743b13d 100644 --- a/packages/web/README.md +++ b/packages/web/README.md @@ -4,7 +4,7 @@ # PowerSync SDK for Web -*[PowerSync](https://www.powersync.com) is a Postgres-SQLite sync layer, which helps developers to create local-first real-time reactive apps that work seamlessly both online and offline.* +_[PowerSync](https://www.powersync.com) is a Postgres-SQLite sync layer, which helps developers to create local-first real-time reactive apps that work seamlessly both online and offline._ This package (`packages/web`) is the PowerSync SDK for JavaScript Web clients. It is an extension of `packages/common`. @@ -28,30 +28,6 @@ Install it in your app with: npm install @journeyapps/wa-sqlite ``` -## Polyfills - -### WebSocket Connections: Buffer - -Note: Beta Release - WebSockets are currently in a beta release. It should be safe to use in production if sufficient testing is done on the client side. - -This SDK connects to a PowerSync instance via HTTP streams (enabled by default) or WebSockets. The WebSocket connection method requires `Buffer` to be available in the global scope. When multiple tabs are used the shared web worker will apply a polyfill in its own scope, but the `Buffer` class should be polyfills in the application for cases where multiple tabs are not supported. - -Install a suitable Buffer implementation - -```bash -npm install buffer -``` - -Apply it in your application if not yet provided - -```Javascript -import { Buffer } from 'buffer'; - -if (typeof self.Buffer == 'undefined') { - self.Buffer = Buffer; -} -``` - ## Webpack See the [example Webpack config](https://github.com/powersync-ja/powersync-js/blob/main/demos/example-webpack/webpack.config.js) for details on polyfills and requirements. diff --git a/packages/web/package.json b/packages/web/package.json index 1473addd..e94cc7b1 100644 --- a/packages/web/package.json +++ b/packages/web/package.json @@ -55,8 +55,6 @@ "@types/uuid": "^9.0.6", "@vitest/browser": "^1.3.1", "rollup": "4.14.3", - "rollup-plugin-web-worker-loader": "^1.6.1", - "rollup-plugin-workers": "^2.1.1", "typescript": "^5.2.2", "uuid": "^9.0.1", "vite": "^5.1.1", diff --git a/packages/web/vite.config.mts b/packages/web/vite.config.mts deleted file mode 100644 index 4cc6e6f3..00000000 --- a/packages/web/vite.config.mts +++ /dev/null @@ -1,28 +0,0 @@ -import { defineConfig } from 'vite'; -import wasm from 'vite-plugin-wasm'; -import topLevelAwait from 'vite-plugin-top-level-await'; - -export default defineConfig({ - // optimizeDeps: { - // exclude: ['shared-DB-worker'] - // }, - - build: { - target: 'es2020', - lib: { - entry: 'lib/src/index.js', // The entry point for your library - fileName: (_format) => `index.js`, // Output file naming convention - formats: ['es'] - }, - rollupOptions: { - // Ensure to externalize dependencies that shouldn't be bundled into your library - external: [], - output: {} - } - }, - plugins: [], - worker: { - format: 'es', - plugins: () => [wasm(), topLevelAwait()] - } -}); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 496a595d..9537fdff 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -96,9 +96,6 @@ importers: '@azure/core-asynciterator-polyfill': specifier: ^1.0.2 version: 1.0.2 - '@craftzdog/react-native-buffer': - specifier: ^6.0.5 - version: 6.0.5(react-native@0.74.1)(react@18.2.0) '@expo/vector-icons': specifier: ^14.0.0 version: 14.0.2 @@ -438,9 +435,6 @@ importers: '@powersync/web': specifier: workspace:* version: link:../../packages/web - buffer: - specifier: ^6.0.3 - version: 6.0.3 js-logger: specifier: ^1.6.1 version: 1.6.1 @@ -776,9 +770,6 @@ importers: '@azure/core-asynciterator-polyfill': specifier: ^1.0.2 version: 1.0.2 - '@craftzdog/react-native-buffer': - specifier: ^6.0.5 - version: 6.0.5(react-native@0.74.1)(react@18.2.0) '@expo/vector-icons': specifier: ^14.0.0 version: 14.0.2 @@ -948,9 +939,6 @@ importers: '@supabase/supabase-js': specifier: ^2.39.7 version: 2.44.4 - buffer: - specifier: ^6.0.3 - version: 6.0.3 formik: specifier: ^2.4.6 version: 2.4.6(react@18.2.0) @@ -1567,12 +1555,6 @@ importers: rollup: specifier: 4.14.3 version: 4.14.3 - rollup-plugin-web-worker-loader: - specifier: ^1.6.1 - version: 1.6.1(rollup@4.14.3) - rollup-plugin-workers: - specifier: ^2.1.1 - version: 2.1.1 typescript: specifier: ^5.2.2 version: 5.4.5 @@ -5149,16 +5131,6 @@ packages: - react-native dev: true - /@craftzdog/react-native-buffer@6.0.5(react-native@0.74.1)(react@18.2.0): - resolution: {integrity: sha512-Av+YqfwA9e7jhgI9GFE/gTpwl/H+dRRLmZyJPOpKTy107j9Oj7oXlm3/YiMNz+C/CEGqcKAOqnXDLs4OL6AAFw==} - dependencies: - ieee754: 1.2.1 - react-native-quick-base64: 2.1.2(react-native@0.74.1)(react@18.2.0) - transitivePeerDependencies: - - react - - react-native - dev: false - /@cspotcode/source-map-support@0.8.1: resolution: {integrity: sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==} engines: {node: '>=12'} @@ -15391,6 +15363,7 @@ packages: dependencies: base64-js: 1.5.1 ieee754: 1.2.1 + dev: true /builtin-modules@3.3.0: resolution: {integrity: sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==} @@ -18718,10 +18691,6 @@ packages: '@types/estree-jsx': 1.0.5 '@types/unist': 3.0.2 - /estree-walker@0.6.1: - resolution: {integrity: sha512-SqmZANLWS0mnatqbSfRP5g8OXZC12Fgg1IwNtLsyHDzJizORW4khDfjPqJZsemPWBB2uqykUah5YpQ6epsqC/w==} - dev: true - /estree-walker@1.0.1: resolution: {integrity: sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg==} dev: true @@ -26857,17 +26826,6 @@ packages: react-native: 0.72.4(@babel/core@7.24.5)(@babel/preset-env@7.24.8)(react@18.2.0) dev: true - /react-native-quick-base64@2.1.2(react-native@0.74.1)(react@18.2.0): - resolution: {integrity: sha512-xghaXpWdB0ji8OwYyo0fWezRroNxiNFCNFpGUIyE7+qc4gA/IGWnysIG5L0MbdoORv8FkTKUvfd6yCUN5R2VFA==} - peerDependencies: - react: '*' - react-native: '*' - dependencies: - base64-js: 1.5.1 - react: 18.2.0 - react-native: 0.74.1(@babel/core@7.24.5)(@babel/preset-env@7.24.8)(@types/react@18.2.79)(react@18.2.0) - dev: false - /react-native-ratings@8.0.4(react-native@0.74.1)(react@18.2.0): resolution: {integrity: sha512-Xczu5lskIIRD6BEdz9A0jDRpEck/SFxRqiglkXi0u67yAtI1/pcJC76P4MukCbT8K4BPVl+42w83YqXBoBRl7A==} peerDependencies: @@ -28059,28 +28017,6 @@ packages: resolution: {integrity: sha512-IXgzBWvWQwE6PrDI05OvmXUIruQTcoMDzRsOd5CDvHCVLcLHMTSYvOK5Cm46kWqlV3yAbuSpBZdJ5oP5OUoStg==} dev: false - /rollup-plugin-web-worker-loader@1.6.1(rollup@4.14.3): - resolution: {integrity: sha512-4QywQSz1NXFHKdyiou16mH3ijpcfLtLGOrAqvAqu1Gx+P8+zj+3gwC2BSL/VW1d+LW4nIHC8F7d7OXhs9UdR2A==} - peerDependencies: - rollup: ^1.9.2 || ^2.0.0 - dependencies: - rollup: 4.14.3 - dev: true - - /rollup-plugin-workers@2.1.1: - resolution: {integrity: sha512-Wfg7JCtmlM2RLrhXlE9/cMU4gfOIV8M4VqoH+Z0AritiBIgfg9lghnQeNuPP8vFOZ8IMIPzI0IUdiqbY1GyaPQ==} - dependencies: - magic-string: 0.25.9 - rollup-pluginutils: 2.8.2 - traveler: github.com/tsbehlman/traveler/f94765d0e8d2c540dfbeee04be8be9c516b6a881 - dev: true - - /rollup-pluginutils@2.8.2: - resolution: {integrity: sha512-EEp9NhnUkwY8aif6bxgovPHMoMoNr2FulJziTndpt5H9RdwC47GSGuII9XxpSdzVGM0GWrNPHV6ie1LTNJPaLQ==} - dependencies: - estree-walker: 0.6.1 - dev: true - /rollup@2.79.1: resolution: {integrity: sha512-uKxbd0IhMZOhjAiD5oAFp7BqvkA4Dv47qpOCtaNvng4HBwdbWtdOh8f5nZNuk2rp51PMGk3bzfWu5oayNEuYnw==} engines: {node: '>=10.0.0'} @@ -32643,9 +32579,3 @@ packages: /zwitch@2.0.4: resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==} - - github.com/tsbehlman/traveler/f94765d0e8d2c540dfbeee04be8be9c516b6a881: - resolution: {tarball: https://codeload.github.com/tsbehlman/traveler/tar.gz/f94765d0e8d2c540dfbeee04be8be9c516b6a881} - name: traveler - version: 1.0.0 - dev: true diff --git a/tools/diagnostics-app/vite.config.mts b/tools/diagnostics-app/vite.config.mts index 26a42a3c..980e9d4f 100644 --- a/tools/diagnostics-app/vite.config.mts +++ b/tools/diagnostics-app/vite.config.mts @@ -24,17 +24,7 @@ export default defineConfig({ optimizeDeps: { // Don't optimize these packages as they contain web workers and WASM files. // https://github.com/vitejs/vite/issues/11672#issuecomment-1415820673 - exclude: ['@journeyapps/wa-sqlite', '@powersync/web'], - include: [ - '@powersync/web > event-iterator', - '@powersync/web > js-logger', - '@powersync/web > lodash/throttle', - '@powersync/web > can-ndjson-stream', - '@powersync/web > buffer', - '@powersync/web > rsocket-core', - '@powersync/web > rsocket-websocket-client', - '@powersync/web > cross-fetch' - ] + exclude: ['@journeyapps/wa-sqlite', '@powersync/web'] }, plugins: [ wasm(),