Skip to content

fix(adapter-sql-js): Updated sql-js upstream version to support rust sync implementation #681

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 1 commit into from
Jul 31, 2025

Conversation

Chriztiaan
Copy link
Contributor

Small dependency bump for adapter-sql-js package.
See upstream change powersync-ja/powersync-sql-js#5

Copy link

changeset-bot bot commented Jul 31, 2025

🦋 Changeset detected

Latest commit: 69a160a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@powersync/adapter-sql-js Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@Chriztiaan Chriztiaan marked this pull request as ready for review July 31, 2025 14:18
@Chriztiaan Chriztiaan merged commit 8cc3335 into main Jul 31, 2025
9 checks passed
@Chriztiaan Chriztiaan deleted the fix/rust-sync-sql-js branch July 31, 2025 14:23
@rkistner
Copy link
Contributor

So if I understand correctly, the issue is that we're passing an ArrayBuffer, while upstream sql-js only supports Uint8Array?

This probably comes up because we're explicitly converting from Uint8Array to ArrayBuffer here, and now we're effectively converting back to Uint8Array. I wonder if we should modify that check, to keep the Uint8Array as-is for anything other than RNQS? It likely also affects our op-sqlite implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants