Skip to content

[Demo] Local-only supabase todo app #138

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 42 commits into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
082472b
Offline demo.
Chriztiaan Aug 1, 2024
7e3b7eb
Now with macos support.
Chriztiaan Aug 1, 2024
300e3c0
Renamed demo to local-only. Added mermaid chart to readme.
Chriztiaan Aug 5, 2024
0c79c90
Fix flutter lint warnings.
Chriztiaan Aug 5, 2024
04ec125
Merge branch 'master' into offline-demo
Chriztiaan Aug 5, 2024
4c24182
Updated readme to allow an local-only setup. Improved schema switchin…
Chriztiaan Aug 7, 2024
9ad96f4
Updated readme. Tried making the schema documentation clearer by chan…
Chriztiaan Aug 8, 2024
54c111b
Fixing empty local-only state to online transition breaking watch calls.
Chriztiaan Aug 8, 2024
426df29
Updated readme.
Chriztiaan Aug 8, 2024
630af65
Remove commented out code.
Chriztiaan Aug 8, 2024
418853d
Using new refreshSchema function to ensure watches are aware of chang…
Chriztiaan Aug 13, 2024
4116f5d
Using latest published version of sqlite_async.
Chriztiaan Aug 21, 2024
fa0e426
Merge branch 'main' into offline-demo
Chriztiaan Aug 21, 2024
12ddde2
Fixed versions after merge.
Chriztiaan Aug 21, 2024
57f3be7
Updated to sqlite_async:0.8.3
Chriztiaan Aug 21, 2024
05f92c0
Merge branch 'main' into offline-demo
Chriztiaan Aug 21, 2024
ee5d059
Minor readme updates.
Chriztiaan Aug 21, 2024
9acce1f
minor readme update
Chriztiaan Aug 27, 2024
6e00b7e
Merge branch 'main' into offline-demo
Chriztiaan Aug 27, 2024
b2b8655
Fixed web target not working due to worker issue.
Chriztiaan Aug 29, 2024
8446b39
Documentation cleanup.
Chriztiaan Aug 29, 2024
105580c
Removed redundant await.
Chriztiaan Sep 2, 2024
1948053
Update Readme with explanation
benitav Sep 5, 2024
b078fb7
Polish schema.dart comments
benitav Sep 5, 2024
ec3fd2b
Schema comments
benitav Sep 5, 2024
ff1c4bb
More polish
benitav Sep 5, 2024
ae31120
More polish
benitav Sep 6, 2024
26e5455
Restore placeholder creds
benitav Sep 6, 2024
c35669f
Update packages
benitav Sep 6, 2024
96fba48
Renamed project to supabase-todolist-optional-sync
Chriztiaan Sep 6, 2024
f61fb48
Merge remote-tracking branch 'origin' into offline-demo
benitav Sep 6, 2024
dde170c
Merge branch 'release/1.8.0' into offline-demo
Chriztiaan Sep 6, 2024
77804ba
Dependency bumps.
Chriztiaan Sep 6, 2024
5691cd5
Merge branch 'main' into offline-demo
Chriztiaan Sep 9, 2024
bfe115e
Reverted manual bump.
Chriztiaan Sep 9, 2024
99bd89f
chore(release): publish packages
Chriztiaan Sep 9, 2024
66c0cea
Bumped demos powersync to 1.8.1
Chriztiaan Sep 9, 2024
1236be7
Fixed widget test.
Chriztiaan Sep 9, 2024
bda2fb1
Removed test.
Chriztiaan Sep 9, 2024
5ab8520
Undo version.
Chriztiaan Sep 9, 2024
3893a85
Merge branch 'main' into offline-demo
Chriztiaan Sep 9, 2024
50d6d07
chore(release): publish packages
Chriztiaan Sep 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
120 changes: 71 additions & 49 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,34 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## 2024-09-09

### Changes

---

Packages with breaking changes:

- There are no breaking changes in this release.

Packages with other changes:

