RxDB

Databases & DataApache-2.0

Local-first NoSQL database for JavaScript apps.

Latest 17.6.0 · by RxDBWritten in TypeScriptWebsitepubkey/rxdbRSS

Release activity

Release activity — 10 releases across 9 days since Mar 20, 2026. Each cell is one day; darker means more releases that day. Nothing is recorded before Mar 20, 2026. Older weeks are hidden at this screen width.
AugSepOctNov
SundayNo releases on Aug 2, 2026No releases on Aug 9, 2026No releases on Aug 16, 2026No releases on Aug 23, 2026No releases on Aug 30, 2026No releases on Sep 6, 2026No releases on Sep 13, 2026No releases on Sep 20, 2026No releases on Sep 27, 2026No releases on Oct 4, 2026No releases on Oct 11, 2026No releases on Oct 18, 2026No releases on Oct 25, 2026No releases on Nov 1, 2026No releases on Nov 8, 2026No releases on Nov 15, 2026
MondayNo releases on Aug 3, 2026No releases on Aug 10, 2026No releases on Aug 17, 2026No releases on Aug 24, 2026No releases on Aug 31, 2026No releases on Sep 7, 2026No releases on Sep 14, 2026No releases on Sep 21, 2026No releases on Sep 28, 20261 release on Oct 5, 2026No releases on Oct 12, 2026No releases on Oct 19, 2026No releases on Oct 26, 2026No releases on Nov 2, 2026No releases on Nov 9, 2026
TuesdayNo releases on Aug 4, 2026No releases on Aug 11, 2026No releases on Aug 18, 2026No releases on Aug 25, 2026No releases on Sep 1, 2026No releases on Sep 8, 2026No releases on Sep 15, 2026No releases on Sep 22, 2026No releases on Sep 29, 2026No releases on Oct 6, 2026No releases on Oct 13, 2026No releases on Oct 20, 2026No releases on Oct 27, 2026No releases on Nov 3, 2026No releases on Nov 10, 2026
WednesdayNo releases on Aug 5, 2026No releases on Aug 12, 2026No releases on Aug 19, 2026No releases on Aug 26, 2026No releases on Sep 2, 2026No releases on Sep 9, 2026No releases on Sep 16, 2026No releases on Sep 23, 2026No releases on Sep 30, 2026No releases on Oct 7, 2026No releases on Oct 14, 2026No releases on Oct 21, 2026No releases on Oct 28, 2026No releases on Nov 4, 2026No releases on Nov 11, 2026
ThursdayNo releases on Aug 6, 2026No releases on Aug 13, 20261 release on Aug 20, 2026No releases on Aug 27, 2026No releases on Sep 3, 2026No releases on Sep 10, 2026No releases on Sep 17, 2026No releases on Sep 24, 2026No releases on Oct 1, 2026No releases on Oct 8, 2026No releases on Oct 15, 2026No releases on Oct 22, 2026No releases on Oct 29, 2026No releases on Nov 5, 2026No releases on Nov 12, 2026
FridayNo releases on Aug 7, 2026No releases on Aug 14, 2026No releases on Aug 21, 2026No releases on Aug 28, 2026No releases on Sep 4, 2026No releases on Sep 11, 2026No releases on Sep 18, 2026No releases on Sep 25, 2026No releases on Oct 2, 2026No releases on Oct 9, 2026No releases on Oct 16, 2026No releases on Oct 23, 2026No releases on Oct 30, 2026No releases on Nov 6, 2026No releases on Nov 13, 2026
SaturdayNo releases on Aug 8, 2026No releases on Aug 15, 2026No releases on Aug 22, 2026No releases on Aug 29, 2026No releases on Sep 5, 2026No releases on Sep 12, 2026No releases on Sep 19, 2026No releases on Sep 26, 2026No releases on Oct 3, 2026No releases on Oct 10, 2026No releases on Oct 17, 2026No releases on Oct 24, 2026No releases on Oct 31, 2026No releases on Nov 7, 2026No releases on Nov 14, 2026

10 releases since Mar 20, 2026, busiest day 2

Changelog

