Skip to content

Commit 2ccf239

Browse files
Chriztiaanbenitav
andauthored
[Demo] Local-only supabase todo app (#138)
- Added local-only demo - [email protected] - [email protected]+3 --------- Co-authored-by: benitav <[email protected]>
1 parent 0bf1799 commit 2ccf239

File tree

177 files changed

+7772
-95
lines changed

Some content is hidden

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

177 files changed

+7772
-95
lines changed

CHANGELOG.md

+71-49
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,34 @@
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-09-09
7+
8+
### Changes
9+
10+
---
11+
12+
Packages with breaking changes:
13+
14+
- There are no breaking changes in this release.
15+
16+
Packages with other changes:
17+
18+
- [`powersync` - `v1.8.2`](#powersync---v182)
19+
- [`powersync_attachments_helper` - `v0.6.5+3`](#powersync_attachments_helper---v0653)
20+
21+
Packages with dependency updates only:
22+
23+
> 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.
24+
25+
- `powersync_attachments_helper` - `v0.6.5+3`
26+
27+
---
28+
29+
#### `powersync` - `v1.8.2`
30+
31+
- Added `refreshSchema()`, allowing queries and watch calls to work against updated schemas.
32+
33+
634
## 2024-09-09
735

836
### Changes
@@ -53,26 +81,25 @@ Packages with other changes:
5381

5482
Packages with breaking changes:
5583

56-
- There are no breaking changes in this release.
84+
- There are no breaking changes in this release.
5785

5886
Packages with other changes:
5987

60-
- [`powersync` - `v1.8.0`](#powersync---v180)
88+
- [`powersync` - `v1.8.0`](#powersync---v180)
6189

6290
---
6391

6492
#### `powersync` - `v1.8.0`
6593

66-
- Requires `journeyapps/powersync-service` v0.5.0 or later when self-hosting
67-
- Use powersync-sqlite-core v0.2.1
68-
- Customize `User-Agent` header
69-
- Add `client_id` parameter to sync requests
70-
- Persist `lastSyncedAt`
71-
- Emit update notifications for watch queries on `disconnectAndClear()`
72-
- Validate that the `powersync-sqlite-core` version number is in a compatible range of `^0.2.0`
73-
- Always cast `target_op` (write checkpoints) to ensure it's an integer
74-
- Sync optimizations for MOVE and REMOVE operations
75-
94+
- Requires `journeyapps/powersync-service` v0.5.0 or later when self-hosting
95+
- Use powersync-sqlite-core v0.2.1
96+
- Customize `User-Agent` header
97+
- Add `client_id` parameter to sync requests
98+
- Persist `lastSyncedAt`
99+
- Emit update notifications for watch queries on `disconnectAndClear()`
100+
- Validate that the `powersync-sqlite-core` version number is in a compatible range of `^0.2.0`
101+
- Always cast `target_op` (write checkpoints) to ensure it's an integer
102+
- Sync optimizations for MOVE and REMOVE operations
76103

77104
## 2024-08-23
78105

@@ -82,26 +109,25 @@ Packages with other changes:
82109

83110
Packages with breaking changes:
84111

85-
- There are no breaking changes in this release.
112+
- There are no breaking changes in this release.
86113

87114
Packages with other changes:
88115

89-
- [`powersync` - `v1.7.0`](#powersync---v170)
90-
- [`powersync_attachments_helper` - `v0.6.5+1`](#powersync_attachments_helper---v0651)
116+
- [`powersync` - `v1.7.0`](#powersync---v170)
117+
- [`powersync_attachments_helper` - `v0.6.5+1`](#powersync_attachments_helper---v0651)
91118

92119
Packages with dependency updates only:
93120

94121
> 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.
95122
96-
- `powersync_attachments_helper` - `v0.6.5+1`
123+
- `powersync_attachments_helper` - `v0.6.5+1`
97124

98125
---
99126

100127
#### `powersync` - `v1.7.0`
101128

102-
- **FEAT**: Include schema validation check
103-
- **FEAT**: Include new table check for maximum number of columns allowed
104-
129+
- **FEAT**: Include schema validation check
130+
- **FEAT**: Include new table check for maximum number of columns allowed
105131

106132
## 2024-08-21
107133

@@ -111,28 +137,27 @@ Packages with dependency updates only:
111137

112138
Packages with breaking changes:
113139

114-
- There are no breaking changes in this release.
140+
- There are no breaking changes in this release.
115141

116142
Packages with other changes:
117143

118-
- [`powersync` - `v1.6.7`](#powersync---v167)
119-
- [`powersync_attachments_helper` - `v0.6.5`](#powersync_attachments_helper---v065)
120-
- [`powersync_flutter_libs` - `v0.2.2`](#powersync_flutter_libs---v022)
144+
- [`powersync` - `v1.6.7`](#powersync---v167)
145+
- [`powersync_attachments_helper` - `v0.6.5`](#powersync_attachments_helper---v065)
146+
- [`powersync_flutter_libs` - `v0.2.2`](#powersync_flutter_libs---v022)
121147

122148
---
123149

124150
#### `powersync` - `v1.6.7`
125151

126-
- **CHORE**: Update dependency powersync_flutter_libs
152+
- **CHORE**: Update dependency powersync_flutter_libs
127153

128154
#### `powersync_attachments_helper` - `v0.6.5`
129155

130-
- Update a dependency to the latest release.
156+
- Update a dependency to the latest release.
131157

132158
#### `powersync_flutter_libs` - `v0.2.2`
133159

134-
- **FIX**: Prebundling downloaded core binaries.
135-
160+
- **FIX**: Prebundling downloaded core binaries.
136161

137162
## 2024-08-21
138163

@@ -142,28 +167,27 @@ Packages with other changes:
142167

143168
Packages with breaking changes:
144169

145-
- There are no breaking changes in this release.
170+
- There are no breaking changes in this release.
146171

147172
Packages with other changes:
148173

149-
- [`powersync` - `v1.6.6`](#powersync---v166)
150-
- [`powersync_attachments_helper` - `v0.6.4`](#powersync_attachments_helper---v064)
151-
- [`powersync_flutter_libs` - `v0.2.1`](#powersync_flutter_libs---v021)
174+
- [`powersync` - `v1.6.6`](#powersync---v166)
175+
- [`powersync_attachments_helper` - `v0.6.4`](#powersync_attachments_helper---v064)
176+
- [`powersync_flutter_libs` - `v0.2.1`](#powersync_flutter_libs---v021)
152177

153178
---
154179

155180
#### `powersync` - `v1.6.6`
156181

157-
- **CHORE**: Update dependency powersync_flutter_libs
182+
- **CHORE**: Update dependency powersync_flutter_libs
158183

159184
#### `powersync_attachments_helper` - `v0.6.4`
160185

161-
- Update a dependency to the latest release.
186+
- Update a dependency to the latest release.
162187

163188
#### `powersync_flutter_libs` - `v0.2.1`
164189

165-
- **FIX**: Prebundling downloaded core binaries
166-
190+
- **FIX**: Prebundling downloaded core binaries
167191

168192
## 2024-08-19
169193

@@ -173,30 +197,29 @@ Packages with other changes:
173197

174198
Packages with breaking changes:
175199

176-
- There are no breaking changes in this release.
200+
- There are no breaking changes in this release.
177201

178202
Packages with other changes:
179203

180-
- [`powersync` - `v1.6.5`](#powersync---v165)
181-
- [`powersync_attachments_helper` - `v0.6.3+2`](#powersync_attachments_helper---v0632)
182-
- [`powersync_flutter_libs` - `v0.2.0`](#powersync_flutter_libs---v020)
204+
- [`powersync` - `v1.6.5`](#powersync---v165)
205+
- [`powersync_attachments_helper` - `v0.6.3+2`](#powersync_attachments_helper---v0632)
206+
- [`powersync_flutter_libs` - `v0.2.0`](#powersync_flutter_libs---v020)
183207

184208
Packages with dependency updates only:
185209

186210
> 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.
187211
188-
- `powersync_attachments_helper` - `v0.6.3+2`
212+
- `powersync_attachments_helper` - `v0.6.3+2`
189213

190214
---
191215

192216
#### `powersync` - `v1.6.5`
193217

194-
- **CHORE**: Update dependency `powersync_flutter_libs`
218+
- **CHORE**: Update dependency `powersync_flutter_libs`
195219

196220
#### `powersync_flutter_libs` - `v0.2.0`
197221

198-
- **FEAT**: Prebundle downloaded core binaries
199-
222+
- **FEAT**: Prebundle downloaded core binaries
200223

201224
## 2024-08-06
202225

@@ -206,25 +229,24 @@ Packages with dependency updates only:
206229

207230
Packages with breaking changes:
208231

209-
- There are no breaking changes in this release.
232+
- There are no breaking changes in this release.
210233

211234
Packages with other changes:
212235

213-
- [`powersync` - `v1.6.4`](#powersync---v164)
214-
- [`powersync_attachments_helper` - `v0.6.3+1`](#powersync_attachments_helper---v0631)
236+
- [`powersync` - `v1.6.4`](#powersync---v164)
237+
- [`powersync_attachments_helper` - `v0.6.3+1`](#powersync_attachments_helper---v0631)
215238

216239
Packages with dependency updates only:
217240

218241
> 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.
219242
220-
- `powersync_attachments_helper` - `v0.6.3+1`
243+
- `powersync_attachments_helper` - `v0.6.3+1`
221244

222245
---
223246

224247
#### `powersync` - `v1.6.4`
225248

226-
- **FIX**: `hasSynced` status should be reset after `disconnectAndClear` has been called. ([5e12a079](https://github.com/powersync-ja/powersync.dart/commit/5e12a07918ca16d3dcf90f26a42c5a61c09fb978))
227-
249+
- **FIX**: `hasSynced` status should be reset after `disconnectAndClear` has been called. ([5e12a079](https://github.com/powersync-ja/powersync.dart/commit/5e12a07918ca16d3dcf90f26a42c5a61c09fb978))
228250

229251
## 2024-07-31
230252

demos/django-todolist/pubspec.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ environment:
1010
dependencies:
1111
flutter:
1212
sdk: flutter
13-
powersync: ^1.8.1
13+
powersync: ^1.8.2
1414
path_provider: ^2.1.1
1515
path: ^1.8.3
1616
logging: ^1.2.0
17-
sqlite_async: ^0.8.1
17+
sqlite_async: ^0.8.3
1818
http: ^1.2.1
1919
shared_preferences: ^2.2.3
2020

demos/supabase-anonymous-auth/pubspec.lock

+2-2
Original file line numberDiff line numberDiff line change
@@ -519,10 +519,10 @@ packages:
519519
dependency: "direct main"
520520
description:
521521
name: sqlite_async
522-
sha256: "79e636c857ed43f6cd5e5be72b36967a29f785daa63ff5b078bd34f74f44cb54"
522+
sha256: "7708a2129582d43614f436e28623fcbeb142a02022ba372e45cfe403c84dd2b5"
523523
url: "https://pub.dev"
524524
source: hosted
525-
version: "0.8.1"
525+
version: "0.8.3"
526526
stack_trace:
527527
dependency: transitive
528528
description:

demos/supabase-anonymous-auth/pubspec.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ dependencies:
1111
flutter:
1212
sdk: flutter
1313

14-
powersync: ^1.8.1
14+
powersync: ^1.8.2
1515
path_provider: ^2.1.1
1616
supabase_flutter: ^2.0.2
1717
path: ^1.8.3
1818
logging: ^1.2.0
19-
sqlite_async: ^0.8.1
19+
sqlite_async: ^0.8.3
2020
universal_io: ^2.2.2
2121

2222
dev_dependencies:

demos/supabase-edge-function-auth/pubspec.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ dependencies:
1111
flutter:
1212
sdk: flutter
1313

14-
powersync: ^1.8.1
14+
powersync: ^1.8.2
1515
path_provider: ^2.1.1
1616
supabase_flutter: ^2.0.2
1717
path: ^1.8.3
1818
logging: ^1.2.0
19-
sqlite_async: ^0.8.1
19+
sqlite_async: ^0.8.3
2020
universal_io: ^2.2.2
2121

2222
dev_dependencies:

demos/supabase-simple-chat/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ dependencies:
3737

3838
supabase_flutter: ^2.0.2
3939
timeago: ^3.6.0
40-
powersync: ^1.8.1
40+
powersync: ^1.8.2
4141
path_provider: ^2.1.1
4242
path: ^1.8.3
4343
logging: ^1.2.0

demos/supabase-todolist-drift/pubspec.lock

+2-2
Original file line numberDiff line numberDiff line change
@@ -878,10 +878,10 @@ packages:
878878
dependency: "direct main"
879879
description:
880880
name: sqlite_async
881-
sha256: "79e636c857ed43f6cd5e5be72b36967a29f785daa63ff5b078bd34f74f44cb54"
881+
sha256: "7708a2129582d43614f436e28623fcbeb142a02022ba372e45cfe403c84dd2b5"
882882
url: "https://pub.dev"
883883
source: hosted
884-
version: "0.8.1"
884+
version: "0.8.3"
885885
sqlparser:
886886
dependency: transitive
887887
description:

demos/supabase-todolist-drift/pubspec.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ environment:
99
dependencies:
1010
flutter:
1111
sdk: flutter
12-
powersync_attachments_helper: ^0.6.5+1
13-
powersync: ^1.8.1
12+
powersync_attachments_helper: ^0.6.5+3
13+
powersync: ^1.8.2
1414
path_provider: ^2.1.1
1515
supabase_flutter: ^2.0.1
1616
path: ^1.8.3
1717
logging: ^1.2.0
1818
camera: ^0.10.5+7
1919
image: ^4.1.3
2020
universal_io: ^2.2.2
21-
sqlite_async: ^0.8.1
21+
sqlite_async: ^0.8.3
2222
drift: 2.18.0
2323
drift_sqlite_async: ^0.1.0-alpha.4
2424

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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

0 commit comments

Comments
 (0)