Skip to content

Conversation

@longfellowone
Copy link
Contributor

Follow-up to #811

Summary

  • Abort pending db-lock requests on worker-wrapped close to avoid hanging lock waits.
  • Make worker-wrapped cleanup idempotent and notify close listeners.
  • Ensure shared sync pagehide triggers close-signal cleanup for tab-close locks.

Tests

  • pnpm --filter @powersync/web run build:tsc
  • pnpm vitest --run tests/force_close_db_lock_abort.test.ts tests/shared_sync_db_lock_cleanup.test.ts tests/shared_sync_pagehide.test.ts
  • pnpm build:packages
  • pnpm vitest

@changeset-bot
Copy link

changeset-bot bot commented Jan 4, 2026

🦋 Changeset detected

Latest commit: 50e5fab

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

This PR includes changesets to release 2 packages
Name Type
@powersync/web 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

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.

1 participant