Skip to content

Update core extension - #1049

Merged
simolus3 merged 15 commits into
mainfrom
update-core
Aug 3, 2026
Merged

Update core extension#1049
simolus3 merged 15 commits into
mainfrom
update-core

Conversation

@simolus3

@simolus3 simolus3 commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

This updates the core extension to version 0.5.2. It follows the usual checklist of updating wa-sqlite, sql-js, node, react-native and capacitor. For sql-js, this also refactors update notifications to use the core extension instead of JavaScript callbacks.

Breaking changes in the core extension update are:

  1. Time values are now encoded as microsecond timestamps (instead of seconds). Closes @powersync/common: clarify or preserve SyncStreamStatus.subscription.lastSyncedAt precision #945.
  2. The $local bucket has been replaced with the powersync_control('target_checkpoint_request_id') interface.
  3. Initialization and schema-update functions must be called in transactions. We already fixed this in the JS SDK because implicit transactions also broke the OPFS writeahead VFS, there was just one missing case in a test.
  4. The powersync_last_synce_at() function has been removed, I don't know why nuxt would possibly call that directly but I have adopted a literal port to powersync_offline_sync_status().

This also makes @journeyapps/wa-sqlite a regular instead of a peer-dependency, meaning that users won't have to worry about keeping these packages in sync. We depend on an exact version of wa-sqlite now, allowing us to land subsequent core extension updates without another major bump on that package.

@changeset-bot

changeset-bot Bot commented Jul 28, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: ddeea67

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

This PR includes changesets to release 10 packages
Name Type
@powersync/capacitor Patch
@powersync/nuxt Patch
@powersync/web Patch
@powersync/adapter-sql-js Patch
@powersync/node Patch
@powersync/react-native Patch
@powersync/shared-internals Patch
@powersync/tauri-plugin Patch
tauri-plugin-powersync Patch
@powersync/diagnostics-app 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

@simolus3
simolus3 marked this pull request as ready for review August 3, 2026 13:25
@simolus3
simolus3 requested a review from Chriztiaan August 3, 2026 13:28
@simolus3
simolus3 merged commit 3d1fd84 into main Aug 3, 2026
16 checks passed
@simolus3
simolus3 deleted the update-core branch August 3, 2026 14:03
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.

@powersync/common: clarify or preserve SyncStreamStatus.subscription.lastSyncedAt precision

2 participants