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

Package maintenance, prepare encryption and dart2wasm support #82

Merged
merged 9 commits into from
Jan 27, 2025

Conversation

simolus3
Copy link
Contributor

@simolus3 simolus3 commented Jan 24, 2025

First, I've moved the analysis_options.yaml file down to the individual packages (I didn't get analysis errors otherwise) and I've fixed our code to be compliant with rules from package:lints. I've also removed the dcli dev-dependency which was preventing us from upgrading some transitive dependencies. To find a temporary directory for native Dart tests, I've migrated to test_descriptor which is kind of the standard Dart package for that (and avoids importing implementation details of the test package).

In the pending version of sqlite3_web, I've added an additional parameter to the database controller when opening databases. It allows clients with a custom controller to send custom options. We'll be able to use that in powersync_sqlcipher to change the open procedure so that the wrapping multipleciphers-$vfs VFS is used instead of the original Dart $vfs when encryption is enabled.
The new version of sqlite3_web will also use a new serialization format for statement parameters and result sets that is more efficient than jsify() / dartify() (but it is backwards-compatible with that, we can upgrade with existing workers). It also unblocks dart2wasm support.

Copy link
Contributor

@rkistner rkistner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm happy with the changes here

@simolus3 simolus3 marked this pull request as ready for review January 27, 2025 11:20
Copy link
Contributor

@stevensJourney stevensJourney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm also happy with the changes

@simolus3 simolus3 merged commit 1c039a3 into main Jan 27, 2025
7 checks passed
@simolus3 simolus3 deleted the encryption-support branch January 27, 2025 15:18
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