Skip to content

Commit a93452d

Browse files
authored
Merge branch 'main' into feat/add-time-based-sync-demo
2 parents e3b49ba + 2e92c33 commit a93452d

127 files changed

Lines changed: 3993 additions & 187 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"access": "restricted",
88
"baseBranch": "main",
99
"updateInternalDependencies": "patch",
10-
"ignore": ["!@powersync/*"],
10+
"ignore": ["import-tests", "powersynctests"],
1111
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
1212
"onlyUpdatePeerDependentsWhenOutOfRange": true,
1313
"updateInternalDependents": "out-of-range"

.changeset/fair-toes-dance.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

.changeset/mighty-rabbits-sort.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/nice-clocks-smash.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/short-moons-hug.md

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: release
2+
on:
3+
push:
4+
tags:
5+
- tauri-plugin-powersync@[0-9]+.[0-9]+.[0-9]+
6+
7+
jobs:
8+
publish_crates_io:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
id-token: write # Required for OIDC token exchange
12+
steps:
13+
- uses: actions/checkout@v6
14+
- uses: rust-lang/crates-io-auth-action@v1
15+
id: auth
16+
17+
- name: Publish powersync crate
18+
run: cargo publish
19+
working-directory: powersync
20+
env:
21+
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}

.github/workflows/test-tauri.yaml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Tauri Integration tests
2+
on:
3+
pull_request: # triggered for any PR updates (including new pushes to PR branch)
4+
5+
jobs:
6+
check-changes:
7+
name: Check for relevant changes
8+
runs-on: ubuntu-latest
9+
outputs:
10+
should_run: ${{ steps.check.outputs.should_run }}
11+
steps:
12+
- uses: actions/checkout@v6
13+
with:
14+
fetch-depth: 0
15+
- name: Check for changes
16+
id: check
17+
run: |
18+
git fetch origin ${{ github.base_ref }}
19+
if git diff --quiet origin/${{ github.base_ref }} -- packages/common packages/tauri; then
20+
echo "should_run=false" >> $GITHUB_OUTPUT
21+
else
22+
echo "should_run=true" >> $GITHUB_OUTPUT
23+
fi
24+
25+
test-tauri:
26+
name: Tauri integration tests macOS
27+
runs-on: macos-latest
28+
needs: check-changes
29+
if: needs.check-changes.outputs.should_run == 'true'
30+
timeout-minutes: 15
31+
32+
steps:
33+
- uses: actions/checkout@v6
34+
- name: Enable Corepack
35+
run: corepack enable
36+
- name: Setup Node.js
37+
uses: actions/setup-node@v6
38+
with:
39+
node-version-file: '.nvmrc'
40+
cache: pnpm
41+
42+
- name: Install dependencies
43+
run: pnpm install
44+
- name: Build
45+
run: pnpm run -r --filter "@powersync/tauri-plugin..." build
46+
- name: Compile test runner
47+
run: cargo build -p test-runner
48+
- name: Test
49+
working-directory: packages/tauri
50+
run: pnpm test

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,7 @@ demos/**/.pnpmfile.cjs
2626
demos/**/.branches
2727
demos/**/.temp
2828

29+
Cargo.lock
30+
target/
31+
# Large files generated by Tauri
32+
**/gen/schemas/

Cargo.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Having a top-level Cargo.toml makes it easier to use rust-analyzer in VS Code when opening
2+
# this project.
3+
4+
[workspace]
5+
resolver = "3"
6+
members = [
7+
"packages/tauri",
8+
"packages/tauri/test-runner",
9+
"demos/tauri-app/src-tauri"
10+
]
11+
12+
[workspace.package]
13+
repository = "https://github.com/powersync-ja/powersync-js"

demos/angular-supabase-todolist/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"@angular/router": "^19.2.4",
2424
"@angular/service-worker": "^19.2.4",
2525
"@journeyapps/wa-sqlite": "^1.5.0",
26-
"@powersync/web": "^1.37.0",
26+
"@powersync/web": "^1.37.1",
2727
"@supabase/supabase-js": "^2.44.4",
2828
"rxjs": "~7.8.1",
2929
"tslib": "^2.6.3",

0 commit comments

Comments
 (0)