Skip to content

Static + Dynamic PowerSync Builds #19

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 362 commits into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
362 commits
Select commit Hold shift + click to select a range
97f9a5f
Work around Chrome directory name bug.
shoestringresearch Feb 2, 2024
d7e5568
Improve demo-worker.js searchParams configurability.
shoestringresearch Feb 2, 2024
bacb22f
Add AccessHandlePoolVFS.createPersistentDatabaseFile().
shoestringresearch Feb 3, 2024
0b6e9b8
Remove open flags from IndexedDB metadata.
shoestringresearch Feb 3, 2024
abc672b
Upgrade old IDBBatchAtomicVFS databases.
shoestringresearch Feb 3, 2024
1d3ffbc
AccessHandlePoolVFS doesn't need to pre-create a -floor file.
shoestringresearch Feb 3, 2024
0201e02
Update FLOOR.
shoestringresearch Feb 3, 2024
ea22a3f
Implement create_function().
shoestringresearch Feb 4, 2024
4366731
Update doc.
shoestringresearch Feb 4, 2024
587a5af
Refactor callbacks to separate .c/.js files.
shoestringresearch Feb 4, 2024
4eaa8b2
Add progress handler.
shoestringresearch Feb 4, 2024
9a63f61
Wrap libvfs.js and libfunction.js in IIFE.
shoestringresearch Feb 4, 2024
1935205
Add libauthorizer.{c,js}.
shoestringresearch Feb 4, 2024
649ac77
Minor cleanup.
shoestringresearch Feb 4, 2024
d5c471a
Guarantee freeing open_v2() filename.
shoestringresearch Feb 7, 2024
2d6ab41
Rewrite statements() convenience function.
shoestringresearch Feb 7, 2024
c0e4550
Remove str and prepare_v2 functions.
shoestringresearch Feb 7, 2024
22eb7d4
Add options argument to statements().
shoestringresearch Feb 7, 2024
3697ae3
Fix statements() for WebAssembly memory growth.
shoestringresearch Feb 7, 2024
dbe7f14
Change statements() encoding back to UTF-8.
shoestringresearch Feb 7, 2024
c20cf28
Reimplement createUTF8() with TextEncoder.
shoestringresearch Feb 7, 2024
7efcc9b
Add contention demo.
shoestringresearch Feb 10, 2024
a757d82
Remove obsolete demos.
shoestringresearch Feb 10, 2024
507eda5
Update file demo.
shoestringresearch Feb 10, 2024
a4dc38b
Minor type fix.
shoestringresearch Feb 10, 2024
8e4eabc
Tweak contention demo.
shoestringresearch Feb 10, 2024
6e9a0e0
Switch IDBBatchAtomicVFS to WebLocksShared.
shoestringresearch Feb 11, 2024
09d7dbb
Reimplement AccessHandlePoolVFS with retry ops.
shoestringresearch Feb 16, 2024
b6fa913
Remove task release from contention worker.
shoestringresearch Feb 17, 2024
6423caf
Tweaks for AccessHandlePoolVFS.
shoestringresearch Feb 17, 2024
69c95bc
Fix OriginPrivateVFS race.
shoestringresearch Feb 17, 2024
dd42596
Restore WebLocksShared on OriginPrivateVFS.
shoestringresearch Feb 18, 2024
b5ee4ec
Improve UnsafeHandlePoolVFS logging.
shoestringresearch Feb 18, 2024
16bae9f
Remove AccessHandlePoolVFS unnecessary state.
shoestringresearch Feb 18, 2024
783c99e
Update IDBBatchAtomicVFS logging.
shoestringresearch Feb 18, 2024
a4e614e
Update README.md
rhashimoto Feb 18, 2024
68cfe9f
Checkpoint for PermutedVFS.
shoestringresearch Feb 20, 2024
e32c145
Reclaim unused offsets.
shoestringresearch Feb 21, 2024
d38e2b2
Add PermutedVFS to contention demo.
shoestringresearch Feb 21, 2024
e93764b
Refactor pending and reclaiming processing.
shoestringresearch Feb 21, 2024
c9cd240
Fix contention demo race condition bugs.
shoestringresearch Feb 21, 2024
7a78f5b
Update FLOOR.
shoestringresearch Feb 29, 2024
1be3b46
Add flush to PermutedVFS.
shoestringresearch Feb 29, 2024
a4c3651
Abandon PermutedVFS for now.
shoestringresearch Apr 2, 2024
f85ba74
Attempt to fix GitHub Actions.
shoestringresearch Apr 2, 2024
17ec15f
Rename to OPFSCoopSyncVFS.
shoestringresearch May 1, 2024
d91d5eb
Port the original AccessHandlePoolVFS.
shoestringresearch May 2, 2024
071e865
Add AccessHandlePoolVFS tests.
shoestringresearch May 2, 2024
f91cd7b
Update dependencies per dependabot.
shoestringresearch May 2, 2024
70931a9
Merge pull request #170 from rhashimoto/dependabot
rhashimoto May 2, 2024
0549208
Merge branch 'master' into dev
shoestringresearch May 2, 2024
92f2694
Update README.md
rhashimoto May 2, 2024
d68f66f
Change GitHub Actions CI to node 20.
shoestringresearch May 2, 2024
9d5e3a2
Rework TestContext usage.
shoestringresearch May 3, 2024
98e8269
Add crash recovery test.
shoestringresearch May 3, 2024
d3ebdf4
Remove module (vtable) API.
shoestringresearch May 3, 2024
fcd8bec
Remove unused debugging code.
shoestringresearch May 3, 2024
66f2f0f
Add unscoped statement test.
shoestringresearch May 3, 2024
7af7dc4
Add create_function() tests.
shoestringresearch May 3, 2024
27f6779
Add MemoryAsyncVFS test.
shoestringresearch May 4, 2024
6321d75
Test VFS short read.
shoestringresearch May 4, 2024
013eb6f
Improve delete on close test.
shoestringresearch May 4, 2024
7014ec7
Add contention test.
shoestringresearch May 4, 2024
f5b5ca4
Update README.md
rhashimoto May 4, 2024
f65fb1b
Remove UnsafeHandlePoolVFS.
shoestringresearch May 4, 2024
8f8ce16
Remove AHP contention demo.
shoestringresearch May 4, 2024
8957f5a
Fix hello demo.
shoestringresearch May 4, 2024
ab910f4
Update README.md
rhashimoto May 4, 2024
e22a6ee
Update README.md
rhashimoto May 5, 2024
a3930bf
Restrict journal_mode accepted settings.
shoestringresearch May 5, 2024
942f89f
Rename OriginPrivateVFS to OPFSAdaptiveVFS.
shoestringresearch May 5, 2024
c75a4b3
Fix create_function asynchronous test.
shoestringresearch May 5, 2024
ccba448
Test callbacks on Asyncify and JSPI builds.
shoestringresearch May 5, 2024
8f13d97
Add progress handler test.
shoestringresearch May 5, 2024
9dfdda2
Fix set_authorizer() with async function.
shoestringresearch May 5, 2024
bac53b4
Removed unused directory reference.
shoestringresearch May 5, 2024
956462b
Fix libprogress_progress_handler return type.
shoestringresearch May 5, 2024
6b45afc
Update minimum EMSDK version.
shoestringresearch May 5, 2024
95c6d7c
Rework WebLocksMixin.
shoestringresearch May 10, 2024
760cd55
Rename method FacadeVFS.getFilename().
shoestringresearch May 10, 2024
ef70abd
Add option for IDBBatchAtomicVFS IndexedDB name.
shoestringresearch May 10, 2024
c6b8bd2
Add WebLocksMixin tests.
shoestringresearch May 10, 2024
ff4c9e1
Update web-test-runner-jasmine.
shoestringresearch May 10, 2024
d1ef697
Prepare for write transaction hints.
shoestringresearch May 10, 2024
c352775
Implement "shared+hint" locking with PRAGMA write_hint.
shoestringresearch May 11, 2024
9341282
Fix IDBBatchAtomicVFS synchronization bug.
shoestringresearch May 12, 2024
e669da9
Checkpoint for write_hint demo.
shoestringresearch May 12, 2024
55748b8
Create OPFSPermutedVFS.
shoestringresearch May 18, 2024
be729ff
Implement OPFSPermutedVFS VACUUM.
shoestringresearch May 18, 2024
7abd2f2
Fix OPFSPermutedVFS off-by-1 bug.
shoestringresearch May 19, 2024
5a29f03
Add OPFSPermutedVFS checksums.
shoestringresearch May 19, 2024
f6c84a1
Add OPFSPermutedVFS flush PRAGMAs.
shoestringresearch May 19, 2024
6303fd4
Fix OPFSPermutedVFS pageSize initialization.
shoestringresearch May 19, 2024
c7c2600
Add OPFSPermutedVFS tests.
shoestringresearch May 19, 2024
ad0c0ba
Fix example imports for demos.
shoestringresearch May 19, 2024
3ef2756
Add OPFSPermutedVFS to API tests.
shoestringresearch May 19, 2024
3f6a633
Fix OPFSPermutedVFS zero pageSize bug.
shoestringresearch May 19, 2024
29ec532
Fix OPFSPermutedVFS VACUUM file truncation.
shoestringresearch May 19, 2024
69549ee
Fix OPFSPermutedVFS consistency checks.
shoestringresearch May 19, 2024
4a42d8c
Optimize OPFSPermutedVFS IDB transactions.
shoestringresearch May 20, 2024
09820b8
Fix OPFSPermutedVFS free list initialization.
shoestringresearch May 21, 2024
031a00e
Improve OPFSPermutedVFS.#prepareOverwrite() performance.
shoestringresearch May 21, 2024
4b47b2e
Remove FLOOR.
shoestringresearch May 21, 2024
b9da74f
Update README.md
rhashimoto May 21, 2024
5420dd2
Add WebLocksMixin shared+hint tests.
shoestringresearch May 22, 2024
23acef9
Use write hint in OPFSPermutedVFS.
shoestringresearch May 23, 2024
518be94
Limit OPFSPermutedVFS calls to getSize().
shoestringresearch May 23, 2024
a287839
Add OPFSPermutedVFS synchronous setting.
shoestringresearch May 24, 2024
b4dcd3e
Code polishing.
shoestringresearch May 25, 2024
8224660
Bump package version.
shoestringresearch May 25, 2024
eb6e625
Merge pull request #174 from rhashimoto/merge-dev
rhashimoto May 26, 2024
12d5c0d
Improve hello demo.
shoestringresearch May 26, 2024
0968478
Update README.md
rhashimoto May 26, 2024
5666020
Merge pull request #175 from rhashimoto/hello-demo
rhashimoto May 26, 2024
477c331
Update README.md
rhashimoto May 26, 2024
8b4be5e
Update dependencies per dependabot.
shoestringresearch May 26, 2024
4dc6a19
Merge pull request #176 from rhashimoto/dependabot
rhashimoto May 26, 2024
bf27888
Update README.md
rhashimoto May 27, 2024
0845f27
Move hello demo to its own directory.
shoestringresearch May 27, 2024
c02a70d
Update README.md
rhashimoto May 27, 2024
bcf51ad
Merge pull request #177 from rhashimoto/move-hello
rhashimoto May 28, 2024
65e27b0
Update README.md
rhashimoto May 28, 2024
f7a1cc4
Merge pull request #178 from rhashimoto/move-hello
rhashimoto May 28, 2024
2511b98
Fix hello for GitHub Pages.
shoestringresearch May 28, 2024
1af11e6
Merge pull request #179 from rhashimoto/fix-hello
rhashimoto May 28, 2024
ac2a9b5
Output HTML tables in hello demo.
shoestringresearch May 28, 2024
7975871
Merge pull request #180 from rhashimoto/hello-tables
rhashimoto May 28, 2024
eee23f5
remove sql_0001
AlexErrant May 29, 2024
a6d71b9
Merge pull request #181 from AlexErrant/remove-sql_0001
rhashimoto May 29, 2024
de2fa2b
Update README.md
rhashimoto May 29, 2024
a16ed34
Add IDBBatchAtomicVFS version upgrade test.
shoestringresearch Jun 1, 2024
73cc8ac
Remove obsolete tests.
shoestringresearch Jun 1, 2024
3ddeca1
Remove unused package dependency.
shoestringresearch Jun 2, 2024
7aabd2f
Improve IDBBatchAtomicVFS update test data.
shoestringresearch Jun 2, 2024
90047fd
Update README.md
rhashimoto Jun 3, 2024
456ca21
Remove obsolete karma configuration file.
shoestringresearch Jun 3, 2024
0842353
Update README.md
rhashimoto Jun 5, 2024
f5a2f44
Update README.md
rhashimoto Jun 5, 2024
304dba3
Fix WebLocksMixin.jCheckReservedLock bug.
shoestringresearch Jun 8, 2024
a05f863
Merge pull request #182 from rhashimoto/WebLocksMixin-bug
rhashimoto Jun 8, 2024
c3a81a1
Add OPFSAnyContextVFS.
shoestringresearch Jun 11, 2024
d248b79
Update README.md
rhashimoto Jun 11, 2024
2f7b024
Add OPFSAnyContextVFS to hello demo.
shoestringresearch Jun 11, 2024
8d7eda9
Merge pull request #183 from rhashimoto/OPFSAnyContextVFS
rhashimoto Jun 11, 2024
0df7366
Update README.md
rhashimoto Jun 13, 2024
7c6a438
Add JSPI feature detection credit comment.
shoestringresearch Jun 16, 2024
44cc640
Upgrade SQLite to 3.46.0.
shoestringresearch Jun 16, 2024
5c36915
Merge pull request #185 from rhashimoto/sqlite-3.46.0
rhashimoto Jun 16, 2024
c451743
Update package version.
shoestringresearch Jun 16, 2024
2f0163f
Create IDBMirrorVFS.
shoestringresearch Jun 18, 2024
ddd82eb
Merge pull request #188 from rhashimoto/IDBMirrorVFS
rhashimoto Jun 29, 2024
3ccf9d8
Avoid IndexedDB name conflict in demo.
shoestringresearch Jun 29, 2024
1508eae
Updates per dependabot.
shoestringresearch Jun 29, 2024
82b7dc0
Merge pull request #190 from rhashimoto/dependabot
rhashimoto Jun 29, 2024
ec56366
More dependabot updates.
shoestringresearch Jun 29, 2024
230c4c5
Merge pull request #191 from rhashimoto/dependabot
rhashimoto Jun 29, 2024
6b411ef
Update README.md
rhashimoto Jun 29, 2024
7a99adc
Update README.md
rhashimoto Jun 29, 2024
61b4298
Fix #192. Incorrect package.json.
shoestringresearch Jun 30, 2024
8193d40
Merge pull request #193 from rhashimoto/package
rhashimoto Jun 30, 2024
6e74c76
Set package version to 1.0.0.
shoestringresearch Jul 5, 2024
55bf0b6
Merge pull request #194 from rhashimoto/release-1.0.0
rhashimoto Jul 6, 2024
100eea7
Update README.md
rhashimoto Jul 18, 2024
e635e31
Add IDBMirrorVFS to hello demo.
shoestringresearch Jul 23, 2024
f1ab3d5
Merge pull request #195 from rhashimoto/update-hello-demo
rhashimoto Jul 23, 2024
bfd23c5
Defer IDBMirrorVFS and OPFSPermutedVFS broadcasts.
shoestringresearch Jul 26, 2024
7722688
Merge pull request #197 from rhashimoto/sync-broadcast
rhashimoto Jul 26, 2024
3d5aa74
Update README.md
rhashimoto Jul 26, 2024
001852b
Fix #187. Add clear_bindings().
shoestringresearch Jul 26, 2024
5fef539
Merge pull request #198 from rhashimoto/clear-bindings
rhashimoto Jul 26, 2024
fc5c264
Update package.json
rhashimoto Jul 28, 2024
f5092b5
Merge pull request #199 from rhashimoto/increment-version
rhashimoto Jul 29, 2024
b1cf757
Bump @75lb/deep-merge from 1.1.1 to 1.1.2
dependabot[bot] Aug 15, 2024
160e2fb
Merge pull request #203 from rhashimoto/dependabot/npm_and_yarn/75lb/…
rhashimoto Aug 15, 2024
2578a2f
chore: update from upstream
stevensJourney Sep 5, 2024
0af8134
chore: re-add table changes
stevensJourney Sep 5, 2024
351ba93
wip
stevensJourney Sep 5, 2024
de00ff0
wip
stevensJourney Sep 5, 2024
f0d4148
update makefile
stevensJourney Sep 5, 2024
55ee81d
update types
stevensJourney Sep 5, 2024
8573556
update core version
stevensJourney Sep 5, 2024
187d9cd
added changeset
stevensJourney Sep 5, 2024
df52bc1
better building on macos
stevensJourney Sep 5, 2024
24ec2c9
use node 20
stevensJourney Sep 5, 2024
2997cf2
restore last insert id method
stevensJourney Sep 5, 2024
dbce4ca
Expose sqlite3_update_hook
hazelmeow Sep 16, 2024
07d9b1c
Add test for update_hook
hazelmeow Sep 16, 2024
1cb66ff
Bump micromatch from 4.0.5 to 4.0.8
dependabot[bot] Sep 18, 2024
b782c68
Merge pull request #211 from rhashimoto/dependabot/npm_and_yarn/micro…
rhashimoto Sep 18, 2024
c3beaf6
Fix set_authorizer() callback arguments.
shoestringresearch Sep 19, 2024
60d42e8
Bump version.
shoestringresearch Sep 19, 2024
6a29e15
Merge pull request #212 from rhashimoto/fix-set-authorizer
rhashimoto Sep 19, 2024
46fe2bd
Build
hazelmeow Sep 20, 2024
a7e3676
Merge pull request #210 from hazelmeow/update-hook
rhashimoto Sep 23, 2024
aa49a25
Update CI Chrome version to 129.
rhashimoto Sep 23, 2024
c65c08c
Change minimum Emscripten version to 3.1.61.
shoestringresearch Sep 23, 2024
c1a458c
Bump package version.
shoestringresearch Sep 23, 2024
6364093
Merge pull request #213 from rhashimoto/jspi-updates
rhashimoto Sep 23, 2024
03dc36d
Rebuild docs.
shoestringresearch Sep 23, 2024
2083e2d
Update CI setup-emsdk.
rhashimoto Sep 23, 2024
b06ba8c
Merge pull request #214 from rhashimoto/setup-emsdk
rhashimoto Sep 23, 2024
4a2a07a
Bump rollup from 4.9.5 to 4.22.4
dependabot[bot] Sep 24, 2024
bfbbc6a
Merge pull request #216 from rhashimoto/dependabot/npm_and_yarn/rollu…
rhashimoto Sep 25, 2024
e744a11
initial wasm
stevensJourney Oct 9, 2024
e76b306
git yarn
stevensJourney Oct 9, 2024
ed143fe
remove module from makefile
stevensJourney Oct 9, 2024
f6e086f
cleanup
stevensJourney Oct 9, 2024
2b1fa4f
smaller wasm builds
stevensJourney Oct 9, 2024
c47206a
Use loadDynamicLibrary to load the extension.
rkistner Oct 10, 2024
6cb18df
Support debug and asyncify builds.
rkistner Oct 10, 2024
b0ae09e
download core with script
stevensJourney Oct 28, 2024
f9f5c84
updated changesets
stevensJourney Oct 28, 2024
f0e0e17
fix table update notifications use after free
stevensJourney Oct 28, 2024
d729feb
remove rust setup. Re-enable extension functions.
stevensJourney Oct 29, 2024
69a1fdd
update scripts
stevensJourney Oct 29, 2024
bf22a9d
add script to package
stevensJourney Oct 29, 2024
c0de762
make postinstall independant of package manager.
stevensJourney Oct 29, 2024
0b9e625
wip: add dynamic builds
stevensJourney Nov 1, 2024
91ab436
Fix README.md CI badge.
rhashimoto Nov 3, 2024
8a2d66f
Update to SQLite 3.47.0.
shoestringresearch Nov 3, 2024
8dab4a8
Bump package version.
shoestringresearch Nov 3, 2024
ca1c304
Merge pull request #224 from rhashimoto/update-sqlite
rhashimoto Nov 3, 2024
2b4439b
Expose commit hook
davidisaaclee Nov 3, 2024
65b1681
make
davidisaaclee Nov 3, 2024
16c074c
Add TypeScript declaration for commit_hook
davidisaaclee Nov 3, 2024
c5fd169
Add (failing) test ensuring commit_hook does not overwrite update_hook
davidisaaclee Nov 5, 2024
7d68b39
Stop sharing pAsyncFlags between hooks
davidisaaclee Nov 5, 2024
62a139d
make (emsdk 3.1.61)
davidisaaclee Nov 5, 2024
729af6f
Return explicit value from commit hook in test
davidisaaclee Nov 6, 2024
dc9b8a1
Fix spacing
davidisaaclee Nov 6, 2024
605100a
Merge pull request #225 from davidisaaclee/commit-hook
rhashimoto Nov 6, 2024
e2ab7c3
separate static and dynamic builds
stevensJourney Nov 7, 2024
24a090e
Merge remote-tracking branch 'origin/master' into powersync_builds
stevensJourney Nov 7, 2024
9be9bd6
Merge remote-tracking branch 'upstream/master' into powersync_builds
stevensJourney Nov 7, 2024
21636e4
remove custom table change methods. WA-SQLite now supports this
stevensJourney Nov 7, 2024
ba72068
fix sed
stevensJourney Nov 7, 2024
c8c91bf
fix circular issue
stevensJourney Nov 7, 2024
b4a9a9b
test
stevensJourney Nov 7, 2024
352f90d
add logs
stevensJourney Nov 7, 2024
5914530
test
stevensJourney Nov 7, 2024
956f537
test
stevensJourney Nov 7, 2024
414e12d
test
stevensJourney Nov 7, 2024
79384e2
cleanup
stevensJourney Nov 7, 2024
ab67ea2
fix ci
stevensJourney Nov 7, 2024
f05991f
fix: add download script
stevensJourney Nov 7, 2024
a3dd19b
cleanup
stevensJourney Nov 7, 2024
9c2b781
use internal static PowerSync initialization
stevensJourney Nov 18, 2024
66ddfc6
Merge remote-tracking branch 'origin/master' into powersync_builds
stevensJourney Nov 18, 2024
134e056
update to 0.3.6
stevensJourney Nov 18, 2024
f68e066
add logs
stevensJourney Nov 18, 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
5 changes: 5 additions & 0 deletions .changeset/funny-ghosts-attack.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@journeyapps/wa-sqlite': minor
---

