Skip to content
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

Bump versions #149

Merged
merged 8 commits into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from 6 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
4 changes: 4 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ jobs:
echo "PACKAGE_NAME=$PACKAGE_NAME" >> $GITHUB_ENV
echo "Package name: $PACKAGE_NAME"

- name: Update gitignore
run: |
sed -i '' -e 's/*.so/!*.so/g; s/*.dll/!*.dll/g; s/*.dylib/!*.dylib/g' packages/powersync_flutter_libs/.gitignore

mugikhan marked this conversation as resolved.
Show resolved Hide resolved
- name: Publish packages dry run
run: |
melos publish --yes --scope=$PACKAGE_NAME
Expand Down
31 changes: 31 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,37 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## 2024-08-21

### Changes

---

Packages with breaking changes:

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

- **CHORE**: Update dependency powersync_flutter_libs

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

- Update a dependency to the latest release.

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

- **FIX**: Prebundling downloaded core binaries


## 2024-08-19

### Changes
Expand Down
4 changes: 2 additions & 2 deletions demos/django-todolist/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -310,14 +310,14 @@ packages:
path: "../../packages/powersync"
relative: true
source: path
version: "1.6.5"
version: "1.6.6"
powersync_flutter_libs:
dependency: "direct overridden"
description:
path: "../../packages/powersync_flutter_libs"
relative: true
source: path
version: "0.2.0"
version: "0.2.1"
pub_semver:
dependency: transitive
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.5
powersync: ^1.6.6
path_provider: ^2.1.1
path: ^1.8.3
logging: ^1.2.0
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 @@ -366,14 +366,14 @@ packages:
path: "../../packages/powersync"
relative: true
source: path
version: "1.6.5"
version: "1.6.6"
powersync_flutter_libs:
dependency: "direct overridden"
description:
path: "../../packages/powersync_flutter_libs"
relative: true
source: path
version: "0.2.0"
version: "0.2.1"
pub_semver:
dependency: transitive
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.5
powersync: ^1.6.6
path_provider: ^2.1.1
supabase_flutter: ^2.0.2
path: ^1.8.3
Expand Down
4 changes: 2 additions & 2 deletions demos/supabase-edge-function-auth/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -366,14 +366,14 @@ packages:
path: "../../packages/powersync"
relative: true
source: path
version: "1.6.5"
version: "1.6.6"
powersync_flutter_libs:
dependency: "direct overridden"
description:
path: "../../packages/powersync_flutter_libs"
relative: true
source: path
version: "0.2.0"
version: "0.2.1"
pub_semver:
dependency: transitive
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.5
powersync: ^1.6.6
path_provider: ^2.1.1
supabase_flutter: ^2.0.2
path: ^1.8.3
Expand Down
4 changes: 2 additions & 2 deletions demos/supabase-simple-chat/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -382,14 +382,14 @@ packages:
path: "../../packages/powersync"
relative: true
source: path
version: "1.6.5"
version: "1.6.6"
powersync_flutter_libs:
dependency: "direct overridden"
description:
path: "../../packages/powersync_flutter_libs"
relative: true
source: path
version: "0.2.0"
version: "0.2.1"
pub_semver:
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: ^2.0.2
timeago: ^3.6.0
powersync: ^1.6.5
powersync: ^1.6.6
path_provider: ^2.1.1
path: ^1.8.3
logging: ^1.2.0
Expand Down
6 changes: 3 additions & 3 deletions demos/supabase-todolist-drift/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -686,21 +686,21 @@ packages:
path: "../../packages/powersync"
relative: true
source: path
version: "1.6.5"
version: "1.6.6"
powersync_attachments_helper:
dependency: "direct main"
description:
path: "../../packages/powersync_attachments_helper"
relative: true
source: path
version: "0.6.3+2"
version: "0.6.4"
powersync_flutter_libs:
dependency: "direct overridden"
description:
path: "../../packages/powersync_flutter_libs"
relative: true
source: path
version: "0.2.0"
version: "0.2.1"
pub_semver:
dependency: transitive
description:
Expand Down
4 changes: 2 additions & 2 deletions demos/supabase-todolist-drift/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ environment:
dependencies:
flutter:
sdk: flutter
powersync_attachments_helper: ^0.6.3+2
powersync: ^1.6.5
powersync_attachments_helper: ^0.6.4
powersync: ^1.6.6
path_provider: ^2.1.1
supabase_flutter: ^2.0.1
path: ^1.8.3
Expand Down
6 changes: 3 additions & 3 deletions demos/supabase-todolist/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -470,21 +470,21 @@ packages:
path: "../../packages/powersync"
relative: true
source: path
version: "1.6.5"
version: "1.6.6"
powersync_attachments_helper:
dependency: "direct main"
description:
path: "../../packages/powersync_attachments_helper"
relative: true
source: path
version: "0.6.3+2"
version: "0.6.4"
powersync_flutter_libs:
dependency: "direct overridden"
description:
path: "../../packages/powersync_flutter_libs"
relative: true
source: path
version: "0.2.0"
version: "0.2.1"
pub_semver:
dependency: transitive
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.3+2
powersync: ^1.6.5
powersync_attachments_helper: ^0.6.4
powersync: ^1.6.6
path_provider: ^2.1.1
supabase_flutter: ^2.0.1
path: ^1.8.3
Expand Down
4 changes: 2 additions & 2 deletions melos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ command:
noPrivate: true
publish:
hooks:
pre: sh tool/download_binaries.sh v0.1.8 # Download latest core binaries when publishing
pre: dart ./scripts/download_core_binary_demos.dart # Download latest core binaries when publishing
packageFilters:
noPrivate: true

Expand All @@ -25,7 +25,7 @@ scripts:
description: Download SQLite3 WASM for demos
run: |
melos bootstrap && melos prepare:assets && dart ./scripts/compile_webworker.dart && dart ./scripts/init_powersync_core_binary.dart
melos prepare:demos
dart ./scripts/download_core_binary_demos.dart && melos prepare:demos

prepare:demos:
description: Download SQLite3 wasm for demos
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.6

- **CHORE**: Update dependency powersync_flutter_libs

## 1.6.5

- **CHORE**: Update dependency `powersync_flutter_libs`
Expand Down
4 changes: 2 additions & 2 deletions packages/powersync/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: powersync
version: 1.6.5
version: 1.6.6
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 All @@ -13,7 +13,7 @@ dependencies:
sqlite_async: ^0.8.1
universal_io: ^2.0.0
sqlite3_flutter_libs: ^0.5.23
powersync_flutter_libs: ^0.2.0
powersync_flutter_libs: ^0.2.1
meta: ^1.0.0
http: ^1.1.0
uuid: ^4.2.0
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.4

- Update a dependency to the latest release.

## 0.6.3+2

- 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.3+2
version: 0.6.4
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.5
powersync: ^1.6.6
logging: ^1.2.0
sqlite_async: ^0.8.1
path_provider: ^2.0.13
Expand Down
2 changes: 1 addition & 1 deletion packages/powersync_flutter_libs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ build/
*.so
*.a
*.dylib
*.dll
*.dll
4 changes: 4 additions & 0 deletions packages/powersync_flutter_libs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.2.1

- **FIX**: Prebundling downloaded core binaries

## 0.2.0

- **FEAT**: Prebundle downloaded core binaries
Expand Down
2 changes: 1 addition & 1 deletion packages/powersync_flutter_libs/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: powersync_flutter_libs
description: PowerSync core binaries for the PowerSync Flutter SDK. Needs to be included for Flutter apps.
version: 0.2.0
version: 0.2.1
repository: https://github.com/powersync-ja/powersync.dart
homepage: https://www.powersync.com/

Expand Down
37 changes: 37 additions & 0 deletions scripts/download_core_binary_demos.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/// Downloads the powersync-core dynamic library to run the demos using melos
/// This is only necessary in the monorepo setup
import 'dart:io';

final coreUrl =
'https://github.com/powersync-ja/powersync-sqlite-core/releases/download/v0.1.8';

void main() async {
final powersyncLibsLinuxPath = "packages/powersync_flutter_libs/linux";
final powersyncLibsWindowsPath = "packages/powersync_flutter_libs/windows";

final linuxArm64FileName = "libpowersync_aarch64.so";
final linuxX64FileName = "libpowersync_x64.so";
final windowsX64FileName = "powersync_x64.dll";

// Download dynamic library
await downloadFile("$coreUrl/$linuxArm64FileName",
"$powersyncLibsLinuxPath/$linuxArm64FileName");
await downloadFile("$coreUrl/$linuxX64FileName",
"$powersyncLibsLinuxPath/$linuxX64FileName");
await downloadFile("$coreUrl/$windowsX64FileName",
"$powersyncLibsWindowsPath/$windowsX64FileName");
}

Future<void> downloadFile(String url, String savePath) async {
print('Downloading: $url');
var httpClient = HttpClient();
var request = await httpClient.getUrl(Uri.parse(url));
var response = await request.close();
if (response.statusCode == HttpStatus.ok) {
var file = File(savePath);
await response.pipe(file.openWrite());
} else {
print(
'Failed to download file: ${response.statusCode} ${response.reasonPhrase}');
}
}
12 changes: 0 additions & 12 deletions tool/download_binaries.sh

This file was deleted.

Loading