Skip to content

[Wip Alpha] Web Support #61

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 62 commits into from
Jul 25, 2024
Merged

[Wip Alpha] Web Support #61

merged 62 commits into from
Jul 25, 2024

Conversation

stevensJourney
Copy link
Contributor

@stevensJourney stevensJourney commented Feb 14, 2024

This tracks the alpha release of Web support.

PR includes changes from:

stevensJourney and others added 30 commits February 14, 2024 16:28
Initial support for web platform
* chore: merge master

* chore: merge master

* chore: update package versions

---------

Co-authored-by: DominicGBauer <[email protected]>
Co-authored-by: DominicGBauer <[email protected]>
stevensJourney and others added 24 commits May 30, 2024 10:48
[Chore] Update Alpha With Master
* Check if abort future is completed before completing it

* Bump alpha version
* wip

* use latest

* update sqlite_async package updates

* disable FTS on web

* use sqlite_async for sqlite wasm

* cleanup

* Add recursive triggers for web (#101)

* Add recursive triggers for web

* Override openConnection to execute pragma statements

* Await pragma execute

* Update sqlite_async dependency to published version

---------

Co-authored-by: Mughees Khan <[email protected]>
* Readme update: Messaging/description of powersync

* remove duplicate word

* Load and use PowerSync rust extension (#92)

* Initial extension testing.

* Replace schema logic with rust extension.

* Use extension for saving operations.

* Auto tx_id.

* Use sync_local op.

* Validate checksums using extension.

* clear_remove_ops

* delete_pending_buckets

* delete_bucket

* Fix deadlock on closing of connection.

* WIP.

* Update/fix tests.

* Add view name override.

* Retry opening database if locked.

* Fix lint issues.

* Use higher-level `updateSchema` in tests; test viewName alias.

* Load extension for android and iOS

* Load extension for iOS, MacOS and Android

* Include powersync_flutter_libs

* Rename android package

* Update windows and linux extension scripts

* Download binary in cmake

* Fix arch in cmake

* Fix binary download

* Load extension on windows

* Clean up readme and changelog

* Remove test code

* Update Abi check for current platform

* Clean up unused files

* Update path dependencies

* Test downloading powersync binary for tests

* Fix download for linux binary

* Add binary download for demos workflow

* Download latest binaries

* Bump version of powersync

* Bump minor version

---------

Co-authored-by: Ralf Kistner <[email protected]>

* Upgrade powersync-sqlite-core to version 0.1.7 for Android (#95)

* Upgrade sqlite-core to version 0.1.7 for Android
Upgrade powersync flutter libs to version 0.1.0

* Update demos versions

* Bump powersync version (#96)

* Update existing changelog message for powersync (#97)

* Override default macOS SQLite for tests (#99)

* Override default macOS sqlite db for tests

* Update to use flutter test rather than dart test

* Added documentation

* Check if abort future is completed before completing it (#100)

* Check if abort future is completed before completing it

* Bump powersync version

* Upgrade sqlite_async (#105)

* Use updated sqlite_async package

* Update to CommonDatabase for sqlite_async

* Update open DB to be synchronous

* Upgrade sqlite_async.
Update changelog and bump versions

* Fix linting errors

* boilerplate

* the app :)

* more boilerplate

* fix deps and rename app name

* bump to latest sqlite_async

* chore: fix pana score checks (#110)

* snake_case apiclient

* fix `dart analyze` output

* `dart format`

* Add hasSynced and waitForFirstSync (#112)

* Add hasSynced and waitForFirstSync

* Export sqlite3_common

* Add example code for hasSynced
Bump version

* Close http connections immediately on disconnect.

* Fix some errors when closing client while connecting.

* Remove retry delay when aborting.

* More accurate connection counts.

* Fix Future already completed when calling waitForFirstSync (#117)

* Ensure future is not completed

* Bump version

* Add changelog entry for issue 114.

* Iterate through stream instead of listening to it

* Fix changelog message

---------

Co-authored-by: Ralf Kistner <[email protected]>

* [Feature] Added user parameters support when connecting  (#98)

* Added support for user parameters on connection

* Added changelog notes and updated demos.

* Updated .connect() signature to match powersync-js.

* [Chore] Update Django Demo Readme (#120)

* update Django readme

* remove unneeded override (#121)

* Remove unusued imports

* Update sqlite3 wasm
Script to download core for testing

* Add updateHasSynced to db_mixin
Pr feedback and cleanup

* Fix hasSynced status

* Make client params public

* Abort sync on aborted disconnect

* fix bug in setStatus

* Fix native powersync_flutter_libs dependency

* Add powersync_init on database init

* Update js dependency

* Update supabase_flutter

* Download core binary with dart script instead of github action

* Fix watch query table names (#123)

* Fix watch query table names

* Add to changelog

* Fix check for null or empty triggerOnTables

* Upgrade sqlite_async version for attachments helper

* [Fix] Offline has synced (#124)

* fix offline has synced

* Add watch query table names fix

* Add chrome test

* Remove internalTrackedWrite for web database

* Increase 'Multiple calls to disconnect' test timeout

* Remove timeout and separate flutter and dart tests

* Complete abort on disconnect

---------

Co-authored-by: Conrad Hofmeyr <[email protected]>
Co-authored-by: Ralf Kistner <[email protected]>
Co-authored-by: Kobie Botha <[email protected]>
Co-authored-by: stevensJourney <[email protected]>
Co-authored-by: Christiaan Landman <[email protected]>
Co-authored-by: Dieter Plaetinck <[email protected]>
Co-authored-by: Steven Ontong <[email protected]>
* Update powersync dependency to version 1.3.0-alpha.10
Update changelogs

* Bump minor versions

* Fix changelog link
@mugikhan mugikhan marked this pull request as ready for review July 25, 2024 12:04
@mugikhan mugikhan requested a review from rkistner July 25, 2024 12:13
@mugikhan mugikhan merged commit 54f7a69 into master Jul 25, 2024
7 of 8 checks passed
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.

5 participants