Updated PowerSync core build steps by removing Git submodules. Added ability to load PowerSync extension as a dynamic side module.
5 changes: 5 additions & 0 deletions .changeset/perfect-radios-hunt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@journeyapps/wa-sqlite': major
---

Updated from upstream to v1.0.4
43 changes: 24 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,66 +5,71 @@ name: wa-sqlite CI

on:
push:
branches: ["master"]
branches: ['master']
pull_request:
branches: ["master"]
branches: ['master']

env:
EM_VERSION: 3.1.64
EM_CACHE_FOLDER: "emsdk-cache"
EM_CACHE_FOLDER: 'emsdk-cache'

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x]
node-version: [20.x]

steps:
- uses: actions/checkout@v4
with:
submodules: "recursive"
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
cache: 'npm'

- uses: browser-actions/setup-chrome@v1
id: setup-chrome
with:
chrome-version: 129
- run: |
${{ steps.setup-chrome.outputs.chrome-path }} --version

# Install yarn dependencies.
# Install yarn dependencies.
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
- uses: actions/cache@v4
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- run: yarn install
- name: Rust Setup
run: |
rustup toolchain install nightly-2024-05-18-x86_64-unknown-linux-gnu
rustup component add rust-src --toolchain nightly-2024-05-18-x86_64-unknown-linux-gnu

