Skip to content

Commit ef00d55

Browse files
authored
Merge branch 'main' into diagnostics-empty-buckets
2 parents b3fa653 + af6d809 commit ef00d55

File tree

309 files changed

+29004
-27266
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

309 files changed

+29004
-27266
lines changed

.changeset/config.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,9 @@
77
"access": "restricted",
88
"baseBranch": "main",
99
"updateInternalDependencies": "patch",
10-
"ignore": []
10+
"ignore": [],
11+
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
12+
"onlyUpdatePeerDependentsWhenOutOfRange": true,
13+
"updateInternalDependents": "out-of-range"
14+
}
1115
}

.github/workflows/build-packages.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- uses: pnpm/action-setup@v2
2222
name: Install pnpm
2323
with:
24-
version: 8
24+
version: 9
2525
run_install: false
2626

2727
- name: Get pnpm store directory

.github/workflows/deploy-docs.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- uses: pnpm/action-setup@v2
3636
name: Install pnpm
3737
with:
38-
version: 8
38+
version: 9
3939
run_install: false
4040
- name: Get pnpm store directory
4141
shell: bash

.github/workflows/dev-packages.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- uses: pnpm/action-setup@v2
2020
name: Install pnpm
2121
with:
22-
version: 8
22+
version: 9
2323
run_install: false
2424
- name: Add NPM auth
2525
run: echo "//registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}" >> ~/.npmrc
@@ -37,7 +37,7 @@ jobs:
3737
- name: Install dependencies
3838
run: pnpm install
3939
- name: Build
40-
run: pnpm build:packages
40+
run: pnpm build:packages:prod
4141
- name: Publish
4242
run: |
4343
pnpm changeset version --no-git-tag --snapshot dev

.github/workflows/release.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- uses: pnpm/action-setup@v2
2222
name: Install pnpm
2323
with:
24-
version: 8
24+
version: 9
2525
run_install: false
2626
- name: Get pnpm store directory
2727
shell: bash
@@ -40,6 +40,8 @@ jobs:
4040
id: changesets
4141
uses: changesets/action@v1
4242
with:
43+
# Update the monorepo lockfile after versioning
44+
version: pnpm changeset:version
4345
# This expects you to have a script called release which does a build for your packages and calls changeset publish
4446
publish: pnpm release
4547
env:

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- uses: pnpm/action-setup@v2
2222
name: Install pnpm
2323
with:
24-
version: 8
24+
version: 9
2525
run_install: false
2626

2727
- name: Get pnpm store directory

README.md

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
<p align="center">
2-
<a href="https://www.powersync.com" target="_blank"><img src="https://github.com/powersync-ja/.github/assets/19345049/602bafa0-41ce-4cee-a432-56848c278722"/></a>
2+
<a href="https://www.powersync.com" target="_blank"><img src="https://github.com/powersync-ja/.github/assets/7372448/d2538c43-c1a0-4c47-9a76-41462dba484f"/></a>
33
</p>
44

