Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
3f45e44
create scripts for managing demos
LucDeCaf Nov 26, 2025
810d3d8
add demos/**/package.json.bak to gitignore
LucDeCaf Nov 26, 2025
5bc741a
fix spelling
LucDeCaf Nov 26, 2025
f0b5c13
apply scripts to react-supabase-todolist + add tsconfig override
LucDeCaf Nov 26, 2025
b5e39dc
remove references from react-supabase-todolist/tsconfig.json
LucDeCaf Nov 26, 2025
d368c11
run use latest on react supabase todolist
LucDeCaf Nov 26, 2025
18a900f
add script to split references out of tsconfig
LucDeCaf Nov 26, 2025
74dd68b
cleanup
LucDeCaf Nov 26, 2025
95f2bc5
isolate example-node
LucDeCaf Nov 26, 2025
db5f592
add gitignore to example-node
LucDeCaf Nov 26, 2025
c5d22c9
isolate example-vite and example-vite-encryption
LucDeCaf Nov 26, 2025
7f664ee
isolate react-supabase-todolist family of demos
LucDeCaf Nov 26, 2025
8db8d07
gen overrides for react-supabase-todolist demos
LucDeCaf Nov 26, 2025
f0b6324
isolate example-webpack
LucDeCaf Nov 26, 2025
ddbbb94
isolate example-vue
LucDeCaf Nov 26, 2025
45f3b42
update scripts to work better with workspaces
LucDeCaf Nov 28, 2025
84d8c85
update tsconfigs and package.jsons
LucDeCaf Nov 28, 2025
34296fd
fix rn bundling not working properly
LucDeCaf Nov 28, 2025
3fc0d6e
fix react package test
LucDeCaf Nov 28, 2025
cb00fed
actually fix react test
LucDeCaf Nov 28, 2025
c373280
further debugging of this project
LucDeCaf Nov 28, 2025
181ecbb
update lockfiles and demo test script
LucDeCaf Nov 28, 2025
d217a1d
update script with more error logging
LucDeCaf Dec 1, 2025
b2dfc80
update scripts + update django demo + fix tsconfig.workspace.json han…
LucDeCaf Dec 1, 2025
f102635
consolidate tsconfig.workspace.jsons into toplevel tsconfig.demo.json
LucDeCaf Dec 1, 2025
b7ffcea
upgrade packages on demo test
LucDeCaf Dec 1, 2025
a546d55
specify cwd in pnpm upgrade
LucDeCaf Dec 1, 2025
341a5cc
update pnpm workspaces and isolated-demo-test script
LucDeCaf Dec 1, 2025
80d74c3
Update react tests to properly capture some errors
LucDeCaf Dec 1, 2025
3aefd18
update react-native-supabase-group-chat build config to match behavio…
LucDeCaf Dec 2, 2025
1c251e9
convert `demos-use-latest.ts` into `bump-demo-packages.ts`
LucDeCaf Dec 3, 2025
371fe71
Migrate old PowerChat demo to use newer package versions and features
LucDeCaf Dec 3, 2025
c670e18
Fix fonts breaking on android
LucDeCaf Dec 3, 2025
080f9b3
Update lockfile
LucDeCaf Dec 3, 2025
d6c361f
Formatting
LucDeCaf Dec 4, 2025
206833b
Clean up noise
LucDeCaf Dec 4, 2025
6a442a0
Expo doctor
LucDeCaf Dec 4, 2025
cc1757f
Final parity changes
LucDeCaf Dec 4, 2025
2bb871d
Use pnpm v9
LucDeCaf Dec 4, 2025
f2fd930
Final changes
LucDeCaf Dec 8, 2025
f21dacd
Move lib to library, since Prettier was struggling to detect files
LucDeCaf Dec 8, 2025
056cf87
Merge branch 'isolate-demos' into 'chore/migrate-powerchat-demo' and …
LucDeCaf Dec 8, 2025
6def8e6
update lockfile post-merge
LucDeCaf Dec 8, 2025
94fbcbb
add dotenv as dedicated dev dependency and use async iterator polyfill
LucDeCaf Dec 8, 2025
6807713
Merge pull request #789 from powersync-ja/chore/migrate-powerchat-demo
LucDeCaf Dec 8, 2025
dc22c20
Update demo to work in new workspace config
LucDeCaf Dec 8, 2025
13205df
Update demo to work in new workspace config
LucDeCaf Dec 8, 2025
52a83fc
Update opsqlite demo proj to work better w/ monorepos
LucDeCaf Dec 9, 2025
71e5e5c
Merge branch 'isolate-demos' of github.com:powersync-ja/powersync-js …
LucDeCaf Dec 9, 2025
192aea7
Update ios dir to work in new workspace config
LucDeCaf Dec 9, 2025
be20288
Update ios script to install Pods before running
LucDeCaf Dec 9, 2025
4472b0c
Un-update install script, update readme
LucDeCaf Dec 9, 2025
4d0703c
Add angular demo lockfile
LucDeCaf Dec 9, 2025
e350018
Add lockfiles and project configs for electron and capacitor demos
LucDeCaf Dec 9, 2025
18d39a7
Add lockfile + resolve phantom deps
LucDeCaf Dec 9, 2025
19f8b1b
Freeze tanstack db versions due to breaking API changes between minor…
LucDeCaf Dec 10, 2025
53d83c9
Add lockfile
LucDeCaf Dec 10, 2025
9c262f3
Update READMEs to reflect new way of using demos
LucDeCaf Dec 10, 2025
1b0b77c
Update example-electron-node README and pnpm config
LucDeCaf Dec 11, 2025
0267713
Merge branch 'main' into 'isolate-demos'
LucDeCaf Dec 11, 2025
34c2478
Update global lockfile post-merge
LucDeCaf Dec 11, 2025
595f01d
Update tests to install Playwright dependencies
LucDeCaf Dec 11, 2025
e088e7d
Remove demo lockfiles from Git tracking
LucDeCaf Dec 11, 2025
1c13ba3
Fix incorrectly resolved version changes
LucDeCaf Dec 12, 2025
981e150
Remove unneeded metro configs
LucDeCaf Dec 12, 2025
33c2884
Update scripts and use tsc instead of tsx
LucDeCaf Dec 12, 2025
ee6690a
Update demo script documentation and add `pnpm demos:update` script
LucDeCaf Dec 12, 2025
67c6a37
Add timeout to failing test
LucDeCaf Dec 12, 2025
80c3199
Merge branch 'main' into isolate-demos
LucDeCaf Dec 12, 2025
ae64cc8
Fix reverted wa-sqlite versions
LucDeCaf Dec 12, 2025
c52715e
Fix reverted react-native-quick-sqlite versions
LucDeCaf Dec 12, 2025
50d8d99
Update lockfile
LucDeCaf Dec 12, 2025
8815270
Merge branch 'main' into isolate-demos
LucDeCaf Dec 12, 2025
c0f623d
Remove unneeded `pnpm upgrade` call
LucDeCaf Dec 12, 2025
98762d7
Revert accidental package version change
LucDeCaf Dec 12, 2025
b6a7ec9
Update demo packages and update script
LucDeCaf Dec 12, 2025
21fbf58
Final final touches
LucDeCaf Dec 12, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ dist
.DS_STORE
.idea
.fleet