17.6.0

Latest
Added 3
  • Added getConnectionHandlerNostr() to the WebRTC replication plugin so peers find each other over Nostr relays instead of a signaling server
  • Signals are sent as signed, NIP-44 encrypted ephemeral Nostr events in the WebRTC replication plugin
  • Added getNostrPublicKeyOfPeer() to return the verified public key of a peer for use in isPeerValid()
Fixed 15
  • DenoKV RxStorage no longer passes a limit to Deno.Kv.list() for unlimited queries, avoiding the 'Limit must be a positive integer' error since Deno 2.9
  • DocumentCache now finds a document re-inserted after cleanup purged its tombstone in findOne() and primary key queries
  • Corrected typos in dev-mode error messages DB6, GDR18 and MQ4
  • IncrementalWriteQueue now catches storage bulkWrite errors and resets queue runner state so the queue does not wedge on failure
  • Schema migration removes the old storage and meta storage one after another instead of concurrently, and the SQLite RxStorage DROP TABLE runs inside a transaction, avoiding SQLITE_LOCKED errors
  • Schema migration with multiInstance: true lets waiting tabs take over the migration when the leader's heartbeat is not written for 60 seconds, configurable with setMigrationLeaderTiming()

From RxDB

  • ADD getConnectionHandlerNostr() to the WebRTC replication plugin. Peers find each other over Nostr relays instead of a signaling server. Signals are sent as signed, NIP-44 encrypted ephemeral events, and getNostrPublicKeyOfPeer() returns the verified public key of a peer for use in isPeerValid(). Added tests for the Nostr signaling with multiple relays, peer validation and unreachable relays.
  • FIX DenoKV RxStorage: a query without a limit passed Infinity to Deno.Kv.list(), which throws Limit must be a positive integer since Deno 2.9. Unlimited queries no longer pass a limit at all.
  • FIX DocumentCache: a document that is re-inserted after the cleanup purged its tombstone was no longer found by findOne() and by primary key queries, because the new revision chain starts at height 1 and the out-of-order protection kept the cached tombstone. #8948
  • FIX typos in the dev-mode error messages: DB6 had the docs URL glued to the sentence (Read thishttps://...), GDR18 said exxeeded instead of exceeded, and MQ4 said instanceof instead of instance of.
  • FIX IncrementalWriteQueue: ensure storage bulkWrite errors are properly caught and reset queue runner state so the queue does not wedge on failure.
  • FIX schema migration finalized with Promise.all([oldStorage.remove(), metaStorage.remove()]) which removed both storage instances at the same time. Storages like SQLite share a single connection between all storage instances of one database, so the two DROP TABLE statements were sent to the same connection concurrently and async single-connection adapters like expo-sqlite failed with SQLITE_LOCKED ("database is locked"). The storages are now removed one after another and the DROP TABLE of the SQLite RxStorage runs inside of a transaction so that it goes through TX_QUEUE_BY_DATABASE. Added a test case that tracks overlapping statements on a single SQLite connection. Fixes #9024.
  • FIX schema migration with multiInstance: true blocked addCollections() in every tab forever when the tab that won the leader election of the migration was frozen, throttled or discarded by the browser. The migration leader now writes a heartbeat into the migration status document and waiting tabs take over the migration when the status document was not written for 60 seconds (configurable with setMigrationLeaderTiming()). Fixes #9191.
  • FIX flaky preact-signals reactivity test that asserted the signal value before the change event of the remote storage arrived #9172
  • FIX query-builder: .where({ age: { $gt: 3 } }) on a query whose selector had a shorthand value for the same field (for example find({ selector: { age: 7 } })) threw TypeError: Cannot create property '$gt' on number '7'. In the other direction, .where({ age: 7 }) silently dropped an existing operator like { $lt: 7 }. The shorthand value is now converted to $eq so both conditions are merged. Added a test case in test/unit/query-builder.test.ts.
  • FIX replication: when the first start() of a replication rejected, the error was an unhandled rejection that was not emitted on error$, and every later start(), pause() and remove() rejected with the same error because the startQueue stayed rejected, so the replication could not be started again without a page reload. A failed start is now emitted on error$ as RC_START and a later start() retries it. The internal start() calls of autoStart and toggleOnDocumentVisible no longer create unhandled rejections. Added a test case for it in test/unit/replication.test.ts. Fixes #9127.
  • FIX replication-protocol: the upstream initial sync could call getChangedDocumentsSince() on the fork RxStorageInstance after the replication was canceled, because it did not re-check the canceled state after it throttled on the running persistToMaster() promises. With a fast storage (rxdb-premium IndexedDB) this happened when a schema migration was interrupted via RxMigrationState.cancel() which closes the old storage, so the "instance is closed" error ended up as an unhandled rejection. Added a testcase for it in test/unit/replication-protocol.test.ts.
  • FIX addCollections() threw DB6 for an unchanged schema after the device or app language changed. sortObject() uses localeCompare(), so in Czech and Slovak ("ch" sorts after "h") the schema hash differed. When the hashes differ, the stored schema is now compared with deepEqual() and no error is thrown when the content is equal. #9128
  • FIX queries that sort by a nested field (for example sort: [{ 'address.city': 'asc' }]) threw TypeError: Cannot read properties of null when a document had null as the value of the parent object (address: null). The nested path lookup now treats a null parent like a missing one. Added a test case in test/unit/rx-query.test.ts.
  • FIX react plugin useRxDocument starting with loading: false instead of loading: true when valid collection and primaryKey are provided. This caused a false "not found" flash on the first render before the subscription resolved. Added equivalent tests to the existing react-hooks test suite. Fixes #8965.
  • FIX webmcp plugin causing an unhandled promise rejection when a collection is closed directly after registerWebMCP() on a spec-conformant modelContext whose registerTool() returns a promise #9172
  • FIX WebRTC replication was flaky and could spin or stop syncing:
    • The simple-peer connection handler reconnected to the signaling server in a tight loop without delay and crashed in Node.js when the server was not reachable. Reconnects now use an exponential backoff.
    • A failed peer connection was recreated in an endless loop. Peer connections now have a connect timeout, reconnect with a backoff, and signals of outdated connection attempts are ignored instead of throwing.
    • The first replication request of a peer could get lost when it arrived before the own handshake was done, which made the sync hang forever. Requests are now answered independently of the handshake state.
    • Requests to a disconnected peer never resolved. They now fail on disconnect, on timeout (new requestTimeout option) and when the remote peer throws, so the replication retries.
    • With three or more peers, change stream events of one master were applied to the replications of all other masters.
    • Messages bigger than the data channel size limit failed. They are now split into chunks.
    • The signaling server now tells the other peers of a room when a peer leaves.
    • Re-enabled the WebRTC replication tests and added tests for an unreachable signaling server, a signaling server restart and big documents with three peers.
    • RxWebRTCReplicationPool.cancel() now awaits the cancelation of all replications, so they do not write to the storage after the database was closed.
  • FIX replication-protocol: when the upstream had push conflicts, persistToMaster() wrote the resolved conflicts to the fork and meta instance even when the replication was canceled while the conflicts were resolved. This caused "already closed" errors when a database was closed during a replication.
  • IMPROVE performance of findByIds(): the query cache key is no longer built from a sorted copy of all ids. With 3000 ids, find-by-ids in the memory performance test went from 4.80ms to 3.26ms. Queries with the same ids in a different order now get their own cache entry, so each result Map keeps the order of its own ids.
  • IMPROVE performance of the DocumentCache: RxDocuments are cached by their revision, and the _meta.lwt is compared on lookup instead of being converted to a string for the cache key. find-by-query went from 3.32ms to 2.60ms.
  • IMPROVE performance of nested property access on RxDocuments: the nested value is no longer looked up again from the document root on each access. property-access went from 6.57ms to 4.02ms.
  • IMPROVE query planner: string and number fields that are matched with $eq are ignored when checking whether the index order matches the sort order, as was already done for boolean and enum fields. The storage no longer has to re-sort these query results. find-by-query-parallel-4 went from 3.63ms to 2.87ms.
  • IMPROVE performance of database and collection creation: schema hashes are cached, so the same schema is not hashed again for each collection or database. time-to-first-insert went from 1.40ms to 1.22ms.
  • FIX flaky attachments.test.ts encryption test that decoded binary ciphertext as base64 and failed about 1 in 4 runs with storages that store the encrypted attachment data as binary #9193
  • FIX the storage test should clean up all deleted documents when multiple are deleted failed from time to time when the storage uses another instance of now() than the test, like the premium storages in their integration tests. The test now waits until the deletion time is in the past before it runs cleanup(0).
  • ADD tests that parallel bulkWrite() calls and a schema migration with multiple batches keep all documents when multiInstance: false is used. See #9145
  • FIX webmcp.test.ts failed in browsers with native WebMCP support (like Chromium 154) because the polyfill does not install its testing shim when document.modelContext already exists. The test now removes the native getter while it runs and restores it afterwards.
RxDB Server
  • FIX the replication test create read update delete did not cancel its live replication before it closed the databases. The replication kept pulling from the closed server and ensureReplicationHasNoErrors() threw fetch failed while the next test (should give a 426 error on outdated versions) was running, which made that test fail from time to time.
RxDB Premium
  • FIX (storage-filesystem-node, storage-opfs and all other filesystem based storages) Multiple writes within the same write-run all wrote to changes.json at offset 0 instead of appending, which left invalid JSON on disk while the run was in flight. When the process was killed in that window, the database could no longer be opened (SyntaxError: Expected ',' or ']' after array element in JSON).
  • FIX (storage-filesystem-node, storage-opfs and all other filesystem based storages) When the process died during a cleanup after the index files were written but before the changelog.txt was emptied, the next start applied the changelog operations a second time on top of the already updated index files. This corrupted the index state (lost documents, duplicated rows with stale byte positions) and the next cleanup or read failed with SyntaxError: Expected ',' or ']' after array element in JSON at position .... The changelog now starts with an epoch header and the index files remember the epoch and the amount of operations they already contain, so operations are never applied twice. Index and changelog files of older versions are still readable.
  • FIX (storage-memory-mapped) Fixed a bug where bulkUpsert of an existing document would not survive a database reopen. The background persistence flush used return instead of continue inside the write-tasks loop, causing any remaining batched writes to be silently dropped whenever one write task produced no written documents (e.g. when a conflicting insert yields an empty result). See rxdb-premium-issues#24
  • FIX (storage-indexeddb) With multiInstance: false, parallel bulkWrite() calls with more than 16 documents overwrote each other's WAL content, so whole batches were lost without an error. This dropped documents during schema migrations that needed three or more batches. See #9145
  • FIX (storage-indexeddb) Eliminated unhandled TransactionInactiveError rejections that occurred during bulk replication pulls when concurrent reads hit the WAL flush window. See #8497

NOTICE: An overview about all releases can be found at the changelog

Join RxDB:
View originalPermalink
How 17.6.0 went

17.5.0

Added 2
  • RxDB error messages include a Discord chat hint linking to https://rxdb.info/chat for asking for help
  • exportJSON() of the json-dump plugin supports the attachments option to include attachment data as base64 strings, and importJSON() restores them; the default is false
Changed 7
  • Update the Angular example and the Ionic example from Angular 21 to Angular 22, both now using TypeScript 6.0 because @angular/build v22 requires it
  • Update the @angular/core devDependency that the reactivity-angular plugin is built and type checked against from 21.2.18 to 22.1.0, keeping the @angular/core peer dependency optional and unpinned
  • Serve the docs favicon as .ico in addition to the .svg so browsers without SVG favicon support can fall back to icon.ico
  • The backup plugin deleteFolder() now uses fs.rmSync() instead of the deprecated fs.rmdirSync() with recursive option
  • Update graphql from 16.14.2 to 17.0.2, which requires Node.js 22 or newer for the graphql package
  • Update graphql-ws from 5.16.2 to 6.2.0; the GraphQL replication imports the client from graphql-ws/client, and users with their own graphql-ws server must update import paths and adapt changed server hooks
  • Raise the required Node.js version from 18 to 20 because graphql-ws v6 no longer supports Node.js 18
Fixed 7
  • Dexie RxStorage reference counting no longer leaks Dexie connections or stale state cache entries, so creating a database with the same name again after the IndexedDB databases were deleted no longer throws DatabaseClosedError
  • The docs tsconfig now sets allowImportingTsExtensions and references the @theme/* module declarations, and the remaining type errors in docs components and src files were fixed so tsc --noEmit in docs-src is clean
  • An interrupted schema migration can complete; push-conflicts of the migration replication are ignored and the document already stored in the new storage is kept, instead of spinning conflict cycles that never resolve addCollections()
  • RxMigrationState.cancel() now closes the storage instances opened by the migration so an interrupted migration no longer leaks storage instances, replication meta storages, or BroadcastChannel references
  • Schema migration closes the leader-election BroadcastChannel on every code path, including when the migration throws, so the tab no longer stays leader forever and blocks other tabs
  • useLiveRxQuery now unsubscribes from the live query on unmount because the cleanup returned by the async runQuery callback is no longer dropped by useEffect
  • The JD1, JD2 and JD3 error messages now link to the JSON Import and Export page documenting the json-dump plugin instead of the backup plugin page
View originalRead the notes
How 17.5.0 went

17.4.0

Added 6
  • Add a test to ensure awaitDocumentPushed() resolves after a document push first had a conflict that was later resolved
  • Add replicationState.awaitDocumentPushed(rxDocument) which returns a promise that resolves once the given RxDocument state was successfully pushed to the server
  • Add a Datenschutzerklärung / Privacy Policy page (German and English) at /privacy/, set to noindex, and linked in the docs footer next to the Legal Notice
  • Add replicationState.conflict$ observable that emits each conflict reported by the remote in the push handler response, together with the output of the conflictHandler that resolved it
  • Add a create-sem-page Claude skill that generates a new SEM landingpage under docs-src/src/pages/sem from a slug plus three titles, descriptions and bulletpoint sets that are a/b tested
  • Add the getSemVariation() helper in docs-src/src/components/a-b-tests.tsx for stable per visitor variation assignment and tracking
Changed 2
  • Replace the raw centered logo img HTML in all articles with a reusable RxdbLogo MDX component that derives an explicit height from the width
  • Emit source maps in the production docs build (devtool source-map) so tools like Lighthouse can map the minified bundle back to the source
Fixed 17
  • Fix broken links on the alternatives page caused by a redundant alternatives/ prefix in the slug frontmatter of ten alternative article pages, which produced doubled URLs
  • Fix awaitDocumentPushed() never resolving for documents already pushed when the storage uses a non-default checkpoint format such as the sharding RxStorage, by comparing document state with the assumed master state from the replication meta instance
  • Fix CI failing on dependency-update PRs with ETARGET No matching version found by removing NPM_CONFIG_PREFER_OFFLINE from the workflows
  • Reserve explicit width and height on docs images reported with Cumulative Layout Shift, including the in-article logos, navbar logo, footer logo, footer community icons and the helpful-page thumbs-up and Discord icons
  • Add an accessible aria-label to the icon-only Discord and GitHub navbar links and an alt text to the footer Discord icon
  • Document the non-premium collection limit in the addCollections docs and premium pricing page
View originalRead the notes
How 17.4.0 went

17.3.0

Added 4
  • Allow `preInsert` hooks to set composite primary key fields such as `name` and `number` without manually setting `id`, so RxDB computes the composite primary key afterwards
  • Add `space: 'drive' | 'appDataFolder'` option to the `replication-google-drive` plugin to sync into Google Drive's hidden per-application data folder, which requires the `https://www.googleapis.com/auth/drive.appdata` OAuth scope
  • Add attachment replication to the `replication-google-drive` plugin, storing attachment binary data as base64 in a separate `_attachments_data` field, enabled automatically when the collection schema defines `attachments: {}` and disableable with `attachments: false`
  • Add attachment replication to the `replication-microsoft-onedrive` plugin, storing attachment binary data as base64 in a separate `_attachments_data` field, enabled automatically when the collection schema defines `attachments: {}` and disableable with `attachments: false`
Changed 2
  • Writes to an `RxCollection` while a schema migration is pending or running now fail fast with a clear `COL25` error instead of racing the migration and surfacing as `RC_PUSH`
  • Move the attachment serialisation helpers to `src/replication-protocol/helper.ts` so they can be shared between the google-drive and microsoft-onedrive replication plugins
Fixed 5
  • Live-query subscriptions no longer get delayed under concurrent writes, because the `_execOverDatabase()` rerun path now uses a fixed `promiseWait(20)` instead of increasing the wait with each rerun
  • Schemas using `patternProperties` with square bracket character classes are no longer incorrectly interpreted as an array index in dev-mode schema validation
  • React `RxDatabaseProvider` TypeScript typings now accept `RxDatabase` instances with concrete typed collection maps that do not use a string index signature
  • Generated `.d.ts` files under `dist/types/` now have their `.ts` extension import specifiers rewritten, so TypeScript with `moduleResolution: "bundler"` resolves reactive field types instead of degrading them to `Signal<unknown>` in Angular projects
  • Eliminated unhandled `TransactionInactiveError` rejections during bulk replication pulls in the storage-indexeddb premium plugin when concurrent reads hit the WAL flush window
View originalRead the notes
How 17.3.0 went

17.2.0

Added 3
  • React useRxDocument(collection, primaryKey) hook for subscribing to a single document by primary key with live updates
  • React useReplicationStatus(replicationState) hook that exposes syncing, error, lastSyncedAt, and canceled from replication observables
  • Dev-mode check (SC43) to prevent encrypted fields from being nested inside other encrypted fields
Changed 2
  • Mark liveQueryUpdateThrottleTime as a beta feature in the documentation
  • Move the main liveQueryUpdateThrottleTime documentation to rx-query.md, with rx-database.md and rx-collection.md now only listing the option with a short description and a link
Fixed 20
  • allAttachments$ observable emitting a new value on every document revision even when the set of attachments is unchanged, by filtering emissions with distinctUntilChanged based on attachment ids and digests
  • RxAttachment.remove() not cleaning up binary attachment data from storage because categorizeBulkWriteRows() never detected attachments removed between revisions
  • attachments-compression isCompressibleType() not stripping RFC 2045 parameters such as charset from MIME types, so charset-qualified types bypassed compression when matched against exact patterns
  • Backup plugin not removing the folder of a deleted document when the change batch only contained deletions
  • RxCollection.cleanup() returning undefined instead of boolean as declared by its TypeScript return type
  • CRDT plugin bulkInsert hook not including the composite primary key in CRDT operations, causing the primary key field to be lost during conflict resolution rebuild
View originalRead the notes
How 17.2.0 went

17.1.0

Added 1
  • findOne().remove(true) throws when no document matches, consistent with findOne().exec(true)
Fixed 31
  • CRDT plugin bulkInsert hook now includes schema default values in CRDT operations, preventing data loss during conflict resolution rebuild
  • RxDocument.get$() on nested object/array paths no longer emits spurious values when unrelated document fields change
  • incrementalUpsert() no longer throws a CONFLICT error when a concurrent upsert()/insert() creates the same document between its internal findOne() and insert() calls
  • upsertLocal() on a previously removed local document now un-deletes it instead of keeping it in deleted state
  • Push-only replication no longer loses local writes that occur during a pause because reSync() events were filtered out when no pull handler was configured
  • getStartIndexStringFromUpperBound() no longer maps INDEX_MIN to '1' for boolean index fields, so exclusive bounds no longer include boundary documents
Security 1
  • Encryption plugin validatePassword() no longer leaks the plaintext password in RxError parameters and error messages when validation fails
View originalRead the notes
How 17.1.0 went

17.0.0

A list of changes for RxDB v17 can be found here

View originalRead the notes
How 17.0.0 went
View all

Discussion

If you publish RxDB, you can claim this product by proving you administer its repository.