Skip to content

[Alpha Fix] Disconnect and clear bug #66

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 10 commits into from
Mar 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
28 changes: 28 additions & 0 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-03-05

### Changes

---

Packages with breaking changes:

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

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


## 2024-02-15

### Changes
Expand Down
40 changes: 20 additions & 20 deletions demos/supabase-anonymous-auth/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,10 @@ packages:
dependency: transitive
description:
name: gotrue
sha256: f40610bacf1074723354b0856a4f586508ffb075b799f72466f34e843133deb9
sha256: "1bf6354278a98b8a1867263e94921da8a239de07e9babceab2b4e80af651a098"
url: "https://pub.dev"
source: hosted
version: "2.5.0"
version: "2.5.1"
gtk:
dependency: transitive
description:
Expand Down Expand Up @@ -332,25 +332,25 @@ packages:
dependency: transitive
description:
name: postgrest
sha256: "748ebffffb60b4eaa270955dcf3742a19a2b315344c41ff1b4a0ebcd322b5181"
sha256: "9a3b590cf123f8d323b6a918702e037f037027d12a01902f9dc6ee38fdc05d6c"
url: "https://pub.dev"
source: hosted
version: "2.1.0"
version: "2.1.1"
powersync:
dependency: "direct main"
description:
path: "../../packages/powersync"
relative: true
source: path
version: "1.3.0-alpha.1"
version: "1.3.0-alpha.2"
realtime_client:
dependency: transitive
description:
name: realtime_client
sha256: "5831636c19802ba936093a35a7c5b745b130e268fa052e84b4b5290139d2ae03"
sha256: "41d6c5e0327d6c270b98b79bfed672928244af60e2856770f3eff697f9efe459"
url: "https://pub.dev"
source: hosted
version: "2.0.0"
version: "2.0.1"
retry:
dependency: transitive
description:
Expand Down Expand Up @@ -411,10 +411,10 @@ packages:
dependency: transitive
description:
name: shared_preferences_web
sha256: "7b15ffb9387ea3e237bb7a66b8a23d2147663d391cafc5c8f37b2e7b4bde5d21"
sha256: d762709c2bbe80626ecc819143013cc820fa49ca5e363620ee20a8b15a3e3daf
url: "https://pub.dev"
source: hosted
version: "2.2.2"
version: "2.2.1"
shared_preferences_windows:
dependency: transitive
description:
Expand Down Expand Up @@ -464,10 +464,10 @@ packages:
dependency: "direct main"
description:
name: sqlite_async
sha256: "91f454cddc85617bea2c7c1544ff386887d0d2cf0ecdb3599015c05cc141ff4d"
sha256: "7a68036b2fc2fae5fc0efbc6bd436deb79e39090282348d979e6a7c38c8d067e"
url: "https://pub.dev"
source: hosted
version: "0.7.0-alpha.1"
version: "0.7.0-alpha.2"
stack_trace:
dependency: transitive
description:
Expand Down Expand Up @@ -504,18 +504,18 @@ packages:
dependency: transitive
description:
name: supabase
sha256: "4bce9c49f264f4cd44b4ffc895647af2dca0c40125c169045be9f708fd2a2a40"
sha256: f431753d2a4cb9dacd72c7378154f806c2b2cef23859bd9cee1add23821e874d
url: "https://pub.dev"
source: hosted
version: "2.0.7"
version: "2.0.8"
supabase_flutter:
dependency: "direct main"
description:
name: supabase_flutter
sha256: "5ef71289c380b6429216e941c69971c75eaab50d67fd7b540f6c1f6ebfc00ed7"
sha256: "30e966b89ee61dc9de845e2d7e1c60967b3189c410d105c6d42f09b6259f4cb6"
url: "https://pub.dev"
source: hosted
version: "2.3.3"
version: "2.3.4"
term_glyph:
dependency: transitive
description:
Expand Down Expand Up @@ -592,18 +592,18 @@ packages:
dependency: transitive
description:
name: url_launcher_platform_interface
sha256: a932c3a8082e118f80a475ce692fde89dc20fddb24c57360b96bc56f7035de1f
sha256: "552f8a1e663569be95a8190206a38187b531910283c3e982193e4f2733f01029"
url: "https://pub.dev"
source: hosted
version: "2.3.1"
version: "2.3.2"
url_launcher_web:
dependency: transitive
description:
name: url_launcher_web
sha256: fff0932192afeedf63cdd50ecbb1bc825d31aed259f02bb8dba0f3b729a5e88b
sha256: "7fd2f55fe86cea2897b963e864dc01a7eb0719ecc65fcef4c1cc3d686d718bb2"
url: "https://pub.dev"
source: hosted
version: "2.2.3"
version: "2.2.0"
url_launcher_windows:
dependency: transitive
description:
Expand Down Expand Up @@ -670,4 +670,4 @@ packages:
version: "2.0.0"
sdks:
dart: ">=3.2.3 <4.0.0"
flutter: ">=3.16.0"
flutter: ">=3.13.0"
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.3.0-alpha.2
powersync: ^1.3.0-alpha.3
path_provider: ^2.1.1
supabase_flutter: ^2.0.2
path: ^1.8.3
logging: ^1.2.0
sqlite_async: ^0.7.0-alpha.1
sqlite_async: ^0.7.0-alpha.2
universal_io: ^2.2.2

