Skip to content

Commit 04ca36d

Browse files
committed
Merge branch 'main' into feat/bucket-priorities
2 parents 5ca329c + 4f3df42 commit 04ca36d

File tree

8 files changed

+496
-358
lines changed

8 files changed

+496
-358
lines changed

.changeset/mighty-spies-fail.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@powersync/op-sqlite': patch
3+
'@powersync/react-native': patch
4+
'@powersync/web': patch
5+
---
6+
7+
Update core PowerSync SQLite extensions to 0.3.11

demos/react-native-supabase-group-chat/src/app/(app)/(chats)/g/create.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ export default function CreateGroup() {
2626

2727
await powerSync.writeTransaction(async (tx) => {
2828
try {
29-
await tx.executeAsync('INSERT INTO groups (id, owner_id, name, created_at) VALUES (?, ?, ?, datetime())', [
29+
await tx.execute('INSERT INTO groups (id, owner_id, name, created_at) VALUES (?, ?, ?, datetime())', [
3030
groupId,
3131
user?.id,
3232
name
3333
]);
3434
for (const profileId of selectedContacts) {
3535
const membershipId = uuid();
36-
await tx.executeAsync(
36+
await tx.execute(
3737
'INSERT INTO memberships (id, group_id, profile_id, created_at) VALUES (?, ?, ?, datetime())',
3838
[membershipId, groupId, profileId]
3939
);

demos/react-native-supabase-group-chat/src/app/(app)/contacts/index.tsx

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -41,21 +41,6 @@ export default function ContactsIndex() {
4141
ownerId,
4242
profileId
4343
]);
44-
45-
/* await powerSync.writeTransaction(async (tx) => {
46-
try {
47-
tx.executeAsync(
48-
"INSERT INTO profiles (id, name, handle, demo) VALUES (?, ?, ?, ?)",
49-
[profileId, name, handle, true],
50-
);
51-
tx.executeAsync(
52-
"INSERT INTO contacts (id, owner_id, profile_id) VALUES (?, ?, ?)",
53-
[contactId, ownerId, profileId],
54-
);
55-
} catch (error) {
56-
console.error("Error", error);
57-
}
58-
}); */
5944
}
6045

6146
async function handleAddContact(profileId: string, name: string, handle: string) {

packages/powersync-op-sqlite/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ repositories {
107107
def kotlin_version = getExtOrDefault("kotlinVersion")
108108

109109
dependencies {
110-
implementation 'co.powersync:powersync-sqlite-core:0.3.8'
110+
implementation 'co.powersync:powersync-sqlite-core:0.3.11'
111111
// For < 0.71, this will be from the local maven repo
112112
// For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin
113113
//noinspection GradleDynamicVersion

packages/powersync-op-sqlite/powersync-op-sqlite.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Pod::Spec.new do |s|
1717

1818
s.dependency "React-callinvoker"
1919
s.dependency "React"
20-
s.dependency "powersync-sqlite-core", "~> 0.3.8"
20+
s.dependency "powersync-sqlite-core", "~> 0.3.11"
2121
if defined?(install_modules_dependencies())
2222
install_modules_dependencies(s)
2323
else

packages/react-native/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
},
3131
"homepage": "https://docs.powersync.com/",
3232
"peerDependencies": {
33-
"@journeyapps/react-native-quick-sqlite": "^2.3.0",
33+
"@journeyapps/react-native-quick-sqlite": "^2.4.1",
3434
"@powersync/common": "workspace:^1.24.0",
3535
"react": "*",
3636
"react-native": "*"
@@ -46,7 +46,7 @@
4646
},
4747
"devDependencies": {
4848
"@craftzdog/react-native-buffer": "^6.0.5",
49-
"@journeyapps/react-native-quick-sqlite": "^2.3.0",
49+
"@journeyapps/react-native-quick-sqlite": "^2.4.1",
5050
"@rollup/plugin-alias": "^5.1.0",
5151
"@rollup/plugin-commonjs": "^25.0.7",
5252
"@rollup/plugin-inject": "^5.0.5",

packages/web/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"author": "JOURNEYAPPS",
6161
"license": "Apache-2.0",
6262
"peerDependencies": {
63-
"@journeyapps/wa-sqlite": "^1.2.0",
63+
"@journeyapps/wa-sqlite": "^1.2.1",
6464
"@powersync/common": "workspace:^1.24.0"
6565
},
6666
"dependencies": {
@@ -72,7 +72,7 @@
7272
"js-logger": "^1.6.1"
7373
},
7474
"devDependencies": {
75-
"@journeyapps/wa-sqlite": "^1.2.0",
75+
"@journeyapps/wa-sqlite": "^1.2.1",
7676
"@types/uuid": "^9.0.6",
7777
"crypto-browserify": "^3.12.0",
7878
"p-defer": "^4.0.1",

pnpm-lock.yaml

Lines changed: 481 additions & 335 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)