- name: Test with checked-in WASM files
run: yarn test --reporters progress
run: yarn test

# Install EMSDK
- name: Setup Emscripten
id: cache-system-libraries
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{env.EM_CACHE_FOLDER}}
key: ${{env.EM_VERSION}}-${{ runner.os }}
- uses: mymindstorm/setup-emsdk@v12
- uses: mymindstorm/setup-emsdk@v14
with:
version: ${{env.EM_VERSION}}
actions-cache-folder: ${{env.EM_CACHE_FOLDER}}
- run: emcc -v

# For some reason the Makefile fails to execute this with a "Permission denied"
# error on Github actions. Doing this here prevents the error.
- name: Download PowerSync Core
run: node scripts/download-core-build.js

- name: Test WASM build
run: |
make clean && make
yarn test --reporters progress
yarn test
2 changes: 1 addition & 1 deletion .github/workflows/dev-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Setup NodeJS
uses: actions/setup-node@v2
with:
node-version: 16
node-version: 20

- name: Setup Yarn
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Setup Node.js 16
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20

- name: Install Dependencies
run: yarn
Expand Down
7 changes: 4 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
!.yarn/versions
.pnp.*

# PowerSync Rust Core
libpowersync*.wasm
powersync-libs

/cache
/debug
/deps
/tmp