5-
_Bad connectivity is everywhere, and we're tired of it. PowerSync is on a mission to help developers write offline-first real-time reactive apps._
6-
7-
[PowerSync](https://powersync.com) is a service and set of SDKs that keeps Postgres databases in sync with on-device SQLite databases.
5+
*[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.*
86

97
# PowerSync JavaScript SDKs
108

@@ -19,11 +17,15 @@ _Bad connectivity is everywhere, and we're tired of it. PowerSync is on a missio
1917
- [packages/web](./packages/web/README.md)
2018

2119
- JS Web SDK implementation (extension of `packages/common`)
22-
20+
2321
- [packages/react](./packages/react/README.md)
2422

2523
- React integration for PowerSync.
2624

25+
- [packages/vue](./packages/vue/README.md)
26+
27+
- Vue composables for PowerSync.
28+
2729
- [packages/attachments](./packages/attachments/README.md)
2830

2931
- Attachments helper package for React Native and JavaScript/TypeScript projects.
@@ -59,6 +61,10 @@ Demo applications are located in the [`demos/`](./demos/) directory. Also see ou
5961

6062
- [demos/example-electron](./demos/example-electron/README.md) An Electron example web rendered app using the PowerSync Web SDK.
6163

64+
### Capacitor
65+
66+
- [demos/example-capacitor](./demos/example-capacitor/README.md) A Capacitor example app using the PowerSync Web SDK.
67+
6268
## Tools
6369

6470
- [tools/diagnostics-app](./tools/diagnostics-app): A standalone web app that presents stats about a user's local database (incl. tables and sync buckets).

demos/angular-supabase-todolist/CHANGELOG.md

+50
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,55 @@
11
# PowerSync Angular Demo
22

3+
## 0.0.19
4+
5+
### Patch Changes
6+
7+
- @powersync/web@1.0.2
8+
9+
## 0.0.18
10+
11+
### Patch Changes
12+
13+
- @powersync/web@1.0.1
14+
15+
## 0.0.17
16+
17+
### Patch Changes
18+
19+
- Updated dependencies [32dc7e3]
20+
- Updated dependencies [e86e61d]
21+
- @powersync/web@1.0.0
22+
23+
## 0.0.16
24+
25+
### Patch Changes
26+
27+
- Updated dependencies [c3f29a1]
28+
- @powersync/web@0.8.1
29+
30+
## 0.0.15
31+
32+
### Patch Changes
33+
34+
- Updated dependencies [7943626]
35+
- Updated dependencies [48cc01c]
36+
- @powersync/web@0.8.0
37+
38+
## 0.0.14
39+
40+
### Patch Changes
41+
42+
- Updated dependencies [62e43aa]
43+
- Updated dependencies [6b01811]
44+
- @powersync/web@0.7.0
45+
46+
## 0.0.13
47+
48+
### Patch Changes
49+
50+
- Updated dependencies [f5e42af]
51+
- @powersync/web@0.6.1
52+
353
## 0.0.12
454

555
### Patch Changes

demos/angular-supabase-todolist/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-supabase-todolist",
3-
"version": "0.0.12",
3+
"version": "0.0.19",
44
"scripts": {
55
"ng": "ng",
66
"serve": "ng serve",

demos/django-react-native-todolist/CHANGELOG.md

+53
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,58 @@
11
# django-react-native-todolist
22

3+
## 1.1.8
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [1b66145]
8+
- @powersync/common@1.11.1
9+
- @powersync/react-native@1.7.1
10+
11+
## 1.1.7
12+
13+
### Patch Changes
14+
15+
- Updated dependencies [820a81d]
16+
- Updated dependencies [820a81d]
17+
- @powersync/react-native@1.7.0
18+
- @powersync/common@1.11.0
19+
20+
## 1.1.6
21+
22+
### Patch Changes
23+
24+
- Updated dependencies [e86e61d]
25+
- Updated dependencies [32dc7e3]
26+
- @powersync/react-native@1.6.2
27+
- @powersync/common@1.10.0
28+
29+
## 1.1.5
30+
31+
### Patch Changes
32+
33+
- Updated dependencies [48cc01c]
34+
- @powersync/react-native@1.6.1
35+
- @powersync/react@1.3.5
36+
37+
## 1.1.4
38+
39+
### Patch Changes
40+
41+
- Updated dependencies [62e43aa]
42+
- Updated dependencies [6b01811]
43+
- @powersync/react-native@1.6.0
44+
- @powersync/common@1.9.0
45+
- @powersync/react@1.3.4
46+
47+
## 1.1.3
48+
49+
### Patch Changes
50+
51+
- Updated dependencies [f5e42af]
52+
- @powersync/react-native@1.5.1
53+
- @powersync/common@1.8.1
54+
- @powersync/react@1.3.3
55+
356
## 1.1.2
457

558
### Patch Changes

demos/django-react-native-todolist/android/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ build/
1010
local.properties
1111
*.iml
1212
*.hprof
13+
.cxx/
1314

1415
# Bundle artifacts
1516
*.jsbundle

demos/django-react-native-todolist/android/app/build.gradle

-4
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,6 @@ android {
9090
targetSdkVersion rootProject.ext.targetSdkVersion
9191
versionCode 1
9292
versionName "1.0.0"
93-
94-
buildConfigField("boolean", "REACT_NATIVE_UNSTABLE_USE_RUNTIME_SCHEDULER_ALWAYS", (findProperty("reactNative.unstable_useRuntimeSchedulerAlways") ?: true).toString())
9593
}
9694
signingConfigs {
9795
debug {
@@ -163,8 +161,6 @@ dependencies {
163161
}
164162
}
165163

166-
implementation("com.facebook.react:flipper-integration")
167-
168164
if (hermesEnabled.toBoolean()) {
169165
implementation("com.facebook.react:hermes-android")
170166
} else {

demos/django-react-native-todolist/android/app/src/main/AndroidManifest.xml

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
</queries>
1414
<application android:name=".MainApplication" android:label="@string/app_name" android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round" android:allowBackup="true" android:theme="@style/AppTheme">
1515
<meta-data android:name="expo.modules.updates.ENABLED" android:value="false"/>
16-
<meta-data android:name="expo.modules.updates.EXPO_SDK_VERSION" android:value="50.0.0"/>
1716
<meta-data android:name="expo.modules.updates.EXPO_UPDATES_CHECK_ON_LAUNCH" android:value="ALWAYS"/>
1817
<meta-data android:name="expo.modules.updates.EXPO_UPDATES_LAUNCH_WAIT_MS" android:value="0"/>
1918
<activity android:name=".MainActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenSize|screenLayout|uiMode" android:launchMode="singleTask" android:windowSoftInputMode="adjustResize" android:theme="@style/Theme.App.SplashScreen" android:exported="true" android:screenOrientation="portrait">

demos/django-react-native-todolist/android/app/src/main/java/com/anonymous/powersyncexample/MainApplication.kt

+1-11
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,14 @@ package com.anonymous.powersyncexample
22

33
import android.app.Application
44
import android.content.res.Configuration
5-
import androidx.annotation.NonNull
65

76
import com.facebook.react.PackageList
87
import com.facebook.react.ReactApplication
98
import com.facebook.react.ReactNativeHost
109
import com.facebook.react.ReactPackage
1110
import com.facebook.react.ReactHost
12-
import com.facebook.react.config.ReactFeatureFlags
1311
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load
14-
import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
1512
import com.facebook.react.defaults.DefaultReactNativeHost
16-
import com.facebook.react.flipper.ReactNativeFlipper
1713
import com.facebook.soloader.SoLoader
1814

1915
import expo.modules.ApplicationLifecycleDispatcher
@@ -40,21 +36,15 @@ class MainApplication : Application(), ReactApplication {
4036
)
4137

4238
override val reactHost: ReactHost
43-
get() = getDefaultReactHost(this.applicationContext, reactNativeHost)
39+
get() = ReactNativeHostWrapper.createReactHost(applicationContext, reactNativeHost)
4440

4541
override fun onCreate() {
4642
super.onCreate()
4743
SoLoader.init(this, false)
48-
if (!BuildConfig.REACT_NATIVE_UNSTABLE_USE_RUNTIME_SCHEDULER_ALWAYS) {
49-
ReactFeatureFlags.unstable_useRuntimeSchedulerAlways = false
50-
}
5144
if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
5245
// If you opted-in for the New Architecture, we load the native entry point for this app.
5346
load()
5447
}
55-
if (BuildConfig.DEBUG) {
56-
ReactNativeFlipper.initializeFlipper(this, reactNativeHost.reactInstanceManager)
57-
}
5848
ApplicationLifecycleDispatcher.onApplicationCreate(this)
5949
}
6050

demos/django-react-native-todolist/android/app/src/main/res/drawable/rn_edit_text_material.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
android:insetLeft="@dimen/abc_edit_text_inset_horizontal_material"
1818
android:insetRight="@dimen/abc_edit_text_inset_horizontal_material"
1919
android:insetTop="@dimen/abc_edit_text_inset_top_material"
20-
android:insetBottom="@dimen/abc_edit_text_inset_bottom_material">
20+
android:insetBottom="@dimen/abc_edit_text_inset_bottom_material"
21+
>
2122

2223
<selector>
2324
<!--

demos/django-react-native-todolist/android/build.gradle

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ buildscript {
66
minSdkVersion = Integer.parseInt(findProperty('android.minSdkVersion') ?: '23')
77
compileSdkVersion = Integer.parseInt(findProperty('android.compileSdkVersion') ?: '34')
88
targetSdkVersion = Integer.parseInt(findProperty('android.targetSdkVersion') ?: '34')
9-
kotlinVersion = findProperty('android.kotlinVersion') ?: '1.8.10'
9+
kotlinVersion = findProperty('android.kotlinVersion') ?: '1.9.23'
1010

11-
ndkVersion = "25.1.8937393"
11+
ndkVersion = "26.1.10909125"
1212
}
1313
repositories {
1414
google()
@@ -17,6 +17,7 @@ buildscript {
1717
dependencies {
1818
classpath('com.android.tools.build:gradle')
1919
classpath('com.facebook.react:react-native-gradle-plugin')
20+
classpath('org.jetbrains.kotlin:kotlin-gradle-plugin')
2021
}
2122
}
2223

demos/django-react-native-todolist/android/gradle.properties

+6
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,9 @@ EX_DEV_CLIENT_NETWORK_INSPECTOR=true
5454

5555
# Use legacy packaging to compress native libraries in the resulting APK.
5656
expo.useLegacyPackaging=false
57+
58+
android.minSdkVersion=23
59+
android.compileSdkVersion=34
60+
android.targetSdkVersion=34
61+
android.buildToolsVersion=34.0.0
62+
android.extraMavenRepos=[]
Binary file not shown.

demos/django-react-native-todolist/android/gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-all.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

0 commit comments

Comments
 (0)