Skip to content

Merge master into alpha release #122

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 56 commits into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
e327926
Readme update: Messaging/description of powersync
cahofmeyr May 30, 2024
e57381f
remove duplicate word
cahofmeyr May 30, 2024
e362fdb
Merge pull request #91 from powersync-ja/readme-update
cahofmeyr May 30, 2024
d812f78
Load and use PowerSync rust extension (#92)
mugikhan Jun 6, 2024
2fc5e35
Upgrade powersync-sqlite-core to version 0.1.7 for Android (#95)
mugikhan Jun 14, 2024
948139d
Bump powersync version (#96)
mugikhan Jun 14, 2024
4739f71
Update existing changelog message for powersync (#97)
mugikhan Jun 14, 2024
1903747
Override default macOS SQLite for tests (#99)
mugikhan Jun 18, 2024
98c8905
Check if abort future is completed before completing it (#100)
mugikhan Jun 19, 2024
0d63063
Upgrade sqlite_async (#105)
mugikhan Jun 25, 2024
e0fbf95
boilerplate
kobiebotha Jun 28, 2024
d7884da
the app :)
kobiebotha Jun 28, 2024
3f5bfce
more boilerplate
kobiebotha Jun 28, 2024
a0c92f8
fix deps and rename app name
kobiebotha Jun 28, 2024
71f07bf
Merge branch 'master' of github.com:powersync-ja/powersync.dart into …
kobiebotha Jun 28, 2024
eaf8075
bump to latest sqlite_async
kobiebotha Jun 28, 2024
83a4912
chore: fix pana score checks (#110)
stevensJourney Jul 1, 2024
5a3b686
snake_case apiclient
kobiebotha Jul 1, 2024
c90c66c
fix `dart analyze` output
kobiebotha Jul 1, 2024
f855317
`dart format`
kobiebotha Jul 1, 2024
83e1416
Merge branch 'master' into feature/django-todolist-demo
kobiebotha Jul 1, 2024
b7f4511
Merge pull request #108 from powersync-ja/feature/django-todolist-demo
kobiebotha Jul 1, 2024
8e37523
Add hasSynced and waitForFirstSync (#112)
mugikhan Jul 2, 2024
8576e28
Close http connections immediately on disconnect.
rkistner Jul 2, 2024
a6982e7
Fix some errors when closing client while connecting.
rkistner Jul 2, 2024
f886bbd
Remove retry delay when aborting.
rkistner Jul 2, 2024
1a5c224
More accurate connection counts.
rkistner Jul 2, 2024
6aac801
Merge branch 'master' into close-connections-on-disconnect
rkistner Jul 2, 2024
e4c8023
Merge pull request #115 from powersync-ja/close-connections-on-discon…
rkistner Jul 2, 2024
1c1dc10
Fix Future already completed when calling waitForFirstSync (#117)
mugikhan Jul 3, 2024
98cb5d8
[Feature] Added user parameters support when connecting (#98)
Chriztiaan Jul 10, 2024
e41c3e7
[Chore] Update Django Demo Readme (#120)
stevensJourney Jul 11, 2024
5cd6ac3
Merge branch 'master' into chore/merge-master-alpha-release
mugikhan Jul 11, 2024
9e1e376
remove unneeded override (#121)
Dieterbe Jul 12, 2024
cd1c7b0
Remove unusued imports
mugikhan Jul 12, 2024
1749f87
Update sqlite3 wasm
mugikhan Jul 12, 2024
c6c4a75
Add updateHasSynced to db_mixin
mugikhan Jul 12, 2024
ac76922
Fix hasSynced status
mugikhan Jul 12, 2024
4b6303c
Make client params public
mugikhan Jul 12, 2024
83b8007
Abort sync on aborted disconnect
mugikhan Jul 12, 2024
fccf76a
fix bug in setStatus
stevensJourney Jul 12, 2024
e4f0558
Fix native powersync_flutter_libs dependency
mugikhan Jul 12, 2024
b9f6ba0
Add powersync_init on database init
mugikhan Jul 12, 2024
c989192
Update js dependency
mugikhan Jul 12, 2024
9bd0686
Update supabase_flutter
mugikhan Jul 12, 2024
9414232
Download core binary with dart script instead of github action
mugikhan Jul 12, 2024
cde73d9
Fix watch query table names (#123)
mugikhan Jul 15, 2024
568ae73
Merge branch 'master' into chore/merge-master-alpha-release
mugikhan Jul 15, 2024
de5b7dd
[Fix] Offline has synced (#124)
stevensJourney Jul 16, 2024
321680c
Add watch query table names fix
mugikhan Jul 16, 2024
5285f53
Add chrome test
mugikhan Jul 16, 2024
8a572a8
master update has synced status
stevensJourney Jul 16, 2024
6be4588
Remove internalTrackedWrite for web database
mugikhan Jul 16, 2024
dbf2df1
Increase 'Multiple calls to disconnect' test timeout
mugikhan Jul 16, 2024
b20bf6d
Remove timeout and separate flutter and dart tests
mugikhan Jul 17, 2024
3cc0a61
Complete abort on disconnect
mugikhan Jul 17, 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
14 changes: 8 additions & 6 deletions .github/workflows/demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ concurrency:
on:
push:
branches:
- '**'
- "**"

jobs:
build:
Expand All @@ -17,8 +17,8 @@ jobs:
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.x'
channel: 'stable'
flutter-version: "3.x"
channel: "stable"

- name: Install Melos
run: flutter pub global activate melos
Expand All @@ -38,11 +38,13 @@ jobs:
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.x'
channel: 'stable'
flutter-version: "3.x"
channel: "stable"
- name: Install melos
run: flutter pub global activate melos
- name: Install dependencies
run: melos prepare
- name: Run tests
- name: Run flutter tests
run: melos test
- name: Run dart tests
run: melos test:web
15 changes: 8 additions & 7 deletions .github/workflows/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ concurrency:
on:
push:
branches:
- '**'
- "**"

jobs:
build:
Expand All @@ -17,8 +17,8 @@ jobs:
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.x'
channel: 'stable'
flutter-version: "3.x"
channel: "stable"

- name: Install Melos
run: flutter pub global activate melos
Expand All @@ -42,12 +42,13 @@ jobs:
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.x'
channel: 'stable'
flutter-version: "3.x"
channel: "stable"
- name: Install melos
run: flutter pub global activate melos
- name: Install dependencies and prepare project
run: melos prepare

- name: Run tests
- name: Run flutter tests
run: melos test
- name: Run dart tests
run: melos test:web
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,8 @@ assets
# Web assets
powersync_db.worker.js
sqlite3.wasm

#Core binaries
*.dylib
*.dll
*.so
83 changes: 46 additions & 37 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,19 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## 2024-07-16

### Changes

---

- [`powersync` - `v1.5.5`](#powersync---v155)
- [`powersync_attachments_helper` - `v0.5.1+1`](#powersync_attachments_helper---v0511)

#### `powersync` - `v1.5.5`

- Fix issue where `hasSynced` is cleared when offline.

## 2024-07-10

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

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.3.0-alpha.9`](#powersync---v130-alpha9)
- [`powersync_attachments_helper` - `v0.3.0-alpha.4`](#powersync_attachments_helper---v030-alpha4)
- [`powersync` - `v1.3.0-alpha.9`](#powersync---v130-alpha9)
- [`powersync_attachments_helper` - `v0.3.0-alpha.4`](#powersync_attachments_helper---v030-alpha4)

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.3.0-alpha.4`
- `powersync_attachments_helper` - `v0.3.0-alpha.4`

---

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

- Updated sqlite_async to use Navigator locks for limiting sync stream implementions in multiple tabs

- Updated sqlite_async to use Navigator locks for limiting sync stream implementions in multiple tabs

## 2024-07-04

Expand All @@ -39,26 +51,25 @@ 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.3.0-alpha.8`](#powersync---v130-alpha8)
- [`powersync_attachments_helper` - `v0.3.0-alpha.3`](#powersync_attachments_helper---v030-alpha3)
- [`powersync` - `v1.3.0-alpha.8`](#powersync---v130-alpha8)
- [`powersync_attachments_helper` - `v0.3.0-alpha.3`](#powersync_attachments_helper---v030-alpha3)

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.3.0-alpha.3`
- `powersync_attachments_helper` - `v0.3.0-alpha.3`

---

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

- **FIX**(powersync-attachements-helper): pubspec file (#29).
- **DOCS**: update readme and getting started (#51).

- **FIX**(powersync-attachements-helper): pubspec file (#29).
- **DOCS**: update readme and getting started (#51).

## 2024-05-30

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

Packages with breaking changes:

- [`powersync_attachments_helper` - `v0.3.0-alpha.2`](#powersync_attachments_helper---v030-alpha2)
- [`powersync_attachments_helper` - `v0.3.0-alpha.2`](#powersync_attachments_helper---v030-alpha2)

Packages with other changes:

- [`powersync` - `v1.3.0-alpha.5`](#powersync---v130-alpha5)
- [`powersync` - `v1.3.0-alpha.5`](#powersync---v130-alpha5)

---

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

- **FIX**: reset isProcessing when exception is thrown during sync process. (#81).
- **FIX**: attachment queue duplicating requests (#68).
- **FIX**(powersync-attachements-helper): pubspec file (#29).
- **FEAT**(attachments): add error handlers (#65).
- **DOCS**: update readmes (#38).
- **BREAKING** **FEAT**(attachments): cater for subdirectories in storage (#78).
- **FIX**: reset isProcessing when exception is thrown during sync process. (#81).
- **FIX**: attachment queue duplicating requests (#68).
- **FIX**(powersync-attachements-helper): pubspec file (#29).
- **FEAT**(attachments): add error handlers (#65).
- **DOCS**: update readmes (#38).
- **BREAKING** **FEAT**(attachments): cater for subdirectories in storage (#78).

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

- **FIX**(powersync-attachements-helper): pubspec file (#29).
- **DOCS**: update readme and getting started (#51).

- **FIX**(powersync-attachements-helper): pubspec file (#29).
- **DOCS**: update readme and getting started (#51).

## 2024-03-05

Expand All @@ -99,25 +109,24 @@ 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.3.0-alpha.3`](#powersync---v130-alpha3)
- [`powersync_attachments_helper` - `v0.3.0-alpha.2`](#powersync_attachments_helper---v030-alpha2)
- [`powersync` - `v1.3.0-alpha.3`](#powersync---v130-alpha3)
- [`powersync_attachments_helper` - `v0.3.0-alpha.2`](#powersync_attachments_helper---v030-alpha2)

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.3.0-alpha.2`
- `powersync_attachments_helper` - `v0.3.0-alpha.2`

---

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

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

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

## 2024-02-15

Expand All @@ -127,23 +136,23 @@ 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.3.0-alpha.2`](#powersync---v130-alpha2)
- [`powersync_attachments_helper` - `v0.3.0-alpha.2`](#powersync_attachments_helper---v030-alpha2)
- [`powersync` - `v1.3.0-alpha.2`](#powersync---v130-alpha2)
- [`powersync_attachments_helper` - `v0.3.0-alpha.2`](#powersync_attachments_helper---v030-alpha2)

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.3.0-alpha.2`
- `powersync_attachments_helper` - `v0.3.0-alpha.2`

---

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

- **FIX**(powersync-attachements-helper): pubspec file (#29).
- **DOCS**: update readme and getting started (#51).

- **FIX**(powersync-attachements-helper): pubspec file (#29).
- **DOCS**: update readme and getting started (#51).
- `powersync_attachments_helper` - `v0.5.1+1`
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
<a href="https://www.powersync.com" target="_blank"><img src="https://github.com/powersync-ja/.github/assets/7372448/d2538c43-c1a0-4c47-9a76-41462dba484f"/></a>
</p>

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

PowerSync SDK for Dart and Flutter
===========

| package | build | pub | likes | popularity | pub points |
|----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------| ------- | ------- |
| 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)
| 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)
| [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)
| [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)

#### Usage

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

- [![PowerSync docs](https://img.shields.io/badge/documentation-powersync.com-green.svg?label=flutter%20docs)](https://docs.powersync.com/client-sdk-references/flutter)
- [![Discord Chat](https://img.shields.io/discord/1138230179878154300?style=social&logo=discord&logoColor=%235865f2&label=Join%20Discord%20server)](https://discord.gg/powersync)
- [![Twitter Follow](https://img.shields.io/twitter/follow/powersync?label=PowerSync&style=social)](https://twitter.com/intent/follow?screen_name=powersync_)
- [![Discord](https://img.shields.io/discord/1138230179878154300?style=social&logo=discord&logoColor=%235865f2&label=Join%20Discord%20server)](https://discord.gg/powersync)
- [![Twitter follow](https://img.shields.io/twitter/follow/powersync?label=PowerSync&style=social)](https://twitter.com/intent/follow?screen_name=powersync_)
- [![YouTube](https://img.shields.io/youtube/channel/subscribers/UCSDdZvrZuizmc2EMBuTs2Qg?style=social&label=YouTube%20%40powersync_)](https://twitter.com/intent/follow?screen_name=powersync_)
50 changes: 50 additions & 0 deletions demos/django-todolist/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# 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

# secrets
app_config.dart
Loading
Loading