/dist-xl.zip
/dist-xl
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
[submodule "powersync-sqlite-core"]
path = powersync-sqlite-core
url = [email protected]:powersync-ja/powersync-sqlite-core.git
5 changes: 5 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"arcanis.vscode-zipfs"
]
}
8 changes: 8 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"search.exclude": {
"**/.yarn": true,
"**/.pnp.*": true
},
"typescript.tsdk": ".yarn/sdks/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true
}
768 changes: 0 additions & 768 deletions .yarn/releases/yarn-3.1.1.cjs

This file was deleted.

893 changes: 893 additions & 0 deletions .yarn/releases/yarn-4.0.2.cjs

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions .yarn/sdks/integrations.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# This file is automatically generated by @yarnpkg/sdks.
# Manual changes might be lost!

integrations:
- vscode
20 changes: 20 additions & 0 deletions .yarn/sdks/typescript/bin/tsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env node

const {existsSync} = require(`fs`);
const {createRequire} = require(`module`);
const {resolve} = require(`path`);

const relPnpApiPath = "../../../../.pnp.cjs";

const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = createRequire(absPnpApiPath);

if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require typescript/bin/tsc
require(absPnpApiPath).setup();
}
}

// Defer to the real typescript/bin/tsc your application uses
module.exports = absRequire(`typescript/bin/tsc`);
20 changes: 20 additions & 0 deletions .yarn/sdks/typescript/bin/tsserver
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env node

const {existsSync} = require(`fs`);
const {createRequire} = require(`module`);
const {resolve} = require(`path`);

const relPnpApiPath = "../../../../.pnp.cjs";

const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = createRequire(absPnpApiPath);

if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require typescript/bin/tsserver
require(absPnpApiPath).setup();
}
}

// Defer to the real typescript/bin/tsserver your application uses
module.exports = absRequire(`typescript/bin/tsserver`);
20 changes: 20 additions & 0 deletions .yarn/sdks/typescript/lib/tsc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env node

const {existsSync} = require(`fs`);
const {createRequire} = require(`module`);
const {resolve} = require(`path`);

const relPnpApiPath = "../../../../.pnp.cjs";

const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = createRequire(absPnpApiPath);

if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require typescript/lib/tsc.js
require(absPnpApiPath).setup();
}
}

// Defer to the real typescript/lib/tsc.js your application uses
module.exports = absRequire(`typescript/lib/tsc.js`);
Loading