Skip to content

Commit 4a6fe88

Browse files
mugikhancahofmeyrrkistnerkobiebothastevensJourney
authored
Merge master into alpha release (#122)
* Readme update: Messaging/description of powersync * remove duplicate word * Load and use PowerSync rust extension (#92) * Initial extension testing. * Replace schema logic with rust extension. * Use extension for saving operations. * Auto tx_id. * Use sync_local op. * Validate checksums using extension. * clear_remove_ops * delete_pending_buckets * delete_bucket * Fix deadlock on closing of connection. * WIP. * Update/fix tests. * Add view name override. * Retry opening database if locked. * Fix lint issues. * Use higher-level `updateSchema` in tests; test viewName alias. * Load extension for android and iOS * Load extension for iOS, MacOS and Android * Include powersync_flutter_libs * Rename android package * Update windows and linux extension scripts * Download binary in cmake * Fix arch in cmake * Fix binary download * Load extension on windows * Clean up readme and changelog * Remove test code * Update Abi check for current platform * Clean up unused files * Update path dependencies * Test downloading powersync binary for tests * Fix download for linux binary * Add binary download for demos workflow * Download latest binaries * Bump version of powersync * Bump minor version --------- Co-authored-by: Ralf Kistner <ralf@journeyapps.com> * Upgrade powersync-sqlite-core to version 0.1.7 for Android (#95) * Upgrade sqlite-core to version 0.1.7 for Android Upgrade powersync flutter libs to version 0.1.0 * Update demos versions * Bump powersync version (#96) * Update existing changelog message for powersync (#97) * Override default macOS SQLite for tests (#99) * Override default macOS sqlite db for tests * Update to use flutter test rather than dart test * Added documentation * Check if abort future is completed before completing it (#100) * Check if abort future is completed before completing it * Bump powersync version * Upgrade sqlite_async (#105) * Use updated sqlite_async package * Update to CommonDatabase for sqlite_async * Update open DB to be synchronous * Upgrade sqlite_async. Update changelog and bump versions * Fix linting errors * boilerplate * the app :) * more boilerplate * fix deps and rename app name * bump to latest sqlite_async * chore: fix pana score checks (#110) * snake_case apiclient * fix `dart analyze` output * `dart format` * Add hasSynced and waitForFirstSync (#112) * Add hasSynced and waitForFirstSync * Export sqlite3_common * Add example code for hasSynced Bump version * Close http connections immediately on disconnect. * Fix some errors when closing client while connecting. * Remove retry delay when aborting. * More accurate connection counts. * Fix Future already completed when calling waitForFirstSync (#117) * Ensure future is not completed * Bump version * Add changelog entry for issue 114. * Iterate through stream instead of listening to it * Fix changelog message --------- Co-authored-by: Ralf Kistner <ralf@journeyapps.com> * [Feature] Added user parameters support when connecting (#98) * Added support for user parameters on connection * Added changelog notes and updated demos. * Updated .connect() signature to match powersync-js. * [Chore] Update Django Demo Readme (#120) * update Django readme * remove unneeded override (#121) * Remove unusued imports * Update sqlite3 wasm Script to download core for testing * Add updateHasSynced to db_mixin Pr feedback and cleanup * Fix hasSynced status * Make client params public * Abort sync on aborted disconnect * fix bug in setStatus * Fix native powersync_flutter_libs dependency * Add powersync_init on database init * Update js dependency * Update supabase_flutter * Download core binary with dart script instead of github action * Fix watch query table names (#123) * Fix watch query table names * Add to changelog * Fix check for null or empty triggerOnTables * Upgrade sqlite_async version for attachments helper * [Fix] Offline has synced (#124) * fix offline has synced * Add watch query table names fix * Add chrome test * Remove internalTrackedWrite for web database * Increase 'Multiple calls to disconnect' test timeout * Remove timeout and separate flutter and dart tests * Complete abort on disconnect --------- Co-authored-by: Conrad Hofmeyr <cahofmeyr@gmail.com> Co-authored-by: Ralf Kistner <ralf@journeyapps.com> Co-authored-by: Kobie Botha <kobie@journeyapps.com> Co-authored-by: stevensJourney <51082125+stevensJourney@users.noreply.github.com> Co-authored-by: Christiaan Landman <chriz.ek@gmail.com> Co-authored-by: Dieter Plaetinck <dieter@plaetinck.be> Co-authored-by: Steven Ontong <steven@journeyapps.com>
1 parent ecc9c22 commit 4a6fe88

File tree

251 files changed

+8960
-1417
lines changed

Some content is hidden

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

251 files changed

+8960
-1417
lines changed

.github/workflows/demos.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ concurrency:
77
on:
88
push:
99
branches:
10-
- '**'
10+
- "**"
1111

1212
jobs:
1313
build:
@@ -17,8 +17,8 @@ jobs:
1717
- name: Install Flutter
1818
uses: subosito/flutter-action@v2
1919
with:
20-
flutter-version: '3.x'
21-
channel: 'stable'
20+
flutter-version: "3.x"
21+
channel: "stable"
2222

2323
- name: Install Melos
2424
run: flutter pub global activate melos
@@ -38,11 +38,13 @@ jobs:
3838
- name: Install Flutter
3939
uses: subosito/flutter-action@v2
4040
with:
41-
flutter-version: '3.x'
42-
channel: 'stable'
41+
flutter-version: "3.x"
42+
channel: "stable"
4343
- name: Install melos
4444
run: flutter pub global activate melos
4545
- name: Install dependencies
4646
run: melos prepare
47-
- name: Run tests
47+
- name: Run flutter tests
4848
run: melos test
49+
- name: Run dart tests
50+
run: melos test:web

.github/workflows/packages.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ concurrency:
77
on:
88
push:
99
branches:
10-
- '**'
10+
- "**"
1111

1212
jobs:
1313
build:
@@ -17,8 +17,8 @@ jobs:
1717
- name: Install Flutter
1818
uses: subosito/flutter-action@v2
1919
with:
20-
flutter-version: '3.x'
21-
channel: 'stable'
20+
flutter-version: "3.x"
21+
channel: "stable"
2222

2323
- name: Install Melos
2424
run: flutter pub global activate melos
@@ -42,12 +42,13 @@ jobs:
4242
- name: Install Flutter
4343
uses: subosito/flutter-action@v2
4444
with:
45-
flutter-version: '3.x'
46-
channel: 'stable'
45+
flutter-version: "3.x"
46+
channel: "stable"
4747
- name: Install melos
4848
run: flutter pub global activate melos
4949
- name: Install dependencies and prepare project
5050
run: melos prepare
51-
52-
- name: Run tests
51+
- name: Run flutter tests
5352
run: melos test
53+
- name: Run dart tests
54+
run: melos test:web

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,8 @@ assets
1616
# Web assets
1717
powersync_db.worker.js
1818
sqlite3.wasm
19+
20+
#Core binaries
21+
*.dylib
22+
*.dll
23+
*.so

CHANGELOG.md

Lines changed: 46 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,19 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## 2024-07-16
7+
8+
### Changes
9+
10+
---
11+
12+
- [`powersync` - `v1.5.5`](#powersync---v155)
13+
- [`powersync_attachments_helper` - `v0.5.1+1`](#powersync_attachments_helper---v0511)
14+
15+
#### `powersync` - `v1.5.5`
16+
17+
- Fix issue where `hasSynced` is cleared when offline.
18+
619
## 2024-07-10
720

821
### Changes
@@ -11,25 +24,24 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
1124

1225
Packages with breaking changes:
1326

14-
- There are no breaking changes in this release.
27+
- There are no breaking changes in this release.
1528

1629
Packages with other changes:
1730

18-
- [`powersync` - `v1.3.0-alpha.9`](#powersync---v130-alpha9)
19-
- [`powersync_attachments_helper` - `v0.3.0-alpha.4`](#powersync_attachments_helper---v030-alpha4)
31+
- [`powersync` - `v1.3.0-alpha.9`](#powersync---v130-alpha9)
32+
- [`powersync_attachments_helper` - `v0.3.0-alpha.4`](#powersync_attachments_helper---v030-alpha4)
2033

2134
Packages with dependency updates only:
2235

2336
> Packages listed below depend on other packages in this workspace that have had changes. Their versions have been incremented to bump the minimum dependency versions of the packages they depend upon in this project.
2437
25-
- `powersync_attachments_helper` - `v0.3.0-alpha.4`
38+
- `powersync_attachments_helper` - `v0.3.0-alpha.4`
2639

2740
---
2841

2942
#### `powersync` - `v1.3.0-alpha.9`
3043

31-
- Updated sqlite_async to use Navigator locks for limiting sync stream implementions in multiple tabs
32-
44+
- Updated sqlite_async to use Navigator locks for limiting sync stream implementions in multiple tabs
3345

3446
## 2024-07-04
3547

@@ -39,26 +51,25 @@ Packages with dependency updates only:
3951

4052
Packages with breaking changes:
4153

42-
- There are no breaking changes in this release.
54+
- There are no breaking changes in this release.
4355

4456
Packages with other changes:
4557

46-
- [`powersync` - `v1.3.0-alpha.8`](#powersync---v130-alpha8)
47-
- [`powersync_attachments_helper` - `v0.3.0-alpha.3`](#powersync_attachments_helper---v030-alpha3)
58+
- [`powersync` - `v1.3.0-alpha.8`](#powersync---v130-alpha8)
59+
- [`powersync_attachments_helper` - `v0.3.0-alpha.3`](#powersync_attachments_helper---v030-alpha3)
4860

4961
Packages with dependency updates only:
5062

5163
> Packages listed below depend on other packages in this workspace that have had changes. Their versions have been incremented to bump the minimum dependency versions of the packages they depend upon in this project.
5264
53-
- `powersync_attachments_helper` - `v0.3.0-alpha.3`
65+
- `powersync_attachments_helper` - `v0.3.0-alpha.3`
5466

5567
---
5668

5769
#### `powersync` - `v1.3.0-alpha.8`
5870

59-
- **FIX**(powersync-attachements-helper): pubspec file (#29).
60-
- **DOCS**: update readme and getting started (#51).
61-
71+
- **FIX**(powersync-attachements-helper): pubspec file (#29).
72+
- **DOCS**: update readme and getting started (#51).
6273

6374
## 2024-05-30
6475

@@ -68,28 +79,27 @@ Packages with dependency updates only:
6879

6980
Packages with breaking changes:
7081

71-
- [`powersync_attachments_helper` - `v0.3.0-alpha.2`](#powersync_attachments_helper---v030-alpha2)
82+
- [`powersync_attachments_helper` - `v0.3.0-alpha.2`](#powersync_attachments_helper---v030-alpha2)
7283

7384
Packages with other changes:
7485

75-
- [`powersync` - `v1.3.0-alpha.5`](#powersync---v130-alpha5)
86+
- [`powersync` - `v1.3.0-alpha.5`](#powersync---v130-alpha5)
7687

7788
---
7889

7990
#### `powersync_attachments_helper` - `v0.3.0-alpha.2`
8091

81-
- **FIX**: reset isProcessing when exception is thrown during sync process. (#81).
82-
- **FIX**: attachment queue duplicating requests (#68).
83-
- **FIX**(powersync-attachements-helper): pubspec file (#29).
84-
- **FEAT**(attachments): add error handlers (#65).
85-
- **DOCS**: update readmes (#38).
86-
- **BREAKING** **FEAT**(attachments): cater for subdirectories in storage (#78).
92+
- **FIX**: reset isProcessing when exception is thrown during sync process. (#81).
93+
- **FIX**: attachment queue duplicating requests (#68).
94+
- **FIX**(powersync-attachements-helper): pubspec file (#29).
95+
- **FEAT**(attachments): add error handlers (#65).
96+
- **DOCS**: update readmes (#38).
97+
- **BREAKING** **FEAT**(attachments): cater for subdirectories in storage (#78).
8798

8899
#### `powersync` - `v1.3.0-alpha.5`
89100

90-
- **FIX**(powersync-attachements-helper): pubspec file (#29).
91-
- **DOCS**: update readme and getting started (#51).
92-
101+
- **FIX**(powersync-attachements-helper): pubspec file (#29).
102+
- **DOCS**: update readme and getting started (#51).
93103

94104
## 2024-03-05
95105

@@ -99,25 +109,24 @@ Packages with other changes:
99109

100110
Packages with breaking changes:
101111

102-
- There are no breaking changes in this release.
112+
- There are no breaking changes in this release.
103113

104114
Packages with other changes:
105115

106-
- [`powersync` - `v1.3.0-alpha.3`](#powersync---v130-alpha3)
107-
- [`powersync_attachments_helper` - `v0.3.0-alpha.2`](#powersync_attachments_helper---v030-alpha2)
116+
- [`powersync` - `v1.3.0-alpha.3`](#powersync---v130-alpha3)
117+
- [`powersync_attachments_helper` - `v0.3.0-alpha.2`](#powersync_attachments_helper---v030-alpha2)
108118

109119
Packages with dependency updates only:
110120

111121
> Packages listed below depend on other packages in this workspace that have had changes. Their versions have been incremented to bump the minimum dependency versions of the packages they depend upon in this project.
112122
113-
- `powersync_attachments_helper` - `v0.3.0-alpha.2`
123+
- `powersync_attachments_helper` - `v0.3.0-alpha.2`
114124

115125
---
116126

117127
#### `powersync` - `v1.3.0-alpha.3`
118128

119-
- Fixed issue where disconnectAndClear would prevent subsequent sync connection on native platforms and would fail to clear the database on web.
120-
129+
- Fixed issue where disconnectAndClear would prevent subsequent sync connection on native platforms and would fail to clear the database on web.
121130

122131
## 2024-02-15
123132

@@ -127,23 +136,23 @@ Packages with dependency updates only:
127136

128137
Packages with breaking changes:
129138

130-
- There are no breaking changes in this release.
139+
- There are no breaking changes in this release.
131140

132141
Packages with other changes:
133142

134-
- [`powersync` - `v1.3.0-alpha.2`](#powersync---v130-alpha2)
135-
- [`powersync_attachments_helper` - `v0.3.0-alpha.2`](#powersync_attachments_helper---v030-alpha2)
143+
- [`powersync` - `v1.3.0-alpha.2`](#powersync---v130-alpha2)
144+
- [`powersync_attachments_helper` - `v0.3.0-alpha.2`](#powersync_attachments_helper---v030-alpha2)
136145

137146
Packages with dependency updates only:
138147

139148
> Packages listed below depend on other packages in this workspace that have had changes. Their versions have been incremented to bump the minimum dependency versions of the packages they depend upon in this project.
140149
141-
- `powersync_attachments_helper` - `v0.3.0-alpha.2`
150+
- `powersync_attachments_helper` - `v0.3.0-alpha.2`
142151

143152
---
144153

145154
#### `powersync` - `v1.3.0-alpha.2`
146155

147-
- **FIX**(powersync-attachements-helper): pubspec file (#29).
148-
- **DOCS**: update readme and getting started (#51).
149-
156+
- **FIX**(powersync-attachements-helper): pubspec file (#29).
157+
- **DOCS**: update readme and getting started (#51).
158+
- `powersync_attachments_helper` - `v0.5.1+1`

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
<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.*
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.*
66

77
PowerSync SDK for Dart and Flutter
88
===========
99

1010
| package | build | pub | likes | popularity | pub points |
1111
|----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------| ------- | ------- |
12-
| powersync | [![build](https://github.com/powersync-ja/powersync.dart/actions/workflows/packages.yml/badge.svg?branch=master)](https://github.com/powersync-ja/powersync.dart/actions?query=workflow%3Apackages) | [![pub package](https://img.shields.io/pub/v/powersync.svg)](https://pub.dev/packages/powersync) | [![likes](https://img.shields.io/pub/likes/powersync?logo=dart)](https://pub.dev/packages/powersync/score) | [![popularity](https://img.shields.io/pub/popularity/powersync?logo=dart)](https://pub.dev/packages/powersync/score) | [![pub points](https://img.shields.io/pub/points/powersync?logo=dart)](https://pub.dev/packages/powersync/score)
13-
| powersync_attachments_helper | [![build](https://github.com/powersync-ja/powersync.dart/actions/workflows/packages.yml/badge.svg?branch=master)](https://github.com/powersync-ja/powersync.dart/actions?query=workflow%3Apackages) | [![pub package](https://img.shields.io/pub/v/powersync_attachments_helper.svg)](https://pub.dev/packages/powersync_attachments_helper) | [![likes](https://img.shields.io/pub/likes/powersync_attachments_helper?logo=dart)](https://pub.dev/packages/powersync_attachments_helper/score) | [![popularity](https://img.shields.io/pub/popularity/powersync_attachments_helper?logo=dart)](https://pub.dev/packages/powersync_attachments_helper/score) | [![pub points](https://img.shields.io/pub/points/powersync_attachments_helper?logo=dart)](https://pub.dev/packages/powersync_attachments_helper/score)
12+
| [powersync](https://github.com/powersync-ja/powersync.dart/tree/master/packages/powersync) | [![build](https://github.com/powersync-ja/powersync.dart/actions/workflows/packages.yml/badge.svg?branch=master)](https://github.com/powersync-ja/powersync.dart/actions?query=workflow%3Apackages) | [![pub package](https://img.shields.io/pub/v/powersync.svg)](https://pub.dev/packages/powersync) | [![likes](https://img.shields.io/pub/likes/powersync?logo=dart)](https://pub.dev/packages/powersync/score) | [![popularity](https://img.shields.io/pub/popularity/powersync?logo=dart)](https://pub.dev/packages/powersync/score) | [![pub points](https://img.shields.io/pub/points/powersync?logo=dart)](https://pub.dev/packages/powersync/score)
13+
| [powersync_attachments_helper](https://github.com/powersync-ja/powersync.dart/tree/master/packages/powersync_attachments_helper) | [![build](https://github.com/powersync-ja/powersync.dart/actions/workflows/packages.yml/badge.svg?branch=master)](https://github.com/powersync-ja/powersync.dart/actions?query=workflow%3Apackages) | [![pub package](https://img.shields.io/pub/v/powersync_attachments_helper.svg)](https://pub.dev/packages/powersync_attachments_helper) | [![likes](https://img.shields.io/pub/likes/powersync_attachments_helper?logo=dart)](https://pub.dev/packages/powersync_attachments_helper/score) | [![popularity](https://img.shields.io/pub/popularity/powersync_attachments_helper?logo=dart)](https://pub.dev/packages/powersync_attachments_helper/score) | [![pub points](https://img.shields.io/pub/points/powersync_attachments_helper?logo=dart)](https://pub.dev/packages/powersync_attachments_helper/score)
1414

1515
#### Usage
1616

@@ -27,6 +27,6 @@ To configure the monorepo for development run `melos prepare` after cloning
2727
#### Resources
2828

2929
- [![PowerSync docs](https://img.shields.io/badge/documentation-powersync.com-green.svg?label=flutter%20docs)](https://docs.powersync.com/client-sdk-references/flutter)
30-
- [![Discord Chat](https://img.shields.io/discord/1138230179878154300?style=social&logo=discord&logoColor=%235865f2&label=Join%20Discord%20server)](https://discord.gg/powersync)
31-
- [![Twitter Follow](https://img.shields.io/twitter/follow/powersync?label=PowerSync&style=social)](https://twitter.com/intent/follow?screen_name=powersync_)
30+
- [![Discord](https://img.shields.io/discord/1138230179878154300?style=social&logo=discord&logoColor=%235865f2&label=Join%20Discord%20server)](https://discord.gg/powersync)
31+
- [![Twitter follow](https://img.shields.io/twitter/follow/powersync?label=PowerSync&style=social)](https://twitter.com/intent/follow?screen_name=powersync_)
3232
- [![YouTube](https://img.shields.io/youtube/channel/subscribers/UCSDdZvrZuizmc2EMBuTs2Qg?style=social&label=YouTube%20%40powersync_)](https://twitter.com/intent/follow?screen_name=powersync_)

demos/django-todolist/.gitignore

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Miscellaneous
2+
*.class
3+
*.log
4+
*.pyc
5+
*.swp
6+
.DS_Store
7+
.atom/
8+
.buildlog/
9+
.history
10+
.svn/
11+
migrate_working_dir/
12+
13+
# IntelliJ related
14+
*.iml
15+
*.ipr
16+
*.iws
17+
.idea/
18+
19+
# The .vscode folder contains launch configuration and tasks you configure in
20+
# VS Code which you may wish to be included in version control, so this line
21+
# is commented out by default.
22+
#.vscode/
23+
24+
# Flutter/Dart/Pub related
25+
**/doc/api/
26+
**/ios/Flutter/.last_build_id
27+
.dart_tool/
28+
.flutter-plugins
29+
.flutter-plugins-dependencies
30+
.packages
31+
.pub-cache/
32+
.pub/
33+
/build/
34+
35+
# Symbolication related
36+
app.*.symbols
37+
38+
# Obfuscation related
39+
app.*.map.json
40+
41+
# Android Studio will place build artifacts here
42+
/android/app/debug
43+
/android/app/profile
44+
/android/app/release
45+
46+
# asdf
47+
.tool-versions
48+
49+
# secrets
50+
app_config.dart

0 commit comments

Comments
 (0)