- [`powersync` - `v1.8.2`](#powersync---v182)
- [`powersync_attachments_helper` - `v0.6.5+3`](#powersync_attachments_helper---v0653)

Packages with dependency updates only:

> 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.

- `powersync_attachments_helper` - `v0.6.5+3`

---

#### `powersync` - `v1.8.2`

- Added `refreshSchema()`, allowing queries and watch calls to work against updated schemas.


## 2024-09-09

### Changes
Expand Down Expand Up @@ -53,26 +81,25 @@ Packages with other changes:

Packages with breaking changes:

- There are no breaking changes in this release.
- There are no breaking changes in this release.

Packages with other changes:

- [`powersync` - `v1.8.0`](#powersync---v180)
- [`powersync` - `v1.8.0`](#powersync---v180)

---

#### `powersync` - `v1.8.0`

- Requires `journeyapps/powersync-service` v0.5.0 or later when self-hosting
- Use powersync-sqlite-core v0.2.1
- Customize `User-Agent` header
- Add `client_id` parameter to sync requests
- Persist `lastSyncedAt`
- Emit update notifications for watch queries on `disconnectAndClear()`
- Validate that the `powersync-sqlite-core` version number is in a compatible range of `^0.2.0`
- Always cast `target_op` (write checkpoints) to ensure it's an integer
- Sync optimizations for MOVE and REMOVE operations

- Requires `journeyapps/powersync-service` v0.5.0 or later when self-hosting
- Use powersync-sqlite-core v0.2.1
- Customize `User-Agent` header
- Add `client_id` parameter to sync requests
- Persist `lastSyncedAt`
- Emit update notifications for watch queries on `disconnectAndClear()`
- Validate that the `powersync-sqlite-core` version number is in a compatible range of `^0.2.0`
- Always cast `target_op` (write checkpoints) to ensure it's an integer
- Sync optimizations for MOVE and REMOVE operations

## 2024-08-23

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

Packages with breaking changes:

- There are no breaking changes in this release.
- There are no breaking changes in this release.

Packages with other changes:

- [`powersync` - `v1.7.0`](#powersync---v170)
- [`powersync_attachments_helper` - `v0.6.5+1`](#powersync_attachments_helper---v0651)
- [`powersync` - `v1.7.0`](#powersync---v170)
- [`powersync_attachments_helper` - `v0.6.5+1`](#powersync_attachments_helper---v0651)

Packages with dependency updates only:

> 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.

- `powersync_attachments_helper` - `v0.6.5+1`
- `powersync_attachments_helper` - `v0.6.5+1`

---

#### `powersync` - `v1.7.0`

- **FEAT**: Include schema validation check
- **FEAT**: Include new table check for maximum number of columns allowed

- **FEAT**: Include schema validation check
- **FEAT**: Include new table check for maximum number of columns allowed

## 2024-08-21

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

Packages with breaking changes:

- There are no breaking changes in this release.
- There are no breaking changes in this release.

Packages with other changes:

- [`powersync` - `v1.6.7`](#powersync---v167)
- [`powersync_attachments_helper` - `v0.6.5`](#powersync_attachments_helper---v065)
- [`powersync_flutter_libs` - `v0.2.2`](#powersync_flutter_libs---v022)
- [`powersync` - `v1.6.7`](#powersync---v167)
- [`powersync_attachments_helper` - `v0.6.5`](#powersync_attachments_helper---v065)
- [`powersync_flutter_libs` - `v0.2.2`](#powersync_flutter_libs---v022)

---

#### `powersync` - `v1.6.7`

- **CHORE**: Update dependency powersync_flutter_libs
- **CHORE**: Update dependency powersync_flutter_libs

#### `powersync_attachments_helper` - `v0.6.5`

- Update a dependency to the latest release.
- Update a dependency to the latest release.

#### `powersync_flutter_libs` - `v0.2.2`

- **FIX**: Prebundling downloaded core binaries.

- **FIX**: Prebundling downloaded core binaries.

## 2024-08-21

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

Packages with breaking changes:

- There are no breaking changes in this release.
- There are no breaking changes in this release.

Packages with other changes:

- [`powersync` - `v1.6.6`](#powersync---v166)
- [`powersync_attachments_helper` - `v0.6.4`](#powersync_attachments_helper---v064)
- [`powersync_flutter_libs` - `v0.2.1`](#powersync_flutter_libs---v021)
- [`powersync` - `v1.6.6`](#powersync---v166)
- [`powersync_attachments_helper` - `v0.6.4`](#powersync_attachments_helper---v064)
- [`powersync_flutter_libs` - `v0.2.1`](#powersync_flutter_libs---v021)

---

#### `powersync` - `v1.6.6`

- **CHORE**: Update dependency powersync_flutter_libs
- **CHORE**: Update dependency powersync_flutter_libs

#### `powersync_attachments_helper` - `v0.6.4`

- Update a dependency to the latest release.
- Update a dependency to the latest release.

#### `powersync_flutter_libs` - `v0.2.1`

- **FIX**: Prebundling downloaded core binaries

- **FIX**: Prebundling downloaded core binaries

## 2024-08-19

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

Packages with breaking changes:

- There are no breaking changes in this release.
- There are no breaking changes in this release.

Packages with other changes:

- [`powersync` - `v1.6.5`](#powersync---v165)
- [`powersync_attachments_helper` - `v0.6.3+2`](#powersync_attachments_helper---v0632)
- [`powersync_flutter_libs` - `v0.2.0`](#powersync_flutter_libs---v020)
- [`powersync` - `v1.6.5`](#powersync---v165)
- [`powersync_attachments_helper` - `v0.6.3+2`](#powersync_attachments_helper---v0632)
- [`powersync_flutter_libs` - `v0.2.0`](#powersync_flutter_libs---v020)

Packages with dependency updates only:

> 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.

- `powersync_attachments_helper` - `v0.6.3+2`
- `powersync_attachments_helper` - `v0.6.3+2`

---

#### `powersync` - `v1.6.5`

- **CHORE**: Update dependency `powersync_flutter_libs`
- **CHORE**: Update dependency `powersync_flutter_libs`

#### `powersync_flutter_libs` - `v0.2.0`

- **FEAT**: Prebundle downloaded core binaries

- **FEAT**: Prebundle downloaded core binaries

## 2024-08-06

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

Packages with breaking changes:

- There are no breaking changes in this release.
- There are no breaking changes in this release.

Packages with other changes:

- [`powersync` - `v1.6.4`](#powersync---v164)
- [`powersync_attachments_helper` - `v0.6.3+1`](#powersync_attachments_helper---v0631)
- [`powersync` - `v1.6.4`](#powersync---v164)
- [`powersync_attachments_helper` - `v0.6.3+1`](#powersync_attachments_helper---v0631)

Packages with dependency updates only:

> 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.

- `powersync_attachments_helper` - `v0.6.3+1`
- `powersync_attachments_helper` - `v0.6.3+1`

---

#### `powersync` - `v1.6.4`

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

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

## 2024-07-31

Expand Down
4 changes: 2 additions & 2 deletions demos/django-todolist/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ environment:
dependencies:
flutter:
sdk: flutter
powersync: ^1.8.1
powersync: ^1.8.2
path_provider: ^2.1.1
path: ^1.8.3
logging: ^1.2.0
sqlite_async: ^0.8.1
sqlite_async: ^0.8.3
http: ^1.2.1
shared_preferences: ^2.2.3

Expand Down
4 changes: 2 additions & 2 deletions demos/supabase-anonymous-auth/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -519,10 +519,10 @@ packages:
dependency: "direct main"
description:
name: sqlite_async
sha256: "79e636c857ed43f6cd5e5be72b36967a29f785daa63ff5b078bd34f74f44cb54"
sha256: "7708a2129582d43614f436e28623fcbeb142a02022ba372e45cfe403c84dd2b5"
url: "https://pub.dev"
source: hosted
version: "0.8.1"
version: "0.8.3"
stack_trace:
dependency: transitive
description:
Expand Down
4 changes: 2 additions & 2 deletions demos/supabase-anonymous-auth/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ dependencies:
flutter:
sdk: flutter

powersync: ^1.8.1
powersync: ^1.8.2
path_provider: ^2.1.1
supabase_flutter: ^2.0.2
path: ^1.8.3
logging: ^1.2.0
sqlite_async: ^0.8.1
sqlite_async: ^0.8.3
universal_io: ^2.2.2

dev_dependencies:
Expand Down
4 changes: 2 additions & 2 deletions demos/supabase-edge-function-auth/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ dependencies:
flutter:
sdk: flutter

powersync: ^1.8.1
powersync: ^1.8.2
path_provider: ^2.1.1
supabase_flutter: ^2.0.2
path: ^1.8.3
logging: ^1.2.0
sqlite_async: ^0.8.1
sqlite_async: ^0.8.3
universal_io: ^2.2.2

dev_dependencies:
Expand Down
2 changes: 1 addition & 1 deletion demos/supabase-simple-chat/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ dependencies:

supabase_flutter: ^2.0.2
timeago: ^3.6.0
powersync: ^1.8.1
powersync: ^1.8.2
path_provider: ^2.1.1
path: ^1.8.3
logging: ^1.2.0
Expand Down
4 changes: 2 additions & 2 deletions demos/supabase-todolist-drift/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -878,10 +878,10 @@ packages:
dependency: "direct main"
description:
name: sqlite_async
sha256: "79e636c857ed43f6cd5e5be72b36967a29f785daa63ff5b078bd34f74f44cb54"
sha256: "7708a2129582d43614f436e28623fcbeb142a02022ba372e45cfe403c84dd2b5"
url: "https://pub.dev"
source: hosted
version: "0.8.1"
version: "0.8.3"
sqlparser:
dependency: transitive
description:
Expand Down
6 changes: 3 additions & 3 deletions demos/supabase-todolist-drift/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ environment:
dependencies:
flutter:
sdk: flutter
powersync_attachments_helper: ^0.6.5+1
powersync: ^1.8.1
powersync_attachments_helper: ^0.6.5+3
powersync: ^1.8.2
path_provider: ^2.1.1
supabase_flutter: ^2.0.1
path: ^1.8.3
logging: ^1.2.0
camera: ^0.10.5+7
image: ^4.1.3
universal_io: ^2.2.2
sqlite_async: ^0.8.1
sqlite_async: ^0.8.3
drift: 2.18.0
drift_sqlite_async: ^0.1.0-alpha.4

Expand Down
47 changes: 47 additions & 0 deletions demos/supabase-todolist-optional-sync/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.buildlog/
.history
.svn/
migrate_working_dir/

# IntelliJ related
*.iml
*.ipr
*.iws
.idea/

# The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line
# is commented out by default.
#.vscode/

# Flutter/Dart/Pub related
**/doc/api/
**/ios/Flutter/.last_build_id
.dart_tool/
.flutter-plugins
.flutter-plugins-dependencies
.packages
.pub-cache/
.pub/
/build/

# Symbolication related
app.*.symbols

# Obfuscation related
app.*.map.json

# Android Studio will place build artifacts here
/android/app/debug
/android/app/profile
/android/app/release

# asdf
.tool-versions
Loading
Loading