dev_dependencies:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class _LoginPageState extends State<LoginPage> {
await Supabase.instance.client.auth.signInWithPassword(
email: _usernameController.text, password: _passwordController.text);

if (mounted) {
if (context.mounted) {
Navigator.of(context).pushReplacement(MaterialPageRoute(
builder: (context) => homePage,
));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class _SignupPageState extends State<SignupPage> {
final response = await Supabase.instance.client.auth.signUp(
email: _usernameController.text, password: _passwordController.text);

if (mounted) {
if (context.mounted) {
if (response.session != null) {
Navigator.of(context).pushReplacement(MaterialPageRoute(
builder: (context) => homePage,
Expand Down
40 changes: 20 additions & 20 deletions demos/supabase-edge-function-auth/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,10 @@ packages:
dependency: transitive
description:
name: gotrue
sha256: f40610bacf1074723354b0856a4f586508ffb075b799f72466f34e843133deb9
sha256: "1bf6354278a98b8a1867263e94921da8a239de07e9babceab2b4e80af651a098"
url: "https://pub.dev"
source: hosted
version: "2.5.0"
version: "2.5.1"
gtk:
dependency: transitive
description:
Expand Down Expand Up @@ -332,25 +332,25 @@ packages:
dependency: transitive
description:
name: postgrest
sha256: "748ebffffb60b4eaa270955dcf3742a19a2b315344c41ff1b4a0ebcd322b5181"
sha256: "9a3b590cf123f8d323b6a918702e037f037027d12a01902f9dc6ee38fdc05d6c"
url: "https://pub.dev"
source: hosted
version: "2.1.0"
version: "2.1.1"
powersync:
dependency: "direct main"
description:
path: "../../packages/powersync"
relative: true
source: path
version: "1.3.0-alpha.1"
version: "1.3.0-alpha.2"
realtime_client:
dependency: transitive
description:
name: realtime_client
sha256: "5831636c19802ba936093a35a7c5b745b130e268fa052e84b4b5290139d2ae03"
sha256: "41d6c5e0327d6c270b98b79bfed672928244af60e2856770f3eff697f9efe459"
url: "https://pub.dev"
source: hosted
version: "2.0.0"
version: "2.0.1"
retry:
dependency: transitive
description:
Expand Down Expand Up @@ -411,10 +411,10 @@ packages:
dependency: transitive
description:
name: shared_preferences_web
sha256: "7b15ffb9387ea3e237bb7a66b8a23d2147663d391cafc5c8f37b2e7b4bde5d21"
sha256: d762709c2bbe80626ecc819143013cc820fa49ca5e363620ee20a8b15a3e3daf
url: "https://pub.dev"
source: hosted
version: "2.2.2"
version: "2.2.1"
shared_preferences_windows:
dependency: transitive
description:
Expand Down Expand Up @@ -464,10 +464,10 @@ packages:
dependency: "direct main"
description:
name: sqlite_async
sha256: "91f454cddc85617bea2c7c1544ff386887d0d2cf0ecdb3599015c05cc141ff4d"
sha256: "7a68036b2fc2fae5fc0efbc6bd436deb79e39090282348d979e6a7c38c8d067e"
url: "https://pub.dev"
source: hosted
version: "0.7.0-alpha.1"
version: "0.7.0-alpha.2"
stack_trace:
dependency: transitive
description:
Expand Down Expand Up @@ -504,18 +504,18 @@ packages:
dependency: transitive
description:
name: supabase
sha256: "4bce9c49f264f4cd44b4ffc895647af2dca0c40125c169045be9f708fd2a2a40"
sha256: f431753d2a4cb9dacd72c7378154f806c2b2cef23859bd9cee1add23821e874d
url: "https://pub.dev"
source: hosted
version: "2.0.7"
version: "2.0.8"
supabase_flutter:
dependency: "direct main"
description:
name: supabase_flutter
sha256: "5ef71289c380b6429216e941c69971c75eaab50d67fd7b540f6c1f6ebfc00ed7"
sha256: "30e966b89ee61dc9de845e2d7e1c60967b3189c410d105c6d42f09b6259f4cb6"
url: "https://pub.dev"
source: hosted
version: "2.3.3"
version: "2.3.4"
term_glyph:
dependency: transitive
description:
Expand Down Expand Up @@ -592,18 +592,18 @@ packages:
dependency: transitive
description:
name: url_launcher_platform_interface
sha256: a932c3a8082e118f80a475ce692fde89dc20fddb24c57360b96bc56f7035de1f
sha256: "552f8a1e663569be95a8190206a38187b531910283c3e982193e4f2733f01029"
url: "https://pub.dev"
source: hosted
version: "2.3.1"
version: "2.3.2"
url_launcher_web:
dependency: transitive
description:
name: url_launcher_web
sha256: fff0932192afeedf63cdd50ecbb1bc825d31aed259f02bb8dba0f3b729a5e88b
sha256: "7fd2f55fe86cea2897b963e864dc01a7eb0719ecc65fcef4c1cc3d686d718bb2"
url: "https://pub.dev"
source: hosted
version: "2.2.3"
version: "2.2.0"
url_launcher_windows:
dependency: transitive
description:
Expand Down Expand Up @@ -670,4 +670,4 @@ packages:
version: "2.0.0"
sdks:
dart: ">=3.2.3 <4.0.0"
flutter: ">=3.16.0"
flutter: ">=3.13.0"
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.3.0-alpha.2
powersync: ^1.3.0-alpha.3
path_provider: ^2.1.1
supabase_flutter: ^2.0.2
path: ^1.8.3
logging: ^1.2.0
sqlite_async: ^0.7.0-alpha.1
sqlite_async: ^0.7.0-alpha.2
universal_io: ^2.2.2

dev_dependencies:
Expand Down
2 changes: 1 addition & 1 deletion demos/supabase-simple-chat/lib/pages/login_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class LoginPageState extends State<LoginPage> {
} catch (_) {
context.showErrorSnackBar(message: unexpectedErrorMessage);
}
if (mounted) {
if (context.mounted) {
setState(() {
_isLoading = true;
});
Expand Down
14 changes: 7 additions & 7 deletions demos/supabase-simple-chat/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ packages:
path: "../../packages/powersync"
relative: true
source: path
version: "1.3.0-alpha.1"
version: "1.3.0-alpha.2"
realtime_client:
dependency: transitive
description:
Expand Down Expand Up @@ -443,10 +443,10 @@ packages:
dependency: transitive
description:
name: shared_preferences_web
sha256: "7b15ffb9387ea3e237bb7a66b8a23d2147663d391cafc5c8f37b2e7b4bde5d21"
sha256: d762709c2bbe80626ecc819143013cc820fa49ca5e363620ee20a8b15a3e3daf
url: "https://pub.dev"
source: hosted
version: "2.2.2"
version: "2.2.1"
shared_preferences_windows:
dependency: transitive
description:
Expand Down Expand Up @@ -656,18 +656,18 @@ packages:
dependency: transitive
description:
name: url_launcher_platform_interface
sha256: a932c3a8082e118f80a475ce692fde89dc20fddb24c57360b96bc56f7035de1f
sha256: "552f8a1e663569be95a8190206a38187b531910283c3e982193e4f2733f01029"
url: "https://pub.dev"
source: hosted
version: "2.3.1"
version: "2.3.2"
url_launcher_web:
dependency: transitive
description:
name: url_launcher_web
sha256: fff0932192afeedf63cdd50ecbb1bc825d31aed259f02bb8dba0f3b729a5e88b
sha256: "7fd2f55fe86cea2897b963e864dc01a7eb0719ecc65fcef4c1cc3d686d718bb2"
url: "https://pub.dev"
source: hosted
version: "2.2.3"
version: "2.2.0"
url_launcher_windows:
dependency: transitive
description:
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: ^1.10.25
timeago: ^3.6.0
powersync: ^1.3.0-alpha.2
powersync: ^1.3.0-alpha.3
path_provider: ^2.1.1
path: ^1.8.3
logging: ^1.2.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
97C146E61CF9000F007C117D /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 1430;
LastUpgradeCheck = 1510;
ORGANIZATIONNAME = "";
TargetAttributes = {
97C146ED1CF9000F007C117D = {
Expand Down
Loading