Skip to content

Commit

Permalink
Merge pull request #129 from powersync-ja/chore/bump-version-beta
Browse files Browse the repository at this point in the history
Bump versions for web support
  • Loading branch information
mugikhan authored Jul 25, 2024
2 parents 54f7a69 + 6c3f87c commit bf297bf
Show file tree
Hide file tree
Showing 17 changed files with 59 additions and 27 deletions.
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,33 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## 2024-07-25

### Changes

---

Packages with breaking changes:

- There are no breaking changes in this release.

Packages with other changes:

- [`powersync` - `v1.6.0`](#powersync---v160)
- [`powersync_attachments_helper` - `v0.6.0`](#powersync_attachments_helper---v060)

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

---

#### `powersync` - `v1.6.0`

- `powersync` web support is now included in the standard release but remains in alpha. Web support may have some limitations or bugs.

## 2024-07-18

### Changes
Expand Down
2 changes: 1 addition & 1 deletion demos/django-todolist/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ packages:
path: "../../packages/powersync"
relative: true
source: path
version: "1.6.0-alpha.1"
version: "1.6.0"
powersync_flutter_libs:
dependency: "direct overridden"
description:
Expand Down
2 changes: 1 addition & 1 deletion demos/django-todolist/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ environment:
dependencies:
flutter:
sdk: flutter
powersync: ^1.6.0-alpha.1
powersync: ^1.6.0
path_provider: ^2.1.1
path: ^1.8.3
logging: ^1.2.0
Expand Down
2 changes: 1 addition & 1 deletion demos/supabase-anonymous-auth/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ packages:
path: "../../packages/powersync"
relative: true
source: path
version: "1.6.0-alpha.1"
version: "1.6.0"
powersync_flutter_libs:
dependency: "direct overridden"
description:
Expand Down
2 changes: 1 addition & 1 deletion demos/supabase-anonymous-auth/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ dependencies:
flutter:
sdk: flutter

powersync: ^1.6.0-alpha.1
powersync: ^1.6.0
path_provider: ^2.1.1
supabase_flutter: ^2.0.2
path: ^1.8.3
Expand Down
2 changes: 1 addition & 1 deletion demos/supabase-edge-function-auth/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ packages:
path: "../../packages/powersync"
relative: true
source: path
version: "1.6.0-alpha.1"
version: "1.6.0"
powersync_flutter_libs:
dependency: "direct overridden"
description:
Expand Down
2 changes: 1 addition & 1 deletion demos/supabase-edge-function-auth/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ dependencies:
flutter:
sdk: flutter

powersync: ^1.6.0-alpha.1
powersync: ^1.6.0
path_provider: ^2.1.1
supabase_flutter: ^2.0.2
path: ^1.8.3
Expand Down
2 changes: 1 addition & 1 deletion demos/supabase-simple-chat/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ packages:
path: "../../packages/powersync"
relative: true
source: path
version: "1.6.0-alpha.1"
version: "1.6.0"
powersync_flutter_libs:
dependency: "direct overridden"
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: ^2.0.2
timeago: ^3.6.0
powersync: ^1.6.0-alpha.1
powersync: ^1.6.0
path_provider: ^2.1.1
path: ^1.8.3
logging: ^1.2.0
Expand Down
6 changes: 3 additions & 3 deletions demos/supabase-todolist/macos/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS:
app_links: 10e0a0ab602ffaf34d142cd4862f29d34b303b2a
FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24
path_provider_foundation: 3784922295ac71e43754bd15e0653ccfd36a147c
path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46
powersync-sqlite-core: 4c38c8f470f6dca61346789fd5436a6826d1e3dd
powersync_flutter_libs: 1eb1c6790a72afe08e68d4cc489d71ab61da32ee
shared_preferences_foundation: b4c3b4cddf1c21f02770737f147a3f5da9d39695
shared_preferences_foundation: fcdcbc04712aee1108ac7fda236f363274528f78
sqlite3: 292c3e1bfe89f64e51ea7fc7dab9182a017c8630
sqlite3_flutter_libs: 5ca46c1a04eddfbeeb5b16566164aa7ad1616e7b
url_launcher_macos: d2691c7dd33ed713bf3544850a623080ec693d95
url_launcher_macos: 5f437abeda8c85500ceb03f5c1938a8c5a705399

PODFILE CHECKSUM: 236401fc2c932af29a9fcf0e97baeeb2d750d367

Expand Down
4 changes: 2 additions & 2 deletions demos/supabase-todolist/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -454,14 +454,14 @@ packages:
path: "../../packages/powersync"
relative: true
source: path
version: "1.6.0-alpha.1"
version: "1.6.0"
powersync_attachments_helper:
dependency: "direct main"
description:
path: "../../packages/powersync_attachments_helper"
relative: true
source: path
version: "0.6.0-alpha.1"
version: "0.6.0"
powersync_flutter_libs:
dependency: "direct overridden"
description:
Expand Down
4 changes: 2 additions & 2 deletions demos/supabase-todolist/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ environment:
dependencies:
flutter:
sdk: flutter
powersync_attachments_helper: ^0.6.0-alpha.1
powersync: ^1.6.0-alpha.1
powersync_attachments_helper: ^0.6.0
powersync: ^1.6.0
path_provider: ^2.1.1
supabase_flutter: ^2.0.1
path: ^1.8.3
Expand Down
4 changes: 4 additions & 0 deletions packages/powersync/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.6.0

- Web support is now included in the standard release but remains in alpha. Web support may have some limitations or bugs.

## 1.6.0-alpha.1

- Added support for client parameters when connecting.
Expand Down
15 changes: 6 additions & 9 deletions packages/powersync/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ Our [full SDK reference](https://docs.powersync.com/client-sdk-references/flutte

## **_ Web support - Open alpha _**

Web support is currently in an alpha release. This Readme has been updated to reflect updates that are currently only relevant to this alpha release.
Web support in version 1.6.0 is currently in its alpha stage. This README has been updated to reflect changes relevant to this alpha release.

### Demo app

The easiest way to test out the alpha is to run the [Supabase Todo-List](./demos/supabase-todolist) demo app:

1. Checkout [this repo's](https://github.com/powersync-ja/powersync.dart/tree/alpha-release) `alpha_release` branch.
1. Checkout [this repo's](https://github.com/powersync-ja/powersync.dart/tree/master) `master` branch.

- Note: If you are an existing user updating to the latest code after a git pull, run `melos exec 'flutter pub upgrade'` in the repo's root and make sure it succeeds.

Expand All @@ -39,24 +39,21 @@ The easiest way to test out the alpha is to run the [Supabase Todo-List](./demos

### Installing PowerSync in your own project

Install the latest alpha version of the package, for example:
Install the latest version of the package, for example:

```
flutter pub add powersync:'^1.3.0-alpha.1'
flutter pub add powersync:'^1.6.0'
```

The latest prerelease version can be found [here](https://pub.dev/packages/powersync/versions).
The latest version can be found [here](https://pub.dev/packages/powersync/versions).

### Additional config

Web support requires `sqlite3.wasm` and `powersync_db.worker.js` assets to be served from the web application. This is typically achieved by placing the files in the project `web` directory.

- `sqlite3.wasm` can be found [here](https://github.com/powersync-ja/sqlite3.dart/releases/download/v0.1.0/sqlite3.wasm)
- `sqlite3.wasm` can be found [here](https://github.com/powersync-ja/sqlite3.dart/releases)
- `powersync_db.worker.js` can be found in the repo's [releases](https://github.com/powersync-ja/powersync.dart/releases) page.

Currently the Drift SQLite library is used under the hood for DB connections. See [here](https://drift.simonbinder.eu/web/#getting-started) for detailed compatibility
and setup notes.

The same code is used for initializing native and web `PowerSyncDatabase` clients.

### Limitations
Expand Down
2 changes: 1 addition & 1 deletion packages/powersync/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: powersync
version: 1.6.0-alpha.1
version: 1.6.0
homepage: https://powersync.com
repository: https://github.com/powersync-ja/powersync.dart
description: PowerSync Flutter SDK - keep PostgreSQL databases in sync with on-device SQLite databases.
Expand Down
4 changes: 4 additions & 0 deletions packages/powersync_attachments_helper/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.6.0

- Update a dependency to the latest release.

## 0.6.0-alpha.1

- Update a dependency to the latest release.
Expand Down
4 changes: 2 additions & 2 deletions packages/powersync_attachments_helper/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: powersync_attachments_helper
description: A helper library for handling attachments when using PowerSync.
version: 0.6.0-alpha.1
version: 0.6.0
repository: https://github.com/powersync-ja/powersync.dart
homepage: https://www.powersync.com/
environment:
Expand All @@ -10,7 +10,7 @@ dependencies:
flutter:
sdk: flutter

powersync: ^1.6.0-alpha.1
powersync: ^1.6.0
logging: ^1.2.0
sqlite_async: ^0.8.1
path_provider: ^2.0.13
Expand Down

0 comments on commit bf297bf

Please sign in to comment.