powersync-js icon indicating copy to clipboard operation
powersync-js copied to clipboard

[Feature] Added PowerSyncDatabase options validation

Open stevensJourney opened this issue 1 year ago • 1 comments

Overview

This adds some very basic checks for invalid options to the PowerSyncDatabase constructor.

JavaScript users might incorrectly supply required options or fail to supply them at all. This should help those users identify issues.

The warnings here are not detailed. But should be better than cryptic errors which could occur down-the-line if invalid arguments are provided.

stevensJourney avatar Aug 19 '24 07:08 stevensJourney

🦋 Changeset detected

Latest commit: 019ca720ab5c83559a5691e369ec9e5728432b7b

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

This PR includes changesets to release 4 packages
Name Type
@powersync/common Patch
@powersync/react-native Patch
@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

changeset-bot[bot] avatar Aug 19 '24 07:08 changeset-bot[bot]