powersync-js
powersync-js copied to clipboard
[Feature] Added PowerSyncDatabase options validation
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.
🦋 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