Repository navigation
Comparing changes
Open a pull request
base repository: sqliteai/sqlite-sync
base: 285a139
head repository: sqliteai/sqlite-sync
compare: 5c76820
- 16 commits
- 64 files changed
- 5 contributors
Commits on Oct 1, 2026
-
fix(deploy): default the Fly Supabase db image to the :17 tag (#85)
The :17-alpine tag was retired when :17 moved to the Alpine base, so the default no longer tracked releases. Deployments without CLOUDSYNC_IMAGE now pull the current released image. Co-authored-by: Claude Opus 5.5 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 53843ed - Browse repository at this point
Copy the full SHA 53843edView commit details
Commits on Oct 19, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 0fcc3dd - Browse repository at this point
Copy the full SHA 0fcc3ddView commit details -
Configuration menu - View commit details
-
Copy full SHA for fb8ffa5 - Browse repository at this point
Copy the full SHA fb8ffa5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3bb9474 - Browse repository at this point
Copy the full SHA 3bb9474View commit details -
ci: skip the build workflow for docs, markdown and license changes
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9696115 - Browse repository at this point
Copy the full SHA 9696115View commit details -
ci: fail the Windows dependency step when sqlite3 is not installed
choco exits 0 when the community feed is unreachable, so the missing sqlite3 only surfaced at the end of make test. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3ef68f8 - Browse repository at this point
Copy the full SHA 3ef68f8View commit details
Commits on Oct 20, 2026
-
feat(network): advertise apply-defer on /apply and confirm before rep…
…orting nothing unsent (#88) Send X-CloudSync-Capabilities: apply-defer on every /apply chunk, inline and S3 form, so a CloudSync server whose tenant is saturated may accept a chunk durably and answer 202. The existing send path already handles that answer. cloudsync_network_has_unsent_changes() now compares against lastConfirmedVersion, so accepted-but-unapplied work is not reported as safe to discard before logout. API.md documents send.serverVersion as the accepted version; docs/internal/network.md lists the custom-transport requirements. A loopback HTTP server test drives the real libcurl transport: header on every /apply only, the 202 -> syncing -> /status -> synced lifecycle, rollback with and without failures.apply, 503/409 keeping the checkpoint, and a multi-chunk batch mixing inline and S3 chunks. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 64cca81 - Browse repository at this point
Copy the full SHA 64cca81View commit details
Commits on Oct 21, 2026
-
feat(network): handle a busy server with Retry-After (retryAfter/retr…
…yCode, gate, reset_retry_after) (#89) * feat(network): report a busy server as retryAfter/retryCode and honor Retry-After in sync A CloudSync answer of 429, or 503 with Retry-After, is now a result instead of an SQL error. send_changes, receive_changes and sync return their normal JSON with retryAfter (seconds, 0 without a hint) and retryCode (errors[0].code, or http_<status>) in the refused block. A refused send keeps its checkpoint and is re-sent as a new batch; sync still runs its receive phase after one. The sync receive loop waits a Retry-After instead of wait_ms when it fits the remaining wait_ms * (max_retries - 1) budget, and returns reporting it otherwise, so a call never waits longer than before. A 503 without Retry-After and an HTTP-date Retry-After keep today's behaviour, as does every reply from current servers, which send neither. NETWORK_RESULT gains trailing http_status/has_retry_after/retry_after fields, filled by the libcurl and Apple transports; custom transports that leave them zero keep the previous behaviour. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(network): hold send and receive until Retry-After expires, add cloudsync_network_reset_retry_after() After a busy refusal, or a /check answered with a delay, send and receive now return the same result with a countdown retryAfter, without contacting the server, until the deadline passes. Send and receive keep separate deadlines, in memory per connection, on the monotonic clock. sync(wait_ms, max_retries) waits out a pending deadline that fits its budget before the first /check. cloudsync_network_reset_retry_after() clears both deadlines, for refreshes the user asked for explicitly. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(network): a busy or held result never asks to be called again at once Loops written against the previous API.md guidance (send until status leaves out-of-sync, receive while complete is false) would spin at full CPU during a Retry-After wait, and a 429 without Retry-After would resend with no pause. - A busy or held send reports status "syncing" (also covers a busy /status with nothing pending), a busy or held receive reports complete:true. - A 429 without a usable Retry-After waits a default of 5 seconds. - A new cloudsync_network_init() clears the wait; a token refresh keeps it. - A busy refusal whose code cannot be copied sets no wait. - One helper takes the busy fields at the three call sites. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(api): receive.complete true means nothing more ready now, not fully synced Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(api): add a single-statement SQL loop for bounded sends Covered by network_unit: the loop drains a backlog in bounded sends and stops after one call against a busy server. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(api): stop the SQL send loop when a send makes no progress Tested: the loop stops after two calls when the server keeps failing a send, and on a WAL database another connection sees each checkpoint commit and can write during the loop. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(api): recommend WAL mode when other connections write while syncing Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(network): create the SQL loop test database in the working directory (Android has no /tmp) Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(network): report a refused send as status busy instead of syncing syncing keeps one meaning (the server holds the changes); busy means the server refused the send and asked to wait retryAfter seconds. Loops that continue only on out-of-sync still stop after one call. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 20a1eaa - Browse repository at this point
Copy the full SHA 20a1eaaView commit details -
feat(payload): end a receive window with nothing visible in an empty …
…final chunk (#90) * feat(payload): end a receive window with nothing visible in an empty final chunk On the receive side (exclude_filter_site_id), cloudsync_payload_chunks() returned no chunk when every change in the window was hidden from the caller by row-level security, or was the caller's own. The caller then had no watermark to checkpoint at and scanned the same window again on every request, at the same cost, until a change it could read arrived. Such a window now ends with one final chunk carrying no rows and the watermark. Applying it moves the receive checkpoint past the window; clients from 1.1.0 on already do this. A window with nothing new still returns no chunk, and the send path never produces an empty one. The watermark of a receive window is now read from the metadata tables instead of through cloudsync_changes, which drops the rows the caller cannot read: a caller that could read nothing got a watermark of 0. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs: describe the empty final chunk of a receive window Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(payload): bound the receive watermark probe and fix its error paths - The probe for the newest change from another site now stops at the window's lower bound (since, or resume_db_version on a positional call). It no longer walks back through the caller's own recent changes below it. A window with nothing new still returns no chunk. - Building the probe SQL no longer frees the statement text twice when sqlite3_mprintf runs out of memory, and the error reported for that case is the out-of-memory message instead of an unrelated earlier one. - Drop the emitted flag: chunk_index == 0 already says whether the scan produced a chunk. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e9f363e - Browse repository at this point
Copy the full SHA e9f363eView commit details
Commits on Oct 22, 2026
-
docs(changelog): shorten the unreleased entries (#95)
Co-authored-by: Claude Opus 5.5 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7b912ca - Browse repository at this point
Copy the full SHA 7b912caView commit details
Commits on Nov 2, 2026
-
perf(changes): skip lookups of rows hidden by RLS and look up visible…
… rows once (#94) * perf(changes): skip lookups of rows hidden by RLS and look up visible rows once cloudsync_col_value decided visibility with one pk lookup per change row, so a first sync under row-level security paid a lookup and a rule evaluation for every change row in the history, almost all hidden. Each cloudsync_changes cursor now owns per-scan state, passed to cloudsync_col_value as a bound pointer (internal 4th argument). Once a table's lookups in the scan have returned 1000 hidden rows, one SELECT of its pks (under the same RLS rule and snapshot) builds a hash set, and pks not in it are answered as hidden without a lookup. Pks whose stored form could differ from their encoding (affinity conversion, non-binary collation, non-minimal encoding) keep the lookup, and a write on the connection mid-scan drops the set. The scan's WHERE re-evaluated cloudsync_col_value for the result column, so every visible row was looked up twice; the second call now reuses the value read by the first. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(changes): look up pks whose bytes differ from the encoder's form The visible-pk set holds the hashes of pks encoded from the base rows, so a change row's pk can be answered from it only when its bytes are exactly what the encoder produces for the values it decodes to. The check compared only the encoded size and the column types, but the decoder also accepts other byte forms of an integer of the same size (0 tagged as a negative integer, a magnitude above INT64_MAX). Such a pk can arrive in a peer's payload and is stored as received; its row was found by the lookup but missed by the set, so the change was left out as hidden. The check now re-encodes each decoded integer and compares the bytes, and requires the minimal length header for text and blob values. Any other pk keeps the lookup. Co-Authored-By: Claude Opus 5.5 <[email protected]> * perf(changes): check the visible-pk set's column order and keep an oversized set off The set query read the pk columns from pragma_table_info at scan time, while the lookup binds the metadata pk values in the order its WHERE was generated in when the table was initialized. The build now requires the current pk count to match the table's and the lookup's WHERE to list the pk columns in the same order; otherwise the scan keeps the lookups. A set that exceeds the row cap was discarded after a full scan of the table, and every later scan, including each chunk of the same download, scanned it again. A table whose set exceeded the cap now keeps the per-row lookups for the rest of the connection. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1754eab - Browse repository at this point
Copy the full SHA 1754eabView commit details
Commits on Nov 5, 2026
-
fix: harden payload validation, PostgreSQL entry points and network h…
…andling (#96) Co-Authored-By: Marco Bambini <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 11aa77f - Browse repository at this point
Copy the full SHA 11aa77fView commit details -
fix(changes): harden row-level security checks in change reads (#97)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4beeade - Browse repository at this point
Copy the full SHA 4beeadeView commit details -
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 294da6b - Browse repository at this point
Copy the full SHA 294da6bView commit details
Commits on Nov 6, 2026
-
fix(release): ship the Apache 2.0 LICENSE in packages and make releas…
…e re-runs safe The repository license moved from LICENSE.md (Elastic 2.0) to LICENSE (Apache 2.0), but the npm, Expo, Flutter and Android packaging still referenced the old file and license, so the 1.2.1 release stopped at the npm step. Point them at LICENSE and declare Apache-2.0. Let the release job be re-run for a version it already partly published: skip the sqlite-wasm and react-native bumps when they are already at the version, and skip the Maven Central upload when the version is there. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for bd9f063 - Browse repository at this point
Copy the full SHA bd9f063View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5c76820 - Browse repository at this point
Copy the full SHA 5c76820View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 285a139...5c76820