Skip to content

Commit 76dfb06

Browse files
authored
Updated demo's RNQS version and changed SyncStatus.ts to not depend on toSorted. (#519)
1 parent 197a37a commit 76dfb06

File tree

7 files changed

+100
-101
lines changed

7 files changed

+100
-101
lines changed

.changeset/fluffy-rockets-breathe.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@powersync/common': patch
3+
---
4+
5+
Changed priorityStatusEntries() to no longer depend on toSorted(), which isn't natively available in React-Native.

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.3.0",
13+
"@journeyapps/react-native-quick-sqlite": "^2.4.1",
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.3.0",
24+
"@journeyapps/react-native-quick-sqlite": "^2.4.1",
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.3.0",
13+
"@journeyapps/react-native-quick-sqlite": "^2.4.1",
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.3.0",
16+
"@journeyapps/react-native-quick-sqlite": "^2.4.1",
1717
"@powersync/attachments": "workspace:*",
1818
"@powersync/common": "workspace:*",
1919
"@powersync/react": "workspace:*",

packages/common/src/db/crud/SyncStatus.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class SyncStatus {
7171
* Partial sync status for involved bucket priorities.
7272
*/
7373
get priorityStatusEntries() {
74-
return (this.options.priorityStatusEntries ?? []).toSorted(SyncStatus.comparePriorities);
74+
return (this.options.priorityStatusEntries ?? []).slice().sort(SyncStatus.comparePriorities);
7575
}
7676

7777
/**

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)