Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/vale/config/vocabularies/PowerSync/accept.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ backpressure
baz
binlog
bitwise
booleans
bundler
bundlers
cardinalities
Expand Down
14 changes: 13 additions & 1 deletion sync/advanced/compatibility.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ This table lists all fixes currently supported:
| `versioned_bucket_ids` | [Link](#versioned_bucket_ids) | 1.15.0 | 2 |
| `fixed_json_extract` | [Link](#fixed_json_extract) | 1.15.0 | 2 |
| `custom_postgres_types` | [Link](#custom_postgres_types) | 1.15.3 | 2 |
| `unstable_sqlite_expression_engine` | [Link](#unstable_sqlite_expression_engine). | 1.22.0 | None (unstable) |
| `fixed_booleans_in_json` | [Link](#fixed_booleans_in_json) | 1.27.0 | None |
| `unstable_sqlite_expression_engine` | [Link](#unstable_sqlite_expression_engine) | 1.22.0 | None (unstable) |

### `timestamps_iso8601`

Expand Down Expand Up @@ -180,6 +181,17 @@ With this fix applied:
```
- Multi-ranges sync as an array of ranges.

### `fixed_booleans_in_json`

Most source databases supported by PowerSync have a dedicated type for boolean values. SQLite does not. It represents booleans as the integers `0` and `1` by convention. For boolean columns, PowerSync correctly translates values to integers.

Booleans can also appear in nested structures, e.g. in JSON objects or arrays, or plain Postgres composite types, ranges and arrays. These are synced as JSON, which supports boolean literals. Without this option, the Service maps boolean values embedded in such structures to integers.

Enabling this option makes the Service preserve booleans in JSON structures. For instance, a MongoDB document field `settings: { notifications: true }` syncs as:

- `{"notifications":1}` with the option disabled.
- `{"notifications":true}` with the option enabled.

### `unstable_sqlite_expression_engine`

<Danger>
Expand Down
Loading