# Useful if running repository in VSCode dev container
.pnpm-store
__screenshots__

# Adds a lot of noise to commits
demos/**/pnpm-lock.yaml
2 changes: 1 addition & 1 deletion demos/angular-supabase-todolist/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@angular/router": "^19.2.4",
"@angular/service-worker": "^19.2.4",
"@journeyapps/wa-sqlite": "^1.4.0",
"@powersync/web": "workspace:*",
"@powersync/web": "^1.29.1",
"@supabase/supabase-js": "^2.44.4",
"rxjs": "~7.8.1",
"tslib": "^2.6.3",
Expand Down
2 changes: 2 additions & 0 deletions demos/angular-supabase-todolist/pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
packages:
- .
3 changes: 2 additions & 1 deletion demos/django-react-native-todolist/.npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
@journeyapps:registry=https://registry.npmjs.org/
@journeyapps:registry=https://registry.npmjs.org/
node-linker=hoisted
472 changes: 236 additions & 236 deletions demos/django-react-native-todolist/ios/Podfile.lock

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -278,25 +278,25 @@
"${PODS_CONFIGURATION_BUILD_DIR}/EXConstants/ExpoConstants_privacy.bundle",
"${PODS_CONFIGURATION_BUILD_DIR}/ExpoFileSystem/ExpoFileSystem_privacy.bundle",
"${PODS_CONFIGURATION_BUILD_DIR}/RCT-Folly/RCT-Folly_privacy.bundle",
"${PODS_ROOT}/../../../../node_modules/react-native-vector-icons/Fonts/AntDesign.ttf",
"${PODS_ROOT}/../../../../node_modules/react-native-vector-icons/Fonts/Entypo.ttf",
"${PODS_ROOT}/../../../../node_modules/react-native-vector-icons/Fonts/EvilIcons.ttf",
"${PODS_ROOT}/../../../../node_modules/react-native-vector-icons/Fonts/Feather.ttf",
"${PODS_ROOT}/../../../../node_modules/react-native-vector-icons/Fonts/FontAwesome.ttf",
"${PODS_ROOT}/../../../../node_modules/react-native-vector-icons/Fonts/FontAwesome5_Brands.ttf",
"${PODS_ROOT}/../../../../node_modules/react-native-vector-icons/Fonts/FontAwesome5_Regular.ttf",
"${PODS_ROOT}/../../../../node_modules/react-native-vector-icons/Fonts/FontAwesome5_Solid.ttf",
"${PODS_ROOT}/../../../../node_modules/react-native-vector-icons/Fonts/FontAwesome6_Brands.ttf",
"${PODS_ROOT}/../../../../node_modules/react-native-vector-icons/Fonts/FontAwesome6_Regular.ttf",
"${PODS_ROOT}/../../../../node_modules/react-native-vector-icons/Fonts/FontAwesome6_Solid.ttf",
"${PODS_ROOT}/../../../../node_modules/react-native-vector-icons/Fonts/Fontisto.ttf",
"${PODS_ROOT}/../../../../node_modules/react-native-vector-icons/Fonts/Foundation.ttf",
"${PODS_ROOT}/../../../../node_modules/react-native-vector-icons/Fonts/Ionicons.ttf",
"${PODS_ROOT}/../../../../node_modules/react-native-vector-icons/Fonts/MaterialCommunityIcons.ttf",
"${PODS_ROOT}/../../../../node_modules/react-native-vector-icons/Fonts/MaterialIcons.ttf",
"${PODS_ROOT}/../../../../node_modules/react-native-vector-icons/Fonts/Octicons.ttf",
"${PODS_ROOT}/../../../../node_modules/react-native-vector-icons/Fonts/SimpleLineIcons.ttf",
"${PODS_ROOT}/../../../../node_modules/react-native-vector-icons/Fonts/Zocial.ttf",
"${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/AntDesign.ttf",
"${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Entypo.ttf",
"${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/EvilIcons.ttf",
"${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Feather.ttf",
"${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/FontAwesome.ttf",
"${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/FontAwesome5_Brands.ttf",
"${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/FontAwesome5_Regular.ttf",
"${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/FontAwesome5_Solid.ttf",
"${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/FontAwesome6_Brands.ttf",
"${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/FontAwesome6_Regular.ttf",
"${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/FontAwesome6_Solid.ttf",
"${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Fontisto.ttf",
"${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Foundation.ttf",
"${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Ionicons.ttf",
"${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/MaterialCommunityIcons.ttf",
"${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/MaterialIcons.ttf",
"${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Octicons.ttf",
"${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/SimpleLineIcons.ttf",
"${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Zocial.ttf",
"${PODS_CONFIGURATION_BUILD_DIR}/React-Core/React-Core_privacy.bundle",
"${PODS_CONFIGURATION_BUILD_DIR}/React-cxxreact/React-cxxreact_privacy.bundle",
"${PODS_CONFIGURATION_BUILD_DIR}/boost/boost_privacy.bundle",
Expand Down Expand Up @@ -487,7 +487,7 @@
"$(inherited)",
" ",
);
REACT_NATIVE_PATH = "${PODS_ROOT}/../../../../node_modules/react-native";
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) DEBUG";
USE_HERMES = true;
Expand Down Expand Up @@ -542,7 +542,7 @@
"$(inherited)",
" ",
);
REACT_NATIVE_PATH = "${PODS_ROOT}/../../../../node_modules/react-native";
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
SDKROOT = iphoneos;
USE_HERMES = true;
VALIDATE_PRODUCT = YES;
Expand Down
22 changes: 0 additions & 22 deletions demos/django-react-native-todolist/metro.config.js

