Skip to content

Commit 3c1f2d1

Browse files
committed
Merge branch 'main' into feat/drizzle
# Conflicts: # pnpm-lock.yaml
2 parents 4eca827 + fc2e340 commit 3c1f2d1

File tree

51 files changed

+7392
-6408
lines changed

Some content is hidden

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

51 files changed

+7392
-6408
lines changed

.changeset/perfect-zebras-marry.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ dist
77
.idea
88
.fleet
99
# Useful if running repository in VSCode dev container
10-
.pnpm-store
10+
.pnpm-store
11+
__screenshots__

demos/django-react-native-todolist/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"dependencies": {
1111
"@azure/core-asynciterator-polyfill": "^1.0.2",
1212
"@expo/vector-icons": "^14.0.0",
13-
"@journeyapps/react-native-quick-sqlite": "^2.0.0",
13+
"@journeyapps/react-native-quick-sqlite": "^2.1.0",
1414
"@powersync/common": "workspace:*",
1515
"@powersync/react": "workspace:*",
1616
"@powersync/react-native": "workspace:*",

demos/react-native-supabase-group-chat/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"dependencies": {
2222
"@azure/core-asynciterator-polyfill": "^1.0.2",
2323
"@faker-js/faker": "8.3.1",
24-
"@journeyapps/react-native-quick-sqlite": "^2.0.0",
24+
"@journeyapps/react-native-quick-sqlite": "^2.1.0",
2525
"@powersync/common": "workspace:*",
2626
"@powersync/react": "workspace:*",
2727
"@powersync/react-native": "workspace:*",

demos/react-native-supabase-todolist/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"dependencies": {
1111
"@azure/core-asynciterator-polyfill": "^1.0.2",
1212
"@expo/vector-icons": "^14.0.3",
13-
"@journeyapps/react-native-quick-sqlite": "^2.0.0",
13+
"@journeyapps/react-native-quick-sqlite": "^2.1.0",
1414
"@powersync/attachments": "workspace:*",
1515
"@powersync/common": "workspace:*",
1616
"@powersync/react": "workspace:*",

demos/react-native-web-supabase-todolist/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"@azure/core-asynciterator-polyfill": "^1.0.2",
1414
"@expo/metro-runtime": "^3.2.1",
1515
"@expo/vector-icons": "^14.0.0",
16-
"@journeyapps/react-native-quick-sqlite": "^2.0.0",
16+
"@journeyapps/react-native-quick-sqlite": "^2.1.0",
1717
"@powersync/attachments": "workspace:*",
1818
"@powersync/common": "workspace:*",
1919
"@powersync/react": "workspace:*",

demos/react-supabase-todolist-optional-sync/src/app/views/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export default function ViewsLayout({ children }: { children: React.ReactNode })
5858
beforeNavigate: async () => {
5959
// If user is logged in, sign out and stay on the current page
6060
if (supabase?.currentSession) {
61-
await supabase?.client.auth.signOut();
61+
await supabase?.logout();
6262
await powerSync.disconnectAndClear();
6363
setSyncEnabled(powerSync.database.name, false);
6464

demos/react-supabase-todolist-optional-sync/src/library/powersync/SupabaseConnector.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ export class SupabaseConnector extends BaseObserver<SupabaseConnectorListener> i
9393
this.updateSession(session);
9494
}
9595

96+
async logout() {
97+
await this.client.auth.signOut();
98+
this.updateSession(null);
99+
}
100+
96101
async fetchCredentials() {
97102
const {
98103
data: { session },

packages/common/CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# @powersync/common
22

3+
## 1.21.0
4+
5+
### Minor Changes
6+
7+
- 7b49661: Updated watch functions to recalculate depedendent tables if schema is updated.
8+
9+
## 1.20.2
10+
11+
### Patch Changes
12+
13+
- 96f1a87: Improved `getCrudBatch` to use a default limit of 100 CRUD entries.
14+
315
## 1.20.1
416

517
### Patch Changes

packages/common/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@powersync/common",
3-
"version": "1.20.1",
3+
"version": "1.21.0",
44
"publishConfig": {
55
"registry": "https://registry.npmjs.org/",
66
"access": "public"

0 commit comments

Comments
 (0)