Skip to content

Fix warning for raw tables with JS client#673

Merged
simolus3 merged 1 commit into
mainfrom
raw-tables-warning
Jul 23, 2025
Merged

Fix warning for raw tables with JS client#673
simolus3 merged 1 commit into
mainfrom
raw-tables-warning

Conversation

@simolus3
Copy link
Copy Markdown
Contributor

When raw tables are used with the default JS client that doesn't support them, we emit a warning. Unfortunately, the check compared the raw_tables entry in the serialized schema against null, which misses a valid empty array.

This fixes the superfluous warning.

Closes #672

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jul 23, 2025

🦋 Changeset detected

Latest commit: 3572881

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

This PR includes changesets to release 8 packages
Name Type
@powersync/common Patch
@powersync/node Patch
@powersync/react Patch
@powersync/react-native Patch
@powersync/web Patch
@powersync/op-sqlite Patch
@powersync/tanstack-react-query 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 requested a review from stevensJourney July 23, 2025 11:04
@simolus3 simolus3 merged commit 6b38551 into main Jul 23, 2025
9 checks passed
@simolus3 simolus3 deleted the raw-tables-warning branch July 23, 2025 11:59
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.

Raw tables require the Rust-based sync client. The JS client will ignore them.

2 participants