This file was deleted.

6 changes: 3 additions & 3 deletions demos/django-react-native-todolist/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"@expo/metro-runtime": "^4.0.1",
"@expo/vector-icons": "^14.0.0",
"@journeyapps/react-native-quick-sqlite": "^2.5.0",
"@powersync/common": "workspace:*",
"@powersync/react": "workspace:*",
"@powersync/react-native": "workspace:*",
"@powersync/common": "^1.43.1",
"@powersync/react": "^1.8.2",
"@powersync/react-native": "^1.27.1",
"@react-native-community/async-storage": "^1.12.1",
"@react-native-community/masked-view": "^0.1.11",
"@react-navigation/drawer": "^7.1.1",
Expand Down
2 changes: 2 additions & 0 deletions demos/django-react-native-todolist/pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
packages:
- .
2 changes: 1 addition & 1 deletion demos/django-react-native-todolist/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../node_modules/expo/tsconfig.base.json",
"extends": "./node_modules/expo/tsconfig.base.json",
"compilerOptions": {
"strict": true,
"composite": true
Expand Down
7 changes: 0 additions & 7 deletions demos/django-react-native-todolist/tsconfig.test.json

This file was deleted.

4 changes: 2 additions & 2 deletions demos/example-capacitor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ Example demonstrating the use of the [PowerSync SDK for Capacitor](/packages/cap

To see it in action:

1. Make sure to run `pnpm install` and `pnpm build:packages` in the root directory of this repo.
1. `cd` into this directory and run `pnpm install`.
2. Copy `.env.local.template` to `.env.local`, and complete the environment variables. You can generate a [temporary development token](https://docs.powersync.com/usage/installation/authentication-setup/development-tokens), or leave blank to test with local-only data.
3. `cd` into this directory and run `pnpm start`.
3. Run `pnpm start`.
4. Open the localhost URL displayed in the terminal output in your browser.

## iOS
Expand Down
8 changes: 4 additions & 4 deletions demos/example-capacitor/android/capacitor.settings.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// DO NOT EDIT THIS FILE! IT IS GENERATED EACH TIME "capacitor update" IS RUN
include ':capacitor-android'
project(':capacitor-android').projectDir = new File('../../../node_modules/@capacitor/android/capacitor')
project(':capacitor-android').projectDir = new File('../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/android/capacitor')

include ':capacitor-community-sqlite'
project(':capacitor-community-sqlite').projectDir = new File('../../../node_modules/@capacitor-community/sqlite/android')
project(':capacitor-community-sqlite').projectDir = new File('../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor-community/sqlite/android')

include ':capacitor-splash-screen'
project(':capacitor-splash-screen').projectDir = new File('../../../node_modules/@capacitor/splash-screen/android')
project(':capacitor-splash-screen').projectDir = new File('../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/splash-screen/android')

include ':powersync-capacitor'
project(':powersync-capacitor').projectDir = new File('../../../packages/capacitor/android')
project(':powersync-capacitor').projectDir = new File('../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]__@powersyn_smncg5wuctchvueg7u47nvgl4i/node_modules/@powersync/capacitor/android')
12 changes: 6 additions & 6 deletions demos/example-capacitor/ios/App/Podfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require_relative '../../../../node_modules/@capacitor/ios/scripts/pods_helpers'
require_relative '../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/ios/scripts/pods_helpers'

platform :ios, '14.0'
use_frameworks!
Expand All @@ -9,11 +9,11 @@ use_frameworks!
install! 'cocoapods', :disable_input_output_paths => true

def capacitor_pods
pod 'Capacitor', :path => '../../../../node_modules/@capacitor/ios'
pod 'CapacitorCordova', :path => '../../../../node_modules/@capacitor/ios'
pod 'CapacitorCommunitySqlite', :path => '../../../../node_modules/@capacitor-community/sqlite'
pod 'CapacitorSplashScreen', :path => '../../../../node_modules/@capacitor/splash-screen'
pod 'PowersyncCapacitor', :path => '../../../../packages/capacitor'
pod 'Capacitor', :path => '../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/ios'
pod 'CapacitorCordova', :path => '../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/ios'
pod 'CapacitorCommunitySqlite', :path => '../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor-community/sqlite'
pod 'CapacitorSplashScreen', :path => '../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/splash-screen'
pod 'PowersyncCapacitor', :path => '../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]__@powersyn_smncg5wuctchvueg7u47nvgl4i/node_modules/@powersync/capacitor'
end

target 'App' do
Expand Down
32 changes: 16 additions & 16 deletions demos/example-capacitor/ios/App/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ PODS:
- powersync-sqlite-core (0.4.10)
- PowersyncCapacitor (0.1.3):
- Capacitor
- powersync-sqlite-core (~> 0.4.10)
- powersync-sqlite-core (~> 0.4.6)
- SQLCipher (~> 4.0)
- SQLCipher (4.10.0):
- SQLCipher/standard (= 4.10.0)
Expand All @@ -21,11 +21,11 @@ PODS:
- ZIPFoundation (0.9.20)

DEPENDENCIES:
- "Capacitor (from `../../../../node_modules/@capacitor/ios`)"
- "CapacitorCommunitySqlite (from `../../../../node_modules/@capacitor-community/sqlite`)"
- "CapacitorCordova (from `../../../../node_modules/@capacitor/ios`)"
- "CapacitorSplashScreen (from `../../../../node_modules/@capacitor/splash-screen`)"
- PowersyncCapacitor (from `../../../../packages/capacitor`)
- "Capacitor (from `../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/ios`)"
- "CapacitorCommunitySqlite (from `../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor-community/sqlite`)"
- "CapacitorCordova (from `../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/ios`)"
- "CapacitorSplashScreen (from `../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/splash-screen`)"
- "PowersyncCapacitor (from `../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]__@powersyn_smncg5wuctchvueg7u47nvgl4i/node_modules/@powersync/capacitor`)"

SPEC REPOS:
trunk:
Expand All @@ -35,26 +35,26 @@ SPEC REPOS:

EXTERNAL SOURCES:
Capacitor:
:path: "../../../../node_modules/@capacitor/ios"
:path: "../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/ios"
CapacitorCommunitySqlite:
:path: "../../../../node_modules/@capacitor-community/sqlite"
:path: "../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor-community/sqlite"
CapacitorCordova:
:path: "../../../../node_modules/@capacitor/ios"
:path: "../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/ios"
CapacitorSplashScreen:
:path: "../../../../node_modules/@capacitor/splash-screen"
:path: "../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/splash-screen"
PowersyncCapacitor:
:path: "../../../../packages/capacitor"
:path: "../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]__@powersyn_smncg5wuctchvueg7u47nvgl4i/node_modules/@powersync/capacitor"

SPEC CHECKSUMS:
Capacitor: 09d9ff8e9618e8c4b3cab2bbee34a17215dd2fef
CapacitorCommunitySqlite: b8e23cd2fd5bff7da8cb2a3a1cb3a6ffb9714a32
Capacitor: 358dd1c3fdd71d969547b17e159fd8a7736cb45f
CapacitorCommunitySqlite: a57c58e1c37f4bc250ef01e66b0055cb6ddd775e
CapacitorCordova: bf648a636f3c153f652d312ae145fb508b6ffced
CapacitorSplashScreen: d06ae8804808e9f649a08e7bb7f283c77b688084
CapacitorSplashScreen: e388b8e0ed0e982a9d3a40417f478e7a018a8763
powersync-sqlite-core: b30017e077c91915d53faebc5f7245384df78275
PowersyncCapacitor: d5aef68961267967682077ce8be046862b99d004
PowersyncCapacitor: 45baea36962329f34237a1a421391f90c19acdbe
SQLCipher: eb79c64049cb002b4e9fcb30edb7979bf4706dfc
ZIPFoundation: dfd3d681c4053ff7e2f7350bc4e53b5dba3f5351

PODFILE CHECKSUM: 1c728e00549cebade63eaffb81de205fd020c4ea
PODFILE CHECKSUM: 56f567ab082005288c1d603459e2996d6bb9fb45

COCOAPODS: 1.16.2
10 changes: 5 additions & 5 deletions demos/example-capacitor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,20 @@
"@capacitor/core": "latest",
"@capacitor/ios": "^7.4.3",
"@capacitor/splash-screen": "latest",
"@powersync/capacitor": "^0.2.0",
"@journeyapps/wa-sqlite": "^1.4.0",
"@powersync/capacitor": "workspace:*",
"@powersync/react": "workspace:*",
"@powersync/web": "workspace:*",
"@powersync/react": "^1.8.2",
"@powersync/web": "^1.30.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.23.0"
},
"devDependencies": {
"@capacitor/cli": "^7.4.3",
"@swc/core": "~1.6.0",
"@mui/material": "^5.15.12",
"@emotion/react": "11.11.4",
"@emotion/styled": "11.11.5",
"@mui/material": "^5.15.12",
"@swc/core": "~1.6.0",
"@types/node": "^20.12.12",
"@types/react": "^18.3.2",
"@types/react-dom": "^18.3.0",
Expand Down
2 changes: 2 additions & 0 deletions demos/example-capacitor/pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
packages:
- .
1 change: 1 addition & 0 deletions demos/example-electron-node/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node-linker=hoisted
9 changes: 5 additions & 4 deletions demos/example-electron-node/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@ In particular:

To see it in action:

1. Make sure to run `pnpm install` and `pnpm build:packages` in the root directory of this repo.
2. Copy `.env.local.template` to `.env.local`, and complete the environment variables. You can generate a [temporary development token](https://docs.powersync.com/usage/installation/authentication-setup/development-tokens), or leave blank to test with local-only data.
1. `cd` into this directory.
2. Run `pnpm install`.
3. Copy `.env.local.template` to `.env.local`, and complete the environment variables. You can generate a [temporary development token](https://docs.powersync.com/usage/installation/authentication-setup/development-tokens), or leave blank to test with local-only data.
The example works with the schema from the [PowerSync + Supabase tutorial](https://docs.powersync.com/integration-guides/supabase-+-powersync#supabase-powersync).
3. `cd` into this directory. In this mono-repo, you'll have to run `./node_modules/.bin/electron-rebuild` once to make sure `better-sqlite3` was compiled with Electron's toolchain.
4. In this mono-repo, you'll have to run `./node_modules/.bin/electron-rebuild` once to make sure `better-sqlite3` was compiled with Electron's toolchain.
Sometimes that doesn't work, you can also go to `node_modules/better-sqlite3` and manually run `HOME=~/.electron-gyp node-gyp rebuild --target=37.0.0 --arch=arm64 --dist-url=https://electronjs.org/headers` (or `--arch=x64` depending on your machine).
4. Finally, run `pnpm start`.
5. Finally, run `pnpm start`.

Apart from the build setup, this example is purposefully kept simple.
To make sure PowerSync is working, you can run `await powersync.get('SELECT powersync_rs_version()');` in the DevTools
Expand Down
3 changes: 2 additions & 1 deletion demos/example-electron-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"@electron-forge/maker-deb": "^7.7.0",
"@electron-forge/maker-squirrel": "^7.7.0",
"@electron-forge/maker-zip": "^7.7.0",
"@electron-forge/maker-rpm": "^7.7.0",
"@electron-forge/plugin-auto-unpack-natives": "^7.7.0",
"@electron-forge/plugin-webpack": "^7.7.0",
"@types/better-sqlite3": "^7.6.13",
Expand All @@ -40,7 +41,7 @@
"webpack": "^5.90.1"
},
"dependencies": {
"@powersync/node": "workspace:*",
"@powersync/node": "^0.15.0",
"better-sqlite3": "^12.2.0",
"electron-squirrel-startup": "^1.0.1"
}
Expand Down
5 changes: 5 additions & 0 deletions demos/example-electron-node/pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
packages:
- .
onlyBuiltDependencies:
- better-sqlite3
- electron
1 change: 1 addition & 0 deletions demos/example-electron-node/src/types.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
declare module 'better-sqlite3';
42 changes: 20 additions & 22 deletions demos/example-electron-node/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
{
"compilerOptions": {
"target": "ES6",
"allowJs": true,
"module": "ESNext",
"skipLibCheck": true,
"noImplicitAny": true,
"sourceMap": true,
"baseUrl": ".",
"outDir": "dist",
"moduleResolution": "bundler",
"paths": {
"*": ["node_modules/*"]
}
},
"include": ["src/**/*"],
"references": [
{
"path": "../../packages/node"
}
]
}

"compilerOptions": {
"target": "ES6",
"allowJs": true,
"module": "ESNext",
"skipLibCheck": true,
"noImplicitAny": true,
"sourceMap": true,
"baseUrl": ".",
"outDir": "dist",
"moduleResolution": "bundler",
"paths": {
"*": [
"node_modules/*"
]
}
},
"include": [
"src/**/*"
]
}
1 change: 1 addition & 0 deletions demos/example-electron/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node-linker=hoisted
6 changes: 3 additions & 3 deletions demos/example-electron/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ Example demonstrating the use of the [PowerSync SDK for Web](/packages/web/READM

To see it in action:

1. Make sure to run `pnpm install` and `pnpm build:packages` in the root directory of this repo.
1. `cd` into this directory and run `pnpm install`.
2. Copy `.env.local.template` to `.env.local`, and complete the environment variables. You can generate a [temporary development token](https://docs.powersync.com/usage/installation/authentication-setup/development-tokens), or leave blank to test with local-only data.
3. `cd` into this directory and run `pnpm start`.
3. Run `pnpm start`.

The Electron app should open automatically.
The Electron app should open automatically.
Loading
Loading