@connecttomahdi/rxdb 17.0.0-beta.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1969) hide show
  1. package/AGENTS.md +54 -0
  2. package/CHANGELOG.md +2469 -0
  3. package/CLAUDE.md +63 -0
  4. package/LICENSE.txt +201 -0
  5. package/README.md +263 -0
  6. package/babel.config.js +58 -0
  7. package/dist/cjs/change-event-buffer.js +146 -0
  8. package/dist/cjs/change-event-buffer.js.map +1 -0
  9. package/dist/cjs/custom-index.js +284 -0
  10. package/dist/cjs/custom-index.js.map +1 -0
  11. package/dist/cjs/doc-cache.js +231 -0
  12. package/dist/cjs/doc-cache.js.map +1 -0
  13. package/dist/cjs/event-reduce.js +102 -0
  14. package/dist/cjs/event-reduce.js.map +1 -0
  15. package/dist/cjs/hooks.js +131 -0
  16. package/dist/cjs/hooks.js.map +1 -0
  17. package/dist/cjs/incremental-write.js +169 -0
  18. package/dist/cjs/incremental-write.js.map +1 -0
  19. package/dist/cjs/index.js +270 -0
  20. package/dist/cjs/index.js.map +1 -0
  21. package/dist/cjs/overwritable.js +39 -0
  22. package/dist/cjs/overwritable.js.map +1 -0
  23. package/dist/cjs/plugin-helpers.js +223 -0
  24. package/dist/cjs/plugin-helpers.js.map +1 -0
  25. package/dist/cjs/plugin.js +94 -0
  26. package/dist/cjs/plugin.js.map +1 -0
  27. package/dist/cjs/plugins/attachments/attachments-utils.js +49 -0
  28. package/dist/cjs/plugins/attachments/attachments-utils.js.map +1 -0
  29. package/dist/cjs/plugins/attachments/index.js +237 -0
  30. package/dist/cjs/plugins/attachments/index.js.map +1 -0
  31. package/dist/cjs/plugins/attachments-compression/index.js +143 -0
  32. package/dist/cjs/plugins/attachments-compression/index.js.map +1 -0
  33. package/dist/cjs/plugins/backup/file-util.js +102 -0
  34. package/dist/cjs/plugins/backup/file-util.js.map +1 -0
  35. package/dist/cjs/plugins/backup/index.js +206 -0
  36. package/dist/cjs/plugins/backup/index.js.map +1 -0
  37. package/dist/cjs/plugins/cleanup/cleanup-helper.js +17 -0
  38. package/dist/cjs/plugins/cleanup/cleanup-helper.js.map +1 -0
  39. package/dist/cjs/plugins/cleanup/cleanup-state.js +83 -0
  40. package/dist/cjs/plugins/cleanup/cleanup-state.js.map +1 -0
  41. package/dist/cjs/plugins/cleanup/cleanup.js +116 -0
  42. package/dist/cjs/plugins/cleanup/cleanup.js.map +1 -0
  43. package/dist/cjs/plugins/cleanup/index.js +64 -0
  44. package/dist/cjs/plugins/cleanup/index.js.map +1 -0
  45. package/dist/cjs/plugins/crdt/index.js +392 -0
  46. package/dist/cjs/plugins/crdt/index.js.map +1 -0
  47. package/dist/cjs/plugins/dev-mode/check-document.js +158 -0
  48. package/dist/cjs/plugins/dev-mode/check-document.js.map +1 -0
  49. package/dist/cjs/plugins/dev-mode/check-migration-strategies.js +43 -0
  50. package/dist/cjs/plugins/dev-mode/check-migration-strategies.js.map +1 -0
  51. package/dist/cjs/plugins/dev-mode/check-orm.js +53 -0
  52. package/dist/cjs/plugins/dev-mode/check-orm.js.map +1 -0
  53. package/dist/cjs/plugins/dev-mode/check-query.js +183 -0
  54. package/dist/cjs/plugins/dev-mode/check-query.js.map +1 -0
  55. package/dist/cjs/plugins/dev-mode/check-schema.js +487 -0
  56. package/dist/cjs/plugins/dev-mode/check-schema.js.map +1 -0
  57. package/dist/cjs/plugins/dev-mode/dev-mode-tracking.js +93 -0
  58. package/dist/cjs/plugins/dev-mode/dev-mode-tracking.js.map +1 -0
  59. package/dist/cjs/plugins/dev-mode/entity-properties.js +56 -0
  60. package/dist/cjs/plugins/dev-mode/entity-properties.js.map +1 -0
  61. package/dist/cjs/plugins/dev-mode/error-messages.js +1295 -0
  62. package/dist/cjs/plugins/dev-mode/error-messages.js.map +1 -0
  63. package/dist/cjs/plugins/dev-mode/index.js +195 -0
  64. package/dist/cjs/plugins/dev-mode/index.js.map +1 -0
  65. package/dist/cjs/plugins/dev-mode/unallowed-properties.js +88 -0
  66. package/dist/cjs/plugins/dev-mode/unallowed-properties.js.map +1 -0
  67. package/dist/cjs/plugins/electron/electron-helper.js +9 -0
  68. package/dist/cjs/plugins/electron/electron-helper.js.map +1 -0
  69. package/dist/cjs/plugins/electron/index.js +39 -0
  70. package/dist/cjs/plugins/electron/index.js.map +1 -0
  71. package/dist/cjs/plugins/electron/rx-storage-ipc-main.js +45 -0
  72. package/dist/cjs/plugins/electron/rx-storage-ipc-main.js.map +1 -0
  73. package/dist/cjs/plugins/electron/rx-storage-ipc-renderer.js +37 -0
  74. package/dist/cjs/plugins/electron/rx-storage-ipc-renderer.js.map +1 -0
  75. package/dist/cjs/plugins/encryption-crypto-js/index.js +165 -0
  76. package/dist/cjs/plugins/encryption-crypto-js/index.js.map +1 -0
  77. package/dist/cjs/plugins/flutter/index.js +62 -0
  78. package/dist/cjs/plugins/flutter/index.js.map +1 -0
  79. package/dist/cjs/plugins/json-dump/index.js +94 -0
  80. package/dist/cjs/plugins/json-dump/index.js.map +1 -0
  81. package/dist/cjs/plugins/key-compression/index.js +136 -0
  82. package/dist/cjs/plugins/key-compression/index.js.map +1 -0
  83. package/dist/cjs/plugins/leader-election/index.js +107 -0
  84. package/dist/cjs/plugins/leader-election/index.js.map +1 -0
  85. package/dist/cjs/plugins/local-documents/index.js +109 -0
  86. package/dist/cjs/plugins/local-documents/index.js.map +1 -0
  87. package/dist/cjs/plugins/local-documents/local-documents-helper.js +78 -0
  88. package/dist/cjs/plugins/local-documents/local-documents-helper.js.map +1 -0
  89. package/dist/cjs/plugins/local-documents/local-documents.js +107 -0
  90. package/dist/cjs/plugins/local-documents/local-documents.js.map +1 -0
  91. package/dist/cjs/plugins/local-documents/rx-local-document.js +257 -0
  92. package/dist/cjs/plugins/local-documents/rx-local-document.js.map +1 -0
  93. package/dist/cjs/plugins/migration-schema/index.js +84 -0
  94. package/dist/cjs/plugins/migration-schema/index.js.map +1 -0
  95. package/dist/cjs/plugins/migration-schema/migration-helpers.js +116 -0
  96. package/dist/cjs/plugins/migration-schema/migration-helpers.js.map +1 -0
  97. package/dist/cjs/plugins/migration-schema/migration-types.js +2 -0
  98. package/dist/cjs/plugins/migration-schema/migration-types.js.map +1 -0
  99. package/dist/cjs/plugins/migration-schema/rx-migration-state.js +410 -0
  100. package/dist/cjs/plugins/migration-schema/rx-migration-state.js.map +1 -0
  101. package/dist/cjs/plugins/migration-storage/index.js +173 -0
  102. package/dist/cjs/plugins/migration-storage/index.js.map +1 -0
  103. package/dist/cjs/plugins/pipeline/flagged-functions.js +129 -0
  104. package/dist/cjs/plugins/pipeline/flagged-functions.js.map +1 -0
  105. package/dist/cjs/plugins/pipeline/index.js +43 -0
  106. package/dist/cjs/plugins/pipeline/index.js.map +1 -0
  107. package/dist/cjs/plugins/pipeline/rx-pipeline.js +219 -0
  108. package/dist/cjs/plugins/pipeline/rx-pipeline.js.map +1 -0
  109. package/dist/cjs/plugins/pipeline/types.js +2 -0
  110. package/dist/cjs/plugins/pipeline/types.js.map +1 -0
  111. package/dist/cjs/plugins/query-builder/index.js +70 -0
  112. package/dist/cjs/plugins/query-builder/index.js.map +1 -0
  113. package/dist/cjs/plugins/query-builder/mquery/mquery-utils.js +40 -0
  114. package/dist/cjs/plugins/query-builder/mquery/mquery-utils.js.map +1 -0
  115. package/dist/cjs/plugins/query-builder/mquery/nosql-query-builder.js +488 -0
  116. package/dist/cjs/plugins/query-builder/mquery/nosql-query-builder.js.map +1 -0
  117. package/dist/cjs/plugins/react/database-context.js +15 -0
  118. package/dist/cjs/plugins/react/database-context.js.map +1 -0
  119. package/dist/cjs/plugins/react/database-provider.js +41 -0
  120. package/dist/cjs/plugins/react/database-provider.js.map +1 -0
  121. package/dist/cjs/plugins/react/hooks/index.js +50 -0
  122. package/dist/cjs/plugins/react/hooks/index.js.map +1 -0
  123. package/dist/cjs/plugins/react/hooks/use-live-rx-query.js +27 -0
  124. package/dist/cjs/plugins/react/hooks/use-live-rx-query.js.map +1 -0
  125. package/dist/cjs/plugins/react/hooks/use-rx-collection.js +39 -0
  126. package/dist/cjs/plugins/react/hooks/use-rx-collection.js.map +1 -0
  127. package/dist/cjs/plugins/react/hooks/use-rx-database.js +24 -0
  128. package/dist/cjs/plugins/react/hooks/use-rx-database.js.map +1 -0
  129. package/dist/cjs/plugins/react/hooks/use-rx-query.js +99 -0
  130. package/dist/cjs/plugins/react/hooks/use-rx-query.js.map +1 -0
  131. package/dist/cjs/plugins/react/index.js +28 -0
  132. package/dist/cjs/plugins/react/index.js.map +1 -0
  133. package/dist/cjs/plugins/reactivity-angular/index.js +30 -0
  134. package/dist/cjs/plugins/reactivity-angular/index.js.map +1 -0
  135. package/dist/cjs/plugins/reactivity-preact-signals/index.js +67 -0
  136. package/dist/cjs/plugins/reactivity-preact-signals/index.js.map +1 -0
  137. package/dist/cjs/plugins/reactivity-vue/index.js +32 -0
  138. package/dist/cjs/plugins/reactivity-vue/index.js.map +1 -0
  139. package/dist/cjs/plugins/replication/index.js +487 -0
  140. package/dist/cjs/plugins/replication/index.js.map +1 -0
  141. package/dist/cjs/plugins/replication/replication-helper.js +97 -0
  142. package/dist/cjs/plugins/replication/replication-helper.js.map +1 -0
  143. package/dist/cjs/plugins/replication-appwrite/appwrite-helpers.js +33 -0
  144. package/dist/cjs/plugins/replication-appwrite/appwrite-helpers.js.map +1 -0
  145. package/dist/cjs/plugins/replication-appwrite/appwrite-types.js +2 -0
  146. package/dist/cjs/plugins/replication-appwrite/appwrite-types.js.map +1 -0
  147. package/dist/cjs/plugins/replication-appwrite/index.js +176 -0
  148. package/dist/cjs/plugins/replication-appwrite/index.js.map +1 -0
  149. package/dist/cjs/plugins/replication-couchdb/couchdb-helper.js +77 -0
  150. package/dist/cjs/plugins/replication-couchdb/couchdb-helper.js.map +1 -0
  151. package/dist/cjs/plugins/replication-couchdb/couchdb-types.js +2 -0
  152. package/dist/cjs/plugins/replication-couchdb/couchdb-types.js.map +1 -0
  153. package/dist/cjs/plugins/replication-couchdb/index.js +287 -0
  154. package/dist/cjs/plugins/replication-couchdb/index.js.map +1 -0
  155. package/dist/cjs/plugins/replication-firestore/firestore-helper.js +61 -0
  156. package/dist/cjs/plugins/replication-firestore/firestore-helper.js.map +1 -0
  157. package/dist/cjs/plugins/replication-firestore/firestore-types.js +2 -0
  158. package/dist/cjs/plugins/replication-firestore/firestore-types.js.map +1 -0
  159. package/dist/cjs/plugins/replication-firestore/index.js +266 -0
  160. package/dist/cjs/plugins/replication-firestore/index.js.map +1 -0
  161. package/dist/cjs/plugins/replication-google-drive/document-handling.js +150 -0
  162. package/dist/cjs/plugins/replication-google-drive/document-handling.js.map +1 -0
  163. package/dist/cjs/plugins/replication-google-drive/downstream.js +73 -0
  164. package/dist/cjs/plugins/replication-google-drive/downstream.js.map +1 -0
  165. package/dist/cjs/plugins/replication-google-drive/google-drive-helper.js +349 -0
  166. package/dist/cjs/plugins/replication-google-drive/google-drive-helper.js.map +1 -0
  167. package/dist/cjs/plugins/replication-google-drive/google-drive-types.js +2 -0
  168. package/dist/cjs/plugins/replication-google-drive/google-drive-types.js.map +1 -0
  169. package/dist/cjs/plugins/replication-google-drive/index.js +233 -0
  170. package/dist/cjs/plugins/replication-google-drive/index.js.map +1 -0
  171. package/dist/cjs/plugins/replication-google-drive/init.js +76 -0
  172. package/dist/cjs/plugins/replication-google-drive/init.js.map +1 -0
  173. package/dist/cjs/plugins/replication-google-drive/multipart.js +74 -0
  174. package/dist/cjs/plugins/replication-google-drive/multipart.js.map +1 -0
  175. package/dist/cjs/plugins/replication-google-drive/signaling.js +262 -0
  176. package/dist/cjs/plugins/replication-google-drive/signaling.js.map +1 -0
  177. package/dist/cjs/plugins/replication-google-drive/transaction.js +134 -0
  178. package/dist/cjs/plugins/replication-google-drive/transaction.js.map +1 -0
  179. package/dist/cjs/plugins/replication-google-drive/upstream.js +182 -0
  180. package/dist/cjs/plugins/replication-google-drive/upstream.js.map +1 -0
  181. package/dist/cjs/plugins/replication-graphql/graphql-schema-from-rx-schema.js +235 -0
  182. package/dist/cjs/plugins/replication-graphql/graphql-schema-from-rx-schema.js.map +1 -0
  183. package/dist/cjs/plugins/replication-graphql/graphql-websocket.js +43 -0
  184. package/dist/cjs/plugins/replication-graphql/graphql-websocket.js.map +1 -0
  185. package/dist/cjs/plugins/replication-graphql/helper.js +29 -0
  186. package/dist/cjs/plugins/replication-graphql/helper.js.map +1 -0
  187. package/dist/cjs/plugins/replication-graphql/index.js +215 -0
  188. package/dist/cjs/plugins/replication-graphql/index.js.map +1 -0
  189. package/dist/cjs/plugins/replication-graphql/query-builder-from-rx-schema.js +141 -0
  190. package/dist/cjs/plugins/replication-graphql/query-builder-from-rx-schema.js.map +1 -0
  191. package/dist/cjs/plugins/replication-microsoft-onedrive/document-handling.js +187 -0
  192. package/dist/cjs/plugins/replication-microsoft-onedrive/document-handling.js.map +1 -0
  193. package/dist/cjs/plugins/replication-microsoft-onedrive/downstream.js +78 -0
  194. package/dist/cjs/plugins/replication-microsoft-onedrive/downstream.js.map +1 -0
  195. package/dist/cjs/plugins/replication-microsoft-onedrive/index.js +222 -0
  196. package/dist/cjs/plugins/replication-microsoft-onedrive/index.js.map +1 -0
  197. package/dist/cjs/plugins/replication-microsoft-onedrive/init.js +76 -0
  198. package/dist/cjs/plugins/replication-microsoft-onedrive/init.js.map +1 -0
  199. package/dist/cjs/plugins/replication-microsoft-onedrive/microsoft-onedrive-helper.js +273 -0
  200. package/dist/cjs/plugins/replication-microsoft-onedrive/microsoft-onedrive-helper.js.map +1 -0
  201. package/dist/cjs/plugins/replication-microsoft-onedrive/microsoft-onedrive-types.js +2 -0
  202. package/dist/cjs/plugins/replication-microsoft-onedrive/microsoft-onedrive-types.js.map +1 -0
  203. package/dist/cjs/plugins/replication-microsoft-onedrive/signaling.js +235 -0
  204. package/dist/cjs/plugins/replication-microsoft-onedrive/signaling.js.map +1 -0
  205. package/dist/cjs/plugins/replication-microsoft-onedrive/transaction.js +138 -0
  206. package/dist/cjs/plugins/replication-microsoft-onedrive/transaction.js.map +1 -0
  207. package/dist/cjs/plugins/replication-microsoft-onedrive/upstream.js +190 -0
  208. package/dist/cjs/plugins/replication-microsoft-onedrive/upstream.js.map +1 -0
  209. package/dist/cjs/plugins/replication-mongodb/index.js +229 -0
  210. package/dist/cjs/plugins/replication-mongodb/index.js.map +1 -0
  211. package/dist/cjs/plugins/replication-mongodb/mongodb-checkpoint.js +140 -0
  212. package/dist/cjs/plugins/replication-mongodb/mongodb-checkpoint.js.map +1 -0
  213. package/dist/cjs/plugins/replication-mongodb/mongodb-helper.js +53 -0
  214. package/dist/cjs/plugins/replication-mongodb/mongodb-helper.js.map +1 -0
  215. package/dist/cjs/plugins/replication-mongodb/mongodb-types.js +2 -0
  216. package/dist/cjs/plugins/replication-mongodb/mongodb-types.js.map +1 -0
  217. package/dist/cjs/plugins/replication-nats/index.js +232 -0
  218. package/dist/cjs/plugins/replication-nats/index.js.map +1 -0
  219. package/dist/cjs/plugins/replication-nats/nats-helper.js +13 -0
  220. package/dist/cjs/plugins/replication-nats/nats-helper.js.map +1 -0
  221. package/dist/cjs/plugins/replication-nats/nats-types.js +2 -0
  222. package/dist/cjs/plugins/replication-nats/nats-types.js.map +1 -0
  223. package/dist/cjs/plugins/replication-supabase/helper.js +42 -0
  224. package/dist/cjs/plugins/replication-supabase/helper.js.map +1 -0
  225. package/dist/cjs/plugins/replication-supabase/index.js +239 -0
  226. package/dist/cjs/plugins/replication-supabase/index.js.map +1 -0
  227. package/dist/cjs/plugins/replication-supabase/types.js +2 -0
  228. package/dist/cjs/plugins/replication-supabase/types.js.map +1 -0
  229. package/dist/cjs/plugins/replication-webrtc/connection-handler-p2pcf.js +79 -0
  230. package/dist/cjs/plugins/replication-webrtc/connection-handler-p2pcf.js.map +1 -0
  231. package/dist/cjs/plugins/replication-webrtc/connection-handler-simple-peer.js +199 -0
  232. package/dist/cjs/plugins/replication-webrtc/connection-handler-simple-peer.js.map +1 -0
  233. package/dist/cjs/plugins/replication-webrtc/connection-handler-webtorrent.js +137 -0
  234. package/dist/cjs/plugins/replication-webrtc/connection-handler-webtorrent.js.map +1 -0
  235. package/dist/cjs/plugins/replication-webrtc/index.js +260 -0
  236. package/dist/cjs/plugins/replication-webrtc/index.js.map +1 -0
  237. package/dist/cjs/plugins/replication-webrtc/signaling-server.js +151 -0
  238. package/dist/cjs/plugins/replication-webrtc/signaling-server.js.map +1 -0
  239. package/dist/cjs/plugins/replication-webrtc/webrtc-helper.js +32 -0
  240. package/dist/cjs/plugins/replication-webrtc/webrtc-helper.js.map +1 -0
  241. package/dist/cjs/plugins/replication-webrtc/webrtc-types.js +2 -0
  242. package/dist/cjs/plugins/replication-webrtc/webrtc-types.js.map +1 -0
  243. package/dist/cjs/plugins/replication-websocket/index.js +39 -0
  244. package/dist/cjs/plugins/replication-websocket/index.js.map +1 -0
  245. package/dist/cjs/plugins/replication-websocket/websocket-client.js +133 -0
  246. package/dist/cjs/plugins/replication-websocket/websocket-client.js.map +1 -0
  247. package/dist/cjs/plugins/replication-websocket/websocket-server.js +108 -0
  248. package/dist/cjs/plugins/replication-websocket/websocket-server.js.map +1 -0
  249. package/dist/cjs/plugins/replication-websocket/websocket-types.js +2 -0
  250. package/dist/cjs/plugins/replication-websocket/websocket-types.js.map +1 -0
  251. package/dist/cjs/plugins/state/helpers.js +81 -0
  252. package/dist/cjs/plugins/state/helpers.js.map +1 -0
  253. package/dist/cjs/plugins/state/index.js +42 -0
  254. package/dist/cjs/plugins/state/index.js.map +1 -0
  255. package/dist/cjs/plugins/state/rx-state.js +293 -0
  256. package/dist/cjs/plugins/state/rx-state.js.map +1 -0
  257. package/dist/cjs/plugins/state/types.js +2 -0
  258. package/dist/cjs/plugins/state/types.js.map +1 -0
  259. package/dist/cjs/plugins/storage-denokv/denokv-helper.js +49 -0
  260. package/dist/cjs/plugins/storage-denokv/denokv-helper.js.map +1 -0
  261. package/dist/cjs/plugins/storage-denokv/denokv-query.js +99 -0
  262. package/dist/cjs/plugins/storage-denokv/denokv-query.js.map +1 -0
  263. package/dist/cjs/plugins/storage-denokv/denokv-types.js +2 -0
  264. package/dist/cjs/plugins/storage-denokv/denokv-types.js.map +1 -0
  265. package/dist/cjs/plugins/storage-denokv/index.js +31 -0
  266. package/dist/cjs/plugins/storage-denokv/index.js.map +1 -0
  267. package/dist/cjs/plugins/storage-denokv/rx-storage-instance-denokv.js +332 -0
  268. package/dist/cjs/plugins/storage-denokv/rx-storage-instance-denokv.js.map +1 -0
  269. package/dist/cjs/plugins/storage-dexie/dexie-helper.js +259 -0
  270. package/dist/cjs/plugins/storage-dexie/dexie-helper.js.map +1 -0
  271. package/dist/cjs/plugins/storage-dexie/dexie-query.js +178 -0
  272. package/dist/cjs/plugins/storage-dexie/dexie-query.js.map +1 -0
  273. package/dist/cjs/plugins/storage-dexie/index.js +50 -0
  274. package/dist/cjs/plugins/storage-dexie/index.js.map +1 -0
  275. package/dist/cjs/plugins/storage-dexie/rx-storage-dexie.js +46 -0
  276. package/dist/cjs/plugins/storage-dexie/rx-storage-dexie.js.map +1 -0
  277. package/dist/cjs/plugins/storage-dexie/rx-storage-instance-dexie.js +229 -0
  278. package/dist/cjs/plugins/storage-dexie/rx-storage-instance-dexie.js.map +1 -0
  279. package/dist/cjs/plugins/storage-foundationdb/foundationdb-helpers.js +13 -0
  280. package/dist/cjs/plugins/storage-foundationdb/foundationdb-helpers.js.map +1 -0
  281. package/dist/cjs/plugins/storage-foundationdb/foundationdb-query.js +96 -0
  282. package/dist/cjs/plugins/storage-foundationdb/foundationdb-query.js.map +1 -0
  283. package/dist/cjs/plugins/storage-foundationdb/foundationdb-types.js +2 -0
  284. package/dist/cjs/plugins/storage-foundationdb/foundationdb-types.js.map +1 -0
  285. package/dist/cjs/plugins/storage-foundationdb/index.js +62 -0
  286. package/dist/cjs/plugins/storage-foundationdb/index.js.map +1 -0
  287. package/dist/cjs/plugins/storage-foundationdb/rx-storage-instance-foundationdb.js +309 -0
  288. package/dist/cjs/plugins/storage-foundationdb/rx-storage-instance-foundationdb.js.map +1 -0
  289. package/dist/cjs/plugins/storage-localstorage/index.js +45 -0
  290. package/dist/cjs/plugins/storage-localstorage/index.js.map +1 -0
  291. package/dist/cjs/plugins/storage-localstorage/localstorage-mock.js +38 -0
  292. package/dist/cjs/plugins/storage-localstorage/localstorage-mock.js.map +1 -0
  293. package/dist/cjs/plugins/storage-localstorage/rx-storage-instance-localstorage.js +443 -0
  294. package/dist/cjs/plugins/storage-localstorage/rx-storage-instance-localstorage.js.map +1 -0
  295. package/dist/cjs/plugins/storage-memory/binary-search-bounds.js +113 -0
  296. package/dist/cjs/plugins/storage-memory/binary-search-bounds.js.map +1 -0
  297. package/dist/cjs/plugins/storage-memory/index.js +91 -0
  298. package/dist/cjs/plugins/storage-memory/index.js.map +1 -0
  299. package/dist/cjs/plugins/storage-memory/memory-helper.js +177 -0
  300. package/dist/cjs/plugins/storage-memory/memory-helper.js.map +1 -0
  301. package/dist/cjs/plugins/storage-memory/memory-indexes.js +28 -0
  302. package/dist/cjs/plugins/storage-memory/memory-indexes.js.map +1 -0
  303. package/dist/cjs/plugins/storage-memory/memory-types.js +2 -0
  304. package/dist/cjs/plugins/storage-memory/memory-types.js.map +1 -0
  305. package/dist/cjs/plugins/storage-memory/rx-storage-instance-memory.js +371 -0
  306. package/dist/cjs/plugins/storage-memory/rx-storage-instance-memory.js.map +1 -0
  307. package/dist/cjs/plugins/storage-mongodb/index.js +50 -0
  308. package/dist/cjs/plugins/storage-mongodb/index.js.map +1 -0
  309. package/dist/cjs/plugins/storage-mongodb/mongodb-helper.js +97 -0
  310. package/dist/cjs/plugins/storage-mongodb/mongodb-helper.js.map +1 -0
  311. package/dist/cjs/plugins/storage-mongodb/mongodb-types.js +2 -0
  312. package/dist/cjs/plugins/storage-mongodb/mongodb-types.js.map +1 -0
  313. package/dist/cjs/plugins/storage-mongodb/rx-storage-instance-mongodb.js +324 -0
  314. package/dist/cjs/plugins/storage-mongodb/rx-storage-instance-mongodb.js.map +1 -0
  315. package/dist/cjs/plugins/storage-mongodb/rx-storage-mongodb.js +29 -0
  316. package/dist/cjs/plugins/storage-mongodb/rx-storage-mongodb.js.map +1 -0
  317. package/dist/cjs/plugins/storage-remote/index.js +61 -0
  318. package/dist/cjs/plugins/storage-remote/index.js.map +1 -0
  319. package/dist/cjs/plugins/storage-remote/message-channel-cache.js +52 -0
  320. package/dist/cjs/plugins/storage-remote/message-channel-cache.js.map +1 -0
  321. package/dist/cjs/plugins/storage-remote/remote.js +217 -0
  322. package/dist/cjs/plugins/storage-remote/remote.js.map +1 -0
  323. package/dist/cjs/plugins/storage-remote/rx-storage-remote.js +199 -0
  324. package/dist/cjs/plugins/storage-remote/rx-storage-remote.js.map +1 -0
  325. package/dist/cjs/plugins/storage-remote/storage-remote-helpers.js +25 -0
  326. package/dist/cjs/plugins/storage-remote/storage-remote-helpers.js.map +1 -0
  327. package/dist/cjs/plugins/storage-remote/storage-remote-types.js +2 -0
  328. package/dist/cjs/plugins/storage-remote/storage-remote-types.js.map +1 -0
  329. package/dist/cjs/plugins/storage-remote-websocket/index.js +183 -0
  330. package/dist/cjs/plugins/storage-remote-websocket/index.js.map +1 -0
  331. package/dist/cjs/plugins/storage-remote-websocket/types.js +2 -0
  332. package/dist/cjs/plugins/storage-remote-websocket/types.js.map +1 -0
  333. package/dist/cjs/plugins/storage-sqlite/index.js +84 -0
  334. package/dist/cjs/plugins/storage-sqlite/index.js.map +1 -0
  335. package/dist/cjs/plugins/storage-sqlite/sqlite-basics-helpers.js +530 -0
  336. package/dist/cjs/plugins/storage-sqlite/sqlite-basics-helpers.js.map +1 -0
  337. package/dist/cjs/plugins/storage-sqlite/sqlite-helpers.js +203 -0
  338. package/dist/cjs/plugins/storage-sqlite/sqlite-helpers.js.map +1 -0
  339. package/dist/cjs/plugins/storage-sqlite/sqlite-storage-instance.js +291 -0
  340. package/dist/cjs/plugins/storage-sqlite/sqlite-storage-instance.js.map +1 -0
  341. package/dist/cjs/plugins/storage-sqlite/sqlite-types.js +2 -0
  342. package/dist/cjs/plugins/storage-sqlite/sqlite-types.js.map +1 -0
  343. package/dist/cjs/plugins/test-utils/config.js +120 -0
  344. package/dist/cjs/plugins/test-utils/config.js.map +1 -0
  345. package/dist/cjs/plugins/test-utils/humans-collection.js +420 -0
  346. package/dist/cjs/plugins/test-utils/humans-collection.js.map +1 -0
  347. package/dist/cjs/plugins/test-utils/index.js +130 -0
  348. package/dist/cjs/plugins/test-utils/index.js.map +1 -0
  349. package/dist/cjs/plugins/test-utils/performance.js +275 -0
  350. package/dist/cjs/plugins/test-utils/performance.js.map +1 -0
  351. package/dist/cjs/plugins/test-utils/replication-base-test-suite.js +179 -0
  352. package/dist/cjs/plugins/test-utils/replication-base-test-suite.js.map +1 -0
  353. package/dist/cjs/plugins/test-utils/replication.js +54 -0
  354. package/dist/cjs/plugins/test-utils/replication.js.map +1 -0
  355. package/dist/cjs/plugins/test-utils/revisions.js +11 -0
  356. package/dist/cjs/plugins/test-utils/revisions.js.map +1 -0
  357. package/dist/cjs/plugins/test-utils/schema-objects.js +315 -0
  358. package/dist/cjs/plugins/test-utils/schema-objects.js.map +1 -0
  359. package/dist/cjs/plugins/test-utils/schemas.js +1254 -0
  360. package/dist/cjs/plugins/test-utils/schemas.js.map +1 -0
  361. package/dist/cjs/plugins/test-utils/test-util.js +72 -0
  362. package/dist/cjs/plugins/test-utils/test-util.js.map +1 -0
  363. package/dist/cjs/plugins/update/index.js +45 -0
  364. package/dist/cjs/plugins/update/index.js.map +1 -0
  365. package/dist/cjs/plugins/update/mingo-updater.js +20 -0
  366. package/dist/cjs/plugins/update/mingo-updater.js.map +1 -0
  367. package/dist/cjs/plugins/utils/index.js +226 -0
  368. package/dist/cjs/plugins/utils/index.js.map +1 -0
  369. package/dist/cjs/plugins/utils/utils-array.js +150 -0
  370. package/dist/cjs/plugins/utils/utils-array.js.map +1 -0
  371. package/dist/cjs/plugins/utils/utils-base64.js +57 -0
  372. package/dist/cjs/plugins/utils/utils-base64.js.map +1 -0
  373. package/dist/cjs/plugins/utils/utils-blob.js +62 -0
  374. package/dist/cjs/plugins/utils/utils-blob.js.map +1 -0
  375. package/dist/cjs/plugins/utils/utils-document.js +100 -0
  376. package/dist/cjs/plugins/utils/utils-document.js.map +1 -0
  377. package/dist/cjs/plugins/utils/utils-error.js +42 -0
  378. package/dist/cjs/plugins/utils/utils-error.js.map +1 -0
  379. package/dist/cjs/plugins/utils/utils-global.js +12 -0
  380. package/dist/cjs/plugins/utils/utils-global.js.map +1 -0
  381. package/dist/cjs/plugins/utils/utils-hash.js +59 -0
  382. package/dist/cjs/plugins/utils/utils-hash.js.map +1 -0
  383. package/dist/cjs/plugins/utils/utils-map.js +25 -0
  384. package/dist/cjs/plugins/utils/utils-map.js.map +1 -0
  385. package/dist/cjs/plugins/utils/utils-number.js +16 -0
  386. package/dist/cjs/plugins/utils/utils-number.js.map +1 -0
  387. package/dist/cjs/plugins/utils/utils-object-deep-equal.js +42 -0
  388. package/dist/cjs/plugins/utils/utils-object-deep-equal.js.map +1 -0
  389. package/dist/cjs/plugins/utils/utils-object-dot-prop.js +306 -0
  390. package/dist/cjs/plugins/utils/utils-object-dot-prop.js.map +1 -0
  391. package/dist/cjs/plugins/utils/utils-object.js +245 -0
  392. package/dist/cjs/plugins/utils/utils-object.js.map +1 -0
  393. package/dist/cjs/plugins/utils/utils-other.js +69 -0
  394. package/dist/cjs/plugins/utils/utils-other.js.map +1 -0
  395. package/dist/cjs/plugins/utils/utils-premium.js +37 -0
  396. package/dist/cjs/plugins/utils/utils-premium.js.map +1 -0
  397. package/dist/cjs/plugins/utils/utils-promise.js +149 -0
  398. package/dist/cjs/plugins/utils/utils-promise.js.map +1 -0
  399. package/dist/cjs/plugins/utils/utils-regex.js +9 -0
  400. package/dist/cjs/plugins/utils/utils-regex.js.map +1 -0
  401. package/dist/cjs/plugins/utils/utils-revision.js +60 -0
  402. package/dist/cjs/plugins/utils/utils-revision.js.map +1 -0
  403. package/dist/cjs/plugins/utils/utils-rxdb-version.js +11 -0
  404. package/dist/cjs/plugins/utils/utils-rxdb-version.js.map +1 -0
  405. package/dist/cjs/plugins/utils/utils-rxdb-version.template.js +11 -0
  406. package/dist/cjs/plugins/utils/utils-rxdb-version.template.js.map +1 -0
  407. package/dist/cjs/plugins/utils/utils-string.js +97 -0
  408. package/dist/cjs/plugins/utils/utils-string.js.map +1 -0
  409. package/dist/cjs/plugins/utils/utils-time.js +42 -0
  410. package/dist/cjs/plugins/utils/utils-time.js.map +1 -0
  411. package/dist/cjs/plugins/validate-ajv/index.js +53 -0
  412. package/dist/cjs/plugins/validate-ajv/index.js.map +1 -0
  413. package/dist/cjs/plugins/validate-is-my-json-valid/index.js +29 -0
  414. package/dist/cjs/plugins/validate-is-my-json-valid/index.js.map +1 -0
  415. package/dist/cjs/plugins/validate-z-schema/index.js +58 -0
  416. package/dist/cjs/plugins/validate-z-schema/index.js.map +1 -0
  417. package/dist/cjs/plugins/vector/helper.js +2 -0
  418. package/dist/cjs/plugins/vector/helper.js.map +1 -0
  419. package/dist/cjs/plugins/vector/index.js +17 -0
  420. package/dist/cjs/plugins/vector/index.js.map +1 -0
  421. package/dist/cjs/plugins/vector/types.js +2 -0
  422. package/dist/cjs/plugins/vector/types.js.map +1 -0
  423. package/dist/cjs/plugins/vector/vector-distance.js +38 -0
  424. package/dist/cjs/plugins/vector/vector-distance.js.map +1 -0
  425. package/dist/cjs/plugins/webmcp/index.js +28 -0
  426. package/dist/cjs/plugins/webmcp/index.js.map +1 -0
  427. package/dist/cjs/plugins/webmcp/nosql-query-schema.js +360 -0
  428. package/dist/cjs/plugins/webmcp/nosql-query-schema.js.map +1 -0
  429. package/dist/cjs/plugins/webmcp/webmcp.js +315 -0
  430. package/dist/cjs/plugins/webmcp/webmcp.js.map +1 -0
  431. package/dist/cjs/query-cache.js +110 -0
  432. package/dist/cjs/query-cache.js.map +1 -0
  433. package/dist/cjs/query-planner.js +307 -0
  434. package/dist/cjs/query-planner.js.map +1 -0
  435. package/dist/cjs/replication-protocol/checkpoint.js +103 -0
  436. package/dist/cjs/replication-protocol/checkpoint.js.map +1 -0
  437. package/dist/cjs/replication-protocol/conflicts.js +36 -0
  438. package/dist/cjs/replication-protocol/conflicts.js.map +1 -0
  439. package/dist/cjs/replication-protocol/default-conflict-handler.js +39 -0
  440. package/dist/cjs/replication-protocol/default-conflict-handler.js.map +1 -0
  441. package/dist/cjs/replication-protocol/downstream.js +339 -0
  442. package/dist/cjs/replication-protocol/downstream.js.map +1 -0
  443. package/dist/cjs/replication-protocol/helper.js +58 -0
  444. package/dist/cjs/replication-protocol/helper.js.map +1 -0
  445. package/dist/cjs/replication-protocol/index.js +314 -0
  446. package/dist/cjs/replication-protocol/index.js.map +1 -0
  447. package/dist/cjs/replication-protocol/meta-instance.js +130 -0
  448. package/dist/cjs/replication-protocol/meta-instance.js.map +1 -0
  449. package/dist/cjs/replication-protocol/upstream.js +384 -0
  450. package/dist/cjs/replication-protocol/upstream.js.map +1 -0
  451. package/dist/cjs/rx-change-event.js +112 -0
  452. package/dist/cjs/rx-change-event.js.map +1 -0
  453. package/dist/cjs/rx-collection-helper.js +205 -0
  454. package/dist/cjs/rx-collection-helper.js.map +1 -0
  455. package/dist/cjs/rx-collection.js +931 -0
  456. package/dist/cjs/rx-collection.js.map +1 -0
  457. package/dist/cjs/rx-database-internal-store.js +283 -0
  458. package/dist/cjs/rx-database-internal-store.js.map +1 -0
  459. package/dist/cjs/rx-database.js +682 -0
  460. package/dist/cjs/rx-database.js.map +1 -0
  461. package/dist/cjs/rx-document-prototype-merge.js +87 -0
  462. package/dist/cjs/rx-document-prototype-merge.js.map +1 -0
  463. package/dist/cjs/rx-document.js +404 -0
  464. package/dist/cjs/rx-document.js.map +1 -0
  465. package/dist/cjs/rx-error.js +167 -0
  466. package/dist/cjs/rx-error.js.map +1 -0
  467. package/dist/cjs/rx-query-helper.js +277 -0
  468. package/dist/cjs/rx-query-helper.js.map +1 -0
  469. package/dist/cjs/rx-query-mingo.js +60 -0
  470. package/dist/cjs/rx-query-mingo.js.map +1 -0
  471. package/dist/cjs/rx-query-single-result.js +105 -0
  472. package/dist/cjs/rx-query-single-result.js.map +1 -0
  473. package/dist/cjs/rx-query.js +703 -0
  474. package/dist/cjs/rx-query.js.map +1 -0
  475. package/dist/cjs/rx-schema-helper.js +333 -0
  476. package/dist/cjs/rx-schema-helper.js.map +1 -0
  477. package/dist/cjs/rx-schema.js +189 -0
  478. package/dist/cjs/rx-schema.js.map +1 -0
  479. package/dist/cjs/rx-storage-helper.js +808 -0
  480. package/dist/cjs/rx-storage-helper.js.map +1 -0
  481. package/dist/cjs/rx-storage-multiinstance.js +121 -0
  482. package/dist/cjs/rx-storage-multiinstance.js.map +1 -0
  483. package/dist/cjs/types/conflict-handling.d.js +2 -0
  484. package/dist/cjs/types/conflict-handling.d.js.map +1 -0
  485. package/dist/cjs/types/couchdb.d.js +2 -0
  486. package/dist/cjs/types/couchdb.d.js.map +1 -0
  487. package/dist/cjs/types/index.d.js +2 -0
  488. package/dist/cjs/types/index.d.js.map +1 -0
  489. package/dist/cjs/types/modules/index.d.js +2 -0
  490. package/dist/cjs/types/modules/index.d.js.map +1 -0
  491. package/dist/cjs/types/modules/mocha.parallel.d.js +2 -0
  492. package/dist/cjs/types/modules/mocha.parallel.d.js.map +1 -0
  493. package/dist/cjs/types/plugins/backup.d.js +2 -0
  494. package/dist/cjs/types/plugins/backup.d.js.map +1 -0
  495. package/dist/cjs/types/plugins/cleanup.d.js +2 -0
  496. package/dist/cjs/types/plugins/cleanup.d.js.map +1 -0
  497. package/dist/cjs/types/plugins/crdt.d.js +2 -0
  498. package/dist/cjs/types/plugins/crdt.d.js.map +1 -0
  499. package/dist/cjs/types/plugins/dexie.d.js +2 -0
  500. package/dist/cjs/types/plugins/dexie.d.js.map +1 -0
  501. package/dist/cjs/types/plugins/local-documents.d.js +2 -0
  502. package/dist/cjs/types/plugins/local-documents.d.js.map +1 -0
  503. package/dist/cjs/types/plugins/migration.d.js +2 -0
  504. package/dist/cjs/types/plugins/migration.d.js.map +1 -0
  505. package/dist/cjs/types/plugins/reactivity.d.js +2 -0
  506. package/dist/cjs/types/plugins/reactivity.d.js.map +1 -0
  507. package/dist/cjs/types/plugins/replication-graphql.d.js +2 -0
  508. package/dist/cjs/types/plugins/replication-graphql.d.js.map +1 -0
  509. package/dist/cjs/types/plugins/replication.d.js +2 -0
  510. package/dist/cjs/types/plugins/replication.d.js.map +1 -0
  511. package/dist/cjs/types/plugins/state.d.js +2 -0
  512. package/dist/cjs/types/plugins/state.d.js.map +1 -0
  513. package/dist/cjs/types/plugins/update.d.js +2 -0
  514. package/dist/cjs/types/plugins/update.d.js.map +1 -0
  515. package/dist/cjs/types/plugins/webmcp.d.js +2 -0
  516. package/dist/cjs/types/plugins/webmcp.d.js.map +1 -0
  517. package/dist/cjs/types/query-planner.d.js +2 -0
  518. package/dist/cjs/types/query-planner.d.js.map +1 -0
  519. package/dist/cjs/types/replication-protocol.d.js +2 -0
  520. package/dist/cjs/types/replication-protocol.d.js.map +1 -0
  521. package/dist/cjs/types/rx-attachment.d.js +2 -0
  522. package/dist/cjs/types/rx-attachment.d.js.map +1 -0
  523. package/dist/cjs/types/rx-change-event.d.js +2 -0
  524. package/dist/cjs/types/rx-change-event.d.js.map +1 -0
  525. package/dist/cjs/types/rx-collection.d.js +2 -0
  526. package/dist/cjs/types/rx-collection.d.js.map +1 -0
  527. package/dist/cjs/types/rx-database-internal-store.d.js +2 -0
  528. package/dist/cjs/types/rx-database-internal-store.d.js.map +1 -0
  529. package/dist/cjs/types/rx-database.d.js +2 -0
  530. package/dist/cjs/types/rx-database.d.js.map +1 -0
  531. package/dist/cjs/types/rx-document.d.js +2 -0
  532. package/dist/cjs/types/rx-document.d.js.map +1 -0
  533. package/dist/cjs/types/rx-error.d.js +2 -0
  534. package/dist/cjs/types/rx-error.d.js.map +1 -0
  535. package/dist/cjs/types/rx-plugin.d.js +2 -0
  536. package/dist/cjs/types/rx-plugin.d.js.map +1 -0
  537. package/dist/cjs/types/rx-query.d.js +2 -0
  538. package/dist/cjs/types/rx-query.d.js.map +1 -0
  539. package/dist/cjs/types/rx-schema.d.js +2 -0
  540. package/dist/cjs/types/rx-schema.d.js.map +1 -0
  541. package/dist/cjs/types/rx-storage.d.js +2 -0
  542. package/dist/cjs/types/rx-storage.d.js.map +1 -0
  543. package/dist/cjs/types/rx-storage.interface.d.js +2 -0
  544. package/dist/cjs/types/rx-storage.interface.d.js.map +1 -0
  545. package/dist/cjs/types/util.d.js +2 -0
  546. package/dist/cjs/types/util.d.js.map +1 -0
  547. package/dist/esm/change-event-buffer.js +141 -0
  548. package/dist/esm/change-event-buffer.js.map +1 -0
  549. package/dist/esm/custom-index.js +271 -0
  550. package/dist/esm/custom-index.js.map +1 -0
  551. package/dist/esm/doc-cache.js +227 -0
  552. package/dist/esm/doc-cache.js.map +1 -0
  553. package/dist/esm/event-reduce.js +93 -0
  554. package/dist/esm/event-reduce.js.map +1 -0
  555. package/dist/esm/hooks.js +122 -0
  556. package/dist/esm/hooks.js.map +1 -0
  557. package/dist/esm/incremental-write.js +161 -0
  558. package/dist/esm/incremental-write.js.map +1 -0
  559. package/dist/esm/index.js +30 -0
  560. package/dist/esm/index.js.map +1 -0
  561. package/dist/esm/overwritable.js +33 -0
  562. package/dist/esm/overwritable.js.map +1 -0
  563. package/dist/esm/package.json +1 -0
  564. package/dist/esm/plugin-helpers.js +217 -0
  565. package/dist/esm/plugin-helpers.js.map +1 -0
  566. package/dist/esm/plugin.js +88 -0
  567. package/dist/esm/plugin.js.map +1 -0
  568. package/dist/esm/plugins/attachments/attachments-utils.js +41 -0
  569. package/dist/esm/plugins/attachments/attachments-utils.js.map +1 -0
  570. package/dist/esm/plugins/attachments/index.js +202 -0
  571. package/dist/esm/plugins/attachments/index.js.map +1 -0
  572. package/dist/esm/plugins/attachments-compression/index.js +134 -0
  573. package/dist/esm/plugins/attachments-compression/index.js.map +1 -0
  574. package/dist/esm/plugins/backup/file-util.js +87 -0
  575. package/dist/esm/plugins/backup/file-util.js.map +1 -0
  576. package/dist/esm/plugins/backup/index.js +183 -0
  577. package/dist/esm/plugins/backup/index.js.map +1 -0
  578. package/dist/esm/plugins/cleanup/cleanup-helper.js +11 -0
  579. package/dist/esm/plugins/cleanup/cleanup-helper.js.map +1 -0
  580. package/dist/esm/plugins/cleanup/cleanup-state.js +75 -0
  581. package/dist/esm/plugins/cleanup/cleanup-state.js.map +1 -0
  582. package/dist/esm/plugins/cleanup/cleanup.js +108 -0
  583. package/dist/esm/plugins/cleanup/cleanup.js.map +1 -0
  584. package/dist/esm/plugins/cleanup/index.js +35 -0
  585. package/dist/esm/plugins/cleanup/index.js.map +1 -0
  586. package/dist/esm/plugins/crdt/index.js +378 -0
  587. package/dist/esm/plugins/crdt/index.js.map +1 -0
  588. package/dist/esm/plugins/dev-mode/check-document.js +150 -0
  589. package/dist/esm/plugins/dev-mode/check-document.js.map +1 -0
  590. package/dist/esm/plugins/dev-mode/check-migration-strategies.js +38 -0
  591. package/dist/esm/plugins/dev-mode/check-migration-strategies.js.map +1 -0
  592. package/dist/esm/plugins/dev-mode/check-orm.js +47 -0
  593. package/dist/esm/plugins/dev-mode/check-orm.js.map +1 -0
  594. package/dist/esm/plugins/dev-mode/check-query.js +174 -0
  595. package/dist/esm/plugins/dev-mode/check-query.js.map +1 -0
  596. package/dist/esm/plugins/dev-mode/check-schema.js +478 -0
  597. package/dist/esm/plugins/dev-mode/check-schema.js.map +1 -0
  598. package/dist/esm/plugins/dev-mode/dev-mode-tracking.js +87 -0
  599. package/dist/esm/plugins/dev-mode/dev-mode-tracking.js.map +1 -0
  600. package/dist/esm/plugins/dev-mode/entity-properties.js +49 -0
  601. package/dist/esm/plugins/dev-mode/entity-properties.js.map +1 -0
  602. package/dist/esm/plugins/dev-mode/error-messages.js +1289 -0
  603. package/dist/esm/plugins/dev-mode/error-messages.js.map +1 -0
  604. package/dist/esm/plugins/dev-mode/index.js +151 -0
  605. package/dist/esm/plugins/dev-mode/index.js.map +1 -0
  606. package/dist/esm/plugins/dev-mode/unallowed-properties.js +81 -0
  607. package/dist/esm/plugins/dev-mode/unallowed-properties.js.map +1 -0
  608. package/dist/esm/plugins/electron/electron-helper.js +3 -0
  609. package/dist/esm/plugins/electron/electron-helper.js.map +1 -0
  610. package/dist/esm/plugins/electron/index.js +4 -0
  611. package/dist/esm/plugins/electron/index.js.map +1 -0
  612. package/dist/esm/plugins/electron/rx-storage-ipc-main.js +39 -0
  613. package/dist/esm/plugins/electron/rx-storage-ipc-main.js.map +1 -0
  614. package/dist/esm/plugins/electron/rx-storage-ipc-renderer.js +31 -0
  615. package/dist/esm/plugins/electron/rx-storage-ipc-renderer.js.map +1 -0
  616. package/dist/esm/plugins/encryption-crypto-js/index.js +154 -0
  617. package/dist/esm/plugins/encryption-crypto-js/index.js.map +1 -0
  618. package/dist/esm/plugins/flutter/index.js +55 -0
  619. package/dist/esm/plugins/flutter/index.js.map +1 -0
  620. package/dist/esm/plugins/json-dump/index.js +87 -0
  621. package/dist/esm/plugins/json-dump/index.js.map +1 -0
  622. package/dist/esm/plugins/key-compression/index.js +127 -0
  623. package/dist/esm/plugins/key-compression/index.js.map +1 -0
  624. package/dist/esm/plugins/leader-election/index.js +95 -0
  625. package/dist/esm/plugins/leader-election/index.js.map +1 -0
  626. package/dist/esm/plugins/local-documents/index.js +70 -0
  627. package/dist/esm/plugins/local-documents/index.js.map +1 -0
  628. package/dist/esm/plugins/local-documents/local-documents-helper.js +67 -0
  629. package/dist/esm/plugins/local-documents/local-documents-helper.js.map +1 -0
  630. package/dist/esm/plugins/local-documents/local-documents.js +99 -0
  631. package/dist/esm/plugins/local-documents/local-documents.js.map +1 -0
  632. package/dist/esm/plugins/local-documents/rx-local-document.js +248 -0
  633. package/dist/esm/plugins/local-documents/rx-local-document.js.map +1 -0
  634. package/dist/esm/plugins/migration-schema/index.js +42 -0
  635. package/dist/esm/plugins/migration-schema/index.js.map +1 -0
  636. package/dist/esm/plugins/migration-schema/migration-helpers.js +103 -0
  637. package/dist/esm/plugins/migration-schema/migration-helpers.js.map +1 -0
  638. package/dist/esm/plugins/migration-schema/migration-types.js +3 -0
  639. package/dist/esm/plugins/migration-schema/migration-types.js.map +1 -0
  640. package/dist/esm/plugins/migration-schema/rx-migration-state.js +404 -0
  641. package/dist/esm/plugins/migration-schema/rx-migration-state.js.map +1 -0
  642. package/dist/esm/plugins/migration-storage/index.js +166 -0
  643. package/dist/esm/plugins/migration-storage/index.js.map +1 -0
  644. package/dist/esm/plugins/pipeline/flagged-functions.js +122 -0
  645. package/dist/esm/plugins/pipeline/flagged-functions.js.map +1 -0
  646. package/dist/esm/plugins/pipeline/index.js +13 -0
  647. package/dist/esm/plugins/pipeline/index.js.map +1 -0
  648. package/dist/esm/plugins/pipeline/rx-pipeline.js +210 -0
  649. package/dist/esm/plugins/pipeline/rx-pipeline.js.map +1 -0
  650. package/dist/esm/plugins/pipeline/types.js +3 -0
  651. package/dist/esm/plugins/pipeline/types.js.map +1 -0
  652. package/dist/esm/plugins/query-builder/index.js +48 -0
  653. package/dist/esm/plugins/query-builder/index.js.map +1 -0
  654. package/dist/esm/plugins/query-builder/mquery/mquery-utils.js +33 -0
  655. package/dist/esm/plugins/query-builder/mquery/mquery-utils.js.map +1 -0
  656. package/dist/esm/plugins/query-builder/mquery/nosql-query-builder.js +478 -0
  657. package/dist/esm/plugins/query-builder/mquery/nosql-query-builder.js.map +1 -0
  658. package/dist/esm/plugins/react/database-context.js +8 -0
  659. package/dist/esm/plugins/react/database-context.js.map +1 -0
  660. package/dist/esm/plugins/react/database-provider.js +34 -0
  661. package/dist/esm/plugins/react/database-provider.js.map +1 -0
  662. package/dist/esm/plugins/react/hooks/index.js +5 -0
  663. package/dist/esm/plugins/react/hooks/index.js.map +1 -0
  664. package/dist/esm/plugins/react/hooks/use-live-rx-query.js +22 -0
  665. package/dist/esm/plugins/react/hooks/use-live-rx-query.js.map +1 -0
  666. package/dist/esm/plugins/react/hooks/use-rx-collection.js +34 -0
  667. package/dist/esm/plugins/react/hooks/use-rx-collection.js.map +1 -0
  668. package/dist/esm/plugins/react/hooks/use-rx-database.js +19 -0
  669. package/dist/esm/plugins/react/hooks/use-rx-database.js.map +1 -0
  670. package/dist/esm/plugins/react/hooks/use-rx-query.js +92 -0
  671. package/dist/esm/plugins/react/hooks/use-rx-query.js.map +1 -0
  672. package/dist/esm/plugins/react/index.js +3 -0
  673. package/dist/esm/plugins/react/index.js.map +1 -0
  674. package/dist/esm/plugins/reactivity-angular/index.js +25 -0
  675. package/dist/esm/plugins/reactivity-angular/index.js.map +1 -0
  676. package/dist/esm/plugins/reactivity-preact-signals/index.js +62 -0
  677. package/dist/esm/plugins/reactivity-preact-signals/index.js.map +1 -0
  678. package/dist/esm/plugins/reactivity-vue/index.js +27 -0
  679. package/dist/esm/plugins/reactivity-vue/index.js.map +1 -0
  680. package/dist/esm/plugins/replication/index.js +479 -0
  681. package/dist/esm/plugins/replication/index.js.map +1 -0
  682. package/dist/esm/plugins/replication/replication-helper.js +86 -0
  683. package/dist/esm/plugins/replication/replication-helper.js.map +1 -0
  684. package/dist/esm/plugins/replication-appwrite/appwrite-helpers.js +26 -0
  685. package/dist/esm/plugins/replication-appwrite/appwrite-helpers.js.map +1 -0
  686. package/dist/esm/plugins/replication-appwrite/appwrite-types.js +3 -0
  687. package/dist/esm/plugins/replication-appwrite/appwrite-types.js.map +1 -0
  688. package/dist/esm/plugins/replication-appwrite/index.js +168 -0
  689. package/dist/esm/plugins/replication-appwrite/index.js.map +1 -0
  690. package/dist/esm/plugins/replication-couchdb/couchdb-helper.js +65 -0
  691. package/dist/esm/plugins/replication-couchdb/couchdb-helper.js.map +1 -0
  692. package/dist/esm/plugins/replication-couchdb/couchdb-types.js +3 -0
  693. package/dist/esm/plugins/replication-couchdb/couchdb-types.js.map +1 -0
  694. package/dist/esm/plugins/replication-couchdb/index.js +254 -0
  695. package/dist/esm/plugins/replication-couchdb/index.js.map +1 -0
  696. package/dist/esm/plugins/replication-firestore/firestore-helper.js +49 -0
  697. package/dist/esm/plugins/replication-firestore/firestore-helper.js.map +1 -0
  698. package/dist/esm/plugins/replication-firestore/firestore-types.js +3 -0
  699. package/dist/esm/plugins/replication-firestore/firestore-types.js.map +1 -0
  700. package/dist/esm/plugins/replication-firestore/index.js +233 -0
  701. package/dist/esm/plugins/replication-firestore/index.js.map +1 -0
  702. package/dist/esm/plugins/replication-google-drive/document-handling.js +140 -0
  703. package/dist/esm/plugins/replication-google-drive/document-handling.js.map +1 -0
  704. package/dist/esm/plugins/replication-google-drive/downstream.js +66 -0
  705. package/dist/esm/plugins/replication-google-drive/downstream.js.map +1 -0
  706. package/dist/esm/plugins/replication-google-drive/google-drive-helper.js +331 -0
  707. package/dist/esm/plugins/replication-google-drive/google-drive-helper.js.map +1 -0
  708. package/dist/esm/plugins/replication-google-drive/google-drive-types.js +3 -0
  709. package/dist/esm/plugins/replication-google-drive/google-drive-types.js.map +1 -0
  710. package/dist/esm/plugins/replication-google-drive/index.js +126 -0
  711. package/dist/esm/plugins/replication-google-drive/index.js.map +1 -0
  712. package/dist/esm/plugins/replication-google-drive/init.js +70 -0
  713. package/dist/esm/plugins/replication-google-drive/init.js.map +1 -0
  714. package/dist/esm/plugins/replication-google-drive/multipart.js +67 -0
  715. package/dist/esm/plugins/replication-google-drive/multipart.js.map +1 -0
  716. package/dist/esm/plugins/replication-google-drive/signaling.js +253 -0
  717. package/dist/esm/plugins/replication-google-drive/signaling.js.map +1 -0
  718. package/dist/esm/plugins/replication-google-drive/transaction.js +123 -0
  719. package/dist/esm/plugins/replication-google-drive/transaction.js.map +1 -0
  720. package/dist/esm/plugins/replication-google-drive/upstream.js +171 -0
  721. package/dist/esm/plugins/replication-google-drive/upstream.js.map +1 -0
  722. package/dist/esm/plugins/replication-graphql/graphql-schema-from-rx-schema.js +228 -0
  723. package/dist/esm/plugins/replication-graphql/graphql-schema-from-rx-schema.js.map +1 -0
  724. package/dist/esm/plugins/replication-graphql/graphql-websocket.js +35 -0
  725. package/dist/esm/plugins/replication-graphql/graphql-websocket.js.map +1 -0
  726. package/dist/esm/plugins/replication-graphql/helper.js +21 -0
  727. package/dist/esm/plugins/replication-graphql/helper.js.map +1 -0
  728. package/dist/esm/plugins/replication-graphql/index.js +161 -0
  729. package/dist/esm/plugins/replication-graphql/index.js.map +1 -0
  730. package/dist/esm/plugins/replication-graphql/query-builder-from-rx-schema.js +133 -0
  731. package/dist/esm/plugins/replication-graphql/query-builder-from-rx-schema.js.map +1 -0
  732. package/dist/esm/plugins/replication-microsoft-onedrive/document-handling.js +178 -0
  733. package/dist/esm/plugins/replication-microsoft-onedrive/document-handling.js.map +1 -0
  734. package/dist/esm/plugins/replication-microsoft-onedrive/downstream.js +71 -0
  735. package/dist/esm/plugins/replication-microsoft-onedrive/downstream.js.map +1 -0
  736. package/dist/esm/plugins/replication-microsoft-onedrive/index.js +126 -0
  737. package/dist/esm/plugins/replication-microsoft-onedrive/index.js.map +1 -0
  738. package/dist/esm/plugins/replication-microsoft-onedrive/init.js +70 -0
  739. package/dist/esm/plugins/replication-microsoft-onedrive/init.js.map +1 -0
  740. package/dist/esm/plugins/replication-microsoft-onedrive/microsoft-onedrive-helper.js +258 -0
  741. package/dist/esm/plugins/replication-microsoft-onedrive/microsoft-onedrive-helper.js.map +1 -0
  742. package/dist/esm/plugins/replication-microsoft-onedrive/microsoft-onedrive-types.js +3 -0
  743. package/dist/esm/plugins/replication-microsoft-onedrive/microsoft-onedrive-types.js.map +1 -0
  744. package/dist/esm/plugins/replication-microsoft-onedrive/signaling.js +226 -0
  745. package/dist/esm/plugins/replication-microsoft-onedrive/signaling.js.map +1 -0
  746. package/dist/esm/plugins/replication-microsoft-onedrive/transaction.js +127 -0
  747. package/dist/esm/plugins/replication-microsoft-onedrive/transaction.js.map +1 -0
  748. package/dist/esm/plugins/replication-microsoft-onedrive/upstream.js +179 -0
  749. package/dist/esm/plugins/replication-microsoft-onedrive/upstream.js.map +1 -0
  750. package/dist/esm/plugins/replication-mongodb/index.js +197 -0
  751. package/dist/esm/plugins/replication-mongodb/index.js.map +1 -0
  752. package/dist/esm/plugins/replication-mongodb/mongodb-checkpoint.js +131 -0
  753. package/dist/esm/plugins/replication-mongodb/mongodb-checkpoint.js.map +1 -0
  754. package/dist/esm/plugins/replication-mongodb/mongodb-helper.js +45 -0
  755. package/dist/esm/plugins/replication-mongodb/mongodb-helper.js.map +1 -0
  756. package/dist/esm/plugins/replication-mongodb/mongodb-types.js +3 -0
  757. package/dist/esm/plugins/replication-mongodb/mongodb-types.js.map +1 -0
  758. package/dist/esm/plugins/replication-nats/index.js +199 -0
  759. package/dist/esm/plugins/replication-nats/index.js.map +1 -0
  760. package/dist/esm/plugins/replication-nats/nats-helper.js +7 -0
  761. package/dist/esm/plugins/replication-nats/nats-helper.js.map +1 -0
  762. package/dist/esm/plugins/replication-nats/nats-types.js +3 -0
  763. package/dist/esm/plugins/replication-nats/nats-types.js.map +1 -0
  764. package/dist/esm/plugins/replication-supabase/helper.js +35 -0
  765. package/dist/esm/plugins/replication-supabase/helper.js.map +1 -0
  766. package/dist/esm/plugins/replication-supabase/index.js +231 -0
  767. package/dist/esm/plugins/replication-supabase/index.js.map +1 -0
  768. package/dist/esm/plugins/replication-supabase/types.js +3 -0
  769. package/dist/esm/plugins/replication-supabase/types.js.map +1 -0
  770. package/dist/esm/plugins/replication-webrtc/connection-handler-p2pcf.js +78 -0
  771. package/dist/esm/plugins/replication-webrtc/connection-handler-p2pcf.js.map +1 -0
  772. package/dist/esm/plugins/replication-webrtc/connection-handler-simple-peer.js +192 -0
  773. package/dist/esm/plugins/replication-webrtc/connection-handler-simple-peer.js.map +1 -0
  774. package/dist/esm/plugins/replication-webrtc/connection-handler-webtorrent.js +136 -0
  775. package/dist/esm/plugins/replication-webrtc/connection-handler-webtorrent.js.map +1 -0
  776. package/dist/esm/plugins/replication-webrtc/index.js +207 -0
  777. package/dist/esm/plugins/replication-webrtc/index.js.map +1 -0
  778. package/dist/esm/plugins/replication-webrtc/signaling-server.js +144 -0
  779. package/dist/esm/plugins/replication-webrtc/signaling-server.js.map +1 -0
  780. package/dist/esm/plugins/replication-webrtc/webrtc-helper.js +26 -0
  781. package/dist/esm/plugins/replication-webrtc/webrtc-helper.js.map +1 -0
  782. package/dist/esm/plugins/replication-webrtc/webrtc-types.js +3 -0
  783. package/dist/esm/plugins/replication-webrtc/webrtc-types.js.map +1 -0
  784. package/dist/esm/plugins/replication-websocket/index.js +4 -0
  785. package/dist/esm/plugins/replication-websocket/index.js.map +1 -0
  786. package/dist/esm/plugins/replication-websocket/websocket-client.js +125 -0
  787. package/dist/esm/plugins/replication-websocket/websocket-client.js.map +1 -0
  788. package/dist/esm/plugins/replication-websocket/websocket-server.js +100 -0
  789. package/dist/esm/plugins/replication-websocket/websocket-server.js.map +1 -0
  790. package/dist/esm/plugins/replication-websocket/websocket-types.js +3 -0
  791. package/dist/esm/plugins/replication-websocket/websocket-types.js.map +1 -0
  792. package/dist/esm/plugins/state/helpers.js +73 -0
  793. package/dist/esm/plugins/state/helpers.js.map +1 -0
  794. package/dist/esm/plugins/state/index.js +20 -0
  795. package/dist/esm/plugins/state/index.js.map +1 -0
  796. package/dist/esm/plugins/state/rx-state.js +285 -0
  797. package/dist/esm/plugins/state/rx-state.js.map +1 -0
  798. package/dist/esm/plugins/state/types.js +3 -0
  799. package/dist/esm/plugins/state/types.js.map +1 -0
  800. package/dist/esm/plugins/storage-denokv/denokv-helper.js +40 -0
  801. package/dist/esm/plugins/storage-denokv/denokv-helper.js.map +1 -0
  802. package/dist/esm/plugins/storage-denokv/denokv-query.js +93 -0
  803. package/dist/esm/plugins/storage-denokv/denokv-query.js.map +1 -0
  804. package/dist/esm/plugins/storage-denokv/denokv-types.js +3 -0
  805. package/dist/esm/plugins/storage-denokv/denokv-types.js.map +1 -0
  806. package/dist/esm/plugins/storage-denokv/index.js +24 -0
  807. package/dist/esm/plugins/storage-denokv/index.js.map +1 -0
  808. package/dist/esm/plugins/storage-denokv/rx-storage-instance-denokv.js +325 -0
  809. package/dist/esm/plugins/storage-denokv/rx-storage-instance-denokv.js.map +1 -0
  810. package/dist/esm/plugins/storage-dexie/dexie-helper.js +241 -0
  811. package/dist/esm/plugins/storage-dexie/dexie-helper.js.map +1 -0
  812. package/dist/esm/plugins/storage-dexie/dexie-query.js +169 -0
  813. package/dist/esm/plugins/storage-dexie/dexie-query.js.map +1 -0
  814. package/dist/esm/plugins/storage-dexie/index.js +5 -0
  815. package/dist/esm/plugins/storage-dexie/index.js.map +1 -0
  816. package/dist/esm/plugins/storage-dexie/rx-storage-dexie.js +39 -0
  817. package/dist/esm/plugins/storage-dexie/rx-storage-dexie.js.map +1 -0
  818. package/dist/esm/plugins/storage-dexie/rx-storage-instance-dexie.js +222 -0
  819. package/dist/esm/plugins/storage-dexie/rx-storage-instance-dexie.js.map +1 -0
  820. package/dist/esm/plugins/storage-foundationdb/foundationdb-helpers.js +6 -0
  821. package/dist/esm/plugins/storage-foundationdb/foundationdb-helpers.js.map +1 -0
  822. package/dist/esm/plugins/storage-foundationdb/foundationdb-query.js +90 -0
  823. package/dist/esm/plugins/storage-foundationdb/foundationdb-query.js.map +1 -0
  824. package/dist/esm/plugins/storage-foundationdb/foundationdb-types.js +3 -0
  825. package/dist/esm/plugins/storage-foundationdb/foundationdb-types.js.map +1 -0
  826. package/dist/esm/plugins/storage-foundationdb/index.js +31 -0
  827. package/dist/esm/plugins/storage-foundationdb/index.js.map +1 -0
  828. package/dist/esm/plugins/storage-foundationdb/rx-storage-instance-foundationdb.js +302 -0
  829. package/dist/esm/plugins/storage-foundationdb/rx-storage-instance-foundationdb.js.map +1 -0
  830. package/dist/esm/plugins/storage-localstorage/index.js +23 -0
  831. package/dist/esm/plugins/storage-localstorage/index.js.map +1 -0
  832. package/dist/esm/plugins/storage-localstorage/localstorage-mock.js +33 -0
  833. package/dist/esm/plugins/storage-localstorage/localstorage-mock.js.map +1 -0
  834. package/dist/esm/plugins/storage-localstorage/rx-storage-instance-localstorage.js +432 -0
  835. package/dist/esm/plugins/storage-localstorage/rx-storage-instance-localstorage.js.map +1 -0
  836. package/dist/esm/plugins/storage-memory/binary-search-bounds.js +103 -0
  837. package/dist/esm/plugins/storage-memory/binary-search-bounds.js.map +1 -0
  838. package/dist/esm/plugins/storage-memory/index.js +29 -0
  839. package/dist/esm/plugins/storage-memory/index.js.map +1 -0
  840. package/dist/esm/plugins/storage-memory/memory-helper.js +165 -0
  841. package/dist/esm/plugins/storage-memory/memory-helper.js.map +1 -0
  842. package/dist/esm/plugins/storage-memory/memory-indexes.js +21 -0
  843. package/dist/esm/plugins/storage-memory/memory-indexes.js.map +1 -0
  844. package/dist/esm/plugins/storage-memory/memory-types.js +3 -0
  845. package/dist/esm/plugins/storage-memory/memory-types.js.map +1 -0
  846. package/dist/esm/plugins/storage-memory/rx-storage-instance-memory.js +364 -0
  847. package/dist/esm/plugins/storage-memory/rx-storage-instance-memory.js.map +1 -0
  848. package/dist/esm/plugins/storage-mongodb/index.js +5 -0
  849. package/dist/esm/plugins/storage-mongodb/index.js.map +1 -0
  850. package/dist/esm/plugins/storage-mongodb/mongodb-helper.js +85 -0
  851. package/dist/esm/plugins/storage-mongodb/mongodb-helper.js.map +1 -0
  852. package/dist/esm/plugins/storage-mongodb/mongodb-types.js +3 -0
  853. package/dist/esm/plugins/storage-mongodb/mongodb-types.js.map +1 -0
  854. package/dist/esm/plugins/storage-mongodb/rx-storage-instance-mongodb.js +316 -0
  855. package/dist/esm/plugins/storage-mongodb/rx-storage-instance-mongodb.js.map +1 -0
  856. package/dist/esm/plugins/storage-mongodb/rx-storage-mongodb.js +22 -0
  857. package/dist/esm/plugins/storage-mongodb/rx-storage-mongodb.js.map +1 -0
  858. package/dist/esm/plugins/storage-remote/index.js +6 -0
  859. package/dist/esm/plugins/storage-remote/index.js.map +1 -0
  860. package/dist/esm/plugins/storage-remote/message-channel-cache.js +44 -0
  861. package/dist/esm/plugins/storage-remote/message-channel-cache.js.map +1 -0
  862. package/dist/esm/plugins/storage-remote/remote.js +212 -0
  863. package/dist/esm/plugins/storage-remote/remote.js.map +1 -0
  864. package/dist/esm/plugins/storage-remote/rx-storage-remote.js +193 -0
  865. package/dist/esm/plugins/storage-remote/rx-storage-remote.js.map +1 -0
  866. package/dist/esm/plugins/storage-remote/storage-remote-helpers.js +18 -0
  867. package/dist/esm/plugins/storage-remote/storage-remote-helpers.js.map +1 -0
  868. package/dist/esm/plugins/storage-remote/storage-remote-types.js +3 -0
  869. package/dist/esm/plugins/storage-remote/storage-remote-types.js.map +1 -0
  870. package/dist/esm/plugins/storage-remote-websocket/index.js +161 -0
  871. package/dist/esm/plugins/storage-remote-websocket/index.js.map +1 -0
  872. package/dist/esm/plugins/storage-remote-websocket/types.js +3 -0
  873. package/dist/esm/plugins/storage-remote-websocket/types.js.map +1 -0
  874. package/dist/esm/plugins/storage-sqlite/index.js +31 -0
  875. package/dist/esm/plugins/storage-sqlite/index.js.map +1 -0
  876. package/dist/esm/plugins/storage-sqlite/sqlite-basics-helpers.js +510 -0
  877. package/dist/esm/plugins/storage-sqlite/sqlite-basics-helpers.js.map +1 -0
  878. package/dist/esm/plugins/storage-sqlite/sqlite-helpers.js +187 -0
  879. package/dist/esm/plugins/storage-sqlite/sqlite-helpers.js.map +1 -0
  880. package/dist/esm/plugins/storage-sqlite/sqlite-storage-instance.js +283 -0
  881. package/dist/esm/plugins/storage-sqlite/sqlite-storage-instance.js.map +1 -0
  882. package/dist/esm/plugins/storage-sqlite/sqlite-types.js +3 -0
  883. package/dist/esm/plugins/storage-sqlite/sqlite-types.js.map +1 -0
  884. package/dist/esm/plugins/test-utils/config.js +104 -0
  885. package/dist/esm/plugins/test-utils/config.js.map +1 -0
  886. package/dist/esm/plugins/test-utils/humans-collection.js +397 -0
  887. package/dist/esm/plugins/test-utils/humans-collection.js.map +1 -0
  888. package/dist/esm/plugins/test-utils/index.js +22 -0
  889. package/dist/esm/plugins/test-utils/index.js.map +1 -0
  890. package/dist/esm/plugins/test-utils/performance.js +267 -0
  891. package/dist/esm/plugins/test-utils/performance.js.map +1 -0
  892. package/dist/esm/plugins/test-utils/replication-base-test-suite.js +170 -0
  893. package/dist/esm/plugins/test-utils/replication-base-test-suite.js.map +1 -0
  894. package/dist/esm/plugins/test-utils/replication.js +46 -0
  895. package/dist/esm/plugins/test-utils/replication.js.map +1 -0
  896. package/dist/esm/plugins/test-utils/revisions.js +5 -0
  897. package/dist/esm/plugins/test-utils/revisions.js.map +1 -0
  898. package/dist/esm/plugins/test-utils/schema-objects.js +283 -0
  899. package/dist/esm/plugins/test-utils/schema-objects.js.map +1 -0
  900. package/dist/esm/plugins/test-utils/schemas.js +1244 -0
  901. package/dist/esm/plugins/test-utils/schemas.js.map +1 -0
  902. package/dist/esm/plugins/test-utils/test-util.js +62 -0
  903. package/dist/esm/plugins/test-utils/test-util.js.map +1 -0
  904. package/dist/esm/plugins/update/index.js +35 -0
  905. package/dist/esm/plugins/update/index.js.map +1 -0
  906. package/dist/esm/plugins/update/mingo-updater.js +13 -0
  907. package/dist/esm/plugins/update/mingo-updater.js.map +1 -0
  908. package/dist/esm/plugins/utils/index.js +21 -0
  909. package/dist/esm/plugins/utils/index.js.map +1 -0
  910. package/dist/esm/plugins/utils/utils-array.js +130 -0
  911. package/dist/esm/plugins/utils/utils-array.js.map +1 -0
  912. package/dist/esm/plugins/utils/utils-base64.js +48 -0
  913. package/dist/esm/plugins/utils/utils-base64.js.map +1 -0
  914. package/dist/esm/plugins/utils/utils-blob.js +54 -0
  915. package/dist/esm/plugins/utils/utils-blob.js.map +1 -0
  916. package/dist/esm/plugins/utils/utils-document.js +87 -0
  917. package/dist/esm/plugins/utils/utils-document.js.map +1 -0
  918. package/dist/esm/plugins/utils/utils-error.js +36 -0
  919. package/dist/esm/plugins/utils/utils-error.js.map +1 -0
  920. package/dist/esm/plugins/utils/utils-global.js +6 -0
  921. package/dist/esm/plugins/utils/utils-global.js.map +1 -0
  922. package/dist/esm/plugins/utils/utils-hash.js +51 -0
  923. package/dist/esm/plugins/utils/utils-hash.js.map +1 -0
  924. package/dist/esm/plugins/utils/utils-map.js +18 -0
  925. package/dist/esm/plugins/utils/utils-map.js.map +1 -0
  926. package/dist/esm/plugins/utils/utils-number.js +10 -0
  927. package/dist/esm/plugins/utils/utils-number.js.map +1 -0
  928. package/dist/esm/plugins/utils/utils-object-deep-equal.js +36 -0
  929. package/dist/esm/plugins/utils/utils-object-deep-equal.js.map +1 -0
  930. package/dist/esm/plugins/utils/utils-object-dot-prop.js +296 -0
  931. package/dist/esm/plugins/utils/utils-object-dot-prop.js.map +1 -0
  932. package/dist/esm/plugins/utils/utils-object.js +228 -0
  933. package/dist/esm/plugins/utils/utils-object.js.map +1 -0
  934. package/dist/esm/plugins/utils/utils-other.js +58 -0
  935. package/dist/esm/plugins/utils/utils-other.js.map +1 -0
  936. package/dist/esm/plugins/utils/utils-premium.js +30 -0
  937. package/dist/esm/plugins/utils/utils-premium.js.map +1 -0
  938. package/dist/esm/plugins/utils/utils-promise.js +134 -0
  939. package/dist/esm/plugins/utils/utils-promise.js.map +1 -0
  940. package/dist/esm/plugins/utils/utils-regex.js +3 -0
  941. package/dist/esm/plugins/utils/utils-regex.js.map +1 -0
  942. package/dist/esm/plugins/utils/utils-revision.js +53 -0
  943. package/dist/esm/plugins/utils/utils-revision.js.map +1 -0
  944. package/dist/esm/plugins/utils/utils-rxdb-version.js +5 -0
  945. package/dist/esm/plugins/utils/utils-rxdb-version.js.map +1 -0
  946. package/dist/esm/plugins/utils/utils-rxdb-version.template.js +5 -0
  947. package/dist/esm/plugins/utils/utils-rxdb-version.template.js.map +1 -0
  948. package/dist/esm/plugins/utils/utils-string.js +83 -0
  949. package/dist/esm/plugins/utils/utils-string.js.map +1 -0
  950. package/dist/esm/plugins/utils/utils-time.js +36 -0
  951. package/dist/esm/plugins/utils/utils-time.js.map +1 -0
  952. package/dist/esm/plugins/validate-ajv/index.js +43 -0
  953. package/dist/esm/plugins/validate-ajv/index.js.map +1 -0
  954. package/dist/esm/plugins/validate-is-my-json-valid/index.js +20 -0
  955. package/dist/esm/plugins/validate-is-my-json-valid/index.js.map +1 -0
  956. package/dist/esm/plugins/validate-z-schema/index.js +47 -0
  957. package/dist/esm/plugins/validate-z-schema/index.js.map +1 -0
  958. package/dist/esm/plugins/vector/helper.js +2 -0
  959. package/dist/esm/plugins/vector/helper.js.map +1 -0
  960. package/dist/esm/plugins/vector/index.js +2 -0
  961. package/dist/esm/plugins/vector/index.js.map +1 -0
  962. package/dist/esm/plugins/vector/types.js +3 -0
  963. package/dist/esm/plugins/vector/types.js.map +1 -0
  964. package/dist/esm/plugins/vector/vector-distance.js +29 -0
  965. package/dist/esm/plugins/vector/vector-distance.js.map +1 -0
  966. package/dist/esm/plugins/webmcp/index.js +3 -0
  967. package/dist/esm/plugins/webmcp/index.js.map +1 -0
  968. package/dist/esm/plugins/webmcp/nosql-query-schema.js +354 -0
  969. package/dist/esm/plugins/webmcp/nosql-query-schema.js.map +1 -0
  970. package/dist/esm/plugins/webmcp/webmcp.js +307 -0
  971. package/dist/esm/plugins/webmcp/webmcp.js.map +1 -0
  972. package/dist/esm/query-cache.js +99 -0
  973. package/dist/esm/query-cache.js.map +1 -0
  974. package/dist/esm/query-planner.js +297 -0
  975. package/dist/esm/query-planner.js.map +1 -0
  976. package/dist/esm/replication-protocol/checkpoint.js +95 -0
  977. package/dist/esm/replication-protocol/checkpoint.js.map +1 -0
  978. package/dist/esm/replication-protocol/conflicts.js +31 -0
  979. package/dist/esm/replication-protocol/conflicts.js.map +1 -0
  980. package/dist/esm/replication-protocol/default-conflict-handler.js +33 -0
  981. package/dist/esm/replication-protocol/default-conflict-handler.js.map +1 -0
  982. package/dist/esm/replication-protocol/downstream.js +334 -0
  983. package/dist/esm/replication-protocol/downstream.js.map +1 -0
  984. package/dist/esm/replication-protocol/helper.js +49 -0
  985. package/dist/esm/replication-protocol/helper.js.map +1 -0
  986. package/dist/esm/replication-protocol/index.js +221 -0
  987. package/dist/esm/replication-protocol/index.js.map +1 -0
  988. package/dist/esm/replication-protocol/meta-instance.js +121 -0
  989. package/dist/esm/replication-protocol/meta-instance.js.map +1 -0
  990. package/dist/esm/replication-protocol/upstream.js +379 -0
  991. package/dist/esm/replication-protocol/upstream.js.map +1 -0
  992. package/dist/esm/rx-change-event.js +103 -0
  993. package/dist/esm/rx-change-event.js.map +1 -0
  994. package/dist/esm/rx-collection-helper.js +196 -0
  995. package/dist/esm/rx-collection-helper.js.map +1 -0
  996. package/dist/esm/rx-collection.js +923 -0
  997. package/dist/esm/rx-collection.js.map +1 -0
  998. package/dist/esm/rx-database-internal-store.js +270 -0
  999. package/dist/esm/rx-database-internal-store.js.map +1 -0
  1000. package/dist/esm/rx-database.js +670 -0
  1001. package/dist/esm/rx-database.js.map +1 -0
  1002. package/dist/esm/rx-document-prototype-merge.js +78 -0
  1003. package/dist/esm/rx-document-prototype-merge.js.map +1 -0
  1004. package/dist/esm/rx-document.js +394 -0
  1005. package/dist/esm/rx-document.js.map +1 -0
  1006. package/dist/esm/rx-error.js +153 -0
  1007. package/dist/esm/rx-error.js.map +1 -0
  1008. package/dist/esm/rx-query-helper.js +268 -0
  1009. package/dist/esm/rx-query-helper.js.map +1 -0
  1010. package/dist/esm/rx-query-mingo.js +54 -0
  1011. package/dist/esm/rx-query-mingo.js.map +1 -0
  1012. package/dist/esm/rx-query-single-result.js +98 -0
  1013. package/dist/esm/rx-query-single-result.js.map +1 -0
  1014. package/dist/esm/rx-query.js +690 -0
  1015. package/dist/esm/rx-query.js.map +1 -0
  1016. package/dist/esm/rx-schema-helper.js +316 -0
  1017. package/dist/esm/rx-schema-helper.js.map +1 -0
  1018. package/dist/esm/rx-schema.js +177 -0
  1019. package/dist/esm/rx-schema.js.map +1 -0
  1020. package/dist/esm/rx-storage-helper.js +785 -0
  1021. package/dist/esm/rx-storage-helper.js.map +1 -0
  1022. package/dist/esm/rx-storage-multiinstance.js +113 -0
  1023. package/dist/esm/rx-storage-multiinstance.js.map +1 -0
  1024. package/dist/esm/types/conflict-handling.d.js +3 -0
  1025. package/dist/esm/types/conflict-handling.d.js.map +1 -0
  1026. package/dist/esm/types/couchdb.d.js +3 -0
  1027. package/dist/esm/types/couchdb.d.js.map +1 -0
  1028. package/dist/esm/types/index.d.js +2 -0
  1029. package/dist/esm/types/index.d.js.map +1 -0
  1030. package/dist/esm/types/modules/index.d.js +2 -0
  1031. package/dist/esm/types/modules/index.d.js.map +1 -0
  1032. package/dist/esm/types/modules/mocha.parallel.d.js +2 -0
  1033. package/dist/esm/types/modules/mocha.parallel.d.js.map +1 -0
  1034. package/dist/esm/types/plugins/backup.d.js +3 -0
  1035. package/dist/esm/types/plugins/backup.d.js.map +1 -0
  1036. package/dist/esm/types/plugins/cleanup.d.js +3 -0
  1037. package/dist/esm/types/plugins/cleanup.d.js.map +1 -0
  1038. package/dist/esm/types/plugins/crdt.d.js +3 -0
  1039. package/dist/esm/types/plugins/crdt.d.js.map +1 -0
  1040. package/dist/esm/types/plugins/dexie.d.js +3 -0
  1041. package/dist/esm/types/plugins/dexie.d.js.map +1 -0
  1042. package/dist/esm/types/plugins/local-documents.d.js +3 -0
  1043. package/dist/esm/types/plugins/local-documents.d.js.map +1 -0
  1044. package/dist/esm/types/plugins/migration.d.js +3 -0
  1045. package/dist/esm/types/plugins/migration.d.js.map +1 -0
  1046. package/dist/esm/types/plugins/reactivity.d.js +3 -0
  1047. package/dist/esm/types/plugins/reactivity.d.js.map +1 -0
  1048. package/dist/esm/types/plugins/replication-graphql.d.js +3 -0
  1049. package/dist/esm/types/plugins/replication-graphql.d.js.map +1 -0
  1050. package/dist/esm/types/plugins/replication.d.js +3 -0
  1051. package/dist/esm/types/plugins/replication.d.js.map +1 -0
  1052. package/dist/esm/types/plugins/state.d.js +3 -0
  1053. package/dist/esm/types/plugins/state.d.js.map +1 -0
  1054. package/dist/esm/types/plugins/update.d.js +3 -0
  1055. package/dist/esm/types/plugins/update.d.js.map +1 -0
  1056. package/dist/esm/types/plugins/webmcp.d.js +3 -0
  1057. package/dist/esm/types/plugins/webmcp.d.js.map +1 -0
  1058. package/dist/esm/types/query-planner.d.js +3 -0
  1059. package/dist/esm/types/query-planner.d.js.map +1 -0
  1060. package/dist/esm/types/replication-protocol.d.js +3 -0
  1061. package/dist/esm/types/replication-protocol.d.js.map +1 -0
  1062. package/dist/esm/types/rx-attachment.d.js +3 -0
  1063. package/dist/esm/types/rx-attachment.d.js.map +1 -0
  1064. package/dist/esm/types/rx-change-event.d.js +3 -0
  1065. package/dist/esm/types/rx-change-event.d.js.map +1 -0
  1066. package/dist/esm/types/rx-collection.d.js +3 -0
  1067. package/dist/esm/types/rx-collection.d.js.map +1 -0
  1068. package/dist/esm/types/rx-database-internal-store.d.js +3 -0
  1069. package/dist/esm/types/rx-database-internal-store.d.js.map +1 -0
  1070. package/dist/esm/types/rx-database.d.js +3 -0
  1071. package/dist/esm/types/rx-database.d.js.map +1 -0
  1072. package/dist/esm/types/rx-document.d.js +3 -0
  1073. package/dist/esm/types/rx-document.d.js.map +1 -0
  1074. package/dist/esm/types/rx-error.d.js +3 -0
  1075. package/dist/esm/types/rx-error.d.js.map +1 -0
  1076. package/dist/esm/types/rx-plugin.d.js +3 -0
  1077. package/dist/esm/types/rx-plugin.d.js.map +1 -0
  1078. package/dist/esm/types/rx-query.d.js +3 -0
  1079. package/dist/esm/types/rx-query.d.js.map +1 -0
  1080. package/dist/esm/types/rx-schema.d.js +3 -0
  1081. package/dist/esm/types/rx-schema.d.js.map +1 -0
  1082. package/dist/esm/types/rx-storage.d.js +3 -0
  1083. package/dist/esm/types/rx-storage.d.js.map +1 -0
  1084. package/dist/esm/types/rx-storage.interface.d.js +3 -0
  1085. package/dist/esm/types/rx-storage.interface.d.js.map +1 -0
  1086. package/dist/esm/types/util.d.js +3 -0
  1087. package/dist/esm/types/util.d.js.map +1 -0
  1088. package/dist/types/change-event-buffer.d.ts +50 -0
  1089. package/dist/types/custom-index.d.ts +58 -0
  1090. package/dist/types/doc-cache.d.ts +96 -0
  1091. package/dist/types/event-reduce.d.ts +15 -0
  1092. package/dist/types/hooks.d.ts +109 -0
  1093. package/dist/types/incremental-write.d.ts +29 -0
  1094. package/dist/types/index.d.ts +30 -0
  1095. package/dist/types/overwritable.d.ts +26 -0
  1096. package/dist/types/plugin-helpers.d.ts +30 -0
  1097. package/dist/types/plugin.d.ts +6 -0
  1098. package/dist/types/plugins/attachments/attachments-utils.d.ts +10 -0
  1099. package/dist/types/plugins/attachments/index.d.ts +42 -0
  1100. package/dist/types/plugins/attachments-compression/index.d.ts +38 -0
  1101. package/dist/types/plugins/backup/file-util.d.ts +17 -0
  1102. package/dist/types/plugins/backup/index.d.ts +37 -0
  1103. package/dist/types/plugins/cleanup/cleanup-helper.d.ts +2 -0
  1104. package/dist/types/plugins/cleanup/cleanup-state.d.ts +7 -0
  1105. package/dist/types/plugins/cleanup/cleanup.d.ts +8 -0
  1106. package/dist/types/plugins/cleanup/index.d.ts +4 -0
  1107. package/dist/types/plugins/crdt/index.d.ts +12 -0
  1108. package/dist/types/plugins/dev-mode/check-document.d.ts +9 -0
  1109. package/dist/types/plugins/dev-mode/check-migration-strategies.d.ts +6 -0
  1110. package/dist/types/plugins/dev-mode/check-orm.d.ts +7 -0
  1111. package/dist/types/plugins/dev-mode/check-query.d.ts +21 -0
  1112. package/dist/types/plugins/dev-mode/check-schema.d.ts +18 -0
  1113. package/dist/types/plugins/dev-mode/dev-mode-tracking.d.ts +4 -0
  1114. package/dist/types/plugins/dev-mode/entity-properties.d.ts +3 -0
  1115. package/dist/types/plugins/dev-mode/error-messages.d.ts +1230 -0
  1116. package/dist/types/plugins/dev-mode/index.d.ts +19 -0
  1117. package/dist/types/plugins/dev-mode/unallowed-properties.d.ts +20 -0
  1118. package/dist/types/plugins/electron/electron-helper.d.ts +2 -0
  1119. package/dist/types/plugins/electron/index.d.ts +3 -0
  1120. package/dist/types/plugins/electron/rx-storage-ipc-main.d.ts +10 -0
  1121. package/dist/types/plugins/electron/rx-storage-ipc-renderer.d.ts +13 -0
  1122. package/dist/types/plugins/encryption-crypto-js/index.d.ts +10 -0
  1123. package/dist/types/plugins/flutter/index.d.ts +11 -0
  1124. package/dist/types/plugins/json-dump/index.d.ts +2 -0
  1125. package/dist/types/plugins/key-compression/index.d.ts +18 -0
  1126. package/dist/types/plugins/leader-election/index.d.ts +25 -0
  1127. package/dist/types/plugins/local-documents/index.d.ts +6 -0
  1128. package/dist/types/plugins/local-documents/local-documents-helper.d.ts +9 -0
  1129. package/dist/types/plugins/local-documents/local-documents.d.ts +14 -0
  1130. package/dist/types/plugins/local-documents/rx-local-document.d.ts +11 -0
  1131. package/dist/types/plugins/migration-schema/index.d.ts +8 -0
  1132. package/dist/types/plugins/migration-schema/migration-helpers.d.ts +29 -0
  1133. package/dist/types/plugins/migration-schema/migration-types.d.ts +33 -0
  1134. package/dist/types/plugins/migration-schema/rx-migration-state.d.ts +50 -0
  1135. package/dist/types/plugins/migration-storage/index.d.ts +32 -0
  1136. package/dist/types/plugins/pipeline/flagged-functions.d.ts +69 -0
  1137. package/dist/types/plugins/pipeline/index.d.ts +5 -0
  1138. package/dist/types/plugins/pipeline/rx-pipeline.d.ts +37 -0
  1139. package/dist/types/plugins/pipeline/types.d.ts +17 -0
  1140. package/dist/types/plugins/query-builder/index.d.ts +5 -0
  1141. package/dist/types/plugins/query-builder/mquery/mquery-utils.d.ts +12 -0
  1142. package/dist/types/plugins/query-builder/mquery/nosql-query-builder.d.ts +165 -0
  1143. package/dist/types/plugins/react/database-context.d.ts +4 -0
  1144. package/dist/types/plugins/react/database-provider.d.ts +24 -0
  1145. package/dist/types/plugins/react/hooks/index.d.ts +4 -0
  1146. package/dist/types/plugins/react/hooks/use-live-rx-query.d.ts +11 -0
  1147. package/dist/types/plugins/react/hooks/use-rx-collection.d.ts +10 -0
  1148. package/dist/types/plugins/react/hooks/use-rx-database.d.ts +9 -0
  1149. package/dist/types/plugins/react/hooks/use-rx-query.d.ts +24 -0
  1150. package/dist/types/plugins/react/index.d.ts +2 -0
  1151. package/dist/types/plugins/reactivity-angular/index.d.ts +16 -0
  1152. package/dist/types/plugins/reactivity-preact-signals/index.d.ts +27 -0
  1153. package/dist/types/plugins/reactivity-vue/index.d.ts +17 -0
  1154. package/dist/types/plugins/replication/index.d.ts +84 -0
  1155. package/dist/types/plugins/replication/replication-helper.d.ts +23 -0
  1156. package/dist/types/plugins/replication-appwrite/appwrite-helpers.d.ts +3 -0
  1157. package/dist/types/plugins/replication-appwrite/appwrite-types.d.ts +16 -0
  1158. package/dist/types/plugins/replication-appwrite/index.d.ts +14 -0
  1159. package/dist/types/plugins/replication-couchdb/couchdb-helper.d.ts +19 -0
  1160. package/dist/types/plugins/replication-couchdb/couchdb-types.d.ts +22 -0
  1161. package/dist/types/plugins/replication-couchdb/index.d.ts +18 -0
  1162. package/dist/types/plugins/replication-firestore/firestore-helper.d.ts +10 -0
  1163. package/dist/types/plugins/replication-firestore/firestore-types.d.ts +46 -0
  1164. package/dist/types/plugins/replication-firestore/index.d.ts +17 -0
  1165. package/dist/types/plugins/replication-google-drive/document-handling.d.ts +13 -0
  1166. package/dist/types/plugins/replication-google-drive/downstream.d.ts +10 -0
  1167. package/dist/types/plugins/replication-google-drive/google-drive-helper.d.ts +35 -0
  1168. package/dist/types/plugins/replication-google-drive/google-drive-types.d.ts +67 -0
  1169. package/dist/types/plugins/replication-google-drive/index.d.ts +39 -0
  1170. package/dist/types/plugins/replication-google-drive/init.d.ts +29 -0
  1171. package/dist/types/plugins/replication-google-drive/multipart.d.ts +10 -0
  1172. package/dist/types/plugins/replication-google-drive/signaling.d.ts +41 -0
  1173. package/dist/types/plugins/replication-google-drive/transaction.d.ts +22 -0
  1174. package/dist/types/plugins/replication-google-drive/upstream.d.ts +24 -0
  1175. package/dist/types/plugins/replication-graphql/graphql-schema-from-rx-schema.d.ts +51 -0
  1176. package/dist/types/plugins/replication-graphql/graphql-websocket.d.ts +12 -0
  1177. package/dist/types/plugins/replication-graphql/helper.d.ts +15 -0
  1178. package/dist/types/plugins/replication-graphql/index.d.ts +26 -0
  1179. package/dist/types/plugins/replication-graphql/query-builder-from-rx-schema.d.ts +5 -0
  1180. package/dist/types/plugins/replication-microsoft-onedrive/document-handling.d.ts +14 -0
  1181. package/dist/types/plugins/replication-microsoft-onedrive/downstream.d.ts +10 -0
  1182. package/dist/types/plugins/replication-microsoft-onedrive/index.d.ts +38 -0
  1183. package/dist/types/plugins/replication-microsoft-onedrive/init.d.ts +29 -0
  1184. package/dist/types/plugins/replication-microsoft-onedrive/microsoft-onedrive-helper.d.ts +30 -0
  1185. package/dist/types/plugins/replication-microsoft-onedrive/microsoft-onedrive-types.d.ts +71 -0
  1186. package/dist/types/plugins/replication-microsoft-onedrive/signaling.d.ts +41 -0
  1187. package/dist/types/plugins/replication-microsoft-onedrive/transaction.d.ts +22 -0
  1188. package/dist/types/plugins/replication-microsoft-onedrive/upstream.d.ts +25 -0
  1189. package/dist/types/plugins/replication-mongodb/index.d.ts +22 -0
  1190. package/dist/types/plugins/replication-mongodb/mongodb-checkpoint.d.ts +15 -0
  1191. package/dist/types/plugins/replication-mongodb/mongodb-helper.d.ts +13 -0
  1192. package/dist/types/plugins/replication-mongodb/mongodb-types.d.ts +33 -0
  1193. package/dist/types/plugins/replication-nats/index.d.ts +16 -0
  1194. package/dist/types/plugins/replication-nats/nats-helper.d.ts +2 -0
  1195. package/dist/types/plugins/replication-nats/nats-types.d.ts +21 -0
  1196. package/dist/types/plugins/replication-supabase/helper.d.ts +5 -0
  1197. package/dist/types/plugins/replication-supabase/index.d.ts +14 -0
  1198. package/dist/types/plugins/replication-supabase/types.d.ts +28 -0
  1199. package/dist/types/plugins/replication-webrtc/connection-handler-p2pcf.d.ts +0 -0
  1200. package/dist/types/plugins/replication-webrtc/connection-handler-simple-peer.d.ts +57 -0
  1201. package/dist/types/plugins/replication-webrtc/connection-handler-webtorrent.d.ts +0 -0
  1202. package/dist/types/plugins/replication-webrtc/index.d.ts +27 -0
  1203. package/dist/types/plugins/replication-webrtc/signaling-server.d.ts +17 -0
  1204. package/dist/types/plugins/replication-webrtc/webrtc-helper.d.ts +16 -0
  1205. package/dist/types/plugins/replication-webrtc/webrtc-types.d.ts +51 -0
  1206. package/dist/types/plugins/replication-websocket/index.d.ts +3 -0
  1207. package/dist/types/plugins/replication-websocket/websocket-client.d.ts +13 -0
  1208. package/dist/types/plugins/replication-websocket/websocket-server.d.ts +6 -0
  1209. package/dist/types/plugins/replication-websocket/websocket-types.d.ts +32 -0
  1210. package/dist/types/plugins/state/helpers.d.ts +10 -0
  1211. package/dist/types/plugins/state/index.d.ts +4 -0
  1212. package/dist/types/plugins/state/rx-state.d.ts +46 -0
  1213. package/dist/types/plugins/state/types.d.ts +28 -0
  1214. package/dist/types/plugins/storage-denokv/denokv-helper.d.ts +16 -0
  1215. package/dist/types/plugins/storage-denokv/denokv-query.d.ts +3 -0
  1216. package/dist/types/plugins/storage-denokv/denokv-types.d.ts +17 -0
  1217. package/dist/types/plugins/storage-denokv/index.d.ts +11 -0
  1218. package/dist/types/plugins/storage-denokv/rx-storage-instance-denokv.d.ts +41 -0
  1219. package/dist/types/plugins/storage-dexie/dexie-helper.d.ts +40 -0
  1220. package/dist/types/plugins/storage-dexie/dexie-query.d.ts +9 -0
  1221. package/dist/types/plugins/storage-dexie/index.d.ts +4 -0
  1222. package/dist/types/plugins/storage-dexie/rx-storage-dexie.d.ts +11 -0
  1223. package/dist/types/plugins/storage-dexie/rx-storage-instance-dexie.d.ts +29 -0
  1224. package/dist/types/plugins/storage-foundationdb/foundationdb-helpers.d.ts +3 -0
  1225. package/dist/types/plugins/storage-foundationdb/foundationdb-query.d.ts +3 -0
  1226. package/dist/types/plugins/storage-foundationdb/foundationdb-types.d.ts +46 -0
  1227. package/dist/types/plugins/storage-foundationdb/index.d.ts +4 -0
  1228. package/dist/types/plugins/storage-foundationdb/rx-storage-instance-foundationdb.d.ts +26 -0
  1229. package/dist/types/plugins/storage-localstorage/index.d.ts +11 -0
  1230. package/dist/types/plugins/storage-localstorage/localstorage-mock.d.ts +1 -0
  1231. package/dist/types/plugins/storage-localstorage/rx-storage-instance-localstorage.d.ts +84 -0
  1232. package/dist/types/plugins/storage-memory/binary-search-bounds.d.ts +14 -0
  1233. package/dist/types/plugins/storage-memory/index.d.ts +7 -0
  1234. package/dist/types/plugins/storage-memory/memory-helper.d.ts +22 -0
  1235. package/dist/types/plugins/storage-memory/memory-indexes.d.ts +4 -0
  1236. package/dist/types/plugins/storage-memory/memory-types.d.ts +72 -0
  1237. package/dist/types/plugins/storage-memory/rx-storage-instance-memory.d.ts +47 -0
  1238. package/dist/types/plugins/storage-mongodb/index.d.ts +4 -0
  1239. package/dist/types/plugins/storage-mongodb/mongodb-helper.d.ts +22 -0
  1240. package/dist/types/plugins/storage-mongodb/mongodb-types.d.ts +21 -0
  1241. package/dist/types/plugins/storage-mongodb/rx-storage-instance-mongodb.d.ts +52 -0
  1242. package/dist/types/plugins/storage-mongodb/rx-storage-mongodb.d.ts +11 -0
  1243. package/dist/types/plugins/storage-remote/index.d.ts +5 -0
  1244. package/dist/types/plugins/storage-remote/message-channel-cache.d.ts +13 -0
  1245. package/dist/types/plugins/storage-remote/remote.d.ts +6 -0
  1246. package/dist/types/plugins/storage-remote/rx-storage-remote.d.ts +43 -0
  1247. package/dist/types/plugins/storage-remote/storage-remote-helpers.d.ts +4 -0
  1248. package/dist/types/plugins/storage-remote/storage-remote-types.d.ts +88 -0
  1249. package/dist/types/plugins/storage-remote-websocket/index.d.ts +4 -0
  1250. package/dist/types/plugins/storage-remote-websocket/types.d.ts +24 -0
  1251. package/dist/types/plugins/storage-sqlite/index.d.ts +15 -0
  1252. package/dist/types/plugins/storage-sqlite/sqlite-basics-helpers.d.ts +53 -0
  1253. package/dist/types/plugins/storage-sqlite/sqlite-helpers.d.ts +48 -0
  1254. package/dist/types/plugins/storage-sqlite/sqlite-storage-instance.d.ts +38 -0
  1255. package/dist/types/plugins/storage-sqlite/sqlite-types.d.ts +116 -0
  1256. package/dist/types/plugins/test-utils/config.d.ts +16 -0
  1257. package/dist/types/plugins/test-utils/humans-collection.d.ts +26 -0
  1258. package/dist/types/plugins/test-utils/index.d.ts +20 -0
  1259. package/dist/types/plugins/test-utils/performance.d.ts +68 -0
  1260. package/dist/types/plugins/test-utils/replication-base-test-suite.d.ts +66 -0
  1261. package/dist/types/plugins/test-utils/replication.d.ts +10 -0
  1262. package/dist/types/plugins/test-utils/revisions.d.ts +4 -0
  1263. package/dist/types/plugins/test-utils/schema-objects.d.ts +219 -0
  1264. package/dist/types/plugins/test-utils/schemas.d.ts +356 -0
  1265. package/dist/types/plugins/test-utils/test-util.d.ts +10 -0
  1266. package/dist/types/plugins/update/index.d.ts +5 -0
  1267. package/dist/types/plugins/update/mingo-updater.d.ts +2 -0
  1268. package/dist/types/plugins/utils/index.d.ts +20 -0
  1269. package/dist/types/plugins/utils/utils-array.d.ts +40 -0
  1270. package/dist/types/plugins/utils/utils-base64.d.ts +15 -0
  1271. package/dist/types/plugins/utils/utils-blob.d.ts +12 -0
  1272. package/dist/types/plugins/utils/utils-document.d.ts +26 -0
  1273. package/dist/types/plugins/utils/utils-error.d.ts +8 -0
  1274. package/dist/types/plugins/utils/utils-global.d.ts +5 -0
  1275. package/dist/types/plugins/utils/utils-hash.d.ts +4 -0
  1276. package/dist/types/plugins/utils/utils-map.d.ts +2 -0
  1277. package/dist/types/plugins/utils/utils-number.d.ts +7 -0
  1278. package/dist/types/plugins/utils/utils-object-deep-equal.d.ts +7 -0
  1279. package/dist/types/plugins/utils/utils-object-dot-prop.d.ts +14 -0
  1280. package/dist/types/plugins/utils/utils-object.d.ts +61 -0
  1281. package/dist/types/plugins/utils/utils-other.d.ts +20 -0
  1282. package/dist/types/plugins/utils/utils-premium.d.ts +10 -0
  1283. package/dist/types/plugins/utils/utils-promise.d.ts +43 -0
  1284. package/dist/types/plugins/utils/utils-regex.d.ts +2 -0
  1285. package/dist/types/plugins/utils/utils-revision.d.ts +22 -0
  1286. package/dist/types/plugins/utils/utils-rxdb-version.d.ts +4 -0
  1287. package/dist/types/plugins/utils/utils-rxdb-version.template.d.ts +4 -0
  1288. package/dist/types/plugins/utils/utils-string.d.ts +35 -0
  1289. package/dist/types/plugins/utils/utils-time.d.ts +5 -0
  1290. package/dist/types/plugins/validate-ajv/index.d.ts +13 -0
  1291. package/dist/types/plugins/validate-is-my-json-valid/index.d.ts +5 -0
  1292. package/dist/types/plugins/validate-z-schema/index.d.ts +13 -0
  1293. package/dist/types/plugins/vector/helper.d.ts +0 -0
  1294. package/dist/types/plugins/vector/index.d.ts +2 -0
  1295. package/dist/types/plugins/vector/types.d.ts +1 -0
  1296. package/dist/types/plugins/vector/vector-distance.d.ts +13 -0
  1297. package/dist/types/plugins/webmcp/index.d.ts +2 -0
  1298. package/dist/types/plugins/webmcp/nosql-query-schema.d.ts +549 -0
  1299. package/dist/types/plugins/webmcp/webmcp.d.ts +12 -0
  1300. package/dist/types/query-cache.d.ts +35 -0
  1301. package/dist/types/query-planner.d.ts +30 -0
  1302. package/dist/types/replication-protocol/checkpoint.d.ts +8 -0
  1303. package/dist/types/replication-protocol/conflicts.d.ts +10 -0
  1304. package/dist/types/replication-protocol/default-conflict-handler.d.ts +2 -0
  1305. package/dist/types/replication-protocol/downstream.d.ts +10 -0
  1306. package/dist/types/replication-protocol/helper.d.ts +5 -0
  1307. package/dist/types/replication-protocol/index.d.ts +30 -0
  1308. package/dist/types/replication-protocol/meta-instance.d.ts +12 -0
  1309. package/dist/types/replication-protocol/upstream.d.ts +10 -0
  1310. package/dist/types/rx-change-event.d.ts +20 -0
  1311. package/dist/types/rx-collection-helper.d.ts +41 -0
  1312. package/dist/types/rx-collection.d.ts +185 -0
  1313. package/dist/types/rx-database-internal-store.d.ts +37 -0
  1314. package/dist/types/rx-database.d.ts +213 -0
  1315. package/dist/types/rx-document-prototype-merge.d.ts +24 -0
  1316. package/dist/types/rx-document.d.ts +274 -0
  1317. package/dist/types/rx-error.d.ts +37 -0
  1318. package/dist/types/rx-query-helper.d.ts +31 -0
  1319. package/dist/types/rx-query-mingo.d.ts +10 -0
  1320. package/dist/types/rx-query-single-result.d.ts +31 -0
  1321. package/dist/types/rx-query.d.ts +153 -0
  1322. package/dist/types/rx-schema-helper.d.ts +57 -0
  1323. package/dist/types/rx-schema.d.ts +43 -0
  1324. package/dist/types/rx-storage-helper.d.ts +111 -0
  1325. package/dist/types/rx-storage-multiinstance.d.ts +51 -0
  1326. package/dist/types/types/conflict-handling.d.ts +48 -0
  1327. package/dist/types/types/couchdb.d.ts +293 -0
  1328. package/dist/types/types/index.d.ts +32 -0
  1329. package/dist/types/types/modules/index.d.ts +0 -0
  1330. package/dist/types/types/modules/mocha.parallel.d.ts +1 -0
  1331. package/dist/types/types/plugins/backup.d.ts +35 -0
  1332. package/dist/types/types/plugins/cleanup.d.ts +38 -0
  1333. package/dist/types/types/plugins/crdt.d.ts +76 -0
  1334. package/dist/types/types/plugins/dexie.d.ts +30 -0
  1335. package/dist/types/types/plugins/local-documents.d.ts +49 -0
  1336. package/dist/types/types/plugins/migration.d.ts +14 -0
  1337. package/dist/types/types/plugins/reactivity.d.ts +40 -0
  1338. package/dist/types/types/plugins/replication-graphql.d.ts +98 -0
  1339. package/dist/types/types/plugins/replication.d.ts +175 -0
  1340. package/dist/types/types/plugins/state.d.ts +4 -0
  1341. package/dist/types/types/plugins/update.d.ts +23 -0
  1342. package/dist/types/types/plugins/webmcp.d.ts +40 -0
  1343. package/dist/types/types/query-planner.d.ts +47 -0
  1344. package/dist/types/types/replication-protocol.d.ts +296 -0
  1345. package/dist/types/types/rx-attachment.d.ts +46 -0
  1346. package/dist/types/types/rx-change-event.d.ts +85 -0
  1347. package/dist/types/types/rx-collection.d.ts +117 -0
  1348. package/dist/types/types/rx-database-internal-store.d.ts +54 -0
  1349. package/dist/types/types/rx-database.d.ts +124 -0
  1350. package/dist/types/types/rx-document.d.ts +160 -0
  1351. package/dist/types/types/rx-error.d.ts +222 -0
  1352. package/dist/types/types/rx-plugin.d.ts +167 -0
  1353. package/dist/types/types/rx-query.d.ts +144 -0
  1354. package/dist/types/types/rx-schema.d.ts +209 -0
  1355. package/dist/types/types/rx-storage.d.ts +347 -0
  1356. package/dist/types/types/rx-storage.interface.d.ts +312 -0
  1357. package/dist/types/types/util.d.ts +180 -0
  1358. package/eslint.config.mjs +514 -0
  1359. package/package.json +729 -0
  1360. package/plugins/attachments/index.cjs +2 -0
  1361. package/plugins/attachments/index.d.cts +1 -0
  1362. package/plugins/attachments/index.d.mts +1 -0
  1363. package/plugins/attachments/index.mjs +1 -0
  1364. package/plugins/attachments/index.ts +1 -0
  1365. package/plugins/attachments/package.json +18 -0
  1366. package/plugins/attachments-compression/index.cjs +2 -0
  1367. package/plugins/attachments-compression/index.d.cts +1 -0
  1368. package/plugins/attachments-compression/index.d.mts +1 -0
  1369. package/plugins/attachments-compression/index.mjs +1 -0
  1370. package/plugins/attachments-compression/index.ts +1 -0
  1371. package/plugins/attachments-compression/package.json +18 -0
  1372. package/plugins/backup/index.cjs +2 -0
  1373. package/plugins/backup/index.d.cts +1 -0
  1374. package/plugins/backup/index.d.mts +1 -0
  1375. package/plugins/backup/index.mjs +1 -0
  1376. package/plugins/backup/index.ts +1 -0
  1377. package/plugins/backup/package.json +18 -0
  1378. package/plugins/cleanup/index.cjs +2 -0
  1379. package/plugins/cleanup/index.d.cts +1 -0
  1380. package/plugins/cleanup/index.d.mts +1 -0
  1381. package/plugins/cleanup/index.mjs +1 -0
  1382. package/plugins/cleanup/index.ts +1 -0
  1383. package/plugins/cleanup/package.json +18 -0
  1384. package/plugins/core/index.cjs +2 -0
  1385. package/plugins/core/index.d.cts +1 -0
  1386. package/plugins/core/index.d.mts +1 -0
  1387. package/plugins/core/index.mjs +1 -0
  1388. package/plugins/core/index.ts +1 -0
  1389. package/plugins/core/package.json +18 -0
  1390. package/plugins/crdt/index.cjs +2 -0
  1391. package/plugins/crdt/index.d.cts +1 -0
  1392. package/plugins/crdt/index.d.mts +1 -0
  1393. package/plugins/crdt/index.mjs +1 -0
  1394. package/plugins/crdt/index.ts +1 -0
  1395. package/plugins/crdt/package.json +18 -0
  1396. package/plugins/dev-mode/index.cjs +2 -0
  1397. package/plugins/dev-mode/index.d.cts +1 -0
  1398. package/plugins/dev-mode/index.d.mts +1 -0
  1399. package/plugins/dev-mode/index.mjs +1 -0
  1400. package/plugins/dev-mode/index.ts +1 -0
  1401. package/plugins/dev-mode/package.json +18 -0
  1402. package/plugins/electron/index.cjs +2 -0
  1403. package/plugins/electron/index.d.cts +1 -0
  1404. package/plugins/electron/index.d.mts +1 -0
  1405. package/plugins/electron/index.mjs +1 -0
  1406. package/plugins/electron/index.ts +1 -0
  1407. package/plugins/electron/package.json +18 -0
  1408. package/plugins/encryption-crypto-js/index.cjs +2 -0
  1409. package/plugins/encryption-crypto-js/index.d.cts +1 -0
  1410. package/plugins/encryption-crypto-js/index.d.mts +1 -0
  1411. package/plugins/encryption-crypto-js/index.mjs +1 -0
  1412. package/plugins/encryption-crypto-js/index.ts +1 -0
  1413. package/plugins/encryption-crypto-js/package.json +18 -0
  1414. package/plugins/flutter/index.cjs +2 -0
  1415. package/plugins/flutter/index.d.cts +1 -0
  1416. package/plugins/flutter/index.d.mts +1 -0
  1417. package/plugins/flutter/index.mjs +1 -0
  1418. package/plugins/flutter/index.ts +1 -0
  1419. package/plugins/flutter/package.json +18 -0
  1420. package/plugins/json-dump/index.cjs +2 -0
  1421. package/plugins/json-dump/index.d.cts +1 -0
  1422. package/plugins/json-dump/index.d.mts +1 -0
  1423. package/plugins/json-dump/index.mjs +1 -0
  1424. package/plugins/json-dump/index.ts +1 -0
  1425. package/plugins/json-dump/package.json +18 -0
  1426. package/plugins/key-compression/index.cjs +2 -0
  1427. package/plugins/key-compression/index.d.cts +1 -0
  1428. package/plugins/key-compression/index.d.mts +1 -0
  1429. package/plugins/key-compression/index.mjs +1 -0
  1430. package/plugins/key-compression/index.ts +1 -0
  1431. package/plugins/key-compression/package.json +18 -0
  1432. package/plugins/leader-election/index.cjs +2 -0
  1433. package/plugins/leader-election/index.d.cts +1 -0
  1434. package/plugins/leader-election/index.d.mts +1 -0
  1435. package/plugins/leader-election/index.mjs +1 -0
  1436. package/plugins/leader-election/index.ts +1 -0
  1437. package/plugins/leader-election/package.json +18 -0
  1438. package/plugins/local-documents/index.cjs +2 -0
  1439. package/plugins/local-documents/index.d.cts +1 -0
  1440. package/plugins/local-documents/index.d.mts +1 -0
  1441. package/plugins/local-documents/index.mjs +1 -0
  1442. package/plugins/local-documents/index.ts +1 -0
  1443. package/plugins/local-documents/package.json +18 -0
  1444. package/plugins/migration-schema/index.cjs +2 -0
  1445. package/plugins/migration-schema/index.d.cts +1 -0
  1446. package/plugins/migration-schema/index.d.mts +1 -0
  1447. package/plugins/migration-schema/index.mjs +1 -0
  1448. package/plugins/migration-schema/index.ts +1 -0
  1449. package/plugins/migration-schema/package.json +18 -0
  1450. package/plugins/migration-storage/index.cjs +2 -0
  1451. package/plugins/migration-storage/index.d.cts +1 -0
  1452. package/plugins/migration-storage/index.d.mts +1 -0
  1453. package/plugins/migration-storage/index.mjs +1 -0
  1454. package/plugins/migration-storage/index.ts +1 -0
  1455. package/plugins/migration-storage/package.json +18 -0
  1456. package/plugins/pipeline/index.cjs +2 -0
  1457. package/plugins/pipeline/index.d.cts +1 -0
  1458. package/plugins/pipeline/index.d.mts +1 -0
  1459. package/plugins/pipeline/index.mjs +1 -0
  1460. package/plugins/pipeline/index.ts +1 -0
  1461. package/plugins/pipeline/package.json +18 -0
  1462. package/plugins/query-builder/index.cjs +2 -0
  1463. package/plugins/query-builder/index.d.cts +1 -0
  1464. package/plugins/query-builder/index.d.mts +1 -0
  1465. package/plugins/query-builder/index.mjs +1 -0
  1466. package/plugins/query-builder/index.ts +1 -0
  1467. package/plugins/query-builder/package.json +18 -0
  1468. package/plugins/react/index.cjs +2 -0
  1469. package/plugins/react/index.d.cts +1 -0
  1470. package/plugins/react/index.d.mts +1 -0
  1471. package/plugins/react/index.mjs +1 -0
  1472. package/plugins/react/index.ts +1 -0
  1473. package/plugins/react/package.json +18 -0
  1474. package/plugins/reactivity-angular/index.cjs +2 -0
  1475. package/plugins/reactivity-angular/index.d.cts +1 -0
  1476. package/plugins/reactivity-angular/index.d.mts +1 -0
  1477. package/plugins/reactivity-angular/index.mjs +1 -0
  1478. package/plugins/reactivity-angular/index.ts +1 -0
  1479. package/plugins/reactivity-angular/package.json +18 -0
  1480. package/plugins/reactivity-preact-signals/index.cjs +2 -0
  1481. package/plugins/reactivity-preact-signals/index.d.cts +1 -0
  1482. package/plugins/reactivity-preact-signals/index.d.mts +1 -0
  1483. package/plugins/reactivity-preact-signals/index.mjs +1 -0
  1484. package/plugins/reactivity-preact-signals/index.ts +1 -0
  1485. package/plugins/reactivity-preact-signals/package.json +18 -0
  1486. package/plugins/reactivity-vue/index.cjs +2 -0
  1487. package/plugins/reactivity-vue/index.d.cts +1 -0
  1488. package/plugins/reactivity-vue/index.d.mts +1 -0
  1489. package/plugins/reactivity-vue/index.mjs +1 -0
  1490. package/plugins/reactivity-vue/index.ts +1 -0
  1491. package/plugins/reactivity-vue/package.json +18 -0
  1492. package/plugins/replication/index.cjs +2 -0
  1493. package/plugins/replication/index.d.cts +1 -0
  1494. package/plugins/replication/index.d.mts +1 -0
  1495. package/plugins/replication/index.mjs +1 -0
  1496. package/plugins/replication/index.ts +1 -0
  1497. package/plugins/replication/package.json +18 -0
  1498. package/plugins/replication-appwrite/index.cjs +2 -0
  1499. package/plugins/replication-appwrite/index.d.cts +1 -0
  1500. package/plugins/replication-appwrite/index.d.mts +1 -0
  1501. package/plugins/replication-appwrite/index.mjs +1 -0
  1502. package/plugins/replication-appwrite/index.ts +1 -0
  1503. package/plugins/replication-appwrite/package.json +18 -0
  1504. package/plugins/replication-couchdb/index.cjs +2 -0
  1505. package/plugins/replication-couchdb/index.d.cts +1 -0
  1506. package/plugins/replication-couchdb/index.d.mts +1 -0
  1507. package/plugins/replication-couchdb/index.mjs +1 -0
  1508. package/plugins/replication-couchdb/index.ts +1 -0
  1509. package/plugins/replication-couchdb/package.json +18 -0
  1510. package/plugins/replication-firestore/index.cjs +2 -0
  1511. package/plugins/replication-firestore/index.d.cts +1 -0
  1512. package/plugins/replication-firestore/index.d.mts +1 -0
  1513. package/plugins/replication-firestore/index.mjs +1 -0
  1514. package/plugins/replication-firestore/index.ts +1 -0
  1515. package/plugins/replication-firestore/package.json +18 -0
  1516. package/plugins/replication-google-drive/index.cjs +2 -0
  1517. package/plugins/replication-google-drive/index.d.cts +1 -0
  1518. package/plugins/replication-google-drive/index.d.mts +1 -0
  1519. package/plugins/replication-google-drive/index.mjs +1 -0
  1520. package/plugins/replication-google-drive/index.ts +1 -0
  1521. package/plugins/replication-google-drive/package.json +18 -0
  1522. package/plugins/replication-graphql/index.cjs +2 -0
  1523. package/plugins/replication-graphql/index.d.cts +1 -0
  1524. package/plugins/replication-graphql/index.d.mts +1 -0
  1525. package/plugins/replication-graphql/index.mjs +1 -0
  1526. package/plugins/replication-graphql/index.ts +1 -0
  1527. package/plugins/replication-graphql/package.json +18 -0
  1528. package/plugins/replication-microsoft-onedrive/index.cjs +2 -0
  1529. package/plugins/replication-microsoft-onedrive/index.d.cts +1 -0
  1530. package/plugins/replication-microsoft-onedrive/index.d.mts +1 -0
  1531. package/plugins/replication-microsoft-onedrive/index.mjs +1 -0
  1532. package/plugins/replication-microsoft-onedrive/index.ts +1 -0
  1533. package/plugins/replication-microsoft-onedrive/package.json +18 -0
  1534. package/plugins/replication-mongodb/index.cjs +2 -0
  1535. package/plugins/replication-mongodb/index.d.cts +1 -0
  1536. package/plugins/replication-mongodb/index.d.mts +1 -0
  1537. package/plugins/replication-mongodb/index.mjs +1 -0
  1538. package/plugins/replication-mongodb/index.ts +1 -0
  1539. package/plugins/replication-mongodb/package.json +18 -0
  1540. package/plugins/replication-nats/index.cjs +2 -0
  1541. package/plugins/replication-nats/index.d.cts +1 -0
  1542. package/plugins/replication-nats/index.d.mts +1 -0
  1543. package/plugins/replication-nats/index.mjs +1 -0
  1544. package/plugins/replication-nats/index.ts +1 -0
  1545. package/plugins/replication-nats/package.json +18 -0
  1546. package/plugins/replication-supabase/index.cjs +2 -0
  1547. package/plugins/replication-supabase/index.d.cts +1 -0
  1548. package/plugins/replication-supabase/index.d.mts +1 -0
  1549. package/plugins/replication-supabase/index.mjs +1 -0
  1550. package/plugins/replication-supabase/index.ts +1 -0
  1551. package/plugins/replication-supabase/package.json +18 -0
  1552. package/plugins/replication-webrtc/index.cjs +2 -0
  1553. package/plugins/replication-webrtc/index.d.cts +1 -0
  1554. package/plugins/replication-webrtc/index.d.mts +1 -0
  1555. package/plugins/replication-webrtc/index.mjs +1 -0
  1556. package/plugins/replication-webrtc/index.ts +1 -0
  1557. package/plugins/replication-webrtc/package.json +18 -0
  1558. package/plugins/replication-websocket/index.cjs +2 -0
  1559. package/plugins/replication-websocket/index.d.cts +1 -0
  1560. package/plugins/replication-websocket/index.d.mts +1 -0
  1561. package/plugins/replication-websocket/index.mjs +1 -0
  1562. package/plugins/replication-websocket/index.ts +1 -0
  1563. package/plugins/replication-websocket/package.json +18 -0
  1564. package/plugins/state/index.cjs +2 -0
  1565. package/plugins/state/index.d.cts +1 -0
  1566. package/plugins/state/index.d.mts +1 -0
  1567. package/plugins/state/index.mjs +1 -0
  1568. package/plugins/state/index.ts +1 -0
  1569. package/plugins/state/package.json +18 -0
  1570. package/plugins/storage-denokv/index.cjs +2 -0
  1571. package/plugins/storage-denokv/index.d.cts +1 -0
  1572. package/plugins/storage-denokv/index.d.mts +1 -0
  1573. package/plugins/storage-denokv/index.mjs +1 -0
  1574. package/plugins/storage-denokv/index.ts +1 -0
  1575. package/plugins/storage-denokv/package.json +18 -0
  1576. package/plugins/storage-dexie/index.cjs +2 -0
  1577. package/plugins/storage-dexie/index.d.cts +1 -0
  1578. package/plugins/storage-dexie/index.d.mts +1 -0
  1579. package/plugins/storage-dexie/index.mjs +1 -0
  1580. package/plugins/storage-dexie/index.ts +1 -0
  1581. package/plugins/storage-dexie/package.json +18 -0
  1582. package/plugins/storage-foundationdb/index.cjs +2 -0
  1583. package/plugins/storage-foundationdb/index.d.cts +1 -0
  1584. package/plugins/storage-foundationdb/index.d.mts +1 -0
  1585. package/plugins/storage-foundationdb/index.mjs +1 -0
  1586. package/plugins/storage-foundationdb/index.ts +1 -0
  1587. package/plugins/storage-foundationdb/package.json +18 -0
  1588. package/plugins/storage-localstorage/index.cjs +2 -0
  1589. package/plugins/storage-localstorage/index.d.cts +1 -0
  1590. package/plugins/storage-localstorage/index.d.mts +1 -0
  1591. package/plugins/storage-localstorage/index.mjs +1 -0
  1592. package/plugins/storage-localstorage/index.ts +1 -0
  1593. package/plugins/storage-localstorage/package.json +18 -0
  1594. package/plugins/storage-memory/index.cjs +2 -0
  1595. package/plugins/storage-memory/index.d.cts +1 -0
  1596. package/plugins/storage-memory/index.d.mts +1 -0
  1597. package/plugins/storage-memory/index.mjs +1 -0
  1598. package/plugins/storage-memory/index.ts +1 -0
  1599. package/plugins/storage-memory/package.json +18 -0
  1600. package/plugins/storage-mongodb/index.cjs +2 -0
  1601. package/plugins/storage-mongodb/index.d.cts +1 -0
  1602. package/plugins/storage-mongodb/index.d.mts +1 -0
  1603. package/plugins/storage-mongodb/index.mjs +1 -0
  1604. package/plugins/storage-mongodb/index.ts +1 -0
  1605. package/plugins/storage-mongodb/package.json +18 -0
  1606. package/plugins/storage-remote/index.cjs +2 -0
  1607. package/plugins/storage-remote/index.d.cts +1 -0
  1608. package/plugins/storage-remote/index.d.mts +1 -0
  1609. package/plugins/storage-remote/index.mjs +1 -0
  1610. package/plugins/storage-remote/index.ts +1 -0
  1611. package/plugins/storage-remote/package.json +18 -0
  1612. package/plugins/storage-remote-websocket/index.cjs +2 -0
  1613. package/plugins/storage-remote-websocket/index.d.cts +1 -0
  1614. package/plugins/storage-remote-websocket/index.d.mts +1 -0
  1615. package/plugins/storage-remote-websocket/index.mjs +1 -0
  1616. package/plugins/storage-remote-websocket/index.ts +1 -0
  1617. package/plugins/storage-remote-websocket/package.json +18 -0
  1618. package/plugins/storage-sqlite/index.cjs +2 -0
  1619. package/plugins/storage-sqlite/index.d.cts +1 -0
  1620. package/plugins/storage-sqlite/index.d.mts +1 -0
  1621. package/plugins/storage-sqlite/index.mjs +1 -0
  1622. package/plugins/storage-sqlite/index.ts +1 -0
  1623. package/plugins/storage-sqlite/package.json +18 -0
  1624. package/plugins/test-utils/index.cjs +2 -0
  1625. package/plugins/test-utils/index.d.cts +1 -0
  1626. package/plugins/test-utils/index.d.mts +1 -0
  1627. package/plugins/test-utils/index.mjs +1 -0
  1628. package/plugins/test-utils/index.ts +1 -0
  1629. package/plugins/test-utils/package.json +18 -0
  1630. package/plugins/update/index.cjs +2 -0
  1631. package/plugins/update/index.d.cts +1 -0
  1632. package/plugins/update/index.d.mts +1 -0
  1633. package/plugins/update/index.mjs +1 -0
  1634. package/plugins/update/index.ts +1 -0
  1635. package/plugins/update/package.json +18 -0
  1636. package/plugins/utils/index.cjs +2 -0
  1637. package/plugins/utils/index.d.cts +1 -0
  1638. package/plugins/utils/index.d.mts +1 -0
  1639. package/plugins/utils/index.mjs +1 -0
  1640. package/plugins/utils/index.ts +1 -0
  1641. package/plugins/utils/package.json +18 -0
  1642. package/plugins/validate-ajv/index.cjs +2 -0
  1643. package/plugins/validate-ajv/index.d.cts +1 -0
  1644. package/plugins/validate-ajv/index.d.mts +1 -0
  1645. package/plugins/validate-ajv/index.mjs +1 -0
  1646. package/plugins/validate-ajv/index.ts +1 -0
  1647. package/plugins/validate-ajv/package.json +18 -0
  1648. package/plugins/validate-is-my-json-valid/index.cjs +2 -0
  1649. package/plugins/validate-is-my-json-valid/index.d.cts +1 -0
  1650. package/plugins/validate-is-my-json-valid/index.d.mts +1 -0
  1651. package/plugins/validate-is-my-json-valid/index.mjs +1 -0
  1652. package/plugins/validate-is-my-json-valid/index.ts +1 -0
  1653. package/plugins/validate-is-my-json-valid/package.json +18 -0
  1654. package/plugins/validate-z-schema/index.cjs +2 -0
  1655. package/plugins/validate-z-schema/index.d.cts +1 -0
  1656. package/plugins/validate-z-schema/index.d.mts +1 -0
  1657. package/plugins/validate-z-schema/index.mjs +1 -0
  1658. package/plugins/validate-z-schema/index.ts +1 -0
  1659. package/plugins/validate-z-schema/package.json +18 -0
  1660. package/plugins/vector/index.cjs +2 -0
  1661. package/plugins/vector/index.d.cts +1 -0
  1662. package/plugins/vector/index.d.mts +1 -0
  1663. package/plugins/vector/index.mjs +1 -0
  1664. package/plugins/vector/index.ts +1 -0
  1665. package/plugins/vector/package.json +18 -0
  1666. package/plugins/webmcp/index.cjs +2 -0
  1667. package/plugins/webmcp/index.d.cts +1 -0
  1668. package/plugins/webmcp/index.d.mts +1 -0
  1669. package/plugins/webmcp/index.mjs +1 -0
  1670. package/plugins/webmcp/index.ts +1 -0
  1671. package/plugins/webmcp/package.json +18 -0
  1672. package/scripts/acme-challenge/.gittouch +0 -0
  1673. package/scripts/ai-context-generator.mjs +63 -0
  1674. package/scripts/cloud-signaling-script.sh +6 -0
  1675. package/scripts/docs-remove-time.mjs +55 -0
  1676. package/scripts/fix-types.mjs +23 -0
  1677. package/scripts/generate-all-headers.ts +102 -0
  1678. package/scripts/generate-error-messages.mjs +41 -0
  1679. package/scripts/generate-header.ts +226 -0
  1680. package/scripts/generate-plugins-package-json.mjs +133 -0
  1681. package/scripts/install-foundationdb.sh +14 -0
  1682. package/scripts/module_package.json +1 -0
  1683. package/scripts/module_package_no_side.json +1 -0
  1684. package/scripts/postinstall.js +33 -0
  1685. package/scripts/profile.mjs +31 -0
  1686. package/scripts/set-version.mjs +162 -0
  1687. package/scripts/start-cloud-signaling-server.mjs +120 -0
  1688. package/scripts/transpile.mjs +229 -0
  1689. package/scripts/update-version-variable.mjs +49 -0
  1690. package/src/change-event-buffer.ts +171 -0
  1691. package/src/custom-index.ts +376 -0
  1692. package/src/doc-cache.ts +294 -0
  1693. package/src/event-reduce.ts +159 -0
  1694. package/src/hooks.ts +128 -0
  1695. package/src/incremental-write.ts +227 -0
  1696. package/src/index.ts +30 -0
  1697. package/src/overwritable.ts +41 -0
  1698. package/src/plugin-helpers.ts +319 -0
  1699. package/src/plugin.ts +113 -0
  1700. package/src/plugins/attachments/attachments-utils.ts +84 -0
  1701. package/src/plugins/attachments/index.ts +316 -0
  1702. package/src/plugins/attachments-compression/index.ts +221 -0
  1703. package/src/plugins/backup/file-util.ts +132 -0
  1704. package/src/plugins/backup/index.ts +281 -0
  1705. package/src/plugins/cleanup/cleanup-helper.ts +11 -0
  1706. package/src/plugins/cleanup/cleanup-state.ts +92 -0
  1707. package/src/plugins/cleanup/cleanup.ts +140 -0
  1708. package/src/plugins/cleanup/index.ts +45 -0
  1709. package/src/plugins/crdt/index.ts +505 -0
  1710. package/src/plugins/dev-mode/check-document.ts +176 -0
  1711. package/src/plugins/dev-mode/check-migration-strategies.ts +53 -0
  1712. package/src/plugins/dev-mode/check-orm.ts +65 -0
  1713. package/src/plugins/dev-mode/check-query.ts +231 -0
  1714. package/src/plugins/dev-mode/check-schema.ts +564 -0
  1715. package/src/plugins/dev-mode/dev-mode-tracking.ts +125 -0
  1716. package/src/plugins/dev-mode/entity-properties.ts +56 -0
  1717. package/src/plugins/dev-mode/error-messages.ts +1331 -0
  1718. package/src/plugins/dev-mode/index.ts +203 -0
  1719. package/src/plugins/dev-mode/unallowed-properties.ts +96 -0
  1720. package/src/plugins/electron/electron-helper.ts +2 -0
  1721. package/src/plugins/electron/index.ts +3 -0
  1722. package/src/plugins/electron/rx-storage-ipc-main.ts +58 -0
  1723. package/src/plugins/electron/rx-storage-ipc-renderer.ts +62 -0
  1724. package/src/plugins/encryption-crypto-js/index.ts +220 -0
  1725. package/src/plugins/flutter/dart/analysis_options.yaml +30 -0
  1726. package/src/plugins/flutter/dart/example/rxdb_example.dart +6 -0
  1727. package/src/plugins/flutter/dart/lib/rxdb.dart +7 -0
  1728. package/src/plugins/flutter/dart/lib/src/rxdb_base.dart +332 -0
  1729. package/src/plugins/flutter/dart/pubspec.yaml +15 -0
  1730. package/src/plugins/flutter/index.ts +65 -0
  1731. package/src/plugins/json-dump/index.ts +146 -0
  1732. package/src/plugins/key-compression/index.ts +238 -0
  1733. package/src/plugins/leader-election/index.ts +129 -0
  1734. package/src/plugins/local-documents/index.ts +95 -0
  1735. package/src/plugins/local-documents/local-documents-helper.ts +103 -0
  1736. package/src/plugins/local-documents/local-documents.ts +146 -0
  1737. package/src/plugins/local-documents/rx-local-document.ts +388 -0
  1738. package/src/plugins/migration-schema/index.ts +75 -0
  1739. package/src/plugins/migration-schema/migration-helpers.ts +162 -0
  1740. package/src/plugins/migration-schema/migration-types.ts +42 -0
  1741. package/src/plugins/migration-schema/rx-migration-state.ts +632 -0
  1742. package/src/plugins/migration-storage/index.ts +255 -0
  1743. package/src/plugins/pipeline/flagged-functions.ts +131 -0
  1744. package/src/plugins/pipeline/index.ts +18 -0
  1745. package/src/plugins/pipeline/rx-pipeline.ts +303 -0
  1746. package/src/plugins/pipeline/types.ts +28 -0
  1747. package/src/plugins/query-builder/index.ts +81 -0
  1748. package/src/plugins/query-builder/mquery/README.md +5 -0
  1749. package/src/plugins/query-builder/mquery/mquery-utils.ts +37 -0
  1750. package/src/plugins/query-builder/mquery/nosql-query-builder.ts +578 -0
  1751. package/src/plugins/react/database-context.ts +10 -0
  1752. package/src/plugins/react/database-provider.tsx +38 -0
  1753. package/src/plugins/react/hooks/index.ts +4 -0
  1754. package/src/plugins/react/hooks/use-live-rx-query.ts +34 -0
  1755. package/src/plugins/react/hooks/use-rx-collection.ts +73 -0
  1756. package/src/plugins/react/hooks/use-rx-database.ts +35 -0
  1757. package/src/plugins/react/hooks/use-rx-query.ts +168 -0
  1758. package/src/plugins/react/index.ts +2 -0
  1759. package/src/plugins/reactivity-angular/index.ts +32 -0
  1760. package/src/plugins/reactivity-preact-signals/index.ts +85 -0
  1761. package/src/plugins/reactivity-vue/index.ts +43 -0
  1762. package/src/plugins/replication/index.ts +668 -0
  1763. package/src/plugins/replication/replication-helper.ts +122 -0
  1764. package/src/plugins/replication-appwrite/appwrite-helpers.ts +38 -0
  1765. package/src/plugins/replication-appwrite/appwrite-types.ts +31 -0
  1766. package/src/plugins/replication-appwrite/index.ts +269 -0
  1767. package/src/plugins/replication-couchdb/couchdb-helper.ts +100 -0
  1768. package/src/plugins/replication-couchdb/couchdb-types.ts +34 -0
  1769. package/src/plugins/replication-couchdb/index.ts +341 -0
  1770. package/src/plugins/replication-firestore/firestore-helper.ts +79 -0
  1771. package/src/plugins/replication-firestore/firestore-types.ts +72 -0
  1772. package/src/plugins/replication-firestore/index.ts +387 -0
  1773. package/src/plugins/replication-google-drive/AGENTS.md +5 -0
  1774. package/src/plugins/replication-google-drive/document-handling.ts +203 -0
  1775. package/src/plugins/replication-google-drive/download-specs.sh +49 -0
  1776. package/src/plugins/replication-google-drive/downstream.ts +118 -0
  1777. package/src/plugins/replication-google-drive/google-drive-helper.ts +467 -0
  1778. package/src/plugins/replication-google-drive/google-drive-types.ts +84 -0
  1779. package/src/plugins/replication-google-drive/index.ts +221 -0
  1780. package/src/plugins/replication-google-drive/init.ts +108 -0
  1781. package/src/plugins/replication-google-drive/multipart.ts +86 -0
  1782. package/src/plugins/replication-google-drive/signaling.ts +399 -0
  1783. package/src/plugins/replication-google-drive/transaction.ts +222 -0
  1784. package/src/plugins/replication-google-drive/upstream.ts +279 -0
  1785. package/src/plugins/replication-graphql/graphql-schema-from-rx-schema.ts +337 -0
  1786. package/src/plugins/replication-graphql/graphql-websocket.ts +56 -0
  1787. package/src/plugins/replication-graphql/helper.ts +52 -0
  1788. package/src/plugins/replication-graphql/index.ts +255 -0
  1789. package/src/plugins/replication-graphql/query-builder-from-rx-schema.ts +195 -0
  1790. package/src/plugins/replication-microsoft-onedrive/document-handling.ts +216 -0
  1791. package/src/plugins/replication-microsoft-onedrive/downstream.ts +121 -0
  1792. package/src/plugins/replication-microsoft-onedrive/index.ts +220 -0
  1793. package/src/plugins/replication-microsoft-onedrive/init.ts +107 -0
  1794. package/src/plugins/replication-microsoft-onedrive/microsoft-onedrive-helper.ts +355 -0
  1795. package/src/plugins/replication-microsoft-onedrive/microsoft-onedrive-types.ts +88 -0
  1796. package/src/plugins/replication-microsoft-onedrive/signaling.ts +333 -0
  1797. package/src/plugins/replication-microsoft-onedrive/transaction.ts +220 -0
  1798. package/src/plugins/replication-microsoft-onedrive/upstream.ts +282 -0
  1799. package/src/plugins/replication-mongodb/index.ts +275 -0
  1800. package/src/plugins/replication-mongodb/mongodb-checkpoint.ts +184 -0
  1801. package/src/plugins/replication-mongodb/mongodb-helper.ts +69 -0
  1802. package/src/plugins/replication-mongodb/mongodb-types.ts +50 -0
  1803. package/src/plugins/replication-nats/index.ts +289 -0
  1804. package/src/plugins/replication-nats/nats-helper.ts +15 -0
  1805. package/src/plugins/replication-nats/nats-types.ts +43 -0
  1806. package/src/plugins/replication-supabase/helper.ts +63 -0
  1807. package/src/plugins/replication-supabase/index.ts +308 -0
  1808. package/src/plugins/replication-supabase/types.ts +47 -0
  1809. package/src/plugins/replication-webrtc/connection-handler-p2pcf.ts +77 -0
  1810. package/src/plugins/replication-webrtc/connection-handler-simple-peer.ts +302 -0
  1811. package/src/plugins/replication-webrtc/connection-handler-webtorrent.ts +137 -0
  1812. package/src/plugins/replication-webrtc/index.ts +307 -0
  1813. package/src/plugins/replication-webrtc/signaling-server.ts +193 -0
  1814. package/src/plugins/replication-webrtc/webrtc-helper.ts +55 -0
  1815. package/src/plugins/replication-webrtc/webrtc-types.ts +91 -0
  1816. package/src/plugins/replication-websocket/index.ts +3 -0
  1817. package/src/plugins/replication-websocket/websocket-client.ts +187 -0
  1818. package/src/plugins/replication-websocket/websocket-server.ts +135 -0
  1819. package/src/plugins/replication-websocket/websocket-types.ts +47 -0
  1820. package/src/plugins/state/helpers.ts +86 -0
  1821. package/src/plugins/state/index.ts +40 -0
  1822. package/src/plugins/state/rx-state.ts +386 -0
  1823. package/src/plugins/state/types.ts +32 -0
  1824. package/src/plugins/storage-denokv/denokv-helper.ts +46 -0
  1825. package/src/plugins/storage-denokv/denokv-query.ts +135 -0
  1826. package/src/plugins/storage-denokv/denokv-types.ts +19 -0
  1827. package/src/plugins/storage-denokv/index.ts +37 -0
  1828. package/src/plugins/storage-denokv/rx-storage-instance-denokv.ts +426 -0
  1829. package/src/plugins/storage-dexie/dexie-helper.ts +302 -0
  1830. package/src/plugins/storage-dexie/dexie-query.ts +252 -0
  1831. package/src/plugins/storage-dexie/index.ts +4 -0
  1832. package/src/plugins/storage-dexie/rx-storage-dexie.ts +62 -0
  1833. package/src/plugins/storage-dexie/rx-storage-instance-dexie.ts +378 -0
  1834. package/src/plugins/storage-foundationdb/foundationdb-helpers.ts +6 -0
  1835. package/src/plugins/storage-foundationdb/foundationdb-query.ts +140 -0
  1836. package/src/plugins/storage-foundationdb/foundationdb-types.ts +64 -0
  1837. package/src/plugins/storage-foundationdb/index.ts +57 -0
  1838. package/src/plugins/storage-foundationdb/rx-storage-instance-foundationdb.ts +449 -0
  1839. package/src/plugins/storage-localstorage/index.ts +44 -0
  1840. package/src/plugins/storage-localstorage/localstorage-mock.ts +32 -0
  1841. package/src/plugins/storage-localstorage/rx-storage-instance-localstorage.ts +686 -0
  1842. package/src/plugins/storage-memory/binary-search-bounds.ts +106 -0
  1843. package/src/plugins/storage-memory/index.ts +52 -0
  1844. package/src/plugins/storage-memory/memory-helper.ts +259 -0
  1845. package/src/plugins/storage-memory/memory-indexes.ts +34 -0
  1846. package/src/plugins/storage-memory/memory-types.ts +90 -0
  1847. package/src/plugins/storage-memory/rx-storage-instance-memory.ts +609 -0
  1848. package/src/plugins/storage-mongodb/index.ts +4 -0
  1849. package/src/plugins/storage-mongodb/mongodb-helper.ts +119 -0
  1850. package/src/plugins/storage-mongodb/mongodb-types.ts +32 -0
  1851. package/src/plugins/storage-mongodb/rx-storage-instance-mongodb.ts +464 -0
  1852. package/src/plugins/storage-mongodb/rx-storage-mongodb.ts +33 -0
  1853. package/src/plugins/storage-remote/index.ts +5 -0
  1854. package/src/plugins/storage-remote/message-channel-cache.ts +88 -0
  1855. package/src/plugins/storage-remote/remote.ts +285 -0
  1856. package/src/plugins/storage-remote/rx-storage-remote.ts +286 -0
  1857. package/src/plugins/storage-remote/storage-remote-helpers.ts +33 -0
  1858. package/src/plugins/storage-remote/storage-remote-types.ts +118 -0
  1859. package/src/plugins/storage-remote-websocket/index.ts +218 -0
  1860. package/src/plugins/storage-remote-websocket/types.ts +34 -0
  1861. package/src/plugins/storage-sqlite/index.ts +64 -0
  1862. package/src/plugins/storage-sqlite/sqlite-basics-helpers.ts +656 -0
  1863. package/src/plugins/storage-sqlite/sqlite-helpers.ts +287 -0
  1864. package/src/plugins/storage-sqlite/sqlite-storage-instance.ts +507 -0
  1865. package/src/plugins/storage-sqlite/sqlite-types.ts +151 -0
  1866. package/src/plugins/test-utils/config.ts +135 -0
  1867. package/src/plugins/test-utils/humans-collection.ts +557 -0
  1868. package/src/plugins/test-utils/index.ts +24 -0
  1869. package/src/plugins/test-utils/performance.ts +344 -0
  1870. package/src/plugins/test-utils/replication-base-test-suite.ts +236 -0
  1871. package/src/plugins/test-utils/replication.ts +95 -0
  1872. package/src/plugins/test-utils/revisions.ts +4 -0
  1873. package/src/plugins/test-utils/schema-objects.ts +527 -0
  1874. package/src/plugins/test-utils/schemas.ts +1391 -0
  1875. package/src/plugins/test-utils/test-util.ts +85 -0
  1876. package/src/plugins/update/index.ts +57 -0
  1877. package/src/plugins/update/mingo-updater.ts +26 -0
  1878. package/src/plugins/utils/index.ts +20 -0
  1879. package/src/plugins/utils/utils-array.ts +152 -0
  1880. package/src/plugins/utils/utils-base64.ts +49 -0
  1881. package/src/plugins/utils/utils-blob.ts +65 -0
  1882. package/src/plugins/utils/utils-document.ts +117 -0
  1883. package/src/plugins/utils/utils-error.ts +53 -0
  1884. package/src/plugins/utils/utils-global.ts +5 -0
  1885. package/src/plugins/utils/utils-hash.ts +62 -0
  1886. package/src/plugins/utils/utils-map.ts +23 -0
  1887. package/src/plugins/utils/utils-number.ts +9 -0
  1888. package/src/plugins/utils/utils-object-deep-equal.ts +46 -0
  1889. package/src/plugins/utils/utils-object-dot-prop.ts +365 -0
  1890. package/src/plugins/utils/utils-object.ts +272 -0
  1891. package/src/plugins/utils/utils-other.ts +58 -0
  1892. package/src/plugins/utils/utils-premium.ts +37 -0
  1893. package/src/plugins/utils/utils-promise.ts +171 -0
  1894. package/src/plugins/utils/utils-regex.ts +2 -0
  1895. package/src/plugins/utils/utils-revision.ts +55 -0
  1896. package/src/plugins/utils/utils-rxdb-version.template.ts +4 -0
  1897. package/src/plugins/utils/utils-rxdb-version.ts +4 -0
  1898. package/src/plugins/utils/utils-string.ts +91 -0
  1899. package/src/plugins/utils/utils-time.ts +37 -0
  1900. package/src/plugins/validate-ajv/index.ts +61 -0
  1901. package/src/plugins/validate-is-my-json-valid/index.ts +30 -0
  1902. package/src/plugins/validate-z-schema/index.ts +58 -0
  1903. package/src/plugins/vector/helper.ts +0 -0
  1904. package/src/plugins/vector/index.ts +2 -0
  1905. package/src/plugins/vector/types.ts +1 -0
  1906. package/src/plugins/vector/vector-distance.ts +34 -0
  1907. package/src/plugins/webmcp/index.ts +2 -0
  1908. package/src/plugins/webmcp/nosql-query-schema.ts +299 -0
  1909. package/src/plugins/webmcp/webmcp.ts +319 -0
  1910. package/src/query-cache.ts +139 -0
  1911. package/src/query-planner.ts +386 -0
  1912. package/src/replication-protocol/checkpoint.ts +154 -0
  1913. package/src/replication-protocol/conflicts.ts +53 -0
  1914. package/src/replication-protocol/default-conflict-handler.ts +43 -0
  1915. package/src/replication-protocol/downstream.ts +550 -0
  1916. package/src/replication-protocol/helper.ts +96 -0
  1917. package/src/replication-protocol/index.ts +348 -0
  1918. package/src/replication-protocol/meta-instance.ts +195 -0
  1919. package/src/replication-protocol/upstream.ts +560 -0
  1920. package/src/rx-change-event.ts +137 -0
  1921. package/src/rx-collection-helper.ts +262 -0
  1922. package/src/rx-collection.ts +1306 -0
  1923. package/src/rx-database-internal-store.ts +402 -0
  1924. package/src/rx-database.ts +919 -0
  1925. package/src/rx-document-prototype-merge.ts +124 -0
  1926. package/src/rx-document.ts +557 -0
  1927. package/src/rx-error.ts +190 -0
  1928. package/src/rx-query-helper.ts +317 -0
  1929. package/src/rx-query-mingo.ts +87 -0
  1930. package/src/rx-query-single-result.ts +110 -0
  1931. package/src/rx-query.ts +887 -0
  1932. package/src/rx-schema-helper.ts +391 -0
  1933. package/src/rx-schema.ts +247 -0
  1934. package/src/rx-storage-helper.ts +1050 -0
  1935. package/src/rx-storage-multiinstance.ts +188 -0
  1936. package/src/types/conflict-handling.d.ts +48 -0
  1937. package/src/types/couchdb.d.ts +293 -0
  1938. package/src/types/index.d.ts +32 -0
  1939. package/src/types/modules/index.d.ts +0 -0
  1940. package/src/types/modules/mocha.parallel.d.ts +1 -0
  1941. package/src/types/plugins/backup.d.ts +35 -0
  1942. package/src/types/plugins/cleanup.d.ts +38 -0
  1943. package/src/types/plugins/crdt.d.ts +76 -0
  1944. package/src/types/plugins/dexie.d.ts +30 -0
  1945. package/src/types/plugins/local-documents.d.ts +49 -0
  1946. package/src/types/plugins/migration.d.ts +14 -0
  1947. package/src/types/plugins/reactivity.d.ts +40 -0
  1948. package/src/types/plugins/replication-graphql.d.ts +98 -0
  1949. package/src/types/plugins/replication.d.ts +175 -0
  1950. package/src/types/plugins/state.d.ts +4 -0
  1951. package/src/types/plugins/update.d.ts +23 -0
  1952. package/src/types/plugins/webmcp.d.ts +40 -0
  1953. package/src/types/query-planner.d.ts +47 -0
  1954. package/src/types/replication-protocol.d.ts +296 -0
  1955. package/src/types/rx-attachment.d.ts +46 -0
  1956. package/src/types/rx-change-event.d.ts +85 -0
  1957. package/src/types/rx-collection.d.ts +117 -0
  1958. package/src/types/rx-database-internal-store.d.ts +54 -0
  1959. package/src/types/rx-database.d.ts +124 -0
  1960. package/src/types/rx-document.d.ts +160 -0
  1961. package/src/types/rx-error.d.ts +222 -0
  1962. package/src/types/rx-plugin.d.ts +167 -0
  1963. package/src/types/rx-query.d.ts +144 -0
  1964. package/src/types/rx-schema.d.ts +209 -0
  1965. package/src/types/rx-storage.d.ts +347 -0
  1966. package/src/types/rx-storage.interface.d.ts +312 -0
  1967. package/src/types/util.d.ts +180 -0
  1968. package/tsconfig.json +54 -0
  1969. package/tsconfig.lint.json +18 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,2469 @@
1
+
2
+ # RxDB Changelog
3
+
4
+ <!-- CHANGELOG NEWEST -->
5
+
6
+ <!-- ADD new changes here! -->
7
+
8
+ ### 17.0.0-beta.17 (11 March 2026)
9
+
10
+ - A list of changes for RxDB v17 can be found [here](https://rxdb.info/releases/17.0.0.html)
11
+
12
+ <!-- /CHANGELOG NEWEST -->
13
+
14
+ <!-- RELEASE BELOW -->
15
+
16
+ ### 16.21.1 (2 December 2025)
17
+
18
+ - feat: replication-supabase querybuilder [#7566](https://github.com/pubkey/rxdb/pull/7566)
19
+ - FIX Array type is omitted in GraphQL query builder [#7532](https://github.com/pubkey/rxdb/issues/7532)
20
+
21
+ ### 16.21.0 (25 November 2025)
22
+
23
+ - FIX(docs) search visibility and positioning
24
+ - ADD(storage-localstorage) attachment support.
25
+ - FIX error in dev mode when writing object with no prototype [#7530](https://github.com/pubkey/rxdb/pull/7530)
26
+ - FIX findOne subscription + exec returns wrong results [#7497](https://github.com/pubkey/rxdb/pull/7497)
27
+ - FIX(supabase-replication) push.modifier is not used [#7513](https://github.com/pubkey/rxdb/issues/7513)
28
+
29
+ ### 16.20.0 (20 October 2025)
30
+
31
+ - FIX(types) pull handler can return `undefined` as checkpoint.
32
+ - FIX Issue running rxdb dev mode plugin on latest react native [#7421](https://github.com/pubkey/rxdb/issues/7421)
33
+ - DOCS add info about non allowed top level properties [#7449](https://github.com/pubkey/rxdb/issues/7449)
34
+
35
+ ### 16.19.1 (24 September 2025)
36
+
37
+ ### 16.19.0 (4 September 2025)
38
+
39
+ - ADD [Supabase Replication Plugin](https://rxdb.info/replication-supabase.html) (beta)
40
+
41
+ ### 16.18.0 (26 August 2025)
42
+
43
+ - FIX "when a push handler is interrupted mid-way by a reload, after the reload retry doesn't happen" [via discord](https://discord.com/channels/969553741705539624/1059149217718861935/threads/1407063219062702111)
44
+ - FIX query hanging after local document inserted [#7349](https://github.com/pubkey/rxdb/pull/7349)
45
+ - FIX(sqlite-storage) query $or with null returns wrong results [#7356](https://github.com/pubkey/rxdb/issues/7356)
46
+
47
+ ### 16.17.2 (15 August 2025)
48
+
49
+ - FIX credentials header in RxServer [#283](https://github.com/pubkey/rxdb-server/pull/283)
50
+
51
+ ### 16.17.1 (15 August 2025)
52
+
53
+ - UPDATE express to v5 in RxServer
54
+
55
+ ### 16.17.0 (13 August 2025)
56
+
57
+ - ADD `blockSizeLimit` to memory mapped storage.
58
+ - FIX cleanup of a collection must also run the cleanup of the meta data of replications.
59
+ - FIX type of SimplePeerConnectionHandlerOptions.webSocketConstructor [#7311](https://github.com/pubkey/rxdb/pull/7311)
60
+
61
+ ### 16.16.0 (16 July 2025)
62
+
63
+ - FIX updates not working after migration of replication state [#7260](https://github.com/pubkey/rxdb/issues/7260)
64
+ - FIX on ReplicationState.pause(), `ensureNotFalsy()` throws [#7264](https://github.com/pubkey/rxdb/issues/7264)
65
+
66
+ ### 16.15.0 (17 June 2025)
67
+
68
+ - ADD option to remove and update a document in the same atomic write operation.
69
+ - ADD option to disable `WITHOUT ROWID` in the SQLite RxStorage.
70
+ - FIX ajv-validation must know about the `date-time` format by default [#7253](https://github.com/pubkey/rxdb/issues/7253)
71
+ - FIX db.addCollections fails after it failed for a missing migration strategy [#7226](https://github.com/pubkey/rxdb/pull/7226)
72
+ - FIX SQLite storage fails while querying with null [#7236](https://github.com/pubkey/rxdb/pull/7236)
73
+
74
+ ### 16.13.0 (30 May 2025)
75
+
76
+ - FIX queue start/stop/cancel operations in the replication state to ensure operations do not intersect and cause errors.
77
+ - FIX real-time query ignoring the latest changes after deleting and purging data [#7187](https://github.com/pubkey/rxdb/pull/7187)
78
+ - ADD `putAttachmentBase64()` and `getDataBase64()` to the attachments API so that attachments can be stored and read in runtimes that do not support `Blob`.
79
+ - FIX schema migration failing when returning null [#7204](https://github.com/pubkey/rxdb/pull/7204)
80
+
81
+ ### 16.12.0 (10 May 2025)
82
+
83
+ - FIX migration-schema error: "more then one meta info found".
84
+ - FIX state get changes from other state will get error [#7097](https://github.com/pubkey/rxdb/pull/7097)
85
+ - FIX toggleOnDocumentVisible isVisible not always truthy [#7095](https://github.com/pubkey/rxdb/pull/7095)
86
+ - IMPROVE error message when `crypto.subtle.digest` is not defined.
87
+
88
+ ### 16.11.0 (16 April 2025)
89
+
90
+ - FIX MigrationStrategies type not generic [#7055](https://github.com/pubkey/rxdb/pull/7055)
91
+ - FIX Full text search ajv validation issue [#4](https://github.com/pubkey/rxdb-premium-issues/pull/4)
92
+ - Full text search with encryption issue [#5](https://github.com/pubkey/rxdb-premium-issues/pull/5)
93
+ - Published the [Appwrite Replication Plugin](https://rxdb.info/replication-appwrite.html) in beta mode
94
+ - UPDATE the `ws` package to the latest version.
95
+
96
+ ### 16.9.0 (1 April 2025)
97
+
98
+ - ADD [Localstorage RxStorage](https://rxdb.info/rx-storage-localstorage.html).
99
+ - ADD docs about [Partial Sync](https://rxdb.info/replication.html#partial-sync-with-rxdb).
100
+ - ADD SQLite Storage example with tauri [#6939](https://github.com/pubkey/rxdb/pull/6939).
101
+ - ADD `closeDuplicates` flag as alternative to `ignoreDuplicate` to `createRxDatabase` [#7013](https://github.com/pubkey/rxdb/pull/7013).
102
+ - FIX (electron) "Object has been destroyed" error was introduced again in RxDB version 16 [#5370](https://github.com/pubkey/rxdb/issues/5370#issuecomment-2748971414).
103
+ - FIX Memory-mapped storage can have duplicate documents if a write happens during cleanup.
104
+ - FIX migrate schema with multiple connected storages causes error [#7008](https://github.com/pubkey/rxdb/pull/7008)
105
+
106
+ ### 16.8.1 (14 March 2025)
107
+
108
+ - FIX col.find() ignores the primaryKey index if another index was defined [#6925](https://github.com/pubkey/rxdb/pull/6925)
109
+
110
+ ### 16.8.0 (3 March 2025)
111
+
112
+ - Add a free trial version of the [SQLite RxStorage](https://rxdb.info/rx-storage-sqlite.html)
113
+ - Add article about [Why Local-First Software Is the Future and its Limitations](https://rxdb.info/articles/local-first-future.html)
114
+
115
+ ### 16.7.0 (23 February 2025)
116
+
117
+ - Fix Firestore replication ignoring initialCheckpoint [#6850](https://github.com/pubkey/rxdb/pull/6850)
118
+ - UPDATE foundation-db to the latest version [#6876](https://github.com/pubkey/rxdb/pull/6876)
119
+ - ADD Allow to use firestore rules on attributes [#6896](https://github.com/pubkey/rxdb/pull/6896)
120
+
121
+ ### 16.6.1 (9 February 2025)
122
+
123
+ ### 16.6.0 (7 February 2025)
124
+
125
+ - FIX FilesystemNode storage imported stuff from the IndexedDB storage which could break builds.
126
+ - FIX [broken cjs import on the flexsearch plugin](https://discord.com/channels/969553741705539624/1333530507215900692)
127
+
128
+ ### 16.5.0 (4 February 2025)
129
+
130
+ - ADD option `toggleOnDocumentVisible` to `replicateRxCollection()`. [See](https://github.com/pubkey/rxdb/issues/6810)
131
+ - ADD `RxReplicationState.pause()`
132
+ - ADD `RxReplicationState.isPaused()`
133
+ - ADD tests to replication to ensure running the same replication in multiple tabs at once does not fail.
134
+
135
+ ### 16.4.0 (1 February 2025)
136
+
137
+ - ADD option to set custom formats in the [schema validators](https://rxdb.info/schema-validation.html)
138
+ - CHANGE enable Ajv strict mode.
139
+ - REMOVE `console.log('exposeWorkerRxStorage()');` from the worker RxStorage.
140
+ - ADD dev-mode check for `undefined` properties in queries. [#6792](https://github.com/pubkey/rxdb/issues/6792)
141
+
142
+ ### 16.3.0 (22 January 2025)
143
+
144
+ - Run the check for `maxLength` on primary keys also in non-dev mode because people often forget to set this.
145
+ - Make error messages prettier and more readable.
146
+
147
+ ### 16.2.0 (16 January 2025)
148
+
149
+ - ADD `RxCollection.insertIfNotExists()`
150
+ - Allow uppercase chars at the middle of collection names like `fooBar`.
151
+ - FIX RxServer to not have `process is not defined` [#6764](https://github.com/pubkey/rxdb/issues/6764)
152
+
153
+ ### 16.1.0 (11 January 2025)
154
+
155
+ - Include RxDB version details in MongoDB handshake [#6722](https://github.com/pubkey/rxdb/pull/6722)
156
+ - ADD Allow connectionParams to be provided as part of wsOptions for replication-graphql [#6741](https://github.com/pubkey/rxdb/pull/6741)
157
+
158
+ ### 16.0.0 (2 January 2025)
159
+
160
+ 🚀 **RxDB v16 is released**
161
+
162
+ - A list of changes for RxDB v16 can be found [here](https://rxdb.info/releases/16.0.0.html)
163
+
164
+ ### 15.39.0 (21 November 2024)
165
+
166
+ - FIX bulkInsert with primary keys set in preInsert hook broken in v15.38.3 [#6608](https://github.com/pubkey/rxdb/pull/6608)
167
+ - ADD possibility to pass graphql-ws options into the replication options [#6598](https://github.com/pubkey/rxdb/pull/6598)
168
+
169
+ ### 15.38.3 (18 November 2024)
170
+
171
+ - FIX findByIds not working with modify and patch [#6592](https://github.com/pubkey/rxdb/pull/6592)
172
+ - FIX bulk inserting 2 docs with same primary key should throw [#6589](https://github.com/pubkey/rxdb/pull/6589)
173
+
174
+ ### 15.38.2 (14 November 2024)
175
+
176
+ - CHANGE use variable random string lengths in the tests to ensure this works.
177
+
178
+ ### 15.38.1 (13 November 2024)
179
+
180
+ - FIX random string creation in tests could end up with strings longer than the provided `length`
181
+
182
+ ### 15.38.0 (13 November 2024)
183
+
184
+ - FIX bad RxState after cleanup [#6503](https://github.com/pubkey/rxdb/pull/6503)
185
+ - FIX RxServer cors settings only applies to OPTIONS when using ExpressAdapter [#6523](https://github.com/pubkey/rxdb/issues/6523)
186
+ - ADD random emojis and umlauts to all random strings in the tests to ensure this works correctly.
187
+ - REMOVE faker dependency for tests and instead use random strings with emojis and umlauts.
188
+
189
+ - ~FIX [OPFS RxStorage](https://rxdb.info/rx-storage-opfs.html) not working anymore after a cleanup has run on documents with umlauts in the primaryKey or index fields.~ ⬅️ This has been moved to RxDB v16 because it would be a breaking change.
190
+
191
+ ### 15.37.0 (5 November 2024)
192
+
193
+ - FIX position of dev-mode iframe [#6516](https://github.com/pubkey/rxdb/pull/6516)
194
+ - FIX `$nin` queries not working correctly with the SQLite RxStorage
195
+ - FIX (worker storage) when creating the same database in the worker and on the main thread, the main thread never resolves. [via discord](https://discord.com/channels/969553741705539624/1296068420311187518)
196
+
197
+ ### 15.36.1 (16 October 2024)
198
+
199
+ - ADD SQLite RxStorage support for Expo SDK 51 with the async API `getSQLiteBasicsExpoSQLiteAsync()`
200
+
201
+ ### 15.36.0 (16 October 2024)
202
+
203
+ - ADD option to define the RxDB Premium token in an `.env` file
204
+
205
+ ### 15.35.0 (15 October 2024)
206
+
207
+ - 🆕📢 New Article: [LocalStorage vs. IndexedDB vs. Cookies vs. OPFS vs. WASM-SQLite](https://rxdb.info/articles/localstorage-indexeddb-cookies-opfs-sqlite-wasm.html)
208
+ - FIX RxState.property$ should emit stable reference [#6462](https://github.com/pubkey/rxdb/pull/6462)
209
+
210
+ ### 15.34.1 (2 October 2024)
211
+
212
+ - ADD proper error message if people miss out the `usesRxDatabaseInWorker` settings in OPFS.
213
+
214
+ ### 15.34.0 (1 October 2024)
215
+
216
+ - FIX OPFS Storage based RxDatabase cannot be created inside of worker [via discord](https://discord.com/channels/969553741705539624/1290258375359336549)
217
+ - IMPROVE performance of nested property access [#6406](https://github.com/pubkey/rxdb/pull/6406)
218
+ - FIX firestore replication of multiple document with the same serverTimestamp [#6436](https://github.com/pubkey/rxdb/pull/6436)
219
+
220
+ ### 15.33.0 (10 September 2024)
221
+
222
+ - ADD tutorial for a [local-first Vector Database](https://rxdb.info/articles/javascript-vector-database.html)
223
+ - FIX RxPipeline tries to store metadata that does not match the json schema.
224
+ - ADD utilities function for vector search.
225
+
226
+ ### 15.32.0 (26 August 2024)
227
+
228
+ - ADD [Fulltext Search Plugin](https://rxdb.info/fulltext-search.html)
229
+ - FIX `RangeError: Invalid count value` error in the OPFS and filesystem storage on cleanups.
230
+
231
+ ### 15.31.4 (22 August 2024)
232
+
233
+ ### 15.31.3 (21 August 2024)
234
+
235
+ ### 15.31.2 (21 August 2024)
236
+
237
+ - FIX `postCleanup` hook not running
238
+
239
+ ### 15.31.1 (19 August 2024)
240
+
241
+ - ADD `postCleanup` hook.
242
+
243
+ ### 15.31.0 (14 August 2024)
244
+
245
+ - ADD [RxPipeline Plugin](https://rxdb.info/rx-pipeline.html).
246
+ - FIX (denoKV RxStorage) retry writes when db is locked.
247
+
248
+ ### 15.30.2 (5 August 2024)
249
+
250
+ - FIX `node:sqlite` couldn't be found in react native [#6291](https://github.com/pubkey/rxdb/issues/6291)
251
+
252
+ ### 15.30.1 (3 August 2024)
253
+
254
+ - FIX `node:sqlite` couldn't be found in react native [#6291](https://github.com/pubkey/rxdb/issues/6291)
255
+
256
+ ### 15.30.0 (2 August 2024)
257
+
258
+ - FIX quotes problem on windows with the scripts of the `package.json`
259
+ - CHANGE `getSQLiteBasicsNodeNative()` requires the constructor as param
260
+ - FIX key-compression broken with boolean indexes on dexie [#6267](https://github.com/pubkey/rxdb/pull/6267)
261
+ - FIX type of `RxQuery.$` must be `Observable` [#6285](https://github.com/pubkey/rxdb/issues/6285)
262
+
263
+ ### 15.29.0 (29 July 2024)
264
+
265
+ - ADD support for the `node:sqlite` module to the SQLite RxStorage
266
+ - FIX several problem with the memory-mapped RxStorage in ReactNative
267
+
268
+ ### 15.28.1 (19 July 2024)
269
+
270
+ - ADD storage bucket support to the [IndexedDB RxStorage](https://rxdb.info/rx-storage-indexeddb.html).
271
+ - FIX error when calling bulkUpsert() with multiple docs where one fails and one suceeds.
272
+
273
+ ### 15.28.0 (9 July 2024)
274
+
275
+ - CHANGE RxStorage interface: For better performance on remote storages, `RxStorageInstance.bulkWrite()` must only return errors, not the written documents data.
276
+
277
+ ### 15.27.0 (7 July 2024)
278
+
279
+ - FIX Wrong Reactivity generics passed by RxCollection extending RxCollectionBase [#6188](https://github.com/pubkey/rxdb/issues/6188)
280
+ - IMPROVE performance of ChangeEventBuffer by processing events in bulks.
281
+ - IMPROVE performance of DocCache by processing events in bulks.
282
+ - IMPROVE performance of ChangeEventBuffer and DocCache by lazily processing tasks.
283
+
284
+ ### 15.26.0 (3 July 2024)
285
+
286
+ - IMPROVE performance of `.appendToArray()`
287
+ - IMPROVE performance of writes to the memory RxStorage
288
+ - ADD iframe tracking to dev-mode plugin.
289
+
290
+ ### 15.25.0 (28 June 2024)
291
+
292
+ - FIX RxState sometimes does writes to the storage that do not match the schema.
293
+ - FIX Query Builder does not work on queries created by `.findByIds()` [#6148](https://github.com/pubkey/rxdb/issues/6148)
294
+ - FIX (IndexedDB RxStorage) When used with Sharding and Workers, it sometimes errors on the first query after db creation.
295
+
296
+ ### 15.24.0 (9 June 2024)
297
+
298
+ - Opened the [RxDB User Survey 2024](https://rxdb.info/survey)
299
+ - FIX rx-state multi instance observable broken [#6084](https://github.com/pubkey/rxdb/pull/6084)
300
+
301
+ ### 15.23.0 (29 May 2024)
302
+
303
+ - FIX type resolving in webpack [#6051](https://github.com/pubkey/rxdb/pull/6051)
304
+
305
+ ### 15.22.0 (23 May 2024)
306
+
307
+ - Add missing extensions error field to errorToPlainJson [#6029](https://github.com/pubkey/rxdb/pull/6029)
308
+ - ADD dedicated [errors page](https://rxdb.info/errors.html)
309
+ - FIX randomly failing replication test
310
+ - ADD non-premium console.log on the [LokiJS RxStorage](https://rxdb.info/rx-storage-lokijs.html#disabling-the-non-premium-console-log)
311
+
312
+ ### 15.21.3 (20 May 2024)
313
+
314
+ - ADD publish the npm package with the [provenance statements](https://docs.npmjs.com/generating-provenance-statements)
315
+
316
+ ### 15.21.0 (18 May 2024)
317
+
318
+ - FIX `collection.remove()` must end up with the correct RxCollection state across tabs. [5721](https://github.com/pubkey/rxdb/issues/5721)
319
+ - ADD `RxCollection.onRemove` hooks to detect the removing of a RxCollection across tabs.
320
+ - IMPROVE performance of insert to [IndexedDB](https://rxdb.info/rx-storage-indexeddb.html)
321
+ - ADD non-premium console.log on the [Dexie.js RxStorage](https://rxdb.info/rx-storage-dexie.html#disabling-the-non-premium-console-log)
322
+
323
+ ### 15.20.0 (12 May 2024)
324
+
325
+ - ADD `RxQuery.patch()` `RxQuery.incrementalPatch()` `RxQuery.modify()` `RxQuery.incrementalModify()` and `RxQuery.incrementalRemove()`.
326
+ - FIX `RxDocument.update()` must return the latest revision of the `RxDocument`.
327
+ - ADD(GraphQL replication) change GraphQL query builder functions to generate output fields for nested queries [#5976](https://github.com/pubkey/rxdb/pull/5976)
328
+ - ADD `queryModifier` to SQLite RxStorage
329
+ - IMPROVE performance of insert-many to the memory RxStorage by 40%.
330
+ - IMPROVE performance of `getHeightOfRevision()`.
331
+ - ADD check to throw helpfull error message when a Date() object is passed instead of plain json data.
332
+
333
+ ### 15.19.0 (29 April 2024)
334
+
335
+ - ADD the new [Memory-Mapped RxStorage](https://rxdb.info/rx-storage-memory-mapped.html), a better alternative for the Memory-Synced RxStorage.
336
+
337
+ ### 15.18.6 (29 April 2024)
338
+
339
+ ### 15.18.5 (29 April 2024)
340
+
341
+ ### 15.18.4 (27 April 2024)
342
+
343
+ ### 15.18.3 (25 April 2024)
344
+
345
+ ### 15.18.2 (25 April 2024)
346
+
347
+ - Memory RxStorage: Add `categorizedByWriteInput` property that can be used by other plugins.
348
+
349
+ ### 15.18.1 (18 April 2024)
350
+
351
+ - FIX CouchDB replication error `Cannot read properties of undefined (reading '_attachments')`
352
+
353
+ ### 15.18.0 (17 April 2024)
354
+
355
+ - FIX memory-synced storage must be able to query encrypted fields on the in-memory side.
356
+ - RxServer: `updatedAt` must be `lwt` [#61](https://github.com/pubkey/rxdb-server/pull/61)
357
+ - RxServer: Fix using `parseFloat` instead of `parseInt` [#5883](https://github.com/pubkey/rxdb/issues/5883)
358
+
359
+ ### 15.17.0 (8 April 2024)
360
+
361
+ - ADD `RxReplicationState.remove()` to delete the metadata of a specific replication.
362
+ - FIX IndexedDB RxStorage: Rerun database creation when IndexedDB database was closed by [safari bug](https://bugs.webkit.org/show_bug.cgi?id=197050)
363
+ - FIX vite bundling error with WebRTC replication [#5841](https://github.com/pubkey/rxdb/issues/5841)
364
+ - ADD replication-webrtc: allow passing config to simple-peer [#5838](https://github.com/pubkey/rxdb/pull/5838)
365
+
366
+ ### 15.16.0 (28 March 2024)
367
+
368
+ - Update dexie.js to version `4.0.1`
369
+ - Deprecate LokiJS RxStorage
370
+
371
+ ### 15.15.1 (27 March 2024)
372
+
373
+ ### 15.15.0 (27 March 2024)
374
+
375
+ - ADD `PreactSignalsRxReactivityFactory` to use [custom reactivity](https://rxdb.info/reactivity.html) with **preact signals** instead of observables.
376
+ - ADD `VueRxReactivityFactory` to use [custom reactivity](https://rxdb.info/reactivity.html) with **vue shallow refs** instead of observables.
377
+ - ADD(reactivity) pass reference to `RxDatabase` to `fromObservable()`
378
+
379
+ ### 15.14.0 (25 March 2024)
380
+
381
+ - ADD [Fastify adapter to RxServer](https://rxdb.info/rx-server.html)
382
+ - ADD [Koa adapter to RxServer](https://rxdb.info/rx-server.html)
383
+
384
+ ### 15.13.4 (24 March 2024)
385
+
386
+ ### 15.13.3 (24 March 2024)
387
+
388
+ ### 15.13.2 (24 March 2024)
389
+
390
+ ### 15.13.1 (24 March 2024)
391
+
392
+ ### 15.13.0 (24 March 2024)
393
+
394
+ - REFACTOR RxServer package. (Includes breaking changes of the beta RxServer!)
395
+
396
+ ### 15.12.0 (16 March 2024)
397
+
398
+ - [SQLite RxStorage](https://rxdb.info/rx-storage-sqlite.html) add support to use Webassembly SQLite in the browser
399
+ - FIX(Lokisjs RxStorage) always use slice() for applying offset and limit [#5757](https://github.com/pubkey/rxdb/pull/5757)
400
+ - FIX randomly failing lokijs and denokv test [#5765](https://github.com/pubkey/rxdb/pull/5765)
401
+
402
+ ### 15.11.1 (10 March 2024)
403
+
404
+ ### 15.11.0 (10 March 2024)
405
+
406
+ - ADD [RxState](https://rxdb.info/rx-state.html): A convenient state library to store, fetch and observe complex json data that is persisted into RxDB.
407
+ - ADD automatically extend the RxDocument type so it knows about the `RxDocument.myField$` observables.
408
+ - ADD check to ensure `Infinity` is not used when defining index sizes in the `RxJsonSchema`
409
+ - FIX do not automatically set `multiInstance: false` for shared worker storage databases.
410
+
411
+ ### 15.10.0 (27 February 2024)
412
+
413
+ - IMPROVE [OPFS RxStorage](https://rxdb.info/rx-storage-opfs.html) performance.
414
+ - ADD `usesRxDatabaseInWorker` option to the [OPFS RxStorage](https://rxdb.info/rx-storage-opfs.html).
415
+ - ADD `getRxStorageOPFSMainThread()` to run OPFS from the main thread instead of a worker for less latency.
416
+
417
+ ### 15.9.1 (21 February 2024)
418
+
419
+ - FIX creating two databases with the same name but different storage must work.
420
+
421
+ ### 15.9.0 (21 February 2024)
422
+
423
+ - ADD `awaitWritePersistence` option to memory-synced storage.
424
+
425
+ ### 15.8.1 (14 February 2024)
426
+
427
+ - FIX [#5624](https://github.com/pubkey/rxdb/issues/5624) Maximum call stack size exceeded during encryptString
428
+
429
+ ### 15.8.0 (10 February 2024)
430
+
431
+ - ADD support for [custom reactivity factories](https://rxdb.info/reactivity.html) like angular signals or vue template refs.
432
+
433
+ ### 15.7.0 (7 February 2024)
434
+
435
+ - FIX key-compression broken on keys with brackets [#5605](https://github.com/pubkey/rxdb/issues/5605)
436
+
437
+ ### 15.6.2 (7 February 2024)
438
+
439
+ - FIX using encryption plugins inside of worker was broken
440
+ - FIX(premium) missing type `SharedWorker`
441
+
442
+ ### 15.6.1 (1 February 2024)
443
+
444
+ - FIX(lokijs) `$in` operator not working on arrays.
445
+
446
+ ### 15.6.0 (1 February 2024)
447
+
448
+ - FIX firestore replication not working with schema validation [#5572](https://github.com/pubkey/rxdb/issues/5572)
449
+ - FIX Replication observation mode ignored when push handler is waiting [#5571](https://github.com/pubkey/rxdb/issues/5571)
450
+ - FIX migration from v14 -> v15 is broken when IndexedDB is used inside of worker. [5565](https://github.com/pubkey/rxdb/issues/5565)
451
+
452
+ ### 15.5.0 (30 January 2024)
453
+
454
+ - ADD [RxServer](https://rxdb.info/rx-server.html) 🎉
455
+ - ADD Optionally supress dev mode Warning [#5556](https://github.com/pubkey/rxdb/issues/5556)
456
+
457
+ ### 15.4.3 (28 January 2024)
458
+
459
+ ### 15.4.2 (24 January 2024)
460
+
461
+ - ADD(worker storage) support for directly imported `Worker` and `SharedWorker` functions as `workerInput`.
462
+
463
+ ### 15.4.1 (24 January 2024)
464
+
465
+ - ADD export test utilities so other projects can use them
466
+
467
+ ### 15.4.0 (22 January 2024)
468
+
469
+ - ADD helpers for the new server plugin
470
+ - ADD `RxJsonSchema.internalIndexes`
471
+ - ADD(opfs-storage) allow to set `jsonPositionSize` to increase the maxium database size to be bigger than 100 MegaByte.
472
+
473
+ ### 15.3.0 (15 January 2024)
474
+
475
+ - ADD tutorial on [how to start a HTTP replication with a custom server](https://rxdb.info/replication-http.html)
476
+ - FIX `.count()` broken on key-compression plugin [#5492](https://github.com/pubkey/rxdb/pull/5492)
477
+ - UPDATE dexie to version `4.0.1-beta.6` [#5469](https://github.com/pubkey/rxdb/pull/5469)
478
+
479
+ ### 15.2.0 (5 January 2024)
480
+
481
+ - FIX(dexie.js) migration from v14 to v15 not working.
482
+ - ADD initialCheckpoint for Couchdb [#5461](https://github.com/pubkey/rxdb/pull/5461)
483
+
484
+ ### 15.1.0 (2 January 2024)
485
+
486
+ - Add `operationName` to graphQL requests [#5418](https://github.com/pubkey/rxdb/pull/5418)
487
+ - Custom fetch to support axios for the graphQL replication [#5421](https://github.com/pubkey/rxdb/pull/5421)
488
+ - FIX CRDT not working with undefined fields [#5423](https://github.com/pubkey/rxdb/pull/5423)
489
+
490
+ ### 15.0.0 (20 December 2023)
491
+
492
+ 🚀 **RxDB v15 is released**
493
+
494
+ - A list of changes for RxDB v15 can be found [here](https://rxdb.info/releases/15.0.0.html)
495
+
496
+ ### 14.17.1 (24 September 2023)
497
+
498
+ - Ensure the test suite runs in the [bun runtime](https://bun.sh/)
499
+
500
+ ### 14.17.0 (18 September 2023)
501
+
502
+ - Expose path in validate-z-schema error logs [#4900](https://github.com/pubkey/rxdb/pull/4900)
503
+ - ADD options for the worker storages [#4925](https://github.com/pubkey/rxdb/issues/4925)
504
+ - ADD the [MongoDB RxStorage](https://rxdb.info/rx-storage-mongodb.html)
505
+
506
+ ### 14.16.0 (21 August 2023)
507
+
508
+ - FIX primaryKey with value "constructor", breaks findOne()
509
+ - FIX Queries with `$lt` selector on primaryKey broken [#4751](https://github.com/pubkey/rxdb/pull/4751)
510
+ - UPDATE [mingo](https://github.com/kofrasa/mingo) to `6.4.4`
511
+
512
+ ### 14.15.1 (27 July 2023)
513
+
514
+ - FIX using `.count()` with `allowSlowCount: true` can return wrong results.
515
+
516
+ ### 14.15.0 (18 July 2023)
517
+
518
+ - FIX count() is incorrect [#4755](https://github.com/pubkey/rxdb/issues/4755)
519
+
520
+ ### 14.14.2 (10 July 2023)
521
+
522
+ - FIX #4804 requestIdlePromise broken in react-native (#4813)
523
+ - FIX #4781 GraphQL Replication Cancel With Database Destroy
524
+
525
+ ### 14.14.1 (23 June 2023)
526
+
527
+ - Fix returning deleted items in find queries [#4773](https://github.com/pubkey/rxdb/pull/4773)
528
+
529
+ ### 14.14.0 (7 June 2023)
530
+
531
+ - ADD [NATS replication](https://rxdb.info/replication-nats.html)
532
+
533
+ ### 14.13.0 (2 June 2023)
534
+
535
+ - Add new hooks in the replication write [#4754](https://github.com/pubkey/rxdb/pull/4754)
536
+ - REFACTOR(docs) [quickstart page](https://rxdb.info/quickstart.html)
537
+ - REFACTOR(docs) [landing page](https://rxdb.info/)
538
+
539
+ ### 14.12.1 (30 May 2023)
540
+
541
+ - Fix prevent delete _rev from row.doc [#4752](https://github.com/pubkey/rxdb/pull/4752)
542
+ - IMPROVE landingpage hero section [#4753](https://github.com/pubkey/rxdb/pull/4753)
543
+
544
+ ### 14.12.0 (23 May 2023)
545
+
546
+ - FIX(couchdb replication) Retries must respect `retryTime` to not cause the UI to stuck [related #4612](https://github.com/pubkey/rxdb/pull/4612)
547
+ - FIX(OPFS RxStorage) various bugs with umlauts
548
+ - REMOVE outdated tests [related #4741](https://github.com/pubkey/rxdb/pull/4741)
549
+ - FIX checkSchema for anyOf and items array [#4741](https://github.com/pubkey/rxdb/pull/4741)
550
+
551
+ ### 14.11.5 (19 May 2023)
552
+
553
+ ### 14.11.4 (17 May 2023)
554
+
555
+ ### 14.11.3 (16 May 2023)
556
+
557
+ ### 14.11.2 (15 May 2023)
558
+
559
+ ### 14.11.1 (4 May 2023)
560
+
561
+ - FIX remove `pouchdb-selector-core` dependency [#4722](https://github.com/pubkey/rxdb/issues/4722)
562
+
563
+ ### 14.11.0 (26 April 2023)
564
+
565
+ - ADD Links to [RxDB User Survey 2023](https://rxdb.info/survey.html)
566
+ - FIX better support for as const schemas [#4686](https://github.com/pubkey/rxdb/pull/4686)
567
+
568
+ ### 14.10.0 (25 April 2023)
569
+
570
+ - ADD [Filesystem Node RxStorage](https://rxdb.info/rx-storage-filesystem-node.html)
571
+
572
+ ### 14.9.0 (20 April 2023)
573
+
574
+ - ADD [attachment compression plugin](https://rxdb.info/rx-attachment.md#attachment-compression)
575
+ - REFACTOR Use custom `appendToArray()` instead of slow `Array.concat()`
576
+
577
+ ### 14.8.3 (16 April 2023)
578
+
579
+ - FIX(data-migrator) use `count()` instead of `query()` to count documents.
580
+ - FIX(data-migrator) send correct `writeRow.previous` to old storage for deletion.
581
+
582
+ ### 14.8.2 (15 April 2023)
583
+
584
+ ### 14.8.1 (15 April 2023)
585
+
586
+ ### 14.8.0 (15 April 2023)
587
+
588
+ - FIX(docs) `eventReduce: false` is the default. [#4614](https://github.com/pubkey/rxdb/pull/4614) You have to manually enable eventReduce.
589
+ - ADD(storage-opfs) attachments support.
590
+ - CHANGE `RxStorageInstance.getAttachmentData()` add `digest` parameter.
591
+
592
+ ### 14.7.2 (11 April 2023)
593
+
594
+ ### 14.7.0 (11 April 2023)
595
+
596
+ - ADD [OPFS RxStorage](https://rxdb.info/rx-storage-opfs.html) for browsers (premium).
597
+ - ADD Check to ensure that the primaryKey does not contain a double-quote.
598
+
599
+ ### 14.6.5 (10 April 2023)
600
+
601
+ ### 14.6.4 (8 April 2023)
602
+
603
+ ### 14.6.3 (8 April 2023)
604
+
605
+ ### 14.6.2 (7 April 2023)
606
+
607
+ - FIX(remote-storage) `mode: 'one'` option must reuse the RemoteMessageChannel
608
+ - IMPROVE performance of index creation on some storages.
609
+
610
+ ### 14.6.1 (6 April 2023)
611
+
612
+ - FIX `requestIdlePromise()` must run in a queue.
613
+ - ADD Export ReplicationOptions type [#4606](https://github.com/pubkey/rxdb/pull/4606)
614
+ - ADD `mode` option to remote storage
615
+
616
+ ### 14.6.0 (31 March 2023)
617
+
618
+ - FIX wrong index generation on some number fields that do not have decimals.
619
+
620
+ ### 14.5.2 (30 March 2023)
621
+
622
+ - ADD method `getPrimaryKeyFromIndexableString()`
623
+ - REFACTOR utils for `Map` and `WeakMap` caching
624
+ - FIX: lost RxDocument in preSave from v14.0.0 [#4581](https://github.com/pubkey/rxdb/pull/4581)
625
+
626
+ ### 14.5.1 (28 March 2023)
627
+
628
+ - ADD `getIndexStringLength()` helper method
629
+
630
+ ### 14.5.0 (27 March 2023)
631
+
632
+ - ADD (dev-mode) ensure it throws on malformated primary keys
633
+ - UPDATE typescript to [version 5](https://devblogs.microsoft.com/typescript/announcing-typescript-5-0/)
634
+ - ADD(replication-firestore): add filtered replication [#4590](https://github.com/pubkey/rxdb/pull/4590)
635
+ - FIX(typescript) schema type not working with readonly array [#4579](https://github.com/pubkey/rxdb/pull/4579)
636
+
637
+ ### 14.4.0 (24 March 2023)
638
+
639
+ - FIX multiple problems in the query planner
640
+ - ADD 'includeWsHeaders' property for GraphQL replication [#4533](https://github.com/pubkey/rxdb/pull/4533)
641
+ - UPDATE [broadcast-channel](https://github.com/pubkey/broadcast-channel) to version `5.0.0`
642
+ - FIX query-builder copies RxQuery's other param [#4587](https://github.com/pubkey/rxdb/pull/4587)
643
+
644
+ ### 14.3.7 (18 March 2023)
645
+
646
+ ### 14.3.6 (15 March 2023)
647
+
648
+ ### 14.3.5 (15 March 2023)
649
+
650
+ ### 14.3.4 (15 March 2023)
651
+
652
+ ### 14.3.3 (14 March 2023)
653
+
654
+ ### 14.3.2 (13 March 2023)
655
+
656
+ ### 14.3.1 (13 March 2023)
657
+
658
+ ### 14.3.0 (13 March 2023)
659
+
660
+ - FIX RxDocument getter should return the same object on property paths [#4548](https://github.com/pubkey/rxdb/pull/4548)
661
+ - OPTIMIZE use `findDocumentsById()` on queries that do only do an `$in` operator on the primary key.
662
+ - FIX `$or` query with other operator on dexie.js
663
+
664
+ ### 14.2.3 (10 March 2023)
665
+
666
+ ### 14.2.1 (9 March 2023)
667
+
668
+ - ADD docs for remote storage `customRequestHandler`
669
+
670
+ ### 14.2.0 (8 March 2023)
671
+
672
+ - CHANGE increase the default batch size of the migration plugin from `10` to `200`.
673
+ - FIX `awaitInitialReplication()` must not resolve on error-only replication handlers.
674
+
675
+ ### 14.1.9 (4 March 2023)
676
+
677
+ ### 14.1.8 (2 March 2023)
678
+
679
+ ### 14.1.6 (2 March 2023)
680
+
681
+ ### 14.1.5 (2 March 2023)
682
+
683
+ ### 14.1.3 (1 March 2023)
684
+
685
+ ### 14.1.2 (26 February 2023)
686
+
687
+ - FIX ensure writing many documents at once works with every RxStorage.
688
+
689
+ ### 14.1.1 (24 February 2023)
690
+
691
+ - REMOVE broken dev dependency [wrtc](https://www.npmjs.com/package/wrtc)
692
+ - FIX(SQLite) broken pragma calls on iOS
693
+
694
+ ### 14.1.0 (23 February 2023)
695
+
696
+ - CHANGE premium plugin users can still use the code after the license has expired.
697
+ - ADD(utils) export `RXDB_VERSION` variable.
698
+ - REFACTOR(RxStorageStatics) use the same query matcher and sort function everywhere, not dependend by storage implementation.
699
+
700
+ ### 14.0.5 (22 February 2023)
701
+
702
+ - SQLite: Added logger function
703
+ - ADD capacitor build to angular example
704
+
705
+ ### 14.0.4 (19 February 2023)
706
+
707
+ - websocket-replication: pass all websocket options to constructor [#4449](https://github.com/pubkey/rxdb/pull/4449)
708
+ - FIX Firebase Replication Issues [#4405](https://github.com/pubkey/rxdb/pull/4405)
709
+
710
+ ### 14.0.3 (15 February 2023)
711
+
712
+ ### 14.0.2 (15 February 2023)
713
+
714
+ ### 14.0.1 (13 February 2023)
715
+
716
+ - FIX(websocket remote storage) custom request not working with multiple clients
717
+
718
+ ### 14.0.0 (8 February 2023) BREAKING [read the announcement](https://rxdb.info/releases/14.0.0.html)
719
+
720
+ - Remove the deprecated PouchDB RxStorage.
721
+ - REMOVE old `replication-couchdb` plugin. Rename `replication-couchdb-new` to `replication-couchdb`.
722
+ - Remove depricated `skipIfSame` from `putAttachment()`
723
+ - CHANGE use plain json errors inside of RxError parameters to make debugging easier.
724
+
725
+ - CHANGE Make RxDocuments immutable
726
+ - ADD `RxDocument.getLatest()`
727
+ - CHANGE `RxCollection.findByIds()` now returns a `RxQuery`.
728
+ - REMOVED `RxCollection.findByIds$`, use `RxCollection.findByIds().$` instead.
729
+ - CHANGE Prefix storage plugins with `storage-` like `rxdb/plugins/storage-dexie`.
730
+ - RENAME `atomicUpdate()` to `incrementalModify()`
731
+ - RENAME `atomicPatch()` to `incrementalPatch()`
732
+ - RENAME `atomicUpsert()` to `incrementalUpsert()`
733
+ - ADD `RxDocument().incrementalUpdate()`
734
+ - ADD `RxDocument.incrementalRemove()`
735
+ - ADD non-incremental `RxDocument` methods `patch()` and `modify()`
736
+ - ADD typings to the query selector
737
+ - CHANGE start replication via pure functions instead of RxCollection methods.
738
+ - CHANGE `RxDocument.$` emits `RxDocument` instances instead of the plain document data.
739
+ - ADD `push.initialCheckpoint` to start a replication from a given checkpoint.
740
+
741
+ - CHANGE Do not use hash for revisions but use database instance token instead.
742
+ - CHANGE crunch multiple incremental (aka 'atomic') operations into a single database write. Also batch writes to multiple documents into a single write.
743
+ - REMOVE deprecated `babel-plugin-transform-async-to-promises` plugin.
744
+ - CHANGE to reduce bundle size and improve performance, the following JavaScript features will no longer be transpiled:
745
+ - [async/await](https://caniuse.com/async-functions)
746
+ - [Arrow functions](https://caniuse.com/arrow-functions)
747
+ - [for...of](https://caniuse.com/?search=for...of)
748
+ - [shorthand properties](https://caniuse.com/mdn-javascript_operators_object_initializer_shorthand_property_names)
749
+ - [Spread operator](https://caniuse.com/?search=spread%20operator)
750
+ - [destructuring](https://caniuse.com/?search=destructuring)
751
+ - [default parameters](https://caniuse.com/?search=default%20parameters)
752
+ - [object spread](https://caniuse.com/?search=Object%20spread)
753
+
754
+ Bugfixes:
755
+ - CHANGE (memory RxStorage) do not clean up database state on closing of the storage, only on `remove()`.
756
+ - FIX CouchDB replication: Use correct default fetch method.
757
+ - FIX schema hashing should respect the sort order [#4005](https://github.com/pubkey/rxdb/pull/4005)
758
+ - FIX replication does not provide a `._rev` to the storage write when a conflict is resolved.
759
+ - FIX(remote storage) ensure caching works properly even on parallel create-calls
760
+ - FIX(replication) Composite Primary Keys broken on replicated collections [#4190](https://github.com/pubkey/rxdb/pull/4190)
761
+ - FIX(sqlite) $in Query not working SQLite [#4278](https://github.com/pubkey/rxdb/issues/4278)
762
+ - FIX CouchDB push is throwing error because of missing revision [#4299](https://github.com/pubkey/rxdb/pull/4299)
763
+ - ADD dev-mode shows a `console.warn()` to ensure people do not use it in production.
764
+ - Remove the usage of `Buffer`. We now use `Blob` everywhere.
765
+ - FIX import of socket.io [#4307](https://github.com/pubkey/rxdb/pull/4307)
766
+ - FIX Id length limit reached with composite key [#4315](https://github.com/pubkey/rxdb/issues/4315)
767
+ - FIX `$regex` query not working on remote storage.
768
+ - FIX SQLite must store attachments data as Blob instead of base64 string to reduce the database size.
769
+ - FIX CouchDB replication conflict handling
770
+ - CHANGE Encryption plugin was renamed to `encryption-crypto-js`
771
+ - FIX replication state meta data must also be encrypted.
772
+ - FIX crash with null in selector [#4369](https://github.com/pubkey/rxdb/pull/4369)
773
+ - FIX storage instances MUST NOT mutate the given database- and collection-name.
774
+ - REMOVE deprecated `babel-plugin-transform-async-to-promises` plugin.
775
+ - ADD Ability to use a responseModifier for GraphQL push replication [#4385](https://github.com/pubkey/rxdb/pull/4385)
776
+ - FIX Add null check for isRxDocument [#4406](https://github.com/pubkey/rxdb/pull/4406)
777
+
778
+ ### 13.17.1 (30 December 2022)
779
+
780
+ - FIX Add missing mingo array operators [#4203](https://github.com/pubkey/rxdb/pull/4203) Thanks [@swnf](https://github.com/swnf)
781
+ - FIX(sqlite) `$elemMatch` query did not work correctly on object arrays.
782
+ - CHANGE(sqlite) do not use `ORDER BY` on count queries for better performance.
783
+
784
+ ### 13.17.0 (29 December 2022)
785
+
786
+ - FIX(lokijs) wrong query result when sorting on a nested field.
787
+ - IMPROVE usage of the [mingo query library](https://github.com/kofrasa/mingo) by only adding the operators to the build that are really needed.
788
+ - CHANGE use faster deep clone method.
789
+
790
+ ### 13.16.1 (27 December 2022)
791
+
792
+ ### 13.16.0 (26 December 2022)
793
+
794
+ - ADD [Vite Vanilla Typescript Example](https://github.com/pubkey/rxdb/tree/master/examples/vite-vanilla-ts) Thanks [@SebasG22](https://github.com/SebasG22)
795
+ - ADD [Use exports field in package.json](https://github.com/pubkey/rxdb/pull/4196) Thanks [@SebasG22](https://github.com/SebasG22) and [@swnf](https://github.com/swnf)
796
+
797
+ ### 13.15.3 (13 December 2022)
798
+
799
+ - ADD `$regex` support to the [SQLite RxStorage](https://rxdb.info/rx-storage-sqlite.html)
800
+
801
+ ### 13.15.2 (11 December 2022)
802
+
803
+ - FIX(SQLite) `getSQLiteBasicsQuickSQLite` must use `executeAsync`
804
+
805
+ ### 13.15.1 (11 December 2022)
806
+
807
+ ### 13.15.0 (10 December 2022)
808
+
809
+ - ADD [SharedWorker RxStorage Plugin](https://rxdb.info/rx-storage-shared-worker.html)
810
+
811
+ ### 13.14.3 (9 December 2022)
812
+
813
+ - FIX Ensure equal behavior across all storages on call to `.close()` after `.remove()`.
814
+
815
+ ### 13.14.2 (9 December 2022)
816
+
817
+ ### 13.14.1 (9 December 2022)
818
+
819
+ ### 13.14.0 (9 December 2022)
820
+
821
+ - ADD [Remote RxStorage Plugin](https://rxdb.info/rx-storage-remote.html)
822
+
823
+ ### 13.13.7 (6 December 2022)
824
+
825
+ - REFACTOR the `electron` plugin to improve ipcRenderer communications.
826
+ - REMOVE `is-electron` dependency.
827
+
828
+ ### 13.13.6 (5 December 2022)
829
+
830
+ - REFACTOR the remote RxStorage for electron ipcRenderer
831
+
832
+ ### 13.13.5 (2 December 2022)
833
+
834
+ ### 13.13.4 (2 December 2022)
835
+
836
+ ### 13.13.3 (2 December 2022)
837
+
838
+ ### 13.13.2 (30 November 2022)
839
+
840
+ ### 13.13.1 (30 November 2022)
841
+
842
+ - UPDATE `isomorphic-ws` to `5.0.0`
843
+
844
+ ### 13.13.0 (30 November 2022)
845
+
846
+ - ADD [Firestore Replication Plugin](https://rxdb.info/replication-firestore.html)
847
+ - FIX run the unit tests for the migration plugin on all storages.
848
+
849
+ ### 13.12.0 (29 November 2022)
850
+
851
+ - ADD [electron ipcRenderer plugin](./docs-src/electron.md) which can be used in Electron.js to run the RxStorage in the main process and the RxDatabase in the renderer processes.
852
+ - Removed the electron-remote example because `@electron/remote` is deprecated.
853
+ - FIX emit false on active$ after replication is done [#4136](https://github.com/pubkey/rxdb/pull/4136) Thanks [@maxnowack](https://github.com/maxnowack)
854
+ - Deprecated the PouchDB RxStorage, [read this](https://rxdb.info/questions-answers.html#why-is-the-pouchdb-rxstorage-deprecated)
855
+
856
+ ### 13.11.1 (23 November 2022)
857
+
858
+ - FIX Throw proper error message when a boolean index is used in the Dexie.js RxStorage.
859
+
860
+ ### 13.11.0 (19 November 2022)
861
+
862
+ - ADD [replication-webrtc](./docs-src/replication-webrtc.md) which can be used to replicate data peer-to-peer without a backend server.
863
+
864
+ ### 13.10.1 (10 November 2022)
865
+
866
+ ### 13.10.0 (10 November 2022)
867
+
868
+ - ADD [replication-couchdb-new plugin](./docs-src/replication-couchdb-new.md) which can be used to replicate **any** [RxStorage](https://rxdb.info/rx-storage.html) with a CouchDB endpoint.
869
+ - ADD skip replication `retryTime` if `navigator.onLine` becomes `true`.
870
+ - FIX `active$` should emit during replication [#4117](https://github.com/pubkey/rxdb/pull/4117) Thanks [@maxnowack](https://github.com/maxnowack)
871
+
872
+ ### 13.9.0 (7 November 2022)
873
+
874
+ - REFACTOR use faster `areRxDocumentArraysEqual` instead of doing a deep-equal check.
875
+ - ADD check to easier debug wrongly behaving backend during replication.
876
+ - FIX error `dev-mode added multiple times` is removed because it is annoying when using react hot-swap. Instead `addRxPlugin()` will now only throw if a different plugin is added that has the same name as a plugin that was added before.
877
+ - REFACTOR create the `digest` of an attachment inside of the `RxStorage`, not in RxDB. This makes the behavior equal to CouchDB and solves a lot of problems caused by different hashing or base64 encoding of the RxStorage implementations. (Fixes [#4107](https://github.com/pubkey/rxdb/pull/4107)) Thanks [@Elendiar](https://github.com/Elendiar)
878
+ - FIX GraphQL replication: should stop syncing if we receive less docs than pull.batchSize [#4110](https://github.com/pubkey/rxdb/pull/4110) Thanks [@jwallet](https://github.com/jwallet)
879
+
880
+ ### 13.8.3 (3 November 2022)
881
+
882
+ - FIX TS Error in Plugin "Replicate-GraphQL" : GraphQL Websocket on "isomorphic-ws" import [#4104](https://github.com/pubkey/rxdb/pull/4104) Thanks [@jwallet](https://github.com/jwallet)
883
+
884
+ ### 13.8.2 (1 November 2022)
885
+
886
+ - UPDATE `fake-indexeddb` to version `4.0.0`
887
+ - REFACTOR use `webpack` instead of `browserify` in karma tests.
888
+ - REMOVE `graphql-client` dependency [#3497](https://github.com/pubkey/rxdb/pull/3497)
889
+
890
+ ### 13.8.1 (1 November 2022)
891
+
892
+ - FIX wrong query results in some cases with many operators.
893
+ - REMOVE `deep-freeze` npm dependency because it has no author.
894
+
895
+ ### 13.8.0 (31 October 2022)
896
+
897
+ - Added [RxCollection.count()](https://rxdb.info/rx-query.html#count) queries. [#4096](https://github.com/pubkey/rxdb/pull/4096)
898
+ - REFACTOR index boundary usage for better performance.
899
+ - FIX critical bug in query correctness. **IMPORTANT:** If you use the RxStorage [IndexedDB](https://rxdb.info/rx-storage-indexeddb.html) or [FoundationDB](https://rxdb.info/rx-storage-foundationdb.html), you have to rebuild the indexes by increasing your schema version and running a migration. [#4098](https://github.com/pubkey/rxdb/pull/4098)
900
+ - FIX Typo in CRDT Plugin: `RxDDcrdtPlugin` is now `RxDBcrdtPlugin` [#4094](https://github.com/pubkey/rxdb/pull/4094) Thanks [@jwallet](https://github.com/jwallet)
901
+
902
+ ### 13.7.0 (24 October 2022)
903
+
904
+ - ADD [CRDT Plugin](./docs-src/crdt.md)
905
+ - FIX calling `.remove()` on an `RxDocument` must update the internal data of the document with the deleted state.
906
+ - FIX Stop retries when replication gets canceled [#4088](https://github.com/pubkey/rxdb/pull/4088) Thanks [@Whoops](https://github.com/Whoops)
907
+
908
+ ### 13.6.0 (19 October 2022)
909
+
910
+ - ADD example [how to use RxDB with Flutter](https://github.com/pubkey/rxdb/tree/master/examples/flutter)
911
+ - FIX many typos from the [TYPOFIX event](https://github.com/pubkey/rxdb/issues/4024)
912
+ - FIX Cannot read properties of null [#4055](https://github.com/pubkey/rxdb/pull/4055) Thanks [@Albert-Gao](https://github.com/Albert-Gao)
913
+ - FIX(sqlite) do not run pragma inside of transaction
914
+
915
+ ### 13.5.1 (15 October 2022)
916
+
917
+ - ADD in `fastUnsecureHash()` use polyfill if `TextEncoder` is not available
918
+
919
+ ### 13.5.0 (12 October 2022)
920
+
921
+ - FIX many typos from the [TYPOFIX event](https://github.com/pubkey/rxdb/issues/4024)
922
+ - FIX `lastOfArray()` may return undefined if array is empty [#4011](https://github.com/pubkey/rxdb/pull/4011) Thanks [@AlexErrant](https://github.com/AlexErrant)
923
+ - FIX Remove legacy triple slash directives [#4023](https://github.com/pubkey/rxdb/pull/4023) Thanks [@jeromepochat](https://github.com/jeromepochat)
924
+ - FIX randomly failing replication test
925
+
926
+ ### 13.4.5 (7 October 2022)
927
+
928
+ - REFACTORED the landingpage to have less blinking and no more autoplay audio.
929
+
930
+ ### 13.4.4 (4 October 2022)
931
+
932
+ - ADD new premium plugin `RxStorage Localstorage Meta Optimizer`
933
+
934
+ ### 13.4.2 (3 October 2022)
935
+
936
+ ### 13.4.1 (2 October 2022)
937
+
938
+ - REFACTOR stuff for a new optimization plugin
939
+
940
+ ### 13.4.0 (28 September 2022)
941
+
942
+ - FIX image attachments not working correctly in the browser
943
+ - FIX Push batchSize in not respected [#3994](https://github.com/pubkey/rxdb/issues/3994)
944
+ - FIX boolean indexes not working [#3994](https://github.com/pubkey/rxdb/issues/3994)
945
+
946
+ ### 13.3.0 (26 September 2022)
947
+
948
+ - FIX(sqlite) use dollar params instead of named params
949
+ - CHANGE run performance tests without the `dev-mode` plugin
950
+ - IMPROVE performance of document writes by not using try-catch in a hot path.
951
+ - FIX `RxDatabase.remove()` must properly remove the collection storage together with the replication states.
952
+
953
+ ### 13.2.0 (22 September 2022)
954
+
955
+ - FIX respect the `prefers-reduced-motion` media query to not show blinking animations to neurodiverse people at the landingpage.
956
+ - ADD `pull.responseModifier` to the graphql replication plugin so that you can aggregate the checkpoint from the returned graphql response.
957
+
958
+ ### 13.1.0 (19 September 2022)
959
+
960
+ - FIX saving multiple attachments broke previously stored attachments on some storages.
961
+ - UPDATE graphql websocket dependencies [#3980](https://github.com/pubkey/rxdb/pull/3980) Thanks [@herefishyfish](https://github.com/herefishyfish)
962
+ - FIX on `RxCollection.remove()` the related storages like the meta of replications, must also be removed.
963
+
964
+ ### 13.0.3 (17 September 2022)
965
+
966
+ - FIX sorting via `event-reduce` did not work when `key-compression` plugin was used.
967
+
968
+ ### 13.0.2 (16 September 2022)
969
+
970
+ - FIX `event-reduce` did not work when `key-compression` plugin was used.
971
+
972
+ ### 13.0.1 (16 September 2022)
973
+
974
+ ### 13.0.0 (16 September 2022) BREAKING [read the announcement](./docs-src/releases/13.0.0.md)
975
+
976
+ - FIX `graphQLSchemaFromRxSchema()` must not create broken schema when there are no `headerFields`
977
+
978
+ - ADD credentials settings to the GraphQL replication plugin [#3976](https://github.com/pubkey/rxdb/pull/3976) Thanks [@marcoklein](https://github.com/marcoklein)
979
+
980
+ - RENAMED the `ajv-validate` plugin to `validate-ajv` to be in equal with the other validation plugins.
981
+ - The `is-my-json-valid` validation is no longer supported until [this bug](https://github.com/mafintosh/is-my-json-valid/pull/192) is fixed.
982
+ - REFACTORED the [schema validation plugins](./docs-src/schema-validation.md), they are no longer plugins but now they get wrapped around any other RxStorage.
983
+ - It allows us to run the validation inside of a [Worker RxStorage](./docs-src/rx-storage-worker.md) instead of running it in the main JavaScript process.
984
+ - It allows us to configure which `RxDatabase` instance must use the validation and which does not. In production it often makes sense to validate user data, but you might not need the validation for data that is only replicated from the backend.
985
+ - REFACTORED the [key compression plugin](./docs-src/key-compression.md), it is no longer a plugin but now a wrapper around any other RxStorage.
986
+ - It allows to run the key-comresion inside of a [Worker RxStorage](./docs-src/rx-storage-worker.md) instead of running it in the main JavaScript process.
987
+
988
+ - REFACTORED the encryption plugin, it is no longer a plugin but now a wrapper around any other RxStorage.
989
+ - It allows to run the encryption inside of a [Worker RxStorage](./docs-src/rx-storage-worker.md) instead of running it in the main JavaScript process.
990
+ - It allows do use asynchronous crypto function like [WebCrypto](https://developer.mozilla.org/en-US/docs/Web/API/Web_Crypto_API)
991
+ - Store the password hash in the same write request as the database token to improve performance.
992
+
993
+ - REMOVED many unused plugin hooks because they decreased the performance.
994
+
995
+ - REMOVED support for temporary documents [see here](https://github.com/pubkey/rxdb/pull/3777#issuecomment-1120669088)
996
+ - REMOVED RxDatabase.broadcastChannel The broadcast channel has been moved out of the RxDatabase and is part of the RxStorage. So it is not longer exposed via `RxDatabase.broadcastChannel`.
997
+
998
+ - In the RxDB internal `_meta.lwt` field, we now use 2 decimals number of the unix timestamp in milliseconds.
999
+
1000
+ - REMOVE RxStorageStatics `.hash` and `.hashKey`
1001
+
1002
+ - CHANGE removed default usage of `md5` as default hashing. Use a faster non-cryptographic hash instead.
1003
+ - ADD option to pass a custom hash function when calling `createRxDatabase`.
1004
+
1005
+ - Removed the `liveInterval` option of the replication. It was an edge case feature with wrong defaults. If you want to run the pull replication on internval, you can send a `RESYNC` event manually in a loop.
1006
+
1007
+ - CHANGE use `Float` instead of `Int` to represent timestamps in GraphQL.
1008
+
1009
+ - REPLACED `RxReplicationPullError` and `RxReplicationPushError` with normal `RxError` like in the rest of the RxDB code.
1010
+ - REMOVED the option to filter out replication documents with the push/pull modifiers [#2552](https://github.com/pubkey/rxdb/issues/2552) because this does not work with the new replication protocol.
1011
+ - CHANGE default of replication `live` to be set to `true`. Because most people want to do a live replication, not a one time replication.
1012
+
1013
+ - CHANGED Attachment data is now always handled as `Blob` because Node.js does support `Blob` since version 18.0.0 so we no longer have to use a `Buffer` but instead can use Blob for browsers and Node.js
1014
+ - FIXED multiple problems with encoding attachments data. We now use the `js-base64` library which properly handles utf-8/binary/ascii transformations.
1015
+
1016
+ - RENAMED the `server` plugin is now called `server-couchdb` and `RxDatabase.server()` is now `RxDatabase.serverCouchDB()`
1017
+ - ADDED the [websocket replication plugin](./docs-src/replication-websocket.md)
1018
+ - ADDED the [FoundationDB RxStorage](./docs-src/rx-storage-foundationdb.md)
1019
+
1020
+ - FIX `couchdb-server` plugin missed out events from the replication.
1021
+
1022
+ - ADD Support JsonSchema for nested additionalProperties [#3952](https://github.com/pubkey/rxdb/pull/3952) Thanks [@swnf](https://github.com/swnf)
1023
+
1024
+ - REFACTORED the layout of `RxChangeEvent` to better match the RxDB requirements and to fix the 'deleted-document-is-modified-but-still-deleted' bug.
1025
+
1026
+ ### 12.7.16 (18 July 2022)
1027
+
1028
+ ### 12.7.15 (18 July 2022)
1029
+
1030
+ ### 12.7.14 (18 July 2022)
1031
+
1032
+ ### 12.7.13 (18 July 2022)
1033
+
1034
+ ### 12.7.12 (17 July 2022)
1035
+
1036
+ - CHANGE use eslint rule `require-await` to reduce build size.
1037
+
1038
+ ### 12.7.11 (17 July 2022)
1039
+
1040
+ ### 12.7.10 (17 July 2022)
1041
+
1042
+ ### 12.7.9 (17 July 2022)
1043
+
1044
+ ### 12.7.8 (15 July 2022)
1045
+
1046
+ ### 12.7.7 (15 July 2022)
1047
+
1048
+ ### 12.7.6 (15 July 2022)
1049
+
1050
+ ### 12.7.5 (15 July 2022)
1051
+
1052
+ - FIX unify checkpoint behavior across all RxStorage implementations.
1053
+ - FIX github release bot to only post non-patch releases to discord.
1054
+
1055
+ ### 12.7.4 (15 July 2022)
1056
+
1057
+ - ADD export type `CategorizeBulkWriteRowsOutput`
1058
+ - CHANGE `RxStorageInstance.getChangedDocumentsSince()` only returns the last checkpoint, not one for each document.
1059
+
1060
+ ### 12.7.3 (14 July 2022)
1061
+
1062
+ - ADD export type `RxStorageDefaultCheckpoint`
1063
+
1064
+ ### 12.7.2 (14 July 2022)
1065
+
1066
+ ### 12.7.1 (14 July 2022)
1067
+
1068
+ ### 12.7.0 (14 July 2022)
1069
+
1070
+ - FIX [#3839](https://github.com/pubkey/rxdb/pull/3839) executing insert -> remove -> insert -> remove does not work. Thanks [@nisarpeitang](https://github.com/nisarpeitang)
1071
+ - ADD `checkpoint` to the internal used events that are emitted in the `RxStorageInstance.changestream()`.
1072
+ - FIX randomly failing test with dexie.js RxStorage.
1073
+ - ADD `custom` parameter to `RxStorageInstance.bulkWrite()`
1074
+
1075
+ ### 12.6.14 (7 July 2022)
1076
+
1077
+ - Moved from gitter to [discord](https://discord.gg/gNAuePsN)
1078
+ - ADD `bulkSize` option to [Memory Synced RxStorage](https://rxdb.info/rx-storage-memory-synced.html)
1079
+
1080
+ ### 12.6.13 (6 July 2022)
1081
+
1082
+ - ADD `getPouchDBOfRxCollection()` to easy access the PouchDB instance of a RxCollection.
1083
+
1084
+ ### 12.6.11 (5 July 2022)
1085
+
1086
+ - Add the [Memory Synced RxStorage](https://rxdb.info/rx-storage-memory-synced.html) to the premium plugins.
1087
+
1088
+ ### 12.6.10 (5 July 2022)
1089
+
1090
+ ### 12.6.9 (4 July 2022)
1091
+
1092
+ - Add conflict handling to RxCollection.
1093
+
1094
+ ### 12.6.8 (2 July 2022)
1095
+
1096
+ ### 12.6.7 (1 July 2022)
1097
+
1098
+ ### 12.6.6 (1 July 2022)
1099
+
1100
+ ### 12.6.5 (30 June 2022)
1101
+
1102
+ - ADD `isRxDatabaseFirstTimeInstantiated()`
1103
+
1104
+ ### 12.6.4 (30 June 2022)
1105
+
1106
+ ### 12.6.3 (29 June 2022)
1107
+
1108
+ ### 12.6.2 (29 June 2022)
1109
+
1110
+ ### 12.6.1 (29 June 2022)
1111
+
1112
+ - FIX RxStorageReplication must work with local documents.
1113
+
1114
+ ### 12.6.0 (29 June 2022)
1115
+
1116
+ - The worker RxStorage will no longer reuse the worker so that multiple RxDatabase instances can use different workers for better performance.
1117
+ - Cross-Tab event propagation is now handled by the RxStorage implementations, not by the RxDatabase. This allows to better combine RxStorages and plugins/wrappers.
1118
+
1119
+ ### 12.5.4 (23 June 2022)
1120
+
1121
+ - Only check if final field have been changed in dev-mode.
1122
+ - Fix `atomicUpsert()` broken when document was replicated before. [#3856](https://github.com/pubkey/rxdb/pull/3856). Thanks [@AntonOfTheWoods](https://github.com/AntonOfTheWoods)
1123
+ - Refactor revision handling
1124
+ - Fix the `_rev` that is passed to an RxStorage must be respected by the RxStorage.
1125
+
1126
+ ### 12.5.3 (15 June 2022)
1127
+
1128
+ ### 12.5.1 (15 June 2022)
1129
+
1130
+ ### 12.5.0 (15 June 2022)
1131
+
1132
+ - UPDATE Node.js to version `18.3.0`
1133
+ - FIX: RxStorage should never emit an eventBulk with an empty events array.
1134
+ - Update PouchDB to `7.3.0` Thanks [@cetsupport](https://github.com/cetsupport).
1135
+ - CHANGE (RxStorage) revision hash must not include the `_meta` field.
1136
+ - Added new Stream replication for internal usage in plugins.
1137
+
1138
+ ### 12.4.3 (27 May 2022)
1139
+
1140
+ - SQLite RxStorage: Add support for specific query indexes.
1141
+
1142
+ ### 12.4.2 (23 May 2022)
1143
+
1144
+ - FIX query planner did not pick the correct index on `$eq` operations.
1145
+ - IMPROVE performance of the memory RxStorage
1146
+ - IMPROVE performance of custom index creation
1147
+
1148
+ ### 12.4.1 (12 May 2022)
1149
+
1150
+ - ADD query optimizer to premium plugins.
1151
+
1152
+ ### 12.4.0 (12 May 2022)
1153
+
1154
+ - REFACTOR if no sort order is set on a query, use a better matching sort order and not just the primary key.
1155
+
1156
+ ### 12.3.2 (10 May 2022)
1157
+
1158
+ ### 12.3.1 (10 May 2022)
1159
+
1160
+ ### 12.3.0 (10 May 2022)
1161
+
1162
+ - OPTIMIZE `isFindOneByIdQuery()` should be `true` when only the primary field is queried with an `$eq`
1163
+ - REWRITE query planner to use better indexeses in dexie.js and memory storage.
1164
+
1165
+ ### 12.2.0 (9 May 2022)
1166
+
1167
+ - ADD attachment support to SQLite `RxStorage`
1168
+ - ADD attachment support to IndexedDB `RxStorage`
1169
+ - FIX collections with a dash in the name where not properly removed [#3785](https://github.com/pubkey/rxdb/pull/3785) Thanks [@mmouterde](https://github.com/mmouterde)
1170
+ - FIX data still there despite remove and destroy calls [#3788](https://github.com/pubkey/rxdb/pull/3788) Thanks [@mmouterde](https://github.com/mmouterde)
1171
+
1172
+ ### 12.1.0 (6 May 2022)
1173
+
1174
+ - ADD `notifyAboutRemoteChange()` to the GrapQL replication and replication primitives.
1175
+ - ADD attachment support to memory `RxStorage`.
1176
+ - FIX default of `waitForLeadership` in replication primitives must be `true`
1177
+
1178
+ ### 12.0.8 (4 May 2022)
1179
+
1180
+ - IMPROVE memory storage performance.
1181
+
1182
+ ### 12.0.7 (3 May 2022)
1183
+
1184
+ ### 12.0.6 (3 May 2022)
1185
+
1186
+ ### 12.0.5 (3 May 2022)
1187
+
1188
+ ### 12.0.4 (3 May 2022)
1189
+
1190
+ ### 12.0.3 (3 May 2022)
1191
+
1192
+ ### 12.0.2 (2 May 2022)
1193
+
1194
+ - FIX dexie.js storage does not work with keyCompression when having a nested schema.
1195
+
1196
+ ### 12.0.1 (28 April 2022)
1197
+
1198
+ - Added `autoStart` option to the replication plugins [#3775](https://github.com/pubkey/rxdb/pull/3775) Thanks [@mmouterde](https://github.com/mmouterde)
1199
+ - Fix [#778](https://github.com/pubkey/rxdb/pull/3778) Storing string array was broken in the dexie storage. Thanks [@mmouterde](https://github.com/mmouterde)
1200
+
1201
+ ### 12.0.0 (26 April 2022) BREAKING [read the announcement](./docs-src/releases/12.0.0.md)
1202
+
1203
+ - All indexes that do not contain the primaryKey, get the primary key added.
1204
+ - You can now set a custom index when doing a query.
1205
+ - Unified the replication primitives and the GraphQL replication plugin.
1206
+ - Removed the deprecated in-memory plugin.
1207
+ - Added cleanup plugin
1208
+ - Refactor local documents plugin to only create a storage instance for local documents when needed.
1209
+ - Removed the `core` plugin. The default export `from 'rxdb'` now exports only the RxDB core without plugins.
1210
+
1211
+ - The Dexie.js RxStorage is no longer in beta mode.
1212
+ - Added the in memory storage plugin.
1213
+ - Added `RxDocument().toMutableJSON()`
1214
+ - Added `RxCollection().bulkUpsert()`
1215
+ - Added optional `init()` function to `RxPlugin`.
1216
+ - dev-mode: Add check to ensure all top-level fields in a query are defined in the schema.
1217
+ - Support for array field based indexes like `data.[].subfield` was removed, as it anyway never really worked.
1218
+ - Refactored the usage of RxCollection.storageInstance to ensure all hooks run properly.
1219
+ - Refactored the encryption plugin so no more plugin specific code is in the RxDB core.
1220
+ - Removed the encrypted export from the json-import-export plugin. This was barely used and made everything more complex. All exports are no non-encrypted. If you need them encrypted, you can still run by encryption after the export is done.
1221
+ - RxPlugin hooks now can be defined as running `before` or `after` other plugin hooks.
1222
+ - Attachments are now internally handled as string instead of `Blob` or `Buffer`
1223
+ - Fix (replication primitives) only drop pulled documents when a relevant document was changed locally.
1224
+ - Fix dexie.js was not able to query over an index when `keyCompression: true`
1225
+
1226
+ Changes to `RxStorageInterface`:
1227
+ - `RxStorageInstance` must have the `RxStorage` in the `storage` property.
1228
+ - The `_deleted` field is now required for each data interaction with `RxStorage`.
1229
+ - Removed `RxStorageInstance.getChangedDocuments()` and added `RxStorageInstance.getChangedDocumentsSince()` for better performance.
1230
+ - Added `doesBroadcastChangestream()` to `RxStorageStatics`
1231
+ - Added `withDeleted` parameter to `RxStorageKeyObjectInstance.findLocalDocumentsById()`
1232
+ - Added internal `_meta` property to stored document data that contains internal document related data like last-write-time and replication checkpoints.
1233
+
1234
+ ### 11.6.0 (4 February 2022)
1235
+
1236
+ Bugfixes:
1237
+ - [#3666](https://github.com/pubkey/rxdb/issues/3666) RxDB with lokijs works bad in Safari and FF when using multiple tabs
1238
+
1239
+ Other:
1240
+ - Replication primitives must throw an error if `_deleted` field is missing. [#3671](https://github.com/pubkey/rxdb/pull/3671)
1241
+
1242
+ ### 11.5.1 (30 January 2022)
1243
+
1244
+ Bugfixes:
1245
+ - `RxStorage.statics.getQueryMatcher()` must not match documents with `_deleted: true`.
1246
+ - Fixed multiple problems with `RxCollection.findByIds$()` [#3659](https://github.com/pubkey/rxdb/pull/3659) Thanks [@Hideman85](https://github.com/Hideman85)
1247
+
1248
+ ### 11.5.0 (30 January 2022)
1249
+
1250
+ Features:
1251
+ - Improve emitted errors of the GraphQL replication [#3630](https://github.com/pubkey/rxdb/pull/3630) Thanks [@nirvdrum](https://github.com/nirvdrum)
1252
+ - Added Dexie.js based `RxStorage`. [Read the docs](https://rxdb.info/rx-storage-dexie.html)
1253
+
1254
+ ### 11.4.0 (28 January 2022)
1255
+
1256
+ Bugfixes:
1257
+ - `RxDocument.toJSON()` is leaking meta field `_deleted`. [#3645](https://github.com/pubkey/rxdb/pull/3645) Thanks [@Bessonov](https://github.com/Bessonov)
1258
+
1259
+ Features:
1260
+ - Allow truthy values for the GraphQL replication `deletedFlag` field. [#3644](https://github.com/pubkey/rxdb/pull/3644) Thanks [@nirvdrum](https://github.com/nirvdrum)
1261
+
1262
+ Other:
1263
+ - `.findOne(documentId)` should use `RxStorage().findDocumentsById()` instead of `RxStorage().query()`
1264
+
1265
+ ### 11.3.0 (17 January 2022)
1266
+
1267
+ Bugfixes:
1268
+ - GraphQL replication: Unnecessary local document writes fill up the database [#3627](https://github.com/pubkey/rxdb/pull/3627) Thanks [@hdwatts](https://github.com/hdwatts)
1269
+
1270
+ ### 11.2.0 (12 January 2022)
1271
+
1272
+ Bugfixes:
1273
+ - Replication Primitives: Local writes while running the `pull` must not be lost but send to the remote.
1274
+ - Replication Primitives: Should not stack up failed runs and then run many times.
1275
+ - Support composite indices in schema literal types [#3609](https://github.com/pubkey/rxdb/pull/3609) Thanks [@nirvdrum](https://github.com/nirvdrum)
1276
+
1277
+ ### 11.1.0 (6 January 2022)
1278
+
1279
+ Features:
1280
+ - Added `toTypedRxJsonSchema` and `ExtractDocumentTypeFromTypedRxJsonSchema` to generate the document types from the schema.
1281
+
1282
+ ### 11.0.0 (3 January 2022) BREAKING [read the announcement](./docs-src/releases/11.0.0.md)
1283
+
1284
+ BREAKING:
1285
+ - RxStorage: The non async functions `prepareQuery`, `getSortComparator` and `getQueryMatcher` have been moved out of `RxStorageInstance` into `RxStorage`. This was needed to have better WebWorker support. This will not affect you do not use a custom `RxStorage` implementation.
1286
+ - LokiJS: Do not use the `IdleQueue` of the RxDatabase to handle calls to saveDatabase(), instead wait for CPU idleness of the JavaScript process.
1287
+ - `RxStorageInterface`:
1288
+ - Replaced all `Map` with plain json objects so that they can be `JSON.stringify`-ed
1289
+ - Replaced typings of event stream to use `EventBulk` and process events in bulks to save performance.
1290
+ - Move all static methods into the `statics` property so we can code-split when using the worker plugin.
1291
+ - `digest` and `length` of attachment data is now created by RxDB, not by the RxStorage. [#3548](https://github.com/pubkey/rxdb/issues/3548)
1292
+ - Added the statics `hashKey` property to identify the used hash function.
1293
+ - Internally all events are handles via bulks, this saves performance when events are transfered over a WebWorker or a BroadcastChannel.
1294
+ - Removed the deprecated `recieved` methods, use `received` instead. [See #3392](https://github.com/pubkey/rxdb/pull/3392)
1295
+ - Removed the `no-validate` plugin. To use RxDB without schema validation, just do not add a validation plugin to your custom build.
1296
+
1297
+ Bugfixes:
1298
+ - Do not throw an error when database is destroyed while a GraphQL replication is running.
1299
+ - Compound primary key migration throws "Value of primary key(s) cannot be changed" [#3546](https://github.com/pubkey/rxdb/pull/3546) Thanks [@nothingkid](https://github.com/nothingkid)
1300
+ - Allow `_id` as primaryKey [#3562](https://github.com/pubkey/rxdb/pull/3562) Thanks [@SuperKirik](https://github.com/SuperKirik)
1301
+ - LokiJS: Remote operations do never resolve when remote instance was leader and died.
1302
+
1303
+ Other:
1304
+ - LokiJS: All documents are stored with a `$lastWriteAt` field, so we can implement an auto compaction later.
1305
+ - Transpile `async`/`await` to promises instead of generators. via [babel-plugin-transform-async-to-promises](https://github.com/rpetrich/babel-plugin-transform-async-to-promises)
1306
+
1307
+ ### 10.5.4 (30 November 2021)
1308
+
1309
+ Bugfixes:
1310
+ - LokiJS: Do not call `saveDatabase()` when no persistence adapter is given.
1311
+ - Query returns outdated result in second subscription [#3498](https://github.com/pubkey/rxdb/issues/3498) Thanks [@swnf](https://github.com/swnf)
1312
+ - Spawning a server when full leveldown-module is used must not throw an error.
1313
+
1314
+ ### 10.5.3 (19 November 2021)
1315
+
1316
+ Bugfixes:
1317
+ - PouchDB: `getSortComparator()` broken on some complex `$or` query.
1318
+
1319
+ ### 10.5.2 (18 November 2021)
1320
+
1321
+ Other:
1322
+ - GraphQL replication must wait for `requestIdlePromise` to not slow down more important tasks.
1323
+
1324
+ Bugfixes:
1325
+ - LokiJS: Directly create local state when instance becomes leader.
1326
+ - LokiJS: `mustUseLocalState()` should not create multiple local states.
1327
+
1328
+ ### 10.5.1 (15 November 2021)
1329
+
1330
+ Bugfixes:
1331
+ - GraphQL replication should affect `requestIdlePromise` and while replication IO is running, the database must not be idle.
1332
+ - Creating a collection that has existed before must not cause a database write.
1333
+ - LokiJS: Fixed error log when reloading while having the database open in multiple browser tabs.
1334
+
1335
+ ### 10.5.0 (15 November 2021)
1336
+
1337
+ Other:
1338
+ - Removed useless runtime check of database name, only check in dev-mode.
1339
+
1340
+ Changes:
1341
+ - LokiJS: Use custom save handler instead of setting `autosave: true`
1342
+
1343
+ ### 10.4.1 (13 November 2021)
1344
+
1345
+ Other:
1346
+ - Decreased build size by not importing `pouchdb-utils`
1347
+ - Improve build size and performance by replacing [deep-equal](https://www.npmjs.com/package/deep-equal) with [fast-deep-equal](https://github.com/epoberezkin/fast-deep-equal#readme)
1348
+ - Remove module `random-token` and use the same random string generator everywhere.
1349
+
1350
+ ### 10.4.0 (11 November 2021)
1351
+
1352
+ Bugfixes:
1353
+ - LokiJS: Ensure events emit exact the same data as with PouchDB.
1354
+ - LokiJS: Queries with limit and skip where broken.
1355
+ - LokiJS: Fix all bugs and run the whole test suite with LokiJS Storage
1356
+ - Fix PouchDB RxStorage sometimes returned wrong sort comparison results.
1357
+
1358
+ Other:
1359
+ - Updated [event-reduce](https://github.com/pubkey/event-reduce) for more optimizations.
1360
+ - Allow dash character `-` in collection and database names.
1361
+
1362
+ ### 10.3.5 (8 November 2021)
1363
+
1364
+ Bugfixes:
1365
+ - LokiJS `findDocumentsById()` returned additional `$loki` property.
1366
+ - LokiJS `bulkAddRevisions()` must not mutate the input.
1367
+ - LokiJS deletes on GraphQL replication must work.
1368
+
1369
+ ### 10.3.4 (7 November 2021)
1370
+
1371
+ Bugfixes:
1372
+ - LokiJS: Upserting a deleted document did not work.
1373
+ - LokiJS: Storage queries returned additional `$loki` property.
1374
+
1375
+ ### 10.3.3 (6 November 2021)
1376
+
1377
+ Bugfixes:
1378
+ - LokiJS Storage must have a deterministic sort order.
1379
+
1380
+ ### 10.3.2 (5 November 2021)
1381
+
1382
+ Bugfixes:
1383
+ - Sort queries broken with LokiJS RxStorage.
1384
+
1385
+ ### 10.3.1 (5 November 2021)
1386
+
1387
+ Bugfixes:
1388
+ - Fix endless loop when using GrapQL-replication & LokiJS RxStorage.
1389
+
1390
+ ### 10.3.0 (4 November 2021)
1391
+
1392
+ Features:
1393
+ - Added LokiJS `RxStorage` plugin.
1394
+
1395
+ Bugfixes:
1396
+ - Fixed missing closings of `RxStorage` instances when the database or collection is destroyed.
1397
+
1398
+ Other:
1399
+ - Improved performance of write operations.
1400
+ - Removed unnecessary abstraction layer of `LeaderElector`
1401
+
1402
+ ### 10.2.2 (25 October 2021)
1403
+
1404
+ Bugfixes:
1405
+ - Migration with attachments removes attachment mime types [#3460](https://github.com/pubkey/rxdb/issues/3460) Thanks [@swnf](https://github.com/swnf)
1406
+
1407
+ Other:
1408
+ - Improved performance when many queries are created in a short timespan.
1409
+ - Database- and collection names can now contain the minus char `-`.
1410
+
1411
+ ### 10.2.1 (20 October 2021)
1412
+
1413
+ Bugfixes:
1414
+ - GraphQL replication: push not working with keyCompression.
1415
+ - `Buffer` is not available in browsers [#3454](https://github.com/pubkey/rxdb/issues/3454) Thanks [@swnf](https://github.com/swnf)
1416
+
1417
+ ### 10.2.0 (13 October 2021)
1418
+
1419
+ Bugfixes:
1420
+ - Observed document data must be deep freezed in dev mode [#3434](https://github.com/pubkey/rxdb/issues/3434) Thanks [@chrisdrackett](https://github.com/chrisdrackett)
1421
+
1422
+ Other:
1423
+ - We now have set `sideEffects: false` to the default in the package.json so tree shaking can work.
1424
+ - Optimized memory usage in the query cache.
1425
+
1426
+ Features:
1427
+ - Added [replication primitives plugin](./docs-src/replication.md)
1428
+
1429
+ ### 10.1.0 (27 September 2021)
1430
+
1431
+ Other:
1432
+ - Refactored the migration plugin for better performance by writing the documents in bulk requests
1433
+ - Added svelte example [#3287](https://github.com/pubkey/rxdb/pull/3287) Thanks [@bkeating](https://github.com/bkeating)
1434
+ - Improved error messages
1435
+
1436
+ Bugfixes:
1437
+ - [#3319](https://github.com/pubkey/rxdb/issues/3319) Graphql replication checkpoint was not deleted after running `RxDatabase.remove()`
1438
+ - Fixed spelling of `recieved -> received` everywhere. The old getters are still useable but `deprecated` [#3392](https://github.com/pubkey/rxdb/pull/3392). Thanks [chrisdrackett](https://github.com/chrisdrackett)
1439
+
1440
+ ### 10.0.3 (9 August 2021)
1441
+
1442
+ Bugfixes:
1443
+ - Calling bulk-methods with an empty array must not throw an error.
1444
+ - `RxCollection.remove()` does not delete local documents [#3319](https://github.com/pubkey/rxdb/issues/3319)
1445
+
1446
+ ### 10.0.0 (20 July 2021) BREAKING [read the announcement](./docs-src/releases/10.0.0.md)
1447
+
1448
+ Breaking:
1449
+ - Setting a `primaryKey` for a schema is now required.
1450
+ - When using the type `RxJsonSchema<DocType>` the `DocType` is now required.
1451
+ - A JsonSchema must have the `required` array at the top level and it must contain the primary key.
1452
+
1453
+ - Outgoing data is now `Readonly` typed and [deep-frozen](https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze) in dev mode
1454
+
1455
+ - `RxDocument.putAttachment()` no longer supports string as data, only `Blob` or `Buffer`.
1456
+ - Changed the default of `putAttachment` to `skipIfSame=true`.
1457
+
1458
+ - Removed the deprecated `atomicSet()`, use `atomicPatch()` instead.
1459
+ - Removed the deprecated `RxDatabase.collection()` use `RxDatabase().addCollections()` instead.
1460
+
1461
+ - Moved everything pouchdb related to the `pouchdb` plugin.
1462
+ - Pouchdb plugins are not longer added via `addRxPlugin()` but `addPouchPlugin()`. (RxDB plugins are still added via `addRxPlugin`).
1463
+ - Removed plugin hook `preCreatePouchDb`.
1464
+ - Removed the `watch-for-changes` plugin, this is now directly integrated into the pouchdb `RxStorage`.
1465
+ - Removed the `adapter-check` plugin. (The function `adapterCheck` has moved to the pouchdb plugin).
1466
+
1467
+ - Calling `RxDatabase.server()` now returns a promise that resolves when the server is started up.
1468
+ - Changed the defaults of `PouchDBExpressServerOptions` from the `server()` method, by default we now store logs in the tmp folder and the config is in memory.
1469
+ - Renamed `replication`-plugin to `replication-couchdb` to be more consistend in naming like with `replication-graphql`
1470
+ - Renamed `RxCollection().sync()` to `RxCollection().syncCouchDB()`
1471
+
1472
+ - Renamed the functions of the json import/export plugin to be less confusing
1473
+ - `dump()` is now `exportJSON()`
1474
+ - `importDump()` is now `importJSON()`
1475
+ - `RxCollection` uses a separate pouchdb instance for local documents, so that they can persist during migrations.
1476
+
1477
+ Features:
1478
+ - Added support for composite primary keys.
1479
+
1480
+ Other:
1481
+ - Moved all `should never happen` errors into own error code.
1482
+
1483
+ Typings:
1484
+ - Improved typings of error codes.
1485
+
1486
+ ### 9.21.0 (30 June 2021)
1487
+
1488
+ Features:
1489
+ - Added `dataPath` property to GraphQL replication pull options to allow the document JSON lookup path to configured instead of assuming the document data is always the first child of the response [#2606](https://github.com/pubkey/rxdb/issues/2606) Thanks [@joshmcarthur](https://github.com/joshmcarthur)
1490
+
1491
+ Types:
1492
+ - `getLocal()` can return `undefined`. Thanks [@chrisdrackett](https://github.com/chrisdrackett)
1493
+ - Fixed typings in the dependencies so you can use `noUncheckedIndexedAccess`. Thanks [@seanwu1105](https://github.com/seanwu1105)
1494
+
1495
+ ### 9.20.0 (15 May 2021)
1496
+
1497
+ Bugfixes:
1498
+ - Auto-cancel one time couchdb replications to not cause a memory leak
1499
+ - Fixed another memory leak when calling the couchdb replication many times.
1500
+
1501
+ ### 9.19.0 (12 May 2021)
1502
+
1503
+ Features:
1504
+ - Added the [backup-plugin](https://rxdb.info/backup.html)
1505
+
1506
+ Other:
1507
+ - Updated `rxjs` to version `7.0.1`
1508
+
1509
+ ### 9.18.0 (26 April 2021)
1510
+
1511
+ Bugfixes:
1512
+ - Fixed memory leak in `RxCollection().findByIds$()`
1513
+
1514
+ Other:
1515
+ - Added collection name when throwing errors in `RxQuery`
1516
+
1517
+ ### 9.17.1 (21 April 2021)
1518
+
1519
+ Other:
1520
+ - Added hints abount 2021 user survey.
1521
+
1522
+ ### 9.17.0 (14 April 2021)
1523
+
1524
+ Features:
1525
+ - Added possibility to change, update, remove and add `RxAttachment`s inside of a migration strategy.
1526
+
1527
+ ### 9.16.0 (12 April 2021)
1528
+
1529
+ Features:
1530
+ - Added `RxDatabase.migrationStates()` which returns an observable to observe the state of all ongoing migrations.
1531
+ - Added `startupPromise` to the returned object of `RxDatabase().server()`
1532
+
1533
+ Bugfixes:
1534
+ - Ensure every background task is done when `RxDatabase.destroy()` resolves. [#2938](https://github.com/pubkey/rxdb/issues/2938)
1535
+
1536
+ Other:
1537
+ - Added analytics to docs page
1538
+
1539
+ ### 9.15.0 (25 February 2021)
1540
+
1541
+ Bugfixes:
1542
+ - Updated `pouchdb-all-dbs` fixes [#2874](https://github.com/pubkey/rxdb/issues/2874) Thanks [@openscript](https://github.com/openscript)
1543
+
1544
+ Other:
1545
+ - Determinstic handling of revision keys during data migration
1546
+ - Added more information to `RxError` when data migration fails
1547
+
1548
+ ### 9.14.0 (14 February 2021)
1549
+
1550
+ Features:
1551
+ - Added `RxReplicationState.awaitInitialReplication()`
1552
+
1553
+ Bugfixes:
1554
+ - Using the replication plugins must not required to also use leader-election
1555
+ - Refactor `QueryCache.triggerCacheReplacement()` to not spawn `setTimeout` regulary. This is needed for server side rendering with angular universal.
1556
+
1557
+ Other:
1558
+ - Added server side rendering to the [angular example](https://github.com/pubkey/rxdb/tree/master/examples/angular)
1559
+
1560
+ ### 9.13.0 (10 February 2021)
1561
+
1562
+ Features:
1563
+
1564
+ - Added `RxCollection().bulkRemove()` [#2845](https://github.com/pubkey/rxdb/pull/2845) Thanks [@qinyang912](https://github.com/qinyang912)
1565
+
1566
+ Other:
1567
+
1568
+ - Improved typings of `insertLocal()` [#2850](https://github.com/pubkey/rxdb/pull/2850) Thanks [@openscript](https://github.com/openscript)
1569
+ - Improved typings of `bulkInsert()`
1570
+
1571
+ ### 9.12.1 (24 January 2021)
1572
+
1573
+ Bugfixes:
1574
+ - [#2785](https://github.com/pubkey/rxdb/pull/2785) postInsert hook not working when use bulkInsert to insert doc. Thanks [@qinyang912](https://github.com/qinyang912)
1575
+ - Setted `sideEffects: true` for main module [#2798](https://github.com/pubkey/rxdb/issues/2798)
1576
+
1577
+ Other:
1578
+ - (docs) added warning about indexeddb adapter
1579
+ - Upgraded typescript to `4.1.3`
1580
+
1581
+ ### 9.12.0 (3 January 2021)
1582
+
1583
+ Features:
1584
+ - Allow `primary` and `ref` at the same time in a schema. [#2747](https://github.com/pubkey/rxdb/issues/2747)
1585
+
1586
+ Bugfixes:
1587
+ - [#2705](https://github.com/pubkey/rxdb/issues/2705) when use bulkInsert to insert doc, the rxDocument property on changeEvent is an object, not a RxDocument instance. Thanks [@qinyang912](https://github.com/qinyang912)
1588
+ - When the mutation function of `atomicUpdate()` has thrown once, it was not possible to use it again.
1589
+
1590
+ ### 9.11.0 (13 December 2020)
1591
+
1592
+ Features:
1593
+ - Added `putAttachment(skipIfSame)`, if set to `true` a write will be skipped if the attachment already exists with the same data.
1594
+
1595
+ Bugfixes:
1596
+ - `awaitInitialReplication()` resolves on failed replication [#2745](https://github.com/pubkey/rxdb/pull/2745). Thanks [@dome4](https://github.com/dome4)
1597
+ - `insertLocal()` not emitted the state change across tabs
1598
+
1599
+ Other:
1600
+ - Added `name` identifier to `RxPlugin`
1601
+ - Throw error when `dev-mode` plugin is added multiple times because there is no way that this was done intentional likely the developer has mixed core and default usage of RxDB.
1602
+ - Fix reported security problem with the query builders mquery api.
1603
+
1604
+ ### 9.10.1 (23 November 2020)
1605
+
1606
+ Other:
1607
+ - Additional refactorings to improve collection creation speed
1608
+
1609
+ ### 9.10.0 (23 November 2020)
1610
+
1611
+ Features:
1612
+ - Added `RxCollection.getLocal$()` and `RxDatabase.getLocal$()` to observe local documents.
1613
+ - Added `RxDatabase.addCollections()` to create multiple collections at once. Is faster and better typed than the now deprecated `RxDatabase.collection()`
1614
+
1615
+ Other:
1616
+ - Improved typings for `pouchdb.changes()`
1617
+ - Moved from travisci to github actions
1618
+
1619
+ ### 9.9.0 (10 November 2020)
1620
+
1621
+ Other:
1622
+ - Improved startup performance by doing a index-exist check
1623
+ - Added check for `properties` to dev-mode schema check
1624
+ - Add better checks for query input in dev-mode
1625
+
1626
+ ### 9.8.0 (2 November 2020)
1627
+
1628
+ Features:
1629
+ - Added subscription parameters for `graphQLSchemaFromRxSchema()`
1630
+ - Added [RxDocument.atomicPatch()](https://rxdb.info/rx-document.html#atomicpatch)
1631
+
1632
+ Bugfixes:
1633
+ - (types) Returned values of `syncGraphQL()` did not type-match with `RxGraphQLReplicationState`
1634
+ - `RxDocument.atomicUpdate()` now does a retry on 409 write conflicts
1635
+
1636
+ Other:
1637
+ - Added authentication to graphql example
1638
+ - Deprecated `RxDocument.atomicSet()`. Used `atomicPatch` instead, it works better with typescript
1639
+ - (docs) added workarounds for 6-connection limit at couchdb replication [#2659](https://github.com/pubkey/rxdb/pull/2659). Thanks [@MuresanSergiu](https://github.com/MuresanSergiu)
1640
+
1641
+ ### 9.7.1 (22 October 2020)
1642
+
1643
+ Bugfixes:
1644
+ - Server-Plugin: Replication did not work until there is at least one document.
1645
+ - Fix skipping docs in graphql push replication [#2627](https://github.com/pubkey/rxdb/pull/2627) Thanks [@DDoerner](https://github.com/DDoerner)
1646
+
1647
+ ### 9.7.0 (21 October 2020)
1648
+
1649
+ Bugfixes:
1650
+ - `RxLocalDocument.$` emitted to often on changes [#2471](https://github.com/pubkey/rxdb/issues/2471)
1651
+ - Fix typings of `RxReplicationState.collection`
1652
+
1653
+ Features:
1654
+ - Allow to skip docs in push/pull modifiers with the graphql-replication. [#2552](https://github.com/pubkey/rxdb/issues/2552) Thanks [@DDoerner](https://github.com/DDoerner)
1655
+ - Allow to type the data of `RxLocalDocument` like `myDatabase.getLocal<{foo: string}>('bar')`
1656
+
1657
+ Other:
1658
+ - Refactored GraphQL replication to run faster [#2524](https://github.com/pubkey/rxdb/pull/2524/) Thanks [@corinv](https://github.com/corinv)
1659
+
1660
+ ### 9.6.0 (7 September 2020)
1661
+
1662
+ Features:
1663
+ - Add `RxReplicationState.setHeaders()` [#2399](https://github.com/pubkey/rxdb/pull/2399/) Thanks [@DDoerner](https://github.com/DDoerner)
1664
+ - Added `RxCollection.findByIds$()` [see](./docs-src/tutorials/rx-collection.md#findbyids$)
1665
+
1666
+ Bugfixes:
1667
+ - wrong key handling on compound indexes [#2456](https://github.com/pubkey/rxdb/pull/2456/) Thanks [@dome4](https://github.com/dome4)
1668
+ - Nested `$or` queries where broken when they used the primaryKey in the selector
1669
+
1670
+ ### 9.5.0 (2 August 2020)
1671
+
1672
+ Other:
1673
+ - Upgraded pouchdb to `7.2.2`
1674
+ - Upgraded typescript to `3.9.7`
1675
+
1676
+ ### 9.4.0 (24 July 2020)
1677
+
1678
+ Features:
1679
+ - Add cache-replacement-policy for the [QueryCache](https://pubkey.github.io/rxdb/query-cache.html)
1680
+ - GraphQL replication async modifier function [#2367](https://github.com/pubkey/rxdb/issues/2367)
1681
+
1682
+ Bugfixes:
1683
+ - GraphQL replication run increasing requests when offline [#2336](https://github.com/pubkey/rxdb/issues/2336)
1684
+
1685
+ ### 9.3.0 (26 June 2020)
1686
+
1687
+ Features:
1688
+ - Added (beta) `RxCollection.findByIds()` to get many documents by their id with a better performance.
1689
+
1690
+ Other:
1691
+ - Added typings for `pouch.allDocs()`
1692
+
1693
+ ### 9.2.0 (21 June 2020)
1694
+
1695
+ Bugfixes:
1696
+ - `ref`-fields must be nullable [#2285](https://github.com/pubkey/rxdb/pull/2285/) Thanks [@kunal15595](https://github.com/DDoerner)
1697
+ - RxDatabase names can no longer end with a slash [#2251](https://github.com/pubkey/rxdb/issues/2251) which breaks the server plugin.
1698
+
1699
+ Other:
1700
+ - Added `"sideEffects": false` to all plugins
1701
+
1702
+ ### 9.1.0 (31 May 2020)
1703
+
1704
+ Features:
1705
+ - `RxDatabase.server()` does now accept `pouchdbExpressOptions` to set the log file and other stuff configured [on express-pouchdb](https://github.com/pouchdb/pouchdb-server#api)
1706
+
1707
+ Bugfixes:
1708
+ - prepareQuery should handle all comparison operators [#2213](https://github.com/pubkey/rxdb/pull/2213/) Thanks [@kunal15595](https://github.com/kunal15595)
1709
+
1710
+ Other:
1711
+ - Added webpack [tree shaking optimization](https://webpack.js.org/guides/tree-shaking/#clarifying-tree-shaking-and-sideeffects) via `sideEffects: false`
1712
+
1713
+ ### 9.0.0 (16 May 2020) BREAKING [read the announcement](./docs-src/releases/9.0.0.md)
1714
+
1715
+ Features:
1716
+ - Added `RxQuery.exec(throwIfMissing: true)`
1717
+ - Added helper functions to [GraphQL replication](https://rxdb.info/replication-graphql.html) to generate GraphQL Schemas from the `RxJsonSchema`
1718
+
1719
+ Bugfixes:
1720
+ - GraphQL replication plugin fires exponentially [#2048](https://github.com/pubkey/rxdb/issues/2048)
1721
+ - When a `default` is set in the schema, the default values are also applied after `atomicUpdate()` and `atomicSet()`
1722
+
1723
+ Breaking:
1724
+ - Indexes are now specified at the top-level of the schema-definition. [#1655](https://github.com/pubkey/rxdb/issues/1655)
1725
+ - Encrypted fields are now specified at the top-level of the schema-definition
1726
+ - Removed all default exports. Please only import the stuff that you really need.
1727
+ - Renamed `RxDB.create()` to `createRxDatabase()`
1728
+ - Renamed `removeDatabase()` to `removeRxDatabase()`
1729
+ - Renamed `plugin()` to `addRxPlugin()`
1730
+ - Replaced plugins `error-messages` and `schema-check` with [dev-mode](https://pubkey.github.io/rxdb/custom-build.html#dev-mode)
1731
+ - Moved data migration from core to migration plugin
1732
+ - Replaced key-compression implementation with [jsonschema-key-compression](https://github.com/pubkey/jsonschema-key-compression)
1733
+ - Renamed `RxDatabase.queryChangeDetection` to `eventReduce` and set default to `true` (no beta anymore)
1734
+ - Change `.find()` and `.findOne()` to acccept a full MangoQuery with `sort` and `limit` instead of just the selector
1735
+ - Chained queries like `collection.find().where('x').eq('foo')` moved out of the core module into the query-builder plugin
1736
+ - The internal `hash()` function does now use a RxDB specific salt
1737
+ - Change default of `RxDocument().toJSON(withRevAndAttachments)` to `false`
1738
+ - Refactored `RxCollection`
1739
+ - Creating a collection will no longer emit an `RxChangeEvent`
1740
+ - Removed `RxCollection.docChanges$()` because all events are from the docs
1741
+ - Renamed `RxSchema.jsonID` to `RxSchema.jsonSchema`
1742
+ - Moved remaining stuff of leader-election from core into the plugin
1743
+ - Merged multiple internal databases for metadata into one `internalStore`
1744
+ - In dev-mode, the GraphQL-replication will run a schema validation of each document that comes from the server
1745
+
1746
+ Other:
1747
+ - Removed many runtime type checks that now should be covered by typescript in buildtime
1748
+ - The GraphQL replication is now out of beta mode
1749
+
1750
+ Docs:
1751
+ - Removed examples for `require()` CommonJS loading
1752
+
1753
+ ### 8.9.0 (14 March 2020)
1754
+
1755
+ Other:
1756
+ - The server plugin now exposes the `pouchApp` [#1992](https://github.com/pubkey/rxdb/pull/1992) Thanks [@Julusian](https://github.com/Julusian)
1757
+
1758
+ Features:
1759
+ - Added option to replicate revisions with graphql-replication [#2000](https://github.com/pubkey/rxdb/pull/2000) Thanks [@gautambt](https://github.com/gautambt)
1760
+
1761
+ ### 8.8.0 (5 March 2020)
1762
+
1763
+ Other:
1764
+ - Upgraded PouchDB and other dependencies
1765
+
1766
+ ### 8.7.5 (6 January 2020)
1767
+
1768
+ Other:
1769
+ - Added a new example for electron with the remote API. Thanks [@SebastienWae](https://github.com/SebastienWae)
1770
+ - Fixed Typing error on `database.dump()` [#1754](https://github.com/pubkey/rxdb/issues/1754). Thanks [@PVermeer](https://github.com/PVermeer)
1771
+
1772
+ Bugfixes:
1773
+ - Updates to documents fail with GraphQL replication. [#1812](https://github.com/pubkey/rxdb/issues/1812). Thanks [@gautambt](https://github.com/gautambt)
1774
+ - `RxQuery.doesDocumentDataMatch()` was wrong on queries with `$and` which lead to a wrong result with QueryChangeDetection
1775
+
1776
+ ### 8.7.4 (2 December 2019)
1777
+
1778
+ Other:
1779
+ - Improved performance of `QueryChangeDetection` by using [array-push-at-sort-position](https://github.com/pubkey/array-push-at-sort-position) instead of re-sorting the whole results of a query
1780
+ - Improved performance by removing unnecessary calls to deep-clone
1781
+
1782
+ ### 8.7.3 (10 November 2019)
1783
+
1784
+ Features:
1785
+ - Added `RxCollection.bulkInsert()`
1786
+
1787
+ Bugfixes:
1788
+ - Fix replication of migrated schemas in the server plugin
1789
+
1790
+ ### 8.7.2 (24 October 2019)
1791
+
1792
+ Bugfixes:
1793
+ - GraphQL replication sometimes not pushes when a big amount of documents has been pulled before
1794
+ - Fixed typings of PouchdbReplicationOptions
1795
+
1796
+ Other:
1797
+ - Upgrade pouchdb to `7.1.1`
1798
+ - Refactor some internals
1799
+
1800
+ ### 8.7.1 (18 October 2019)
1801
+
1802
+ Other:
1803
+ - Json-Import now uses `bulkDocs` for better performance
1804
+ - Refactored prototype merging so it can be optimised later
1805
+ - Moved some check into the check-plugin to optimize production build size
1806
+ - Refactor schema-validation-plugins since sub-path validation is no longer needed
1807
+
1808
+ ### 8.7.0 (11 October 2019)
1809
+
1810
+ Features:
1811
+ - RxDB server can now be used with an existing express-app. [#1448](https://github.com/pubkey/rxdb/issues/1448) Thanks [@dstudzinski](https://github.com/dstudzinski)
1812
+ - Wrapped pouchdb conflict error into `RxError`
1813
+
1814
+ Other:
1815
+ - Fixed typings of `RxError` parameters
1816
+ - Fix GraphQL-example to propper use Websocket-Pub-Sub
1817
+
1818
+ ### 8.6.0 (4 October 2019)
1819
+
1820
+ - Migrated to typescript.
1821
+ - Fixed import of `@types/pouchdb-core` and `@types/pouchdb-find`
1822
+
1823
+ Bugfixes:
1824
+ - Fixed typings of `preCreateRxCollection` [#1533](https://github.com/pubkey/rxdb/issues/1533) Thanks [@yanshiyason](https://github.com/yanshiyason)
1825
+
1826
+ ### 8.5.0 (18 September 2019)
1827
+
1828
+ Features:
1829
+ - Add ability to use `server` app as a part of bigger Express app [#1448](https://github.com/pubkey/rxdb/issues/1448) Thanks [@dstudzinski](https://github.com/dstudzinski)
1830
+
1831
+ Bugfixes:
1832
+ - custom server path not working on `server`-plugin [#1447](https://github.com/pubkey/rxdb/issues/1447) Thanks [@dstudzinski](https://github.com/dstudzinski)
1833
+ - Fix CORS headers when the request's credentials mode is 'include' [#1450](https://github.com/pubkey/rxdb/issues/1450) Thanks [@dstudzinski](https://github.com/dstudzinski)
1834
+
1835
+ Other:
1836
+ - Improved `QueryChangeDetection` to not run on irrelevant changes
1837
+
1838
+ ### 8.4.0 (1 September 2019)
1839
+
1840
+ Bugfixes:
1841
+ - Fix imports of encryption-plugin to work with rollup [#1413](https://github.com/pubkey/rxdb/issues/1413) Thanks [@kenshyx](https://github.com/kenshyx)
1842
+ - Removed `express-pouchdb` from the dependencies [#884](https://github.com/pubkey/rxdb/issues/884)
1843
+
1844
+ ### 8.3.1 (23 August 2019)
1845
+
1846
+ Features:
1847
+ - Added `RxQuery.doesDocumentDataMatch()` [read the docs](https://rxdb.info/rx-query.html#doesdocumentdatamatch)
1848
+
1849
+ Bugfixes:
1850
+ - Attachments not working in electron renderer with IndexedDb adapter [#1371](https://github.com/pubkey/rxdb/issues/1371) Thanks [@rixo](https://github.com/rixo)
1851
+ - json export/import not working when a document has attachments [#1396](https://github.com/pubkey/rxdb/pull/1396) Thanks [@rixo](https://github.com/rixo)
1852
+
1853
+ Other:
1854
+ - Improved performance of query-change-detection by reusing the result of `massageSelector`
1855
+
1856
+ ### 8.3.0 (5 August 2019)
1857
+
1858
+ Features:
1859
+ - Added a plugin for [GraphQL-replication](https://rxdb.info/replication-graphql.html)
1860
+
1861
+ Bugfixes:
1862
+ - .populate() returns findOne() on empty string. This results in a random find [#1325](https://github.com/pubkey/rxdb/issues/1325) Thanks [@PVermeer](https://github.com/PVermeer)
1863
+
1864
+ ### 8.2.1 (5 July 2019)
1865
+
1866
+ Features:
1867
+ - Add a [z-schema](https://github.com/zaggino/z-schema) validator plugin [#1157](https://github.com/pubkey/rxdb/pull/1157). Thanks [@phil-lgr](https://github.com/phil-lgr)
1868
+
1869
+ Bugfixes:
1870
+ - Collection change event was emitted before the actual change happened [#1225](https://github.com/pubkey/rxdb/pull/1225). Thanks [@milanpro](https://github.com/milanpro)
1871
+
1872
+ Typings:
1873
+ - ADD typings to access the `PouchSyncHandler` of `RxReplicationState`
1874
+
1875
+ ### 8.2.0 (21 May 2019)
1876
+
1877
+ Bugfixes:
1878
+ - Vue devtools broke the application [#1126](https://github.com/pubkey/rxdb/issues/1126)
1879
+
1880
+ Typings:
1881
+ - `RxDocument.getAttachment()` and `RxDocument.allAttachments()` did not return promises
1882
+ - ADD RxJsonSchema<T> generic for better TypeScript experience
1883
+
1884
+ ### 8.1.0 (22 April 2019)
1885
+
1886
+ Bugfixes:
1887
+ - Server-plugin did not work with absolute paths and leveldb
1888
+ - Vue threw `get is not a function` when a RxDocument was added to a component's state
1889
+ - `RxDocument.allAttachments()` did throw an error when the document has no `RxAttachment`
1890
+ - `RxDocument.toJSON(false)` does no longer return the `_attachments` attribute
1891
+
1892
+ ### 8.0.7 (6 April 2019)
1893
+
1894
+ Bugfixes:
1895
+ - Fix creating a collection mutates to arguments object [#939](https://github.com/pubkey/rxdb/pull/939)
1896
+ - Fix not having optional encrypted fields in a document throws an error [#917](https://github.com/pubkey/rxdb/issues/917)
1897
+
1898
+ ### 8.0.6 (20 March 2019)
1899
+
1900
+ Features:
1901
+ - `RxDocument().toJSON()` can be called with `.toJSON(false)` and then returns not `_rev` attribute
1902
+
1903
+ Bugfixes:
1904
+ - (typings) Fix `additionalProperties: boolean` is allowed for nested objects
1905
+ - (typings) Fix `RxQuery().toJSON()'` was missing
1906
+
1907
+ ### 8.0.5 (7 February 2019)
1908
+
1909
+ Bugfixes:
1910
+ - Calling `remove()` on a deleted RxDocument should return a rejected promise [#830](https://github.com/pubkey/rxdb/issues/830)
1911
+ - Passing `auto_compaction` to a collection did not work [via gitter](https://gitter.im/pubkey/rxdb?at=5c42f3dd0721b912a5a4366b)
1912
+ - `util` missing in react-native [#890](https://github.com/pubkey/rxdb/pull/890)
1913
+
1914
+ ### 8.0.4 (13 November 2018)
1915
+
1916
+ Bugfixes:
1917
+ - Updated the dependencies with some bugfixes
1918
+
1919
+ ### 8.0.3 (29. October 2018)
1920
+
1921
+ Bugfixes:
1922
+ - Reopening a database after using the wrong password did not work [#837](https://github.com/pubkey/rxdb/issues/837)
1923
+
1924
+ ### 8.0.2 (7. October 2018)
1925
+
1926
+ Features:
1927
+ - Allow to use `_id` as primary field [#824](https://github.com/pubkey/rxdb/pull/824). Thanks [@will118](https://github.com/will118)
1928
+
1929
+ Bugfixes:
1930
+ - `RxDB.removeDatabase()` did not return a Promise [#822](https://github.com/pubkey/rxdb/pull/822). Thanks [@will118](https://github.com/will118)
1931
+
1932
+ ### 8.0.1 (21. September 2018)
1933
+
1934
+ Bugfixes:
1935
+ - Does not compile in TypeScript with strict flag enabled [#448](https://github.com/pubkey/rxdb/issues/448)
1936
+
1937
+ ### 8.0.0 (18. September 2018) BREAKING [read the announcement](./docs-src/releases/8.0.0.md)
1938
+
1939
+ Breaking:
1940
+ - Upgraded to [pouchdb 7.0.0](https://pouchdb.com/2018/06/21/pouchdb-7.0.0.html)
1941
+ - `disableKeyCompression` is renamed to `keyCompression` which defaults to `false`
1942
+ - `RxDatabase.collection()` now only accepts the json-schema as schema-attribute
1943
+ - It is no longer allowed to set required fields via `required: true`, use `required: ['myfield']` in compliance with the jsonschema standard
1944
+ - QueryChangeDetection is not enabled in the RxDatabase-options `queryChangeDetection: true`
1945
+ - Setters and `save()` are only callable on temporary documents
1946
+ - Removed `RxDocument.synced$` and `RxDocument.resync()`
1947
+ - Middleware-Hooks now have `plainJson` as first parameter and `RxDocument`-instance as second
1948
+ - Typings have been modified, [see](./docs-src/tutorials/typescript.md)
1949
+ - `postCreateRxDocument`-hooks will not be awaited if they are async
1950
+
1951
+ Features:
1952
+ - Added `RxDocument.atomicSet()`
1953
+ - Added `RxCollection.awaitPersistence()` for in-memory-collections
1954
+ - Added `RxReplicationState.denied$` [#763](https://github.com/pubkey/rxdb/issues/763)
1955
+ - Added option for CORS to server-plugin
1956
+ - `this`-scope of collection-hooks are bound to the collection itself [#788](https://github.com/pubkey/rxdb/issues/788)
1957
+ - All methods of `RxDocument` are bound to the instance [#791](https://github.com/pubkey/rxdb/issues/791)
1958
+ - Added `RxReplicationState.alive$`, [see](./docs-src/replication.md#alive). Thanks [@rafamel](https://github.com/rafamel)
1959
+
1960
+ Bugfixes:
1961
+ - checkAdapter doesn't cleanup test databases [#714](https://github.com/pubkey/rxdb/issues/714)
1962
+ - inMemory collections don't implement static methods [#744](https://github.com/pubkey/rxdb/issues/744)
1963
+ - inMemory collections do not sync up removals [#754](https://github.com/pubkey/rxdb/issues/754)
1964
+ - Ensure `final` fields cannot be changed on `RxDocument.atomicUpdate()` and `RxDocument.update()`
1965
+ - Fixed a missing dependency on the server-plugin
1966
+
1967
+ Other:
1968
+ - cross-instance communication is now done with https://github.com/pubkey/broadcast-channel (way better performance)
1969
+ - Upgrade to eslint 5 (no more babel-eslint)
1970
+ - Upgrade to babel7
1971
+ - Refactored `plugins/replication/.watchForChanges()` to fix sometimes-breaking-test with `RxReplicationState.complete$`
1972
+ - Split `RxCollection.watchForChanges()` into own plugin
1973
+ - Refactored `RxQuery`
1974
+
1975
+ ### 7.7.1 (August 1, 2018)
1976
+
1977
+ Bugfixes:
1978
+ - newRxError is not a constructor [#719](https://github.com/pubkey/rxdb/issues/719) thanks [@errorx666](https://github.com/errorx666)
1979
+ - Collection name validation is too strict [#720](https://github.com/pubkey/rxdb/issues/720) thanks [@errorx666](https://github.com/errorx666)
1980
+ - Field names can't be one character long [#717](https://github.com/pubkey/rxdb/issues/717) thanks [@errorx666](https://github.com/errorx666)
1981
+ - Invalid value persists in document after failed update [#734](https://github.com/pubkey/rxdb/issues/734) thanks [@rybaczewa](https://github.com/rybaczewa)
1982
+
1983
+ Other
1984
+ - Moved `@types/core-js` to dev-dependencies [#712](https://github.com/pubkey/rxdb/issues/712)
1985
+ - Added more example the the RxQuery-Docs [#740](https://github.com/pubkey/rxdb/pull/740) thanks [@Celludriel](https://github.com/Celludriel)
1986
+
1987
+ ### 7.7.0 (July 6, 2018)
1988
+
1989
+ Bugfixes:
1990
+ - Indexes do not work in objects named "properties" [#697](https://github.com/pubkey/rxdb/issues/697)
1991
+ - Wrong pouch-location when folderpath used for collection [#677](https://github.com/pubkey/rxdb/issues/677)
1992
+ - Mutating a result-array from `RxQuery.exec()` or `RxQuery.$` does not affect future calls [#698#issuecomment-402604237](https://github.com/pubkey/rxdb/issues/698#issuecomment-402604237)
1993
+
1994
+ Other:
1995
+ - Updated Angular-Example to 6.0.5 Thanks [@fuerst](https://github.com/fuerst)
1996
+
1997
+ ### 7.6.1 (May 26, 2018)
1998
+
1999
+ Bugfixes:
2000
+ - Unhandled promise rejection with DOMException [#644](https://github.com/pubkey/rxdb/issues/644)
2001
+ - Prevent bug with replication of internal pouchdb's [#641](https://github.com/pubkey/rxdb/pull/641)
2002
+ - LocalDocument observe on field not working [#661](https://github.com/pubkey/rxdb/issues/661)
2003
+ - Skip defining getter and setter when property not defined in schema [#646](https://github.com/pubkey/rxdb/pull/646)
2004
+ - (typings) Fix `type: 'object'` not correctly recognized (via gitter at 2018 Mai 22 19:20)
2005
+
2006
+ ### 7.6.0 (May 12, 2018)
2007
+
2008
+ Bugfixes:
2009
+ - Query cache is not being invalidated by replication [#630](https://github.com/pubkey/rxdb/issues/630)
2010
+
2011
+ Other:
2012
+ - Updated to rxjs 6.0.0
2013
+ - Added integration tests for couchdb
2014
+
2015
+ ### 7.5.1 (May 3, 2018)
2016
+
2017
+ Bugfixes:
2018
+ - Indexes are no longer required thx [@gvuyk](https://github.com/gvuyk) [#620](https://github.com/pubkey/rxdb/issues/620)
2019
+
2020
+ Other:
2021
+ - Fixed typings for `additionalProperties` in schemas
2022
+ - Added performance-tests
2023
+ - Removed workarround for [pouchdb#6733](https://github.com/pouchdb/pouchdb/issues/6733)
2024
+
2025
+ Typings:
2026
+ - Added optional type for ORM-Methods
2027
+
2028
+ ### 7.5.0 (April 24, 2018)
2029
+
2030
+ Features:
2031
+ - Added `RxCollection.insert$`, `RxCollection.update$`, `RxCollection.remove$` [read the docs](https://rxdb.info/rx-collection.html#observe-)
2032
+
2033
+ Other:
2034
+ - Added `dangerousRemoveCollectionInfo()` for migrations over rxdb-versions.
2035
+ - Improved typings for `RxChangeEvent`
2036
+
2037
+ ### 7.4.4 (April 18, 2018)
2038
+
2039
+ Bugfixes:
2040
+ - Wrong index used when no sort specified [#609](https://github.com/pubkey/rxdb/issues/609)
2041
+
2042
+ Other:
2043
+ - Improved typings of `RxChangeEvent` thx [@hubgit](https://github.com/hubgit)
2044
+
2045
+ ### 7.4.3 (April 7,2018)
2046
+
2047
+ Bugfixes:
2048
+ - Sort by sub object is not working [#585](https://github.com/pubkey/rxdb/issues/585)
2049
+ - Encrypted attachments not working inside of electron-renderer [#587](https://github.com/pubkey/rxdb/issues/587)
2050
+ - Schema fails with sub-sub-index [#590](https://github.com/pubkey/rxdb/issues/590)
2051
+ - Default value not applied when the stored value is `undefined` [#596](https://github.com/pubkey/rxdb/issues/596)
2052
+
2053
+ ### 7.4.2 (March 22, 2018)
2054
+
2055
+ Bugfixes:
2056
+ - Wrong typings with custom build [#576](https://github.com/pubkey/rxdb/issues/576)
2057
+
2058
+ Features:
2059
+ - Add option to add pouchSettings to all pouchdb-instances [#567](https://github.com/pubkey/rxdb/pull/567) Thx [@EugeniaM](https://github.com/EugeniaM)
2060
+
2061
+ ### 7.4.1 (March 11, 2018)
2062
+
2063
+ Bugfixes:
2064
+ - Remove preinstall-script [#558](https://github.com/pubkey/rxdb/issues/558) thx [@adam-lebon](https://github.com/adam-lebon)
2065
+
2066
+ ### 7.4.0 (March 9, 2018)
2067
+
2068
+ Features:
2069
+ - Added `RxDatabase.server()` to quickly spawn couchdb-compatibe endpoint out of RxDB. Read [this](https://pubkey.github.io/rxdb/custom-build.html#server)
2070
+ - Use `CustomIdleQueue` for atomic updates to enable [#494](https://github.com/pubkey/rxdb/issues/494)
2071
+
2072
+ Bugfixes:
2073
+ - Default ignored when `0` [#528](https://github.com/pubkey/rxdb/pull/528) thx [@gvuyk](https://github.com/gvuyk)
2074
+
2075
+ ### 7.3.3 (February 4, 2018)
2076
+
2077
+ Other:
2078
+ - Update to pouchdb version 6.4.3
2079
+ - Improve performance by using the profiler
2080
+ - Added typings for internal `pouchdb`-instance
2081
+
2082
+ ### 7.3.2 (January 25, 2018)
2083
+
2084
+ Features:
2085
+ - Upgraded to pouchdb 6.4.2. [Read this](https://pouchdb.com/2018/01/23/pouchdb-6.4.2.html)
2086
+
2087
+ Typings:
2088
+ - Fix `RxCollection.findOne()` can return `null`
2089
+
2090
+ Other:
2091
+ - Improved [react-native-example](https://github.com/pubkey/rxdb/tree/master/examples/react-native) thx [@Darkbladecr](https://github.com/Darkbladecr)
2092
+
2093
+ ### 7.3.1 (January 3, 2018)
2094
+
2095
+ Bugfixes:
2096
+ - Allow `number`-fields as index [#438](https://github.com/pubkey/rxdb/pull/438)
2097
+ - Ensure typescript `strict: true` works [#448](https://github.com/pubkey/rxdb/issues/448)
2098
+
2099
+ ### 7.3.0 (December 18, 2017)
2100
+
2101
+ Features:
2102
+ - Added [ajv-validate](https://pubkey.github.io/rxdb/custom-build.html#ajv-validate)-plugin. Thx [@rybaczewa](https://github.com/rybaczewa)
2103
+
2104
+ Bugfixes:
2105
+ - inMemory() throws error when using primary-key [#401](https://github.com/pubkey/rxdb/issues/401)
2106
+
2107
+ Other:
2108
+ - Update to pouchdb [6.4.0](https://pouchdb.com/2017/12/16/pouchdb-6.4.0.html)
2109
+ - Optimize socket-pull by comparing internal last-change-time
2110
+ - do not hide fields with `value: undefined` in error-message [#403](https://github.com/pubkey/rxdb/issues/403)
2111
+
2112
+ ## 7.2.0 (December 7, 2017)
2113
+
2114
+ Warning:
2115
+ - Removed automatic import of `pouchdb-adapter-memory` for in-memory-collections. Read [this](https://pubkey.github.io/rxdb/in-memory.html)
2116
+
2117
+ Features:
2118
+ - Added [options-parameter](https://pubkey.github.io/rxdb/plugins.html#options)
2119
+ - Added `postCreateRxDocument` [plugin-hook](https://github.com/pubkey/rxdb/blob/master/src/hooks.js)
2120
+ - Added [no-validate-plugin](https://pubkey.github.io/rxdb/custom-build.html#no-validate)
2121
+ - Added typings for `RxPlugin`
2122
+
2123
+ Bugfixes:
2124
+ - Query-Cache not used when declaring queries without mango-chain
2125
+
2126
+ Other:
2127
+ - Do not throw errors if the same plugin is added multiple times
2128
+ - Allow getting the collection via `RxDatabase().collection(name: string)`
2129
+ - Allow recreating the collection with different schema, if it has no documents
2130
+ - Split out error-messages into separate [own plugin](https://pubkey.github.io/rxdb/custom-build.html#error-messages)
2131
+
2132
+ ## 7.1.1 (November 27, 2017)
2133
+
2134
+ Bugfixes:
2135
+ - Error on key-compression when nested value is null
2136
+ - Fix typings of `RxDocument.putAttachment()`
2137
+
2138
+ ## 7.1.0 (November 22, 2017)
2139
+
2140
+ Other:
2141
+ - Reduced build-size by using [rxjs-lettable-operators](https://github.com/ReactiveX/rxjs/blob/master/doc/lettable-operators.md). Read [this](https://github.com/pubkey/rxdb/blob/master/docs-src/install.md#rxjs) if you have problems.
2142
+ - Improved typings [#368](https://github.com/pubkey/rxdb/pull/368) thx [@FlorianKoerner](https://github.com/FlorianKoerner)
2143
+
2144
+ ## 7.0.1 (November 14, 2017)
2145
+
2146
+ Bugfixes:
2147
+ - Include `pouchdb-adapter-memory` as dependency [#365](https://github.com/pubkey/rxdb/issues/365)
2148
+
2149
+ ## 7.0.0 (November 14, 2017)
2150
+
2151
+ Breaking:
2152
+ - Renamed `ingoreDuplicate` to `ingoreDuplicate` [#314](https://github.com/pubkey/rxdb/issues/314)
2153
+ - Improved typings [#329](https://github.com/pubkey/rxdb/pull/329) by [@ihadeed](https://github.com/ihadeed)
2154
+
2155
+ Features:
2156
+ - Added [attachments](https://pubkey.github.io/rxdb/rx-attachment.html)
2157
+ - Added [final fields](https://pubkey.github.io/rxdb/rx-schema.html#final)
2158
+ - Added [inMemory](https://pubkey.github.io/rxdb/in-memory.html)-collections
2159
+ - Added [local documents](https://pubkey.github.io/rxdb/rx-local-document.html)
2160
+
2161
+ Bugfixes:
2162
+ - Added error-message when you json-import on a non-existing collection [#319](https://github.com/pubkey/rxdb/issues/319)
2163
+ - Allow windows-foldernames (with backslash) as collection-name [343](https://github.com/pubkey/rxdb/issues/343)
2164
+
2165
+ Other:
2166
+ - Split out idle-queue into own [npm-module](http://npmjs.com/package/custom-idle-queue)
2167
+ - Enfore usage of strict-equality via eslint
2168
+
2169
+ ## 6.0.1 (September 20, 2017)
2170
+
2171
+ - Fix `core is not defined` [#296](https://github.com/pubkey/rxdb/issues/296)
2172
+
2173
+ ## 6.0.0 (September 19, 2017) BREAKING
2174
+
2175
+ Breaking:
2176
+ - Filenames are now kebab-case
2177
+ - `pouchdb-replication`-plugin is now imported by default, do not import it by your own.
2178
+ - `RxDB.create()` throws if you create the same database twice. (You can use [ignoreDuplicate](https://pubkey.github.io/rxdb/rx-database.html#ignoreduplicate))
2179
+
2180
+ Features:
2181
+ - Added [RxDatabase.requestIdlePromise()](https://pubkey.github.io/rxdb/rx-database.html#requestidlepromise)
2182
+ - Added [RxDB.checkAdapter()](https://pubkey.github.io/rxdb/rx-database.html#checkadapter)
2183
+ - Added [ignoreDuplicate](https://pubkey.github.io/rxdb/rx-database.html#ignoreduplicate)-parameter to `RxDB.create()`
2184
+
2185
+ Custom-Build:
2186
+ - Custom-build is now out of beta
2187
+ - If you use a custom-build, you have to change the import-paths. See [custom-build](https://pubkey.github.io/rxdb/custom-build.html)
2188
+ - Replication is now its own module [see](https://pubkey.github.io/rxdb/custom-build.html#replication)
2189
+ - Json import/exportis now its own module [see](https://pubkey.github.io/rxdb/custom-build.html#json-dump)
2190
+
2191
+ Bugfixes:
2192
+ - Allow null-selector [#267](https://github.com/pubkey/rxdb/issues/267)
2193
+ - `RxQuery.exec()` throws when out of change-event-buffer-bounds [#278](https://github.com/pubkey/rxdb/issues/278)
2194
+ - Fix deprecated warning that sometimes occurs with indexeddb-adapter `db.type()`
2195
+ - Add fallback to leader-election when [unload](https://github.com/pubkey/unload) not works (mostly when you use RxDB inside of an iFrame)
2196
+
2197
+ Other:
2198
+ - Use `RxError`-class to throw Custom errors with the `parameters`-attribute
2199
+ - Optimize leader-election to not waste resources when many tabs open
2200
+ - Optimize schema-parsing when multiple collections have the same schema
2201
+ - Reduced build-size by only using async/await if it makes sense
2202
+ - Pre-Parse schema to validator when [requestIdleCallback](https://developer.mozilla.org/de/docs/Web/API/Window/requestIdleCallback) available
2203
+ - Optimize socket-cleanup by using `requestIdlePromise`
2204
+ - Added plugin-hook for `preCreatePouchDb`
2205
+
2206
+ ## 5.3.0 (August 25, 2017)
2207
+
2208
+ Features:
2209
+ - Added [custom builds](https://pubkey.github.io/rxdb/custom-build.html)
2210
+ - Added [plugin-support](https://pubkey.github.io/rxdb/plugins.html)
2211
+ - Added default exports. Use `import RxDB from 'rxdb'` instead of `import * as RxDB from 'rxdb'`
2212
+
2213
+ Bugfixes:
2214
+ - `RxQuery.or()` did not work with KeyCompression [#252](https://github.com/pubkey/rxdb/issues/252)
2215
+
2216
+ ## 5.2.1 (July 17, 2017)
2217
+
2218
+ Quickfix because of new [pouchdb-import](https://github.com/pouchdb/pouchdb/issues/6603#issuecomment-315867346)
2219
+
2220
+ ## 5.2.0 (July 17, 2017)
2221
+
2222
+ Features:
2223
+ - Added [RxCollection.atomicUpsert](https://pubkey.github.io/rxdb/rx-collection.html#atomicupsert)
2224
+ - Added [default values](https://pubkey.github.io/rxdb/rx-schema.html#default)
2225
+ - Added generic typings so it's easier to be extended [see](https://github.com/pubkey/rxdb/blob/master/examples/angular2/app/src/RxDB.d.ts)
2226
+
2227
+ Other:
2228
+ - Split out test-util into its own npm-module [async-test-util](https://github.com/pubkey/async-test-util)
2229
+ - Upgrade to pouchdb version [6.3.4](https://github.com/pouchdb/pouchdb/releases/tag/6.3.4)
2230
+
2231
+ Bugfixes:
2232
+ - Settings values to `null` did not work on temporaryDocuments [#215](https://github.com/pubkey/rxdb/issues/215)
2233
+ - `RxDocument.atomicUpdate()` did not run when reusing after a while
2234
+ - `RxQuery.toString()` was sometimes not predictable
2235
+
2236
+ **WARNING**: If you use RxDB with angular2||zone.js, you might have the error [_global is not defined](https://github.com/angular/zone.js/issues/835). Wait for the next zone.js release before updating RxDB.
2237
+
2238
+ ## 5.1.0 (July 10, 2017)
2239
+
2240
+ Features:
2241
+ - Added instanceOf-checks
2242
+
2243
+ Bugfixes:
2244
+ - AutoMigrated caused infinity-loop [#212](https://github.com/pubkey/rxdb/issues/212)
2245
+ - Minor bugs on the typings
2246
+
2247
+ Other:
2248
+ - Use [requestIdleCallback](https://developer.mozilla.org/de/docs/Web/API/Window/requestIdleCallback) on non-prio-tasks for better performance on browsers
2249
+ - Optimise socket-pull-intervall to not waste resources on slow devices
2250
+ - split out test-util from util to optimize build-size
2251
+ - remove lodash completely
2252
+
2253
+ ## 5.0.0 (June 20, 2017) BREAKING
2254
+
2255
+ Features:
2256
+ - Added `RxDocument.atomicUpdate()` [docs](https://pubkey.github.io/rxdb/rx-document.html#atomicUpdate)
2257
+ - Added `RxCollection.remove()` [docs](https://pubkey.github.io/rxdb/rx-collection.html#clear)
2258
+ - Added `RxDatabase.remove()` [docs](https://pubkey.github.io/rxdb/rx-database.html#remove)
2259
+ - Added options for `RxCollection.sync()`: direction and pouchdb-replication-settings [docs](https://pubkey.github.io/rxdb/rx-collection.html#sync)
2260
+ - Added query-param for `RxCollection.sync()` to allow selector-based replication [docs](https://pubkey.github.io/rxdb/rx-collection.html#sync)
2261
+ - Added TemporaryDocuments `RxCollection.newDocument()` [docs](https://pubkey.github.io/rxdb/rx-collection.html#newDocument)
2262
+
2263
+ Breaking:
2264
+ - `postCreate`-hooks can no longer be async
2265
+ - `RxCollection.sync()` completely changed [docs](https://pubkey.github.io/rxdb/replication.html)
2266
+
2267
+ Other:
2268
+ - Added .babelrc to .npmignore
2269
+ - Added build-tests to travis
2270
+
2271
+ ## 4.1.0 (June 7, 2017)
2272
+
2273
+ Features:
2274
+ - Added `postCreate`-[hook](https://pubkey.github.io/rxdb/middleware.html#postCreate) [#165](https://github.com/pubkey/rxdb/issues/165)
2275
+ - Added `RxQuery.update()` and `RxDocument.update()` [#143](https://github.com/pubkey/rxdb/issues/143) Thanks [@lgandecki](https://github.com/lgandecki)
2276
+
2277
+ Bugfixes:
2278
+ - QueryCache returns old RxQuery when `.regex()` is used [#190](https://github.com/pubkey/rxdb/issues/190)
2279
+ - `RxDocument.resync()` was broken [174](https://github.com/pubkey/rxdb/issues/174)
2280
+
2281
+ Other:
2282
+ - Throw error if `RxQuery.sort()` runs on field which is not in the schema [#146](https://github.com/pubkey/rxdb/issues/146)
2283
+ - extract `watchForChanges` to allow custom sync-operations [#197](https://github.com/pubkey/rxdb/pull/197)
2284
+ - Added [travis-ci](https://travis-ci.org/)
2285
+
2286
+ ## 4.0.2 (May 17, 2017)
2287
+
2288
+ Bugfixes:
2289
+ - Ensure es6-build does not contain es7-features
2290
+ - Ensure everything works after using UglifyJs
2291
+
2292
+ ## 4.0.1 (May 17, 2017)
2293
+
2294
+ Bugfixes:
2295
+ - `jsnext:main` and `module` now point to es6 instead of es7-stage-0 [commit](https://github.com/pubkey/rxdb/commit/d3a14cc417b04e32e2c534908dc62b0bcd654a5f) [issue](https://github.com/pubkey/rxdb/issues/172)
2296
+ - Sort on primary fails without non-id primary [commit](https://github.com/pubkey/rxdb/commit/59143a61530069f6e90ae203019d494d507330e9)
2297
+ - QueryChangeDetection breaks on no-resort-optimisation [commit](https://github.com/pubkey/rxdb/commit/c7f9b3e601d0bfbbde3ee410f00b017b4490dded)
2298
+
2299
+ ## 4.0.0 (May 5, 2017) BREAKING
2300
+
2301
+ Breaking:
2302
+ - RxQuery's are now [immutable](https://pubkey.github.io/rxdb/rx-query.html#notice-rxquerys-are-immutable)
2303
+ - RxQuery.$ does not emit `null` when running
2304
+ - RxQuery will sort by primary (ASC) as default
2305
+
2306
+ Features:
2307
+ - Added [QueryChangeDetection](https://pubkey.github.io/rxdb/query-change-detection.html) (in **beta**, disabled by default)
2308
+
2309
+ Other:
2310
+ - upgraded to pouchdb [v6.2.0](https://pouchdb.com/2017/04/20/pouchdb-6.2.0.html)
2311
+ - re-executing queries while nothing happend to the collection, is now fetched
2312
+
2313
+ ## 3.0.8 (April 20, 2017)
2314
+
2315
+ Bugfixes:
2316
+ - `findOne().$` did not have `limit:1`
2317
+ - `findOne(string).$` streams all documents when `_id` as primary
2318
+
2319
+ ## 3.0.7 (April 10, 2017)
2320
+
2321
+ Bugfixes:
2322
+ - Fixed es6-imports for webpack-builds
2323
+
2324
+ ## 3.0.6 (March 29, 2017)
2325
+
2326
+ Features:
2327
+ - [Population](https://pubkey.github.io/rxdb/population.html) can now be done on arrays
2328
+
2329
+ Other:
2330
+ - improved typings
2331
+
2332
+ ## 3.0.5 (March 21, 2017)
2333
+
2334
+ Bugfixes:
2335
+ - overwrites default selector on `RxQuery.sort()`
2336
+
2337
+ Other:
2338
+ - Refactor RxQuery for better performance
2339
+ - Refactor mquery for smaller build
2340
+ - More tests for RxQuery
2341
+
2342
+ ## 3.0.4 (March 12, 2017)
2343
+
2344
+ Bugfixes:
2345
+ - Vuejs runs populate-getter on changedetection [#75](https://github.com/pubkey/rxdb/issues/75)
2346
+ - `isDeepEqual` does not work correctly for Arrays [#76](https://github.com/pubkey/rxdb/issues/76)
2347
+ - wrong `storageEngine` in the typings
2348
+
2349
+ ## 3.0.3 (March 6, 2017)
2350
+
2351
+ Features:
2352
+ - Added RxDocument.[deleted](https://pubkey.github.io/rxdb/rx-document.html#get-deleted)
2353
+ - Added RxDocument.[synced](https://pubkey.github.io/rxdb/rx-document.html#get-synced)
2354
+ - moved from [jsonschema](https://www.npmjs.com/package/jsonschema) to [is-my-json-valid](https://www.npmjs.com/package/is-my-json-valid)
2355
+
2356
+ Bugfixes:
2357
+ - No error on sync when remote document is deleted [680f75bfcbda3f71b6ba0a95ceecdc6b6f30ba58](https://github.com/pubkey/rxdb/commit/680f75bfcbda3f71b6ba0a95ceecdc6b6f30ba58)
2358
+
2359
+ ## 3.0.2 (March 2, 2017)
2360
+
2361
+ Bugfixes:
2362
+ - compound-index not being created [#68](https://github.com/pubkey/rxdb/issues/68)
2363
+
2364
+ ## 3.0.1 (March 2, 2017)
2365
+
2366
+ Bugfixes:
2367
+ - new document does not get new state on remove-reinsert [#66](https://github.com/pubkey/rxdb/issues/66)
2368
+
2369
+ ## 3.0.0 (February 27, 2017) BREAKING
2370
+
2371
+ Features:
2372
+ - added [DataMigration](https://pubkey.github.io/rxdb/data-migration.html)
2373
+ - added [ORM/DRM](https://pubkey.github.io/rxdb/orm.html)-capabilities
2374
+ - added [RxQuery.remove()](https://pubkey.github.io/rxdb/rx-query.html)
2375
+ - added [Population](https://pubkey.github.io/rxdb/population.html)
2376
+ - added [RxDocument.deleted$](https://pubkey.github.io/rxdb/rx-document.html#deleted)
2377
+ - added [RxDocument.synced$](https://pubkey.github.io/rxdb/rx-document.html#synced)
2378
+ - added [RxDocument.resnyc()](https://pubkey.github.io/rxdb/rx-document.html#resync)
2379
+ - added [RxCollection.upsert()](https://pubkey.github.io/rxdb/rx-document.html#synced)
2380
+ - non-top-level-indexes are now allowed
2381
+ - `RxQuery.sort()` now works on non-top-level-indexes
2382
+
2383
+ Bugfixes:
2384
+ - running `RxDocument().save()` twice did not work
2385
+
2386
+ Breaking:
2387
+ - Collection-names must match `^[a-z][a-z0-9]*$` Fixes [#45](https://github.com/pubkey/rxdb/issues/45)
2388
+ - RxDB.create has new api with destructuring [see](https://pubkey.github.io/rxdb/rx-database.html)
2389
+ - RxDatabase.collection() has new api with destructuring [see](https://pubkey.github.io/rxdb/rx-database.html)
2390
+ - schema-fieldnames must match the regex: `^[a-zA-Z][[a-zA-Z0-9_]*]?[a-zA-Z0-9]$`
2391
+ - `RxDatabase.collection()` only to create collection, use `myDatabase.heroes` to get existing one
2392
+ - `RxDB.create()` multiInstance is now true by default
2393
+ - `rxjs` and `babel-polyfill` are now peerDependencies
2394
+
2395
+ ## 2.0.5 (February 25, 2017)
2396
+
2397
+ Features:
2398
+ - possibility to add `pouchSettings` when creating a collection
2399
+ - typings compatible with `noImplicitAny` Typescript projects
2400
+
2401
+ ## 2.0.4 (February 12, 2017)
2402
+
2403
+ Bugfixes:
2404
+ - top-level array of document not working [#50](https://github.com/pubkey/rxdb/issues/50)
2405
+ - event on document.remove() not fired at query-obserable [#52](https://github.com/pubkey/rxdb/issues/52)
2406
+
2407
+ ## 2.0.3 (January 31, 2017)
2408
+
2409
+ Features:
2410
+ - save full schema in internal database once
2411
+
2412
+ Bugfixes:
2413
+ - Throw when .findOne() is called with number or array
2414
+ - ADD babel-polyfill to dependencies [#40](https://github.com/pubkey/rxdb/issues/40)
2415
+
2416
+ ## 2.0.2 (January 27, 2017)
2417
+
2418
+ Bugfixes:
2419
+ - Throw when .regex() is used on primary
2420
+
2421
+ ## 2.0.1 (January 26, 2017)
2422
+
2423
+ Refactor:
2424
+ - Because IE11 does not support the Proxy-Object, [defineGetter/Setter](https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/Object/__defineGetter__) is now used
2425
+ - Tests now run in all installed browsers
2426
+
2427
+ Bugfixes:
2428
+ - Fixed tests for IE11
2429
+
2430
+ ## 2.0.0 (January 23, 2017) BREAKING
2431
+
2432
+ Features:
2433
+ - key-compression for better space-usage
2434
+
2435
+ Breaking:
2436
+ - schema-objects are now normalized (order alphabetic) before hashing
2437
+ - RxQuery.select() is removed since it has no better performance than getting the whole document
2438
+ - RxChangeEvent on sockets do no longer contain the documents-data for performance-reason
2439
+ - RxQuery.$ only emits when the result actually changes [#31](https://github.com/pubkey/rxdb/issues/31)
2440
+
2441
+ Bugfixes:
2442
+ - console.dir on RxDocument now works
2443
+
2444
+ ## 1.7.7 (January 13, 2017)
2445
+
2446
+ Features:
2447
+ - add [Proxy-wrapping arround RxDocument](https://pubkey.github.io/rxdb/rx-document.html)
2448
+
2449
+ ## 1.6.7 (January 11, 2017)
2450
+
2451
+ Features:
2452
+ - add [middleware-hooks](https://pubkey.github.io/rxdb/middleware.html)
2453
+
2454
+ ## 1.5.6 (December 22, 2016)
2455
+
2456
+ Bugfixes:
2457
+ - direct import 'url'-module for react native
2458
+
2459
+ ## 1.5.5 (December 20, 2016)
2460
+
2461
+ Features:
2462
+ - refactor socket to save db-io
2463
+ - wrap BroadcastChannel-API
2464
+ - added [leader-election](https://pubkey.github.io/rxdb/leader-election.html)
2465
+ - sync() will only start if db is leader
2466
+
2467
+ Bugfixes:
2468
+ - cleanup all databases after tests
2469
+ - remove broken builds from dist-folder