@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.
- package/AGENTS.md +54 -0
- package/CHANGELOG.md +2469 -0
- package/CLAUDE.md +63 -0
- package/LICENSE.txt +201 -0
- package/README.md +263 -0
- package/babel.config.js +58 -0
- package/dist/cjs/change-event-buffer.js +146 -0
- package/dist/cjs/change-event-buffer.js.map +1 -0
- package/dist/cjs/custom-index.js +284 -0
- package/dist/cjs/custom-index.js.map +1 -0
- package/dist/cjs/doc-cache.js +231 -0
- package/dist/cjs/doc-cache.js.map +1 -0
- package/dist/cjs/event-reduce.js +102 -0
- package/dist/cjs/event-reduce.js.map +1 -0
- package/dist/cjs/hooks.js +131 -0
- package/dist/cjs/hooks.js.map +1 -0
- package/dist/cjs/incremental-write.js +169 -0
- package/dist/cjs/incremental-write.js.map +1 -0
- package/dist/cjs/index.js +270 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/overwritable.js +39 -0
- package/dist/cjs/overwritable.js.map +1 -0
- package/dist/cjs/plugin-helpers.js +223 -0
- package/dist/cjs/plugin-helpers.js.map +1 -0
- package/dist/cjs/plugin.js +94 -0
- package/dist/cjs/plugin.js.map +1 -0
- package/dist/cjs/plugins/attachments/attachments-utils.js +49 -0
- package/dist/cjs/plugins/attachments/attachments-utils.js.map +1 -0
- package/dist/cjs/plugins/attachments/index.js +237 -0
- package/dist/cjs/plugins/attachments/index.js.map +1 -0
- package/dist/cjs/plugins/attachments-compression/index.js +143 -0
- package/dist/cjs/plugins/attachments-compression/index.js.map +1 -0
- package/dist/cjs/plugins/backup/file-util.js +102 -0
- package/dist/cjs/plugins/backup/file-util.js.map +1 -0
- package/dist/cjs/plugins/backup/index.js +206 -0
- package/dist/cjs/plugins/backup/index.js.map +1 -0
- package/dist/cjs/plugins/cleanup/cleanup-helper.js +17 -0
- package/dist/cjs/plugins/cleanup/cleanup-helper.js.map +1 -0
- package/dist/cjs/plugins/cleanup/cleanup-state.js +83 -0
- package/dist/cjs/plugins/cleanup/cleanup-state.js.map +1 -0
- package/dist/cjs/plugins/cleanup/cleanup.js +116 -0
- package/dist/cjs/plugins/cleanup/cleanup.js.map +1 -0
- package/dist/cjs/plugins/cleanup/index.js +64 -0
- package/dist/cjs/plugins/cleanup/index.js.map +1 -0
- package/dist/cjs/plugins/crdt/index.js +392 -0
- package/dist/cjs/plugins/crdt/index.js.map +1 -0
- package/dist/cjs/plugins/dev-mode/check-document.js +158 -0
- package/dist/cjs/plugins/dev-mode/check-document.js.map +1 -0
- package/dist/cjs/plugins/dev-mode/check-migration-strategies.js +43 -0
- package/dist/cjs/plugins/dev-mode/check-migration-strategies.js.map +1 -0
- package/dist/cjs/plugins/dev-mode/check-orm.js +53 -0
- package/dist/cjs/plugins/dev-mode/check-orm.js.map +1 -0
- package/dist/cjs/plugins/dev-mode/check-query.js +183 -0
- package/dist/cjs/plugins/dev-mode/check-query.js.map +1 -0
- package/dist/cjs/plugins/dev-mode/check-schema.js +487 -0
- package/dist/cjs/plugins/dev-mode/check-schema.js.map +1 -0
- package/dist/cjs/plugins/dev-mode/dev-mode-tracking.js +93 -0
- package/dist/cjs/plugins/dev-mode/dev-mode-tracking.js.map +1 -0
- package/dist/cjs/plugins/dev-mode/entity-properties.js +56 -0
- package/dist/cjs/plugins/dev-mode/entity-properties.js.map +1 -0
- package/dist/cjs/plugins/dev-mode/error-messages.js +1295 -0
- package/dist/cjs/plugins/dev-mode/error-messages.js.map +1 -0
- package/dist/cjs/plugins/dev-mode/index.js +195 -0
- package/dist/cjs/plugins/dev-mode/index.js.map +1 -0
- package/dist/cjs/plugins/dev-mode/unallowed-properties.js +88 -0
- package/dist/cjs/plugins/dev-mode/unallowed-properties.js.map +1 -0
- package/dist/cjs/plugins/electron/electron-helper.js +9 -0
- package/dist/cjs/plugins/electron/electron-helper.js.map +1 -0
- package/dist/cjs/plugins/electron/index.js +39 -0
- package/dist/cjs/plugins/electron/index.js.map +1 -0
- package/dist/cjs/plugins/electron/rx-storage-ipc-main.js +45 -0
- package/dist/cjs/plugins/electron/rx-storage-ipc-main.js.map +1 -0
- package/dist/cjs/plugins/electron/rx-storage-ipc-renderer.js +37 -0
- package/dist/cjs/plugins/electron/rx-storage-ipc-renderer.js.map +1 -0
- package/dist/cjs/plugins/encryption-crypto-js/index.js +165 -0
- package/dist/cjs/plugins/encryption-crypto-js/index.js.map +1 -0
- package/dist/cjs/plugins/flutter/index.js +62 -0
- package/dist/cjs/plugins/flutter/index.js.map +1 -0
- package/dist/cjs/plugins/json-dump/index.js +94 -0
- package/dist/cjs/plugins/json-dump/index.js.map +1 -0
- package/dist/cjs/plugins/key-compression/index.js +136 -0
- package/dist/cjs/plugins/key-compression/index.js.map +1 -0
- package/dist/cjs/plugins/leader-election/index.js +107 -0
- package/dist/cjs/plugins/leader-election/index.js.map +1 -0
- package/dist/cjs/plugins/local-documents/index.js +109 -0
- package/dist/cjs/plugins/local-documents/index.js.map +1 -0
- package/dist/cjs/plugins/local-documents/local-documents-helper.js +78 -0
- package/dist/cjs/plugins/local-documents/local-documents-helper.js.map +1 -0
- package/dist/cjs/plugins/local-documents/local-documents.js +107 -0
- package/dist/cjs/plugins/local-documents/local-documents.js.map +1 -0
- package/dist/cjs/plugins/local-documents/rx-local-document.js +257 -0
- package/dist/cjs/plugins/local-documents/rx-local-document.js.map +1 -0
- package/dist/cjs/plugins/migration-schema/index.js +84 -0
- package/dist/cjs/plugins/migration-schema/index.js.map +1 -0
- package/dist/cjs/plugins/migration-schema/migration-helpers.js +116 -0
- package/dist/cjs/plugins/migration-schema/migration-helpers.js.map +1 -0
- package/dist/cjs/plugins/migration-schema/migration-types.js +2 -0
- package/dist/cjs/plugins/migration-schema/migration-types.js.map +1 -0
- package/dist/cjs/plugins/migration-schema/rx-migration-state.js +410 -0
- package/dist/cjs/plugins/migration-schema/rx-migration-state.js.map +1 -0
- package/dist/cjs/plugins/migration-storage/index.js +173 -0
- package/dist/cjs/plugins/migration-storage/index.js.map +1 -0
- package/dist/cjs/plugins/pipeline/flagged-functions.js +129 -0
- package/dist/cjs/plugins/pipeline/flagged-functions.js.map +1 -0
- package/dist/cjs/plugins/pipeline/index.js +43 -0
- package/dist/cjs/plugins/pipeline/index.js.map +1 -0
- package/dist/cjs/plugins/pipeline/rx-pipeline.js +219 -0
- package/dist/cjs/plugins/pipeline/rx-pipeline.js.map +1 -0
- package/dist/cjs/plugins/pipeline/types.js +2 -0
- package/dist/cjs/plugins/pipeline/types.js.map +1 -0
- package/dist/cjs/plugins/query-builder/index.js +70 -0
- package/dist/cjs/plugins/query-builder/index.js.map +1 -0
- package/dist/cjs/plugins/query-builder/mquery/mquery-utils.js +40 -0
- package/dist/cjs/plugins/query-builder/mquery/mquery-utils.js.map +1 -0
- package/dist/cjs/plugins/query-builder/mquery/nosql-query-builder.js +488 -0
- package/dist/cjs/plugins/query-builder/mquery/nosql-query-builder.js.map +1 -0
- package/dist/cjs/plugins/react/database-context.js +15 -0
- package/dist/cjs/plugins/react/database-context.js.map +1 -0
- package/dist/cjs/plugins/react/database-provider.js +41 -0
- package/dist/cjs/plugins/react/database-provider.js.map +1 -0
- package/dist/cjs/plugins/react/hooks/index.js +50 -0
- package/dist/cjs/plugins/react/hooks/index.js.map +1 -0
- package/dist/cjs/plugins/react/hooks/use-live-rx-query.js +27 -0
- package/dist/cjs/plugins/react/hooks/use-live-rx-query.js.map +1 -0
- package/dist/cjs/plugins/react/hooks/use-rx-collection.js +39 -0
- package/dist/cjs/plugins/react/hooks/use-rx-collection.js.map +1 -0
- package/dist/cjs/plugins/react/hooks/use-rx-database.js +24 -0
- package/dist/cjs/plugins/react/hooks/use-rx-database.js.map +1 -0
- package/dist/cjs/plugins/react/hooks/use-rx-query.js +99 -0
- package/dist/cjs/plugins/react/hooks/use-rx-query.js.map +1 -0
- package/dist/cjs/plugins/react/index.js +28 -0
- package/dist/cjs/plugins/react/index.js.map +1 -0
- package/dist/cjs/plugins/reactivity-angular/index.js +30 -0
- package/dist/cjs/plugins/reactivity-angular/index.js.map +1 -0
- package/dist/cjs/plugins/reactivity-preact-signals/index.js +67 -0
- package/dist/cjs/plugins/reactivity-preact-signals/index.js.map +1 -0
- package/dist/cjs/plugins/reactivity-vue/index.js +32 -0
- package/dist/cjs/plugins/reactivity-vue/index.js.map +1 -0
- package/dist/cjs/plugins/replication/index.js +487 -0
- package/dist/cjs/plugins/replication/index.js.map +1 -0
- package/dist/cjs/plugins/replication/replication-helper.js +97 -0
- package/dist/cjs/plugins/replication/replication-helper.js.map +1 -0
- package/dist/cjs/plugins/replication-appwrite/appwrite-helpers.js +33 -0
- package/dist/cjs/plugins/replication-appwrite/appwrite-helpers.js.map +1 -0
- package/dist/cjs/plugins/replication-appwrite/appwrite-types.js +2 -0
- package/dist/cjs/plugins/replication-appwrite/appwrite-types.js.map +1 -0
- package/dist/cjs/plugins/replication-appwrite/index.js +176 -0
- package/dist/cjs/plugins/replication-appwrite/index.js.map +1 -0
- package/dist/cjs/plugins/replication-couchdb/couchdb-helper.js +77 -0
- package/dist/cjs/plugins/replication-couchdb/couchdb-helper.js.map +1 -0
- package/dist/cjs/plugins/replication-couchdb/couchdb-types.js +2 -0
- package/dist/cjs/plugins/replication-couchdb/couchdb-types.js.map +1 -0
- package/dist/cjs/plugins/replication-couchdb/index.js +287 -0
- package/dist/cjs/plugins/replication-couchdb/index.js.map +1 -0
- package/dist/cjs/plugins/replication-firestore/firestore-helper.js +61 -0
- package/dist/cjs/plugins/replication-firestore/firestore-helper.js.map +1 -0
- package/dist/cjs/plugins/replication-firestore/firestore-types.js +2 -0
- package/dist/cjs/plugins/replication-firestore/firestore-types.js.map +1 -0
- package/dist/cjs/plugins/replication-firestore/index.js +266 -0
- package/dist/cjs/plugins/replication-firestore/index.js.map +1 -0
- package/dist/cjs/plugins/replication-google-drive/document-handling.js +150 -0
- package/dist/cjs/plugins/replication-google-drive/document-handling.js.map +1 -0
- package/dist/cjs/plugins/replication-google-drive/downstream.js +73 -0
- package/dist/cjs/plugins/replication-google-drive/downstream.js.map +1 -0
- package/dist/cjs/plugins/replication-google-drive/google-drive-helper.js +349 -0
- package/dist/cjs/plugins/replication-google-drive/google-drive-helper.js.map +1 -0
- package/dist/cjs/plugins/replication-google-drive/google-drive-types.js +2 -0
- package/dist/cjs/plugins/replication-google-drive/google-drive-types.js.map +1 -0
- package/dist/cjs/plugins/replication-google-drive/index.js +233 -0
- package/dist/cjs/plugins/replication-google-drive/index.js.map +1 -0
- package/dist/cjs/plugins/replication-google-drive/init.js +76 -0
- package/dist/cjs/plugins/replication-google-drive/init.js.map +1 -0
- package/dist/cjs/plugins/replication-google-drive/multipart.js +74 -0
- package/dist/cjs/plugins/replication-google-drive/multipart.js.map +1 -0
- package/dist/cjs/plugins/replication-google-drive/signaling.js +262 -0
- package/dist/cjs/plugins/replication-google-drive/signaling.js.map +1 -0
- package/dist/cjs/plugins/replication-google-drive/transaction.js +134 -0
- package/dist/cjs/plugins/replication-google-drive/transaction.js.map +1 -0
- package/dist/cjs/plugins/replication-google-drive/upstream.js +182 -0
- package/dist/cjs/plugins/replication-google-drive/upstream.js.map +1 -0
- package/dist/cjs/plugins/replication-graphql/graphql-schema-from-rx-schema.js +235 -0
- package/dist/cjs/plugins/replication-graphql/graphql-schema-from-rx-schema.js.map +1 -0
- package/dist/cjs/plugins/replication-graphql/graphql-websocket.js +43 -0
- package/dist/cjs/plugins/replication-graphql/graphql-websocket.js.map +1 -0
- package/dist/cjs/plugins/replication-graphql/helper.js +29 -0
- package/dist/cjs/plugins/replication-graphql/helper.js.map +1 -0
- package/dist/cjs/plugins/replication-graphql/index.js +215 -0
- package/dist/cjs/plugins/replication-graphql/index.js.map +1 -0
- package/dist/cjs/plugins/replication-graphql/query-builder-from-rx-schema.js +141 -0
- package/dist/cjs/plugins/replication-graphql/query-builder-from-rx-schema.js.map +1 -0
- package/dist/cjs/plugins/replication-microsoft-onedrive/document-handling.js +187 -0
- package/dist/cjs/plugins/replication-microsoft-onedrive/document-handling.js.map +1 -0
- package/dist/cjs/plugins/replication-microsoft-onedrive/downstream.js +78 -0
- package/dist/cjs/plugins/replication-microsoft-onedrive/downstream.js.map +1 -0
- package/dist/cjs/plugins/replication-microsoft-onedrive/index.js +222 -0
- package/dist/cjs/plugins/replication-microsoft-onedrive/index.js.map +1 -0
- package/dist/cjs/plugins/replication-microsoft-onedrive/init.js +76 -0
- package/dist/cjs/plugins/replication-microsoft-onedrive/init.js.map +1 -0
- package/dist/cjs/plugins/replication-microsoft-onedrive/microsoft-onedrive-helper.js +273 -0
- package/dist/cjs/plugins/replication-microsoft-onedrive/microsoft-onedrive-helper.js.map +1 -0
- package/dist/cjs/plugins/replication-microsoft-onedrive/microsoft-onedrive-types.js +2 -0
- package/dist/cjs/plugins/replication-microsoft-onedrive/microsoft-onedrive-types.js.map +1 -0
- package/dist/cjs/plugins/replication-microsoft-onedrive/signaling.js +235 -0
- package/dist/cjs/plugins/replication-microsoft-onedrive/signaling.js.map +1 -0
- package/dist/cjs/plugins/replication-microsoft-onedrive/transaction.js +138 -0
- package/dist/cjs/plugins/replication-microsoft-onedrive/transaction.js.map +1 -0
- package/dist/cjs/plugins/replication-microsoft-onedrive/upstream.js +190 -0
- package/dist/cjs/plugins/replication-microsoft-onedrive/upstream.js.map +1 -0
- package/dist/cjs/plugins/replication-mongodb/index.js +229 -0
- package/dist/cjs/plugins/replication-mongodb/index.js.map +1 -0
- package/dist/cjs/plugins/replication-mongodb/mongodb-checkpoint.js +140 -0
- package/dist/cjs/plugins/replication-mongodb/mongodb-checkpoint.js.map +1 -0
- package/dist/cjs/plugins/replication-mongodb/mongodb-helper.js +53 -0
- package/dist/cjs/plugins/replication-mongodb/mongodb-helper.js.map +1 -0
- package/dist/cjs/plugins/replication-mongodb/mongodb-types.js +2 -0
- package/dist/cjs/plugins/replication-mongodb/mongodb-types.js.map +1 -0
- package/dist/cjs/plugins/replication-nats/index.js +232 -0
- package/dist/cjs/plugins/replication-nats/index.js.map +1 -0
- package/dist/cjs/plugins/replication-nats/nats-helper.js +13 -0
- package/dist/cjs/plugins/replication-nats/nats-helper.js.map +1 -0
- package/dist/cjs/plugins/replication-nats/nats-types.js +2 -0
- package/dist/cjs/plugins/replication-nats/nats-types.js.map +1 -0
- package/dist/cjs/plugins/replication-supabase/helper.js +42 -0
- package/dist/cjs/plugins/replication-supabase/helper.js.map +1 -0
- package/dist/cjs/plugins/replication-supabase/index.js +239 -0
- package/dist/cjs/plugins/replication-supabase/index.js.map +1 -0
- package/dist/cjs/plugins/replication-supabase/types.js +2 -0
- package/dist/cjs/plugins/replication-supabase/types.js.map +1 -0
- package/dist/cjs/plugins/replication-webrtc/connection-handler-p2pcf.js +79 -0
- package/dist/cjs/plugins/replication-webrtc/connection-handler-p2pcf.js.map +1 -0
- package/dist/cjs/plugins/replication-webrtc/connection-handler-simple-peer.js +199 -0
- package/dist/cjs/plugins/replication-webrtc/connection-handler-simple-peer.js.map +1 -0
- package/dist/cjs/plugins/replication-webrtc/connection-handler-webtorrent.js +137 -0
- package/dist/cjs/plugins/replication-webrtc/connection-handler-webtorrent.js.map +1 -0
- package/dist/cjs/plugins/replication-webrtc/index.js +260 -0
- package/dist/cjs/plugins/replication-webrtc/index.js.map +1 -0
- package/dist/cjs/plugins/replication-webrtc/signaling-server.js +151 -0
- package/dist/cjs/plugins/replication-webrtc/signaling-server.js.map +1 -0
- package/dist/cjs/plugins/replication-webrtc/webrtc-helper.js +32 -0
- package/dist/cjs/plugins/replication-webrtc/webrtc-helper.js.map +1 -0
- package/dist/cjs/plugins/replication-webrtc/webrtc-types.js +2 -0
- package/dist/cjs/plugins/replication-webrtc/webrtc-types.js.map +1 -0
- package/dist/cjs/plugins/replication-websocket/index.js +39 -0
- package/dist/cjs/plugins/replication-websocket/index.js.map +1 -0
- package/dist/cjs/plugins/replication-websocket/websocket-client.js +133 -0
- package/dist/cjs/plugins/replication-websocket/websocket-client.js.map +1 -0
- package/dist/cjs/plugins/replication-websocket/websocket-server.js +108 -0
- package/dist/cjs/plugins/replication-websocket/websocket-server.js.map +1 -0
- package/dist/cjs/plugins/replication-websocket/websocket-types.js +2 -0
- package/dist/cjs/plugins/replication-websocket/websocket-types.js.map +1 -0
- package/dist/cjs/plugins/state/helpers.js +81 -0
- package/dist/cjs/plugins/state/helpers.js.map +1 -0
- package/dist/cjs/plugins/state/index.js +42 -0
- package/dist/cjs/plugins/state/index.js.map +1 -0
- package/dist/cjs/plugins/state/rx-state.js +293 -0
- package/dist/cjs/plugins/state/rx-state.js.map +1 -0
- package/dist/cjs/plugins/state/types.js +2 -0
- package/dist/cjs/plugins/state/types.js.map +1 -0
- package/dist/cjs/plugins/storage-denokv/denokv-helper.js +49 -0
- package/dist/cjs/plugins/storage-denokv/denokv-helper.js.map +1 -0
- package/dist/cjs/plugins/storage-denokv/denokv-query.js +99 -0
- package/dist/cjs/plugins/storage-denokv/denokv-query.js.map +1 -0
- package/dist/cjs/plugins/storage-denokv/denokv-types.js +2 -0
- package/dist/cjs/plugins/storage-denokv/denokv-types.js.map +1 -0
- package/dist/cjs/plugins/storage-denokv/index.js +31 -0
- package/dist/cjs/plugins/storage-denokv/index.js.map +1 -0
- package/dist/cjs/plugins/storage-denokv/rx-storage-instance-denokv.js +332 -0
- package/dist/cjs/plugins/storage-denokv/rx-storage-instance-denokv.js.map +1 -0
- package/dist/cjs/plugins/storage-dexie/dexie-helper.js +259 -0
- package/dist/cjs/plugins/storage-dexie/dexie-helper.js.map +1 -0
- package/dist/cjs/plugins/storage-dexie/dexie-query.js +178 -0
- package/dist/cjs/plugins/storage-dexie/dexie-query.js.map +1 -0
- package/dist/cjs/plugins/storage-dexie/index.js +50 -0
- package/dist/cjs/plugins/storage-dexie/index.js.map +1 -0
- package/dist/cjs/plugins/storage-dexie/rx-storage-dexie.js +46 -0
- package/dist/cjs/plugins/storage-dexie/rx-storage-dexie.js.map +1 -0
- package/dist/cjs/plugins/storage-dexie/rx-storage-instance-dexie.js +229 -0
- package/dist/cjs/plugins/storage-dexie/rx-storage-instance-dexie.js.map +1 -0
- package/dist/cjs/plugins/storage-foundationdb/foundationdb-helpers.js +13 -0
- package/dist/cjs/plugins/storage-foundationdb/foundationdb-helpers.js.map +1 -0
- package/dist/cjs/plugins/storage-foundationdb/foundationdb-query.js +96 -0
- package/dist/cjs/plugins/storage-foundationdb/foundationdb-query.js.map +1 -0
- package/dist/cjs/plugins/storage-foundationdb/foundationdb-types.js +2 -0
- package/dist/cjs/plugins/storage-foundationdb/foundationdb-types.js.map +1 -0
- package/dist/cjs/plugins/storage-foundationdb/index.js +62 -0
- package/dist/cjs/plugins/storage-foundationdb/index.js.map +1 -0
- package/dist/cjs/plugins/storage-foundationdb/rx-storage-instance-foundationdb.js +309 -0
- package/dist/cjs/plugins/storage-foundationdb/rx-storage-instance-foundationdb.js.map +1 -0
- package/dist/cjs/plugins/storage-localstorage/index.js +45 -0
- package/dist/cjs/plugins/storage-localstorage/index.js.map +1 -0
- package/dist/cjs/plugins/storage-localstorage/localstorage-mock.js +38 -0
- package/dist/cjs/plugins/storage-localstorage/localstorage-mock.js.map +1 -0
- package/dist/cjs/plugins/storage-localstorage/rx-storage-instance-localstorage.js +443 -0
- package/dist/cjs/plugins/storage-localstorage/rx-storage-instance-localstorage.js.map +1 -0
- package/dist/cjs/plugins/storage-memory/binary-search-bounds.js +113 -0
- package/dist/cjs/plugins/storage-memory/binary-search-bounds.js.map +1 -0
- package/dist/cjs/plugins/storage-memory/index.js +91 -0
- package/dist/cjs/plugins/storage-memory/index.js.map +1 -0
- package/dist/cjs/plugins/storage-memory/memory-helper.js +177 -0
- package/dist/cjs/plugins/storage-memory/memory-helper.js.map +1 -0
- package/dist/cjs/plugins/storage-memory/memory-indexes.js +28 -0
- package/dist/cjs/plugins/storage-memory/memory-indexes.js.map +1 -0
- package/dist/cjs/plugins/storage-memory/memory-types.js +2 -0
- package/dist/cjs/plugins/storage-memory/memory-types.js.map +1 -0
- package/dist/cjs/plugins/storage-memory/rx-storage-instance-memory.js +371 -0
- package/dist/cjs/plugins/storage-memory/rx-storage-instance-memory.js.map +1 -0
- package/dist/cjs/plugins/storage-mongodb/index.js +50 -0
- package/dist/cjs/plugins/storage-mongodb/index.js.map +1 -0
- package/dist/cjs/plugins/storage-mongodb/mongodb-helper.js +97 -0
- package/dist/cjs/plugins/storage-mongodb/mongodb-helper.js.map +1 -0
- package/dist/cjs/plugins/storage-mongodb/mongodb-types.js +2 -0
- package/dist/cjs/plugins/storage-mongodb/mongodb-types.js.map +1 -0
- package/dist/cjs/plugins/storage-mongodb/rx-storage-instance-mongodb.js +324 -0
- package/dist/cjs/plugins/storage-mongodb/rx-storage-instance-mongodb.js.map +1 -0
- package/dist/cjs/plugins/storage-mongodb/rx-storage-mongodb.js +29 -0
- package/dist/cjs/plugins/storage-mongodb/rx-storage-mongodb.js.map +1 -0
- package/dist/cjs/plugins/storage-remote/index.js +61 -0
- package/dist/cjs/plugins/storage-remote/index.js.map +1 -0
- package/dist/cjs/plugins/storage-remote/message-channel-cache.js +52 -0
- package/dist/cjs/plugins/storage-remote/message-channel-cache.js.map +1 -0
- package/dist/cjs/plugins/storage-remote/remote.js +217 -0
- package/dist/cjs/plugins/storage-remote/remote.js.map +1 -0
- package/dist/cjs/plugins/storage-remote/rx-storage-remote.js +199 -0
- package/dist/cjs/plugins/storage-remote/rx-storage-remote.js.map +1 -0
- package/dist/cjs/plugins/storage-remote/storage-remote-helpers.js +25 -0
- package/dist/cjs/plugins/storage-remote/storage-remote-helpers.js.map +1 -0
- package/dist/cjs/plugins/storage-remote/storage-remote-types.js +2 -0
- package/dist/cjs/plugins/storage-remote/storage-remote-types.js.map +1 -0
- package/dist/cjs/plugins/storage-remote-websocket/index.js +183 -0
- package/dist/cjs/plugins/storage-remote-websocket/index.js.map +1 -0
- package/dist/cjs/plugins/storage-remote-websocket/types.js +2 -0
- package/dist/cjs/plugins/storage-remote-websocket/types.js.map +1 -0
- package/dist/cjs/plugins/storage-sqlite/index.js +84 -0
- package/dist/cjs/plugins/storage-sqlite/index.js.map +1 -0
- package/dist/cjs/plugins/storage-sqlite/sqlite-basics-helpers.js +530 -0
- package/dist/cjs/plugins/storage-sqlite/sqlite-basics-helpers.js.map +1 -0
- package/dist/cjs/plugins/storage-sqlite/sqlite-helpers.js +203 -0
- package/dist/cjs/plugins/storage-sqlite/sqlite-helpers.js.map +1 -0
- package/dist/cjs/plugins/storage-sqlite/sqlite-storage-instance.js +291 -0
- package/dist/cjs/plugins/storage-sqlite/sqlite-storage-instance.js.map +1 -0
- package/dist/cjs/plugins/storage-sqlite/sqlite-types.js +2 -0
- package/dist/cjs/plugins/storage-sqlite/sqlite-types.js.map +1 -0
- package/dist/cjs/plugins/test-utils/config.js +120 -0
- package/dist/cjs/plugins/test-utils/config.js.map +1 -0
- package/dist/cjs/plugins/test-utils/humans-collection.js +420 -0
- package/dist/cjs/plugins/test-utils/humans-collection.js.map +1 -0
- package/dist/cjs/plugins/test-utils/index.js +130 -0
- package/dist/cjs/plugins/test-utils/index.js.map +1 -0
- package/dist/cjs/plugins/test-utils/performance.js +275 -0
- package/dist/cjs/plugins/test-utils/performance.js.map +1 -0
- package/dist/cjs/plugins/test-utils/replication-base-test-suite.js +179 -0
- package/dist/cjs/plugins/test-utils/replication-base-test-suite.js.map +1 -0
- package/dist/cjs/plugins/test-utils/replication.js +54 -0
- package/dist/cjs/plugins/test-utils/replication.js.map +1 -0
- package/dist/cjs/plugins/test-utils/revisions.js +11 -0
- package/dist/cjs/plugins/test-utils/revisions.js.map +1 -0
- package/dist/cjs/plugins/test-utils/schema-objects.js +315 -0
- package/dist/cjs/plugins/test-utils/schema-objects.js.map +1 -0
- package/dist/cjs/plugins/test-utils/schemas.js +1254 -0
- package/dist/cjs/plugins/test-utils/schemas.js.map +1 -0
- package/dist/cjs/plugins/test-utils/test-util.js +72 -0
- package/dist/cjs/plugins/test-utils/test-util.js.map +1 -0
- package/dist/cjs/plugins/update/index.js +45 -0
- package/dist/cjs/plugins/update/index.js.map +1 -0
- package/dist/cjs/plugins/update/mingo-updater.js +20 -0
- package/dist/cjs/plugins/update/mingo-updater.js.map +1 -0
- package/dist/cjs/plugins/utils/index.js +226 -0
- package/dist/cjs/plugins/utils/index.js.map +1 -0
- package/dist/cjs/plugins/utils/utils-array.js +150 -0
- package/dist/cjs/plugins/utils/utils-array.js.map +1 -0
- package/dist/cjs/plugins/utils/utils-base64.js +57 -0
- package/dist/cjs/plugins/utils/utils-base64.js.map +1 -0
- package/dist/cjs/plugins/utils/utils-blob.js +62 -0
- package/dist/cjs/plugins/utils/utils-blob.js.map +1 -0
- package/dist/cjs/plugins/utils/utils-document.js +100 -0
- package/dist/cjs/plugins/utils/utils-document.js.map +1 -0
- package/dist/cjs/plugins/utils/utils-error.js +42 -0
- package/dist/cjs/plugins/utils/utils-error.js.map +1 -0
- package/dist/cjs/plugins/utils/utils-global.js +12 -0
- package/dist/cjs/plugins/utils/utils-global.js.map +1 -0
- package/dist/cjs/plugins/utils/utils-hash.js +59 -0
- package/dist/cjs/plugins/utils/utils-hash.js.map +1 -0
- package/dist/cjs/plugins/utils/utils-map.js +25 -0
- package/dist/cjs/plugins/utils/utils-map.js.map +1 -0
- package/dist/cjs/plugins/utils/utils-number.js +16 -0
- package/dist/cjs/plugins/utils/utils-number.js.map +1 -0
- package/dist/cjs/plugins/utils/utils-object-deep-equal.js +42 -0
- package/dist/cjs/plugins/utils/utils-object-deep-equal.js.map +1 -0
- package/dist/cjs/plugins/utils/utils-object-dot-prop.js +306 -0
- package/dist/cjs/plugins/utils/utils-object-dot-prop.js.map +1 -0
- package/dist/cjs/plugins/utils/utils-object.js +245 -0
- package/dist/cjs/plugins/utils/utils-object.js.map +1 -0
- package/dist/cjs/plugins/utils/utils-other.js +69 -0
- package/dist/cjs/plugins/utils/utils-other.js.map +1 -0
- package/dist/cjs/plugins/utils/utils-premium.js +37 -0
- package/dist/cjs/plugins/utils/utils-premium.js.map +1 -0
- package/dist/cjs/plugins/utils/utils-promise.js +149 -0
- package/dist/cjs/plugins/utils/utils-promise.js.map +1 -0
- package/dist/cjs/plugins/utils/utils-regex.js +9 -0
- package/dist/cjs/plugins/utils/utils-regex.js.map +1 -0
- package/dist/cjs/plugins/utils/utils-revision.js +60 -0
- package/dist/cjs/plugins/utils/utils-revision.js.map +1 -0
- package/dist/cjs/plugins/utils/utils-rxdb-version.js +11 -0
- package/dist/cjs/plugins/utils/utils-rxdb-version.js.map +1 -0
- package/dist/cjs/plugins/utils/utils-rxdb-version.template.js +11 -0
- package/dist/cjs/plugins/utils/utils-rxdb-version.template.js.map +1 -0
- package/dist/cjs/plugins/utils/utils-string.js +97 -0
- package/dist/cjs/plugins/utils/utils-string.js.map +1 -0
- package/dist/cjs/plugins/utils/utils-time.js +42 -0
- package/dist/cjs/plugins/utils/utils-time.js.map +1 -0
- package/dist/cjs/plugins/validate-ajv/index.js +53 -0
- package/dist/cjs/plugins/validate-ajv/index.js.map +1 -0
- package/dist/cjs/plugins/validate-is-my-json-valid/index.js +29 -0
- package/dist/cjs/plugins/validate-is-my-json-valid/index.js.map +1 -0
- package/dist/cjs/plugins/validate-z-schema/index.js +58 -0
- package/dist/cjs/plugins/validate-z-schema/index.js.map +1 -0
- package/dist/cjs/plugins/vector/helper.js +2 -0
- package/dist/cjs/plugins/vector/helper.js.map +1 -0
- package/dist/cjs/plugins/vector/index.js +17 -0
- package/dist/cjs/plugins/vector/index.js.map +1 -0
- package/dist/cjs/plugins/vector/types.js +2 -0
- package/dist/cjs/plugins/vector/types.js.map +1 -0
- package/dist/cjs/plugins/vector/vector-distance.js +38 -0
- package/dist/cjs/plugins/vector/vector-distance.js.map +1 -0
- package/dist/cjs/plugins/webmcp/index.js +28 -0
- package/dist/cjs/plugins/webmcp/index.js.map +1 -0
- package/dist/cjs/plugins/webmcp/nosql-query-schema.js +360 -0
- package/dist/cjs/plugins/webmcp/nosql-query-schema.js.map +1 -0
- package/dist/cjs/plugins/webmcp/webmcp.js +315 -0
- package/dist/cjs/plugins/webmcp/webmcp.js.map +1 -0
- package/dist/cjs/query-cache.js +110 -0
- package/dist/cjs/query-cache.js.map +1 -0
- package/dist/cjs/query-planner.js +307 -0
- package/dist/cjs/query-planner.js.map +1 -0
- package/dist/cjs/replication-protocol/checkpoint.js +103 -0
- package/dist/cjs/replication-protocol/checkpoint.js.map +1 -0
- package/dist/cjs/replication-protocol/conflicts.js +36 -0
- package/dist/cjs/replication-protocol/conflicts.js.map +1 -0
- package/dist/cjs/replication-protocol/default-conflict-handler.js +39 -0
- package/dist/cjs/replication-protocol/default-conflict-handler.js.map +1 -0
- package/dist/cjs/replication-protocol/downstream.js +339 -0
- package/dist/cjs/replication-protocol/downstream.js.map +1 -0
- package/dist/cjs/replication-protocol/helper.js +58 -0
- package/dist/cjs/replication-protocol/helper.js.map +1 -0
- package/dist/cjs/replication-protocol/index.js +314 -0
- package/dist/cjs/replication-protocol/index.js.map +1 -0
- package/dist/cjs/replication-protocol/meta-instance.js +130 -0
- package/dist/cjs/replication-protocol/meta-instance.js.map +1 -0
- package/dist/cjs/replication-protocol/upstream.js +384 -0
- package/dist/cjs/replication-protocol/upstream.js.map +1 -0
- package/dist/cjs/rx-change-event.js +112 -0
- package/dist/cjs/rx-change-event.js.map +1 -0
- package/dist/cjs/rx-collection-helper.js +205 -0
- package/dist/cjs/rx-collection-helper.js.map +1 -0
- package/dist/cjs/rx-collection.js +931 -0
- package/dist/cjs/rx-collection.js.map +1 -0
- package/dist/cjs/rx-database-internal-store.js +283 -0
- package/dist/cjs/rx-database-internal-store.js.map +1 -0
- package/dist/cjs/rx-database.js +682 -0
- package/dist/cjs/rx-database.js.map +1 -0
- package/dist/cjs/rx-document-prototype-merge.js +87 -0
- package/dist/cjs/rx-document-prototype-merge.js.map +1 -0
- package/dist/cjs/rx-document.js +404 -0
- package/dist/cjs/rx-document.js.map +1 -0
- package/dist/cjs/rx-error.js +167 -0
- package/dist/cjs/rx-error.js.map +1 -0
- package/dist/cjs/rx-query-helper.js +277 -0
- package/dist/cjs/rx-query-helper.js.map +1 -0
- package/dist/cjs/rx-query-mingo.js +60 -0
- package/dist/cjs/rx-query-mingo.js.map +1 -0
- package/dist/cjs/rx-query-single-result.js +105 -0
- package/dist/cjs/rx-query-single-result.js.map +1 -0
- package/dist/cjs/rx-query.js +703 -0
- package/dist/cjs/rx-query.js.map +1 -0
- package/dist/cjs/rx-schema-helper.js +333 -0
- package/dist/cjs/rx-schema-helper.js.map +1 -0
- package/dist/cjs/rx-schema.js +189 -0
- package/dist/cjs/rx-schema.js.map +1 -0
- package/dist/cjs/rx-storage-helper.js +808 -0
- package/dist/cjs/rx-storage-helper.js.map +1 -0
- package/dist/cjs/rx-storage-multiinstance.js +121 -0
- package/dist/cjs/rx-storage-multiinstance.js.map +1 -0
- package/dist/cjs/types/conflict-handling.d.js +2 -0
- package/dist/cjs/types/conflict-handling.d.js.map +1 -0
- package/dist/cjs/types/couchdb.d.js +2 -0
- package/dist/cjs/types/couchdb.d.js.map +1 -0
- package/dist/cjs/types/index.d.js +2 -0
- package/dist/cjs/types/index.d.js.map +1 -0
- package/dist/cjs/types/modules/index.d.js +2 -0
- package/dist/cjs/types/modules/index.d.js.map +1 -0
- package/dist/cjs/types/modules/mocha.parallel.d.js +2 -0
- package/dist/cjs/types/modules/mocha.parallel.d.js.map +1 -0
- package/dist/cjs/types/plugins/backup.d.js +2 -0
- package/dist/cjs/types/plugins/backup.d.js.map +1 -0
- package/dist/cjs/types/plugins/cleanup.d.js +2 -0
- package/dist/cjs/types/plugins/cleanup.d.js.map +1 -0
- package/dist/cjs/types/plugins/crdt.d.js +2 -0
- package/dist/cjs/types/plugins/crdt.d.js.map +1 -0
- package/dist/cjs/types/plugins/dexie.d.js +2 -0
- package/dist/cjs/types/plugins/dexie.d.js.map +1 -0
- package/dist/cjs/types/plugins/local-documents.d.js +2 -0
- package/dist/cjs/types/plugins/local-documents.d.js.map +1 -0
- package/dist/cjs/types/plugins/migration.d.js +2 -0
- package/dist/cjs/types/plugins/migration.d.js.map +1 -0
- package/dist/cjs/types/plugins/reactivity.d.js +2 -0
- package/dist/cjs/types/plugins/reactivity.d.js.map +1 -0
- package/dist/cjs/types/plugins/replication-graphql.d.js +2 -0
- package/dist/cjs/types/plugins/replication-graphql.d.js.map +1 -0
- package/dist/cjs/types/plugins/replication.d.js +2 -0
- package/dist/cjs/types/plugins/replication.d.js.map +1 -0
- package/dist/cjs/types/plugins/state.d.js +2 -0
- package/dist/cjs/types/plugins/state.d.js.map +1 -0
- package/dist/cjs/types/plugins/update.d.js +2 -0
- package/dist/cjs/types/plugins/update.d.js.map +1 -0
- package/dist/cjs/types/plugins/webmcp.d.js +2 -0
- package/dist/cjs/types/plugins/webmcp.d.js.map +1 -0
- package/dist/cjs/types/query-planner.d.js +2 -0
- package/dist/cjs/types/query-planner.d.js.map +1 -0
- package/dist/cjs/types/replication-protocol.d.js +2 -0
- package/dist/cjs/types/replication-protocol.d.js.map +1 -0
- package/dist/cjs/types/rx-attachment.d.js +2 -0
- package/dist/cjs/types/rx-attachment.d.js.map +1 -0
- package/dist/cjs/types/rx-change-event.d.js +2 -0
- package/dist/cjs/types/rx-change-event.d.js.map +1 -0
- package/dist/cjs/types/rx-collection.d.js +2 -0
- package/dist/cjs/types/rx-collection.d.js.map +1 -0
- package/dist/cjs/types/rx-database-internal-store.d.js +2 -0
- package/dist/cjs/types/rx-database-internal-store.d.js.map +1 -0
- package/dist/cjs/types/rx-database.d.js +2 -0
- package/dist/cjs/types/rx-database.d.js.map +1 -0
- package/dist/cjs/types/rx-document.d.js +2 -0
- package/dist/cjs/types/rx-document.d.js.map +1 -0
- package/dist/cjs/types/rx-error.d.js +2 -0
- package/dist/cjs/types/rx-error.d.js.map +1 -0
- package/dist/cjs/types/rx-plugin.d.js +2 -0
- package/dist/cjs/types/rx-plugin.d.js.map +1 -0
- package/dist/cjs/types/rx-query.d.js +2 -0
- package/dist/cjs/types/rx-query.d.js.map +1 -0
- package/dist/cjs/types/rx-schema.d.js +2 -0
- package/dist/cjs/types/rx-schema.d.js.map +1 -0
- package/dist/cjs/types/rx-storage.d.js +2 -0
- package/dist/cjs/types/rx-storage.d.js.map +1 -0
- package/dist/cjs/types/rx-storage.interface.d.js +2 -0
- package/dist/cjs/types/rx-storage.interface.d.js.map +1 -0
- package/dist/cjs/types/util.d.js +2 -0
- package/dist/cjs/types/util.d.js.map +1 -0
- package/dist/esm/change-event-buffer.js +141 -0
- package/dist/esm/change-event-buffer.js.map +1 -0
- package/dist/esm/custom-index.js +271 -0
- package/dist/esm/custom-index.js.map +1 -0
- package/dist/esm/doc-cache.js +227 -0
- package/dist/esm/doc-cache.js.map +1 -0
- package/dist/esm/event-reduce.js +93 -0
- package/dist/esm/event-reduce.js.map +1 -0
- package/dist/esm/hooks.js +122 -0
- package/dist/esm/hooks.js.map +1 -0
- package/dist/esm/incremental-write.js +161 -0
- package/dist/esm/incremental-write.js.map +1 -0
- package/dist/esm/index.js +30 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/overwritable.js +33 -0
- package/dist/esm/overwritable.js.map +1 -0
- package/dist/esm/package.json +1 -0
- package/dist/esm/plugin-helpers.js +217 -0
- package/dist/esm/plugin-helpers.js.map +1 -0
- package/dist/esm/plugin.js +88 -0
- package/dist/esm/plugin.js.map +1 -0
- package/dist/esm/plugins/attachments/attachments-utils.js +41 -0
- package/dist/esm/plugins/attachments/attachments-utils.js.map +1 -0
- package/dist/esm/plugins/attachments/index.js +202 -0
- package/dist/esm/plugins/attachments/index.js.map +1 -0
- package/dist/esm/plugins/attachments-compression/index.js +134 -0
- package/dist/esm/plugins/attachments-compression/index.js.map +1 -0
- package/dist/esm/plugins/backup/file-util.js +87 -0
- package/dist/esm/plugins/backup/file-util.js.map +1 -0
- package/dist/esm/plugins/backup/index.js +183 -0
- package/dist/esm/plugins/backup/index.js.map +1 -0
- package/dist/esm/plugins/cleanup/cleanup-helper.js +11 -0
- package/dist/esm/plugins/cleanup/cleanup-helper.js.map +1 -0
- package/dist/esm/plugins/cleanup/cleanup-state.js +75 -0
- package/dist/esm/plugins/cleanup/cleanup-state.js.map +1 -0
- package/dist/esm/plugins/cleanup/cleanup.js +108 -0
- package/dist/esm/plugins/cleanup/cleanup.js.map +1 -0
- package/dist/esm/plugins/cleanup/index.js +35 -0
- package/dist/esm/plugins/cleanup/index.js.map +1 -0
- package/dist/esm/plugins/crdt/index.js +378 -0
- package/dist/esm/plugins/crdt/index.js.map +1 -0
- package/dist/esm/plugins/dev-mode/check-document.js +150 -0
- package/dist/esm/plugins/dev-mode/check-document.js.map +1 -0
- package/dist/esm/plugins/dev-mode/check-migration-strategies.js +38 -0
- package/dist/esm/plugins/dev-mode/check-migration-strategies.js.map +1 -0
- package/dist/esm/plugins/dev-mode/check-orm.js +47 -0
- package/dist/esm/plugins/dev-mode/check-orm.js.map +1 -0
- package/dist/esm/plugins/dev-mode/check-query.js +174 -0
- package/dist/esm/plugins/dev-mode/check-query.js.map +1 -0
- package/dist/esm/plugins/dev-mode/check-schema.js +478 -0
- package/dist/esm/plugins/dev-mode/check-schema.js.map +1 -0
- package/dist/esm/plugins/dev-mode/dev-mode-tracking.js +87 -0
- package/dist/esm/plugins/dev-mode/dev-mode-tracking.js.map +1 -0
- package/dist/esm/plugins/dev-mode/entity-properties.js +49 -0
- package/dist/esm/plugins/dev-mode/entity-properties.js.map +1 -0
- package/dist/esm/plugins/dev-mode/error-messages.js +1289 -0
- package/dist/esm/plugins/dev-mode/error-messages.js.map +1 -0
- package/dist/esm/plugins/dev-mode/index.js +151 -0
- package/dist/esm/plugins/dev-mode/index.js.map +1 -0
- package/dist/esm/plugins/dev-mode/unallowed-properties.js +81 -0
- package/dist/esm/plugins/dev-mode/unallowed-properties.js.map +1 -0
- package/dist/esm/plugins/electron/electron-helper.js +3 -0
- package/dist/esm/plugins/electron/electron-helper.js.map +1 -0
- package/dist/esm/plugins/electron/index.js +4 -0
- package/dist/esm/plugins/electron/index.js.map +1 -0
- package/dist/esm/plugins/electron/rx-storage-ipc-main.js +39 -0
- package/dist/esm/plugins/electron/rx-storage-ipc-main.js.map +1 -0
- package/dist/esm/plugins/electron/rx-storage-ipc-renderer.js +31 -0
- package/dist/esm/plugins/electron/rx-storage-ipc-renderer.js.map +1 -0
- package/dist/esm/plugins/encryption-crypto-js/index.js +154 -0
- package/dist/esm/plugins/encryption-crypto-js/index.js.map +1 -0
- package/dist/esm/plugins/flutter/index.js +55 -0
- package/dist/esm/plugins/flutter/index.js.map +1 -0
- package/dist/esm/plugins/json-dump/index.js +87 -0
- package/dist/esm/plugins/json-dump/index.js.map +1 -0
- package/dist/esm/plugins/key-compression/index.js +127 -0
- package/dist/esm/plugins/key-compression/index.js.map +1 -0
- package/dist/esm/plugins/leader-election/index.js +95 -0
- package/dist/esm/plugins/leader-election/index.js.map +1 -0
- package/dist/esm/plugins/local-documents/index.js +70 -0
- package/dist/esm/plugins/local-documents/index.js.map +1 -0
- package/dist/esm/plugins/local-documents/local-documents-helper.js +67 -0
- package/dist/esm/plugins/local-documents/local-documents-helper.js.map +1 -0
- package/dist/esm/plugins/local-documents/local-documents.js +99 -0
- package/dist/esm/plugins/local-documents/local-documents.js.map +1 -0
- package/dist/esm/plugins/local-documents/rx-local-document.js +248 -0
- package/dist/esm/plugins/local-documents/rx-local-document.js.map +1 -0
- package/dist/esm/plugins/migration-schema/index.js +42 -0
- package/dist/esm/plugins/migration-schema/index.js.map +1 -0
- package/dist/esm/plugins/migration-schema/migration-helpers.js +103 -0
- package/dist/esm/plugins/migration-schema/migration-helpers.js.map +1 -0
- package/dist/esm/plugins/migration-schema/migration-types.js +3 -0
- package/dist/esm/plugins/migration-schema/migration-types.js.map +1 -0
- package/dist/esm/plugins/migration-schema/rx-migration-state.js +404 -0
- package/dist/esm/plugins/migration-schema/rx-migration-state.js.map +1 -0
- package/dist/esm/plugins/migration-storage/index.js +166 -0
- package/dist/esm/plugins/migration-storage/index.js.map +1 -0
- package/dist/esm/plugins/pipeline/flagged-functions.js +122 -0
- package/dist/esm/plugins/pipeline/flagged-functions.js.map +1 -0
- package/dist/esm/plugins/pipeline/index.js +13 -0
- package/dist/esm/plugins/pipeline/index.js.map +1 -0
- package/dist/esm/plugins/pipeline/rx-pipeline.js +210 -0
- package/dist/esm/plugins/pipeline/rx-pipeline.js.map +1 -0
- package/dist/esm/plugins/pipeline/types.js +3 -0
- package/dist/esm/plugins/pipeline/types.js.map +1 -0
- package/dist/esm/plugins/query-builder/index.js +48 -0
- package/dist/esm/plugins/query-builder/index.js.map +1 -0
- package/dist/esm/plugins/query-builder/mquery/mquery-utils.js +33 -0
- package/dist/esm/plugins/query-builder/mquery/mquery-utils.js.map +1 -0
- package/dist/esm/plugins/query-builder/mquery/nosql-query-builder.js +478 -0
- package/dist/esm/plugins/query-builder/mquery/nosql-query-builder.js.map +1 -0
- package/dist/esm/plugins/react/database-context.js +8 -0
- package/dist/esm/plugins/react/database-context.js.map +1 -0
- package/dist/esm/plugins/react/database-provider.js +34 -0
- package/dist/esm/plugins/react/database-provider.js.map +1 -0
- package/dist/esm/plugins/react/hooks/index.js +5 -0
- package/dist/esm/plugins/react/hooks/index.js.map +1 -0
- package/dist/esm/plugins/react/hooks/use-live-rx-query.js +22 -0
- package/dist/esm/plugins/react/hooks/use-live-rx-query.js.map +1 -0
- package/dist/esm/plugins/react/hooks/use-rx-collection.js +34 -0
- package/dist/esm/plugins/react/hooks/use-rx-collection.js.map +1 -0
- package/dist/esm/plugins/react/hooks/use-rx-database.js +19 -0
- package/dist/esm/plugins/react/hooks/use-rx-database.js.map +1 -0
- package/dist/esm/plugins/react/hooks/use-rx-query.js +92 -0
- package/dist/esm/plugins/react/hooks/use-rx-query.js.map +1 -0
- package/dist/esm/plugins/react/index.js +3 -0
- package/dist/esm/plugins/react/index.js.map +1 -0
- package/dist/esm/plugins/reactivity-angular/index.js +25 -0
- package/dist/esm/plugins/reactivity-angular/index.js.map +1 -0
- package/dist/esm/plugins/reactivity-preact-signals/index.js +62 -0
- package/dist/esm/plugins/reactivity-preact-signals/index.js.map +1 -0
- package/dist/esm/plugins/reactivity-vue/index.js +27 -0
- package/dist/esm/plugins/reactivity-vue/index.js.map +1 -0
- package/dist/esm/plugins/replication/index.js +479 -0
- package/dist/esm/plugins/replication/index.js.map +1 -0
- package/dist/esm/plugins/replication/replication-helper.js +86 -0
- package/dist/esm/plugins/replication/replication-helper.js.map +1 -0
- package/dist/esm/plugins/replication-appwrite/appwrite-helpers.js +26 -0
- package/dist/esm/plugins/replication-appwrite/appwrite-helpers.js.map +1 -0
- package/dist/esm/plugins/replication-appwrite/appwrite-types.js +3 -0
- package/dist/esm/plugins/replication-appwrite/appwrite-types.js.map +1 -0
- package/dist/esm/plugins/replication-appwrite/index.js +168 -0
- package/dist/esm/plugins/replication-appwrite/index.js.map +1 -0
- package/dist/esm/plugins/replication-couchdb/couchdb-helper.js +65 -0
- package/dist/esm/plugins/replication-couchdb/couchdb-helper.js.map +1 -0
- package/dist/esm/plugins/replication-couchdb/couchdb-types.js +3 -0
- package/dist/esm/plugins/replication-couchdb/couchdb-types.js.map +1 -0
- package/dist/esm/plugins/replication-couchdb/index.js +254 -0
- package/dist/esm/plugins/replication-couchdb/index.js.map +1 -0
- package/dist/esm/plugins/replication-firestore/firestore-helper.js +49 -0
- package/dist/esm/plugins/replication-firestore/firestore-helper.js.map +1 -0
- package/dist/esm/plugins/replication-firestore/firestore-types.js +3 -0
- package/dist/esm/plugins/replication-firestore/firestore-types.js.map +1 -0
- package/dist/esm/plugins/replication-firestore/index.js +233 -0
- package/dist/esm/plugins/replication-firestore/index.js.map +1 -0
- package/dist/esm/plugins/replication-google-drive/document-handling.js +140 -0
- package/dist/esm/plugins/replication-google-drive/document-handling.js.map +1 -0
- package/dist/esm/plugins/replication-google-drive/downstream.js +66 -0
- package/dist/esm/plugins/replication-google-drive/downstream.js.map +1 -0
- package/dist/esm/plugins/replication-google-drive/google-drive-helper.js +331 -0
- package/dist/esm/plugins/replication-google-drive/google-drive-helper.js.map +1 -0
- package/dist/esm/plugins/replication-google-drive/google-drive-types.js +3 -0
- package/dist/esm/plugins/replication-google-drive/google-drive-types.js.map +1 -0
- package/dist/esm/plugins/replication-google-drive/index.js +126 -0
- package/dist/esm/plugins/replication-google-drive/index.js.map +1 -0
- package/dist/esm/plugins/replication-google-drive/init.js +70 -0
- package/dist/esm/plugins/replication-google-drive/init.js.map +1 -0
- package/dist/esm/plugins/replication-google-drive/multipart.js +67 -0
- package/dist/esm/plugins/replication-google-drive/multipart.js.map +1 -0
- package/dist/esm/plugins/replication-google-drive/signaling.js +253 -0
- package/dist/esm/plugins/replication-google-drive/signaling.js.map +1 -0
- package/dist/esm/plugins/replication-google-drive/transaction.js +123 -0
- package/dist/esm/plugins/replication-google-drive/transaction.js.map +1 -0
- package/dist/esm/plugins/replication-google-drive/upstream.js +171 -0
- package/dist/esm/plugins/replication-google-drive/upstream.js.map +1 -0
- package/dist/esm/plugins/replication-graphql/graphql-schema-from-rx-schema.js +228 -0
- package/dist/esm/plugins/replication-graphql/graphql-schema-from-rx-schema.js.map +1 -0
- package/dist/esm/plugins/replication-graphql/graphql-websocket.js +35 -0
- package/dist/esm/plugins/replication-graphql/graphql-websocket.js.map +1 -0
- package/dist/esm/plugins/replication-graphql/helper.js +21 -0
- package/dist/esm/plugins/replication-graphql/helper.js.map +1 -0
- package/dist/esm/plugins/replication-graphql/index.js +161 -0
- package/dist/esm/plugins/replication-graphql/index.js.map +1 -0
- package/dist/esm/plugins/replication-graphql/query-builder-from-rx-schema.js +133 -0
- package/dist/esm/plugins/replication-graphql/query-builder-from-rx-schema.js.map +1 -0
- package/dist/esm/plugins/replication-microsoft-onedrive/document-handling.js +178 -0
- package/dist/esm/plugins/replication-microsoft-onedrive/document-handling.js.map +1 -0
- package/dist/esm/plugins/replication-microsoft-onedrive/downstream.js +71 -0
- package/dist/esm/plugins/replication-microsoft-onedrive/downstream.js.map +1 -0
- package/dist/esm/plugins/replication-microsoft-onedrive/index.js +126 -0
- package/dist/esm/plugins/replication-microsoft-onedrive/index.js.map +1 -0
- package/dist/esm/plugins/replication-microsoft-onedrive/init.js +70 -0
- package/dist/esm/plugins/replication-microsoft-onedrive/init.js.map +1 -0
- package/dist/esm/plugins/replication-microsoft-onedrive/microsoft-onedrive-helper.js +258 -0
- package/dist/esm/plugins/replication-microsoft-onedrive/microsoft-onedrive-helper.js.map +1 -0
- package/dist/esm/plugins/replication-microsoft-onedrive/microsoft-onedrive-types.js +3 -0
- package/dist/esm/plugins/replication-microsoft-onedrive/microsoft-onedrive-types.js.map +1 -0
- package/dist/esm/plugins/replication-microsoft-onedrive/signaling.js +226 -0
- package/dist/esm/plugins/replication-microsoft-onedrive/signaling.js.map +1 -0
- package/dist/esm/plugins/replication-microsoft-onedrive/transaction.js +127 -0
- package/dist/esm/plugins/replication-microsoft-onedrive/transaction.js.map +1 -0
- package/dist/esm/plugins/replication-microsoft-onedrive/upstream.js +179 -0
- package/dist/esm/plugins/replication-microsoft-onedrive/upstream.js.map +1 -0
- package/dist/esm/plugins/replication-mongodb/index.js +197 -0
- package/dist/esm/plugins/replication-mongodb/index.js.map +1 -0
- package/dist/esm/plugins/replication-mongodb/mongodb-checkpoint.js +131 -0
- package/dist/esm/plugins/replication-mongodb/mongodb-checkpoint.js.map +1 -0
- package/dist/esm/plugins/replication-mongodb/mongodb-helper.js +45 -0
- package/dist/esm/plugins/replication-mongodb/mongodb-helper.js.map +1 -0
- package/dist/esm/plugins/replication-mongodb/mongodb-types.js +3 -0
- package/dist/esm/plugins/replication-mongodb/mongodb-types.js.map +1 -0
- package/dist/esm/plugins/replication-nats/index.js +199 -0
- package/dist/esm/plugins/replication-nats/index.js.map +1 -0
- package/dist/esm/plugins/replication-nats/nats-helper.js +7 -0
- package/dist/esm/plugins/replication-nats/nats-helper.js.map +1 -0
- package/dist/esm/plugins/replication-nats/nats-types.js +3 -0
- package/dist/esm/plugins/replication-nats/nats-types.js.map +1 -0
- package/dist/esm/plugins/replication-supabase/helper.js +35 -0
- package/dist/esm/plugins/replication-supabase/helper.js.map +1 -0
- package/dist/esm/plugins/replication-supabase/index.js +231 -0
- package/dist/esm/plugins/replication-supabase/index.js.map +1 -0
- package/dist/esm/plugins/replication-supabase/types.js +3 -0
- package/dist/esm/plugins/replication-supabase/types.js.map +1 -0
- package/dist/esm/plugins/replication-webrtc/connection-handler-p2pcf.js +78 -0
- package/dist/esm/plugins/replication-webrtc/connection-handler-p2pcf.js.map +1 -0
- package/dist/esm/plugins/replication-webrtc/connection-handler-simple-peer.js +192 -0
- package/dist/esm/plugins/replication-webrtc/connection-handler-simple-peer.js.map +1 -0
- package/dist/esm/plugins/replication-webrtc/connection-handler-webtorrent.js +136 -0
- package/dist/esm/plugins/replication-webrtc/connection-handler-webtorrent.js.map +1 -0
- package/dist/esm/plugins/replication-webrtc/index.js +207 -0
- package/dist/esm/plugins/replication-webrtc/index.js.map +1 -0
- package/dist/esm/plugins/replication-webrtc/signaling-server.js +144 -0
- package/dist/esm/plugins/replication-webrtc/signaling-server.js.map +1 -0
- package/dist/esm/plugins/replication-webrtc/webrtc-helper.js +26 -0
- package/dist/esm/plugins/replication-webrtc/webrtc-helper.js.map +1 -0
- package/dist/esm/plugins/replication-webrtc/webrtc-types.js +3 -0
- package/dist/esm/plugins/replication-webrtc/webrtc-types.js.map +1 -0
- package/dist/esm/plugins/replication-websocket/index.js +4 -0
- package/dist/esm/plugins/replication-websocket/index.js.map +1 -0
- package/dist/esm/plugins/replication-websocket/websocket-client.js +125 -0
- package/dist/esm/plugins/replication-websocket/websocket-client.js.map +1 -0
- package/dist/esm/plugins/replication-websocket/websocket-server.js +100 -0
- package/dist/esm/plugins/replication-websocket/websocket-server.js.map +1 -0
- package/dist/esm/plugins/replication-websocket/websocket-types.js +3 -0
- package/dist/esm/plugins/replication-websocket/websocket-types.js.map +1 -0
- package/dist/esm/plugins/state/helpers.js +73 -0
- package/dist/esm/plugins/state/helpers.js.map +1 -0
- package/dist/esm/plugins/state/index.js +20 -0
- package/dist/esm/plugins/state/index.js.map +1 -0
- package/dist/esm/plugins/state/rx-state.js +285 -0
- package/dist/esm/plugins/state/rx-state.js.map +1 -0
- package/dist/esm/plugins/state/types.js +3 -0
- package/dist/esm/plugins/state/types.js.map +1 -0
- package/dist/esm/plugins/storage-denokv/denokv-helper.js +40 -0
- package/dist/esm/plugins/storage-denokv/denokv-helper.js.map +1 -0
- package/dist/esm/plugins/storage-denokv/denokv-query.js +93 -0
- package/dist/esm/plugins/storage-denokv/denokv-query.js.map +1 -0
- package/dist/esm/plugins/storage-denokv/denokv-types.js +3 -0
- package/dist/esm/plugins/storage-denokv/denokv-types.js.map +1 -0
- package/dist/esm/plugins/storage-denokv/index.js +24 -0
- package/dist/esm/plugins/storage-denokv/index.js.map +1 -0
- package/dist/esm/plugins/storage-denokv/rx-storage-instance-denokv.js +325 -0
- package/dist/esm/plugins/storage-denokv/rx-storage-instance-denokv.js.map +1 -0
- package/dist/esm/plugins/storage-dexie/dexie-helper.js +241 -0
- package/dist/esm/plugins/storage-dexie/dexie-helper.js.map +1 -0
- package/dist/esm/plugins/storage-dexie/dexie-query.js +169 -0
- package/dist/esm/plugins/storage-dexie/dexie-query.js.map +1 -0
- package/dist/esm/plugins/storage-dexie/index.js +5 -0
- package/dist/esm/plugins/storage-dexie/index.js.map +1 -0
- package/dist/esm/plugins/storage-dexie/rx-storage-dexie.js +39 -0
- package/dist/esm/plugins/storage-dexie/rx-storage-dexie.js.map +1 -0
- package/dist/esm/plugins/storage-dexie/rx-storage-instance-dexie.js +222 -0
- package/dist/esm/plugins/storage-dexie/rx-storage-instance-dexie.js.map +1 -0
- package/dist/esm/plugins/storage-foundationdb/foundationdb-helpers.js +6 -0
- package/dist/esm/plugins/storage-foundationdb/foundationdb-helpers.js.map +1 -0
- package/dist/esm/plugins/storage-foundationdb/foundationdb-query.js +90 -0
- package/dist/esm/plugins/storage-foundationdb/foundationdb-query.js.map +1 -0
- package/dist/esm/plugins/storage-foundationdb/foundationdb-types.js +3 -0
- package/dist/esm/plugins/storage-foundationdb/foundationdb-types.js.map +1 -0
- package/dist/esm/plugins/storage-foundationdb/index.js +31 -0
- package/dist/esm/plugins/storage-foundationdb/index.js.map +1 -0
- package/dist/esm/plugins/storage-foundationdb/rx-storage-instance-foundationdb.js +302 -0
- package/dist/esm/plugins/storage-foundationdb/rx-storage-instance-foundationdb.js.map +1 -0
- package/dist/esm/plugins/storage-localstorage/index.js +23 -0
- package/dist/esm/plugins/storage-localstorage/index.js.map +1 -0
- package/dist/esm/plugins/storage-localstorage/localstorage-mock.js +33 -0
- package/dist/esm/plugins/storage-localstorage/localstorage-mock.js.map +1 -0
- package/dist/esm/plugins/storage-localstorage/rx-storage-instance-localstorage.js +432 -0
- package/dist/esm/plugins/storage-localstorage/rx-storage-instance-localstorage.js.map +1 -0
- package/dist/esm/plugins/storage-memory/binary-search-bounds.js +103 -0
- package/dist/esm/plugins/storage-memory/binary-search-bounds.js.map +1 -0
- package/dist/esm/plugins/storage-memory/index.js +29 -0
- package/dist/esm/plugins/storage-memory/index.js.map +1 -0
- package/dist/esm/plugins/storage-memory/memory-helper.js +165 -0
- package/dist/esm/plugins/storage-memory/memory-helper.js.map +1 -0
- package/dist/esm/plugins/storage-memory/memory-indexes.js +21 -0
- package/dist/esm/plugins/storage-memory/memory-indexes.js.map +1 -0
- package/dist/esm/plugins/storage-memory/memory-types.js +3 -0
- package/dist/esm/plugins/storage-memory/memory-types.js.map +1 -0
- package/dist/esm/plugins/storage-memory/rx-storage-instance-memory.js +364 -0
- package/dist/esm/plugins/storage-memory/rx-storage-instance-memory.js.map +1 -0
- package/dist/esm/plugins/storage-mongodb/index.js +5 -0
- package/dist/esm/plugins/storage-mongodb/index.js.map +1 -0
- package/dist/esm/plugins/storage-mongodb/mongodb-helper.js +85 -0
- package/dist/esm/plugins/storage-mongodb/mongodb-helper.js.map +1 -0
- package/dist/esm/plugins/storage-mongodb/mongodb-types.js +3 -0
- package/dist/esm/plugins/storage-mongodb/mongodb-types.js.map +1 -0
- package/dist/esm/plugins/storage-mongodb/rx-storage-instance-mongodb.js +316 -0
- package/dist/esm/plugins/storage-mongodb/rx-storage-instance-mongodb.js.map +1 -0
- package/dist/esm/plugins/storage-mongodb/rx-storage-mongodb.js +22 -0
- package/dist/esm/plugins/storage-mongodb/rx-storage-mongodb.js.map +1 -0
- package/dist/esm/plugins/storage-remote/index.js +6 -0
- package/dist/esm/plugins/storage-remote/index.js.map +1 -0
- package/dist/esm/plugins/storage-remote/message-channel-cache.js +44 -0
- package/dist/esm/plugins/storage-remote/message-channel-cache.js.map +1 -0
- package/dist/esm/plugins/storage-remote/remote.js +212 -0
- package/dist/esm/plugins/storage-remote/remote.js.map +1 -0
- package/dist/esm/plugins/storage-remote/rx-storage-remote.js +193 -0
- package/dist/esm/plugins/storage-remote/rx-storage-remote.js.map +1 -0
- package/dist/esm/plugins/storage-remote/storage-remote-helpers.js +18 -0
- package/dist/esm/plugins/storage-remote/storage-remote-helpers.js.map +1 -0
- package/dist/esm/plugins/storage-remote/storage-remote-types.js +3 -0
- package/dist/esm/plugins/storage-remote/storage-remote-types.js.map +1 -0
- package/dist/esm/plugins/storage-remote-websocket/index.js +161 -0
- package/dist/esm/plugins/storage-remote-websocket/index.js.map +1 -0
- package/dist/esm/plugins/storage-remote-websocket/types.js +3 -0
- package/dist/esm/plugins/storage-remote-websocket/types.js.map +1 -0
- package/dist/esm/plugins/storage-sqlite/index.js +31 -0
- package/dist/esm/plugins/storage-sqlite/index.js.map +1 -0
- package/dist/esm/plugins/storage-sqlite/sqlite-basics-helpers.js +510 -0
- package/dist/esm/plugins/storage-sqlite/sqlite-basics-helpers.js.map +1 -0
- package/dist/esm/plugins/storage-sqlite/sqlite-helpers.js +187 -0
- package/dist/esm/plugins/storage-sqlite/sqlite-helpers.js.map +1 -0
- package/dist/esm/plugins/storage-sqlite/sqlite-storage-instance.js +283 -0
- package/dist/esm/plugins/storage-sqlite/sqlite-storage-instance.js.map +1 -0
- package/dist/esm/plugins/storage-sqlite/sqlite-types.js +3 -0
- package/dist/esm/plugins/storage-sqlite/sqlite-types.js.map +1 -0
- package/dist/esm/plugins/test-utils/config.js +104 -0
- package/dist/esm/plugins/test-utils/config.js.map +1 -0
- package/dist/esm/plugins/test-utils/humans-collection.js +397 -0
- package/dist/esm/plugins/test-utils/humans-collection.js.map +1 -0
- package/dist/esm/plugins/test-utils/index.js +22 -0
- package/dist/esm/plugins/test-utils/index.js.map +1 -0
- package/dist/esm/plugins/test-utils/performance.js +267 -0
- package/dist/esm/plugins/test-utils/performance.js.map +1 -0
- package/dist/esm/plugins/test-utils/replication-base-test-suite.js +170 -0
- package/dist/esm/plugins/test-utils/replication-base-test-suite.js.map +1 -0
- package/dist/esm/plugins/test-utils/replication.js +46 -0
- package/dist/esm/plugins/test-utils/replication.js.map +1 -0
- package/dist/esm/plugins/test-utils/revisions.js +5 -0
- package/dist/esm/plugins/test-utils/revisions.js.map +1 -0
- package/dist/esm/plugins/test-utils/schema-objects.js +283 -0
- package/dist/esm/plugins/test-utils/schema-objects.js.map +1 -0
- package/dist/esm/plugins/test-utils/schemas.js +1244 -0
- package/dist/esm/plugins/test-utils/schemas.js.map +1 -0
- package/dist/esm/plugins/test-utils/test-util.js +62 -0
- package/dist/esm/plugins/test-utils/test-util.js.map +1 -0
- package/dist/esm/plugins/update/index.js +35 -0
- package/dist/esm/plugins/update/index.js.map +1 -0
- package/dist/esm/plugins/update/mingo-updater.js +13 -0
- package/dist/esm/plugins/update/mingo-updater.js.map +1 -0
- package/dist/esm/plugins/utils/index.js +21 -0
- package/dist/esm/plugins/utils/index.js.map +1 -0
- package/dist/esm/plugins/utils/utils-array.js +130 -0
- package/dist/esm/plugins/utils/utils-array.js.map +1 -0
- package/dist/esm/plugins/utils/utils-base64.js +48 -0
- package/dist/esm/plugins/utils/utils-base64.js.map +1 -0
- package/dist/esm/plugins/utils/utils-blob.js +54 -0
- package/dist/esm/plugins/utils/utils-blob.js.map +1 -0
- package/dist/esm/plugins/utils/utils-document.js +87 -0
- package/dist/esm/plugins/utils/utils-document.js.map +1 -0
- package/dist/esm/plugins/utils/utils-error.js +36 -0
- package/dist/esm/plugins/utils/utils-error.js.map +1 -0
- package/dist/esm/plugins/utils/utils-global.js +6 -0
- package/dist/esm/plugins/utils/utils-global.js.map +1 -0
- package/dist/esm/plugins/utils/utils-hash.js +51 -0
- package/dist/esm/plugins/utils/utils-hash.js.map +1 -0
- package/dist/esm/plugins/utils/utils-map.js +18 -0
- package/dist/esm/plugins/utils/utils-map.js.map +1 -0
- package/dist/esm/plugins/utils/utils-number.js +10 -0
- package/dist/esm/plugins/utils/utils-number.js.map +1 -0
- package/dist/esm/plugins/utils/utils-object-deep-equal.js +36 -0
- package/dist/esm/plugins/utils/utils-object-deep-equal.js.map +1 -0
- package/dist/esm/plugins/utils/utils-object-dot-prop.js +296 -0
- package/dist/esm/plugins/utils/utils-object-dot-prop.js.map +1 -0
- package/dist/esm/plugins/utils/utils-object.js +228 -0
- package/dist/esm/plugins/utils/utils-object.js.map +1 -0
- package/dist/esm/plugins/utils/utils-other.js +58 -0
- package/dist/esm/plugins/utils/utils-other.js.map +1 -0
- package/dist/esm/plugins/utils/utils-premium.js +30 -0
- package/dist/esm/plugins/utils/utils-premium.js.map +1 -0
- package/dist/esm/plugins/utils/utils-promise.js +134 -0
- package/dist/esm/plugins/utils/utils-promise.js.map +1 -0
- package/dist/esm/plugins/utils/utils-regex.js +3 -0
- package/dist/esm/plugins/utils/utils-regex.js.map +1 -0
- package/dist/esm/plugins/utils/utils-revision.js +53 -0
- package/dist/esm/plugins/utils/utils-revision.js.map +1 -0
- package/dist/esm/plugins/utils/utils-rxdb-version.js +5 -0
- package/dist/esm/plugins/utils/utils-rxdb-version.js.map +1 -0
- package/dist/esm/plugins/utils/utils-rxdb-version.template.js +5 -0
- package/dist/esm/plugins/utils/utils-rxdb-version.template.js.map +1 -0
- package/dist/esm/plugins/utils/utils-string.js +83 -0
- package/dist/esm/plugins/utils/utils-string.js.map +1 -0
- package/dist/esm/plugins/utils/utils-time.js +36 -0
- package/dist/esm/plugins/utils/utils-time.js.map +1 -0
- package/dist/esm/plugins/validate-ajv/index.js +43 -0
- package/dist/esm/plugins/validate-ajv/index.js.map +1 -0
- package/dist/esm/plugins/validate-is-my-json-valid/index.js +20 -0
- package/dist/esm/plugins/validate-is-my-json-valid/index.js.map +1 -0
- package/dist/esm/plugins/validate-z-schema/index.js +47 -0
- package/dist/esm/plugins/validate-z-schema/index.js.map +1 -0
- package/dist/esm/plugins/vector/helper.js +2 -0
- package/dist/esm/plugins/vector/helper.js.map +1 -0
- package/dist/esm/plugins/vector/index.js +2 -0
- package/dist/esm/plugins/vector/index.js.map +1 -0
- package/dist/esm/plugins/vector/types.js +3 -0
- package/dist/esm/plugins/vector/types.js.map +1 -0
- package/dist/esm/plugins/vector/vector-distance.js +29 -0
- package/dist/esm/plugins/vector/vector-distance.js.map +1 -0
- package/dist/esm/plugins/webmcp/index.js +3 -0
- package/dist/esm/plugins/webmcp/index.js.map +1 -0
- package/dist/esm/plugins/webmcp/nosql-query-schema.js +354 -0
- package/dist/esm/plugins/webmcp/nosql-query-schema.js.map +1 -0
- package/dist/esm/plugins/webmcp/webmcp.js +307 -0
- package/dist/esm/plugins/webmcp/webmcp.js.map +1 -0
- package/dist/esm/query-cache.js +99 -0
- package/dist/esm/query-cache.js.map +1 -0
- package/dist/esm/query-planner.js +297 -0
- package/dist/esm/query-planner.js.map +1 -0
- package/dist/esm/replication-protocol/checkpoint.js +95 -0
- package/dist/esm/replication-protocol/checkpoint.js.map +1 -0
- package/dist/esm/replication-protocol/conflicts.js +31 -0
- package/dist/esm/replication-protocol/conflicts.js.map +1 -0
- package/dist/esm/replication-protocol/default-conflict-handler.js +33 -0
- package/dist/esm/replication-protocol/default-conflict-handler.js.map +1 -0
- package/dist/esm/replication-protocol/downstream.js +334 -0
- package/dist/esm/replication-protocol/downstream.js.map +1 -0
- package/dist/esm/replication-protocol/helper.js +49 -0
- package/dist/esm/replication-protocol/helper.js.map +1 -0
- package/dist/esm/replication-protocol/index.js +221 -0
- package/dist/esm/replication-protocol/index.js.map +1 -0
- package/dist/esm/replication-protocol/meta-instance.js +121 -0
- package/dist/esm/replication-protocol/meta-instance.js.map +1 -0
- package/dist/esm/replication-protocol/upstream.js +379 -0
- package/dist/esm/replication-protocol/upstream.js.map +1 -0
- package/dist/esm/rx-change-event.js +103 -0
- package/dist/esm/rx-change-event.js.map +1 -0
- package/dist/esm/rx-collection-helper.js +196 -0
- package/dist/esm/rx-collection-helper.js.map +1 -0
- package/dist/esm/rx-collection.js +923 -0
- package/dist/esm/rx-collection.js.map +1 -0
- package/dist/esm/rx-database-internal-store.js +270 -0
- package/dist/esm/rx-database-internal-store.js.map +1 -0
- package/dist/esm/rx-database.js +670 -0
- package/dist/esm/rx-database.js.map +1 -0
- package/dist/esm/rx-document-prototype-merge.js +78 -0
- package/dist/esm/rx-document-prototype-merge.js.map +1 -0
- package/dist/esm/rx-document.js +394 -0
- package/dist/esm/rx-document.js.map +1 -0
- package/dist/esm/rx-error.js +153 -0
- package/dist/esm/rx-error.js.map +1 -0
- package/dist/esm/rx-query-helper.js +268 -0
- package/dist/esm/rx-query-helper.js.map +1 -0
- package/dist/esm/rx-query-mingo.js +54 -0
- package/dist/esm/rx-query-mingo.js.map +1 -0
- package/dist/esm/rx-query-single-result.js +98 -0
- package/dist/esm/rx-query-single-result.js.map +1 -0
- package/dist/esm/rx-query.js +690 -0
- package/dist/esm/rx-query.js.map +1 -0
- package/dist/esm/rx-schema-helper.js +316 -0
- package/dist/esm/rx-schema-helper.js.map +1 -0
- package/dist/esm/rx-schema.js +177 -0
- package/dist/esm/rx-schema.js.map +1 -0
- package/dist/esm/rx-storage-helper.js +785 -0
- package/dist/esm/rx-storage-helper.js.map +1 -0
- package/dist/esm/rx-storage-multiinstance.js +113 -0
- package/dist/esm/rx-storage-multiinstance.js.map +1 -0
- package/dist/esm/types/conflict-handling.d.js +3 -0
- package/dist/esm/types/conflict-handling.d.js.map +1 -0
- package/dist/esm/types/couchdb.d.js +3 -0
- package/dist/esm/types/couchdb.d.js.map +1 -0
- package/dist/esm/types/index.d.js +2 -0
- package/dist/esm/types/index.d.js.map +1 -0
- package/dist/esm/types/modules/index.d.js +2 -0
- package/dist/esm/types/modules/index.d.js.map +1 -0
- package/dist/esm/types/modules/mocha.parallel.d.js +2 -0
- package/dist/esm/types/modules/mocha.parallel.d.js.map +1 -0
- package/dist/esm/types/plugins/backup.d.js +3 -0
- package/dist/esm/types/plugins/backup.d.js.map +1 -0
- package/dist/esm/types/plugins/cleanup.d.js +3 -0
- package/dist/esm/types/plugins/cleanup.d.js.map +1 -0
- package/dist/esm/types/plugins/crdt.d.js +3 -0
- package/dist/esm/types/plugins/crdt.d.js.map +1 -0
- package/dist/esm/types/plugins/dexie.d.js +3 -0
- package/dist/esm/types/plugins/dexie.d.js.map +1 -0
- package/dist/esm/types/plugins/local-documents.d.js +3 -0
- package/dist/esm/types/plugins/local-documents.d.js.map +1 -0
- package/dist/esm/types/plugins/migration.d.js +3 -0
- package/dist/esm/types/plugins/migration.d.js.map +1 -0
- package/dist/esm/types/plugins/reactivity.d.js +3 -0
- package/dist/esm/types/plugins/reactivity.d.js.map +1 -0
- package/dist/esm/types/plugins/replication-graphql.d.js +3 -0
- package/dist/esm/types/plugins/replication-graphql.d.js.map +1 -0
- package/dist/esm/types/plugins/replication.d.js +3 -0
- package/dist/esm/types/plugins/replication.d.js.map +1 -0
- package/dist/esm/types/plugins/state.d.js +3 -0
- package/dist/esm/types/plugins/state.d.js.map +1 -0
- package/dist/esm/types/plugins/update.d.js +3 -0
- package/dist/esm/types/plugins/update.d.js.map +1 -0
- package/dist/esm/types/plugins/webmcp.d.js +3 -0
- package/dist/esm/types/plugins/webmcp.d.js.map +1 -0
- package/dist/esm/types/query-planner.d.js +3 -0
- package/dist/esm/types/query-planner.d.js.map +1 -0
- package/dist/esm/types/replication-protocol.d.js +3 -0
- package/dist/esm/types/replication-protocol.d.js.map +1 -0
- package/dist/esm/types/rx-attachment.d.js +3 -0
- package/dist/esm/types/rx-attachment.d.js.map +1 -0
- package/dist/esm/types/rx-change-event.d.js +3 -0
- package/dist/esm/types/rx-change-event.d.js.map +1 -0
- package/dist/esm/types/rx-collection.d.js +3 -0
- package/dist/esm/types/rx-collection.d.js.map +1 -0
- package/dist/esm/types/rx-database-internal-store.d.js +3 -0
- package/dist/esm/types/rx-database-internal-store.d.js.map +1 -0
- package/dist/esm/types/rx-database.d.js +3 -0
- package/dist/esm/types/rx-database.d.js.map +1 -0
- package/dist/esm/types/rx-document.d.js +3 -0
- package/dist/esm/types/rx-document.d.js.map +1 -0
- package/dist/esm/types/rx-error.d.js +3 -0
- package/dist/esm/types/rx-error.d.js.map +1 -0
- package/dist/esm/types/rx-plugin.d.js +3 -0
- package/dist/esm/types/rx-plugin.d.js.map +1 -0
- package/dist/esm/types/rx-query.d.js +3 -0
- package/dist/esm/types/rx-query.d.js.map +1 -0
- package/dist/esm/types/rx-schema.d.js +3 -0
- package/dist/esm/types/rx-schema.d.js.map +1 -0
- package/dist/esm/types/rx-storage.d.js +3 -0
- package/dist/esm/types/rx-storage.d.js.map +1 -0
- package/dist/esm/types/rx-storage.interface.d.js +3 -0
- package/dist/esm/types/rx-storage.interface.d.js.map +1 -0
- package/dist/esm/types/util.d.js +3 -0
- package/dist/esm/types/util.d.js.map +1 -0
- package/dist/types/change-event-buffer.d.ts +50 -0
- package/dist/types/custom-index.d.ts +58 -0
- package/dist/types/doc-cache.d.ts +96 -0
- package/dist/types/event-reduce.d.ts +15 -0
- package/dist/types/hooks.d.ts +109 -0
- package/dist/types/incremental-write.d.ts +29 -0
- package/dist/types/index.d.ts +30 -0
- package/dist/types/overwritable.d.ts +26 -0
- package/dist/types/plugin-helpers.d.ts +30 -0
- package/dist/types/plugin.d.ts +6 -0
- package/dist/types/plugins/attachments/attachments-utils.d.ts +10 -0
- package/dist/types/plugins/attachments/index.d.ts +42 -0
- package/dist/types/plugins/attachments-compression/index.d.ts +38 -0
- package/dist/types/plugins/backup/file-util.d.ts +17 -0
- package/dist/types/plugins/backup/index.d.ts +37 -0
- package/dist/types/plugins/cleanup/cleanup-helper.d.ts +2 -0
- package/dist/types/plugins/cleanup/cleanup-state.d.ts +7 -0
- package/dist/types/plugins/cleanup/cleanup.d.ts +8 -0
- package/dist/types/plugins/cleanup/index.d.ts +4 -0
- package/dist/types/plugins/crdt/index.d.ts +12 -0
- package/dist/types/plugins/dev-mode/check-document.d.ts +9 -0
- package/dist/types/plugins/dev-mode/check-migration-strategies.d.ts +6 -0
- package/dist/types/plugins/dev-mode/check-orm.d.ts +7 -0
- package/dist/types/plugins/dev-mode/check-query.d.ts +21 -0
- package/dist/types/plugins/dev-mode/check-schema.d.ts +18 -0
- package/dist/types/plugins/dev-mode/dev-mode-tracking.d.ts +4 -0
- package/dist/types/plugins/dev-mode/entity-properties.d.ts +3 -0
- package/dist/types/plugins/dev-mode/error-messages.d.ts +1230 -0
- package/dist/types/plugins/dev-mode/index.d.ts +19 -0
- package/dist/types/plugins/dev-mode/unallowed-properties.d.ts +20 -0
- package/dist/types/plugins/electron/electron-helper.d.ts +2 -0
- package/dist/types/plugins/electron/index.d.ts +3 -0
- package/dist/types/plugins/electron/rx-storage-ipc-main.d.ts +10 -0
- package/dist/types/plugins/electron/rx-storage-ipc-renderer.d.ts +13 -0
- package/dist/types/plugins/encryption-crypto-js/index.d.ts +10 -0
- package/dist/types/plugins/flutter/index.d.ts +11 -0
- package/dist/types/plugins/json-dump/index.d.ts +2 -0
- package/dist/types/plugins/key-compression/index.d.ts +18 -0
- package/dist/types/plugins/leader-election/index.d.ts +25 -0
- package/dist/types/plugins/local-documents/index.d.ts +6 -0
- package/dist/types/plugins/local-documents/local-documents-helper.d.ts +9 -0
- package/dist/types/plugins/local-documents/local-documents.d.ts +14 -0
- package/dist/types/plugins/local-documents/rx-local-document.d.ts +11 -0
- package/dist/types/plugins/migration-schema/index.d.ts +8 -0
- package/dist/types/plugins/migration-schema/migration-helpers.d.ts +29 -0
- package/dist/types/plugins/migration-schema/migration-types.d.ts +33 -0
- package/dist/types/plugins/migration-schema/rx-migration-state.d.ts +50 -0
- package/dist/types/plugins/migration-storage/index.d.ts +32 -0
- package/dist/types/plugins/pipeline/flagged-functions.d.ts +69 -0
- package/dist/types/plugins/pipeline/index.d.ts +5 -0
- package/dist/types/plugins/pipeline/rx-pipeline.d.ts +37 -0
- package/dist/types/plugins/pipeline/types.d.ts +17 -0
- package/dist/types/plugins/query-builder/index.d.ts +5 -0
- package/dist/types/plugins/query-builder/mquery/mquery-utils.d.ts +12 -0
- package/dist/types/plugins/query-builder/mquery/nosql-query-builder.d.ts +165 -0
- package/dist/types/plugins/react/database-context.d.ts +4 -0
- package/dist/types/plugins/react/database-provider.d.ts +24 -0
- package/dist/types/plugins/react/hooks/index.d.ts +4 -0
- package/dist/types/plugins/react/hooks/use-live-rx-query.d.ts +11 -0
- package/dist/types/plugins/react/hooks/use-rx-collection.d.ts +10 -0
- package/dist/types/plugins/react/hooks/use-rx-database.d.ts +9 -0
- package/dist/types/plugins/react/hooks/use-rx-query.d.ts +24 -0
- package/dist/types/plugins/react/index.d.ts +2 -0
- package/dist/types/plugins/reactivity-angular/index.d.ts +16 -0
- package/dist/types/plugins/reactivity-preact-signals/index.d.ts +27 -0
- package/dist/types/plugins/reactivity-vue/index.d.ts +17 -0
- package/dist/types/plugins/replication/index.d.ts +84 -0
- package/dist/types/plugins/replication/replication-helper.d.ts +23 -0
- package/dist/types/plugins/replication-appwrite/appwrite-helpers.d.ts +3 -0
- package/dist/types/plugins/replication-appwrite/appwrite-types.d.ts +16 -0
- package/dist/types/plugins/replication-appwrite/index.d.ts +14 -0
- package/dist/types/plugins/replication-couchdb/couchdb-helper.d.ts +19 -0
- package/dist/types/plugins/replication-couchdb/couchdb-types.d.ts +22 -0
- package/dist/types/plugins/replication-couchdb/index.d.ts +18 -0
- package/dist/types/plugins/replication-firestore/firestore-helper.d.ts +10 -0
- package/dist/types/plugins/replication-firestore/firestore-types.d.ts +46 -0
- package/dist/types/plugins/replication-firestore/index.d.ts +17 -0
- package/dist/types/plugins/replication-google-drive/document-handling.d.ts +13 -0
- package/dist/types/plugins/replication-google-drive/downstream.d.ts +10 -0
- package/dist/types/plugins/replication-google-drive/google-drive-helper.d.ts +35 -0
- package/dist/types/plugins/replication-google-drive/google-drive-types.d.ts +67 -0
- package/dist/types/plugins/replication-google-drive/index.d.ts +39 -0
- package/dist/types/plugins/replication-google-drive/init.d.ts +29 -0
- package/dist/types/plugins/replication-google-drive/multipart.d.ts +10 -0
- package/dist/types/plugins/replication-google-drive/signaling.d.ts +41 -0
- package/dist/types/plugins/replication-google-drive/transaction.d.ts +22 -0
- package/dist/types/plugins/replication-google-drive/upstream.d.ts +24 -0
- package/dist/types/plugins/replication-graphql/graphql-schema-from-rx-schema.d.ts +51 -0
- package/dist/types/plugins/replication-graphql/graphql-websocket.d.ts +12 -0
- package/dist/types/plugins/replication-graphql/helper.d.ts +15 -0
- package/dist/types/plugins/replication-graphql/index.d.ts +26 -0
- package/dist/types/plugins/replication-graphql/query-builder-from-rx-schema.d.ts +5 -0
- package/dist/types/plugins/replication-microsoft-onedrive/document-handling.d.ts +14 -0
- package/dist/types/plugins/replication-microsoft-onedrive/downstream.d.ts +10 -0
- package/dist/types/plugins/replication-microsoft-onedrive/index.d.ts +38 -0
- package/dist/types/plugins/replication-microsoft-onedrive/init.d.ts +29 -0
- package/dist/types/plugins/replication-microsoft-onedrive/microsoft-onedrive-helper.d.ts +30 -0
- package/dist/types/plugins/replication-microsoft-onedrive/microsoft-onedrive-types.d.ts +71 -0
- package/dist/types/plugins/replication-microsoft-onedrive/signaling.d.ts +41 -0
- package/dist/types/plugins/replication-microsoft-onedrive/transaction.d.ts +22 -0
- package/dist/types/plugins/replication-microsoft-onedrive/upstream.d.ts +25 -0
- package/dist/types/plugins/replication-mongodb/index.d.ts +22 -0
- package/dist/types/plugins/replication-mongodb/mongodb-checkpoint.d.ts +15 -0
- package/dist/types/plugins/replication-mongodb/mongodb-helper.d.ts +13 -0
- package/dist/types/plugins/replication-mongodb/mongodb-types.d.ts +33 -0
- package/dist/types/plugins/replication-nats/index.d.ts +16 -0
- package/dist/types/plugins/replication-nats/nats-helper.d.ts +2 -0
- package/dist/types/plugins/replication-nats/nats-types.d.ts +21 -0
- package/dist/types/plugins/replication-supabase/helper.d.ts +5 -0
- package/dist/types/plugins/replication-supabase/index.d.ts +14 -0
- package/dist/types/plugins/replication-supabase/types.d.ts +28 -0
- package/dist/types/plugins/replication-webrtc/connection-handler-p2pcf.d.ts +0 -0
- package/dist/types/plugins/replication-webrtc/connection-handler-simple-peer.d.ts +57 -0
- package/dist/types/plugins/replication-webrtc/connection-handler-webtorrent.d.ts +0 -0
- package/dist/types/plugins/replication-webrtc/index.d.ts +27 -0
- package/dist/types/plugins/replication-webrtc/signaling-server.d.ts +17 -0
- package/dist/types/plugins/replication-webrtc/webrtc-helper.d.ts +16 -0
- package/dist/types/plugins/replication-webrtc/webrtc-types.d.ts +51 -0
- package/dist/types/plugins/replication-websocket/index.d.ts +3 -0
- package/dist/types/plugins/replication-websocket/websocket-client.d.ts +13 -0
- package/dist/types/plugins/replication-websocket/websocket-server.d.ts +6 -0
- package/dist/types/plugins/replication-websocket/websocket-types.d.ts +32 -0
- package/dist/types/plugins/state/helpers.d.ts +10 -0
- package/dist/types/plugins/state/index.d.ts +4 -0
- package/dist/types/plugins/state/rx-state.d.ts +46 -0
- package/dist/types/plugins/state/types.d.ts +28 -0
- package/dist/types/plugins/storage-denokv/denokv-helper.d.ts +16 -0
- package/dist/types/plugins/storage-denokv/denokv-query.d.ts +3 -0
- package/dist/types/plugins/storage-denokv/denokv-types.d.ts +17 -0
- package/dist/types/plugins/storage-denokv/index.d.ts +11 -0
- package/dist/types/plugins/storage-denokv/rx-storage-instance-denokv.d.ts +41 -0
- package/dist/types/plugins/storage-dexie/dexie-helper.d.ts +40 -0
- package/dist/types/plugins/storage-dexie/dexie-query.d.ts +9 -0
- package/dist/types/plugins/storage-dexie/index.d.ts +4 -0
- package/dist/types/plugins/storage-dexie/rx-storage-dexie.d.ts +11 -0
- package/dist/types/plugins/storage-dexie/rx-storage-instance-dexie.d.ts +29 -0
- package/dist/types/plugins/storage-foundationdb/foundationdb-helpers.d.ts +3 -0
- package/dist/types/plugins/storage-foundationdb/foundationdb-query.d.ts +3 -0
- package/dist/types/plugins/storage-foundationdb/foundationdb-types.d.ts +46 -0
- package/dist/types/plugins/storage-foundationdb/index.d.ts +4 -0
- package/dist/types/plugins/storage-foundationdb/rx-storage-instance-foundationdb.d.ts +26 -0
- package/dist/types/plugins/storage-localstorage/index.d.ts +11 -0
- package/dist/types/plugins/storage-localstorage/localstorage-mock.d.ts +1 -0
- package/dist/types/plugins/storage-localstorage/rx-storage-instance-localstorage.d.ts +84 -0
- package/dist/types/plugins/storage-memory/binary-search-bounds.d.ts +14 -0
- package/dist/types/plugins/storage-memory/index.d.ts +7 -0
- package/dist/types/plugins/storage-memory/memory-helper.d.ts +22 -0
- package/dist/types/plugins/storage-memory/memory-indexes.d.ts +4 -0
- package/dist/types/plugins/storage-memory/memory-types.d.ts +72 -0
- package/dist/types/plugins/storage-memory/rx-storage-instance-memory.d.ts +47 -0
- package/dist/types/plugins/storage-mongodb/index.d.ts +4 -0
- package/dist/types/plugins/storage-mongodb/mongodb-helper.d.ts +22 -0
- package/dist/types/plugins/storage-mongodb/mongodb-types.d.ts +21 -0
- package/dist/types/plugins/storage-mongodb/rx-storage-instance-mongodb.d.ts +52 -0
- package/dist/types/plugins/storage-mongodb/rx-storage-mongodb.d.ts +11 -0
- package/dist/types/plugins/storage-remote/index.d.ts +5 -0
- package/dist/types/plugins/storage-remote/message-channel-cache.d.ts +13 -0
- package/dist/types/plugins/storage-remote/remote.d.ts +6 -0
- package/dist/types/plugins/storage-remote/rx-storage-remote.d.ts +43 -0
- package/dist/types/plugins/storage-remote/storage-remote-helpers.d.ts +4 -0
- package/dist/types/plugins/storage-remote/storage-remote-types.d.ts +88 -0
- package/dist/types/plugins/storage-remote-websocket/index.d.ts +4 -0
- package/dist/types/plugins/storage-remote-websocket/types.d.ts +24 -0
- package/dist/types/plugins/storage-sqlite/index.d.ts +15 -0
- package/dist/types/plugins/storage-sqlite/sqlite-basics-helpers.d.ts +53 -0
- package/dist/types/plugins/storage-sqlite/sqlite-helpers.d.ts +48 -0
- package/dist/types/plugins/storage-sqlite/sqlite-storage-instance.d.ts +38 -0
- package/dist/types/plugins/storage-sqlite/sqlite-types.d.ts +116 -0
- package/dist/types/plugins/test-utils/config.d.ts +16 -0
- package/dist/types/plugins/test-utils/humans-collection.d.ts +26 -0
- package/dist/types/plugins/test-utils/index.d.ts +20 -0
- package/dist/types/plugins/test-utils/performance.d.ts +68 -0
- package/dist/types/plugins/test-utils/replication-base-test-suite.d.ts +66 -0
- package/dist/types/plugins/test-utils/replication.d.ts +10 -0
- package/dist/types/plugins/test-utils/revisions.d.ts +4 -0
- package/dist/types/plugins/test-utils/schema-objects.d.ts +219 -0
- package/dist/types/plugins/test-utils/schemas.d.ts +356 -0
- package/dist/types/plugins/test-utils/test-util.d.ts +10 -0
- package/dist/types/plugins/update/index.d.ts +5 -0
- package/dist/types/plugins/update/mingo-updater.d.ts +2 -0
- package/dist/types/plugins/utils/index.d.ts +20 -0
- package/dist/types/plugins/utils/utils-array.d.ts +40 -0
- package/dist/types/plugins/utils/utils-base64.d.ts +15 -0
- package/dist/types/plugins/utils/utils-blob.d.ts +12 -0
- package/dist/types/plugins/utils/utils-document.d.ts +26 -0
- package/dist/types/plugins/utils/utils-error.d.ts +8 -0
- package/dist/types/plugins/utils/utils-global.d.ts +5 -0
- package/dist/types/plugins/utils/utils-hash.d.ts +4 -0
- package/dist/types/plugins/utils/utils-map.d.ts +2 -0
- package/dist/types/plugins/utils/utils-number.d.ts +7 -0
- package/dist/types/plugins/utils/utils-object-deep-equal.d.ts +7 -0
- package/dist/types/plugins/utils/utils-object-dot-prop.d.ts +14 -0
- package/dist/types/plugins/utils/utils-object.d.ts +61 -0
- package/dist/types/plugins/utils/utils-other.d.ts +20 -0
- package/dist/types/plugins/utils/utils-premium.d.ts +10 -0
- package/dist/types/plugins/utils/utils-promise.d.ts +43 -0
- package/dist/types/plugins/utils/utils-regex.d.ts +2 -0
- package/dist/types/plugins/utils/utils-revision.d.ts +22 -0
- package/dist/types/plugins/utils/utils-rxdb-version.d.ts +4 -0
- package/dist/types/plugins/utils/utils-rxdb-version.template.d.ts +4 -0
- package/dist/types/plugins/utils/utils-string.d.ts +35 -0
- package/dist/types/plugins/utils/utils-time.d.ts +5 -0
- package/dist/types/plugins/validate-ajv/index.d.ts +13 -0
- package/dist/types/plugins/validate-is-my-json-valid/index.d.ts +5 -0
- package/dist/types/plugins/validate-z-schema/index.d.ts +13 -0
- package/dist/types/plugins/vector/helper.d.ts +0 -0
- package/dist/types/plugins/vector/index.d.ts +2 -0
- package/dist/types/plugins/vector/types.d.ts +1 -0
- package/dist/types/plugins/vector/vector-distance.d.ts +13 -0
- package/dist/types/plugins/webmcp/index.d.ts +2 -0
- package/dist/types/plugins/webmcp/nosql-query-schema.d.ts +549 -0
- package/dist/types/plugins/webmcp/webmcp.d.ts +12 -0
- package/dist/types/query-cache.d.ts +35 -0
- package/dist/types/query-planner.d.ts +30 -0
- package/dist/types/replication-protocol/checkpoint.d.ts +8 -0
- package/dist/types/replication-protocol/conflicts.d.ts +10 -0
- package/dist/types/replication-protocol/default-conflict-handler.d.ts +2 -0
- package/dist/types/replication-protocol/downstream.d.ts +10 -0
- package/dist/types/replication-protocol/helper.d.ts +5 -0
- package/dist/types/replication-protocol/index.d.ts +30 -0
- package/dist/types/replication-protocol/meta-instance.d.ts +12 -0
- package/dist/types/replication-protocol/upstream.d.ts +10 -0
- package/dist/types/rx-change-event.d.ts +20 -0
- package/dist/types/rx-collection-helper.d.ts +41 -0
- package/dist/types/rx-collection.d.ts +185 -0
- package/dist/types/rx-database-internal-store.d.ts +37 -0
- package/dist/types/rx-database.d.ts +213 -0
- package/dist/types/rx-document-prototype-merge.d.ts +24 -0
- package/dist/types/rx-document.d.ts +274 -0
- package/dist/types/rx-error.d.ts +37 -0
- package/dist/types/rx-query-helper.d.ts +31 -0
- package/dist/types/rx-query-mingo.d.ts +10 -0
- package/dist/types/rx-query-single-result.d.ts +31 -0
- package/dist/types/rx-query.d.ts +153 -0
- package/dist/types/rx-schema-helper.d.ts +57 -0
- package/dist/types/rx-schema.d.ts +43 -0
- package/dist/types/rx-storage-helper.d.ts +111 -0
- package/dist/types/rx-storage-multiinstance.d.ts +51 -0
- package/dist/types/types/conflict-handling.d.ts +48 -0
- package/dist/types/types/couchdb.d.ts +293 -0
- package/dist/types/types/index.d.ts +32 -0
- package/dist/types/types/modules/index.d.ts +0 -0
- package/dist/types/types/modules/mocha.parallel.d.ts +1 -0
- package/dist/types/types/plugins/backup.d.ts +35 -0
- package/dist/types/types/plugins/cleanup.d.ts +38 -0
- package/dist/types/types/plugins/crdt.d.ts +76 -0
- package/dist/types/types/plugins/dexie.d.ts +30 -0
- package/dist/types/types/plugins/local-documents.d.ts +49 -0
- package/dist/types/types/plugins/migration.d.ts +14 -0
- package/dist/types/types/plugins/reactivity.d.ts +40 -0
- package/dist/types/types/plugins/replication-graphql.d.ts +98 -0
- package/dist/types/types/plugins/replication.d.ts +175 -0
- package/dist/types/types/plugins/state.d.ts +4 -0
- package/dist/types/types/plugins/update.d.ts +23 -0
- package/dist/types/types/plugins/webmcp.d.ts +40 -0
- package/dist/types/types/query-planner.d.ts +47 -0
- package/dist/types/types/replication-protocol.d.ts +296 -0
- package/dist/types/types/rx-attachment.d.ts +46 -0
- package/dist/types/types/rx-change-event.d.ts +85 -0
- package/dist/types/types/rx-collection.d.ts +117 -0
- package/dist/types/types/rx-database-internal-store.d.ts +54 -0
- package/dist/types/types/rx-database.d.ts +124 -0
- package/dist/types/types/rx-document.d.ts +160 -0
- package/dist/types/types/rx-error.d.ts +222 -0
- package/dist/types/types/rx-plugin.d.ts +167 -0
- package/dist/types/types/rx-query.d.ts +144 -0
- package/dist/types/types/rx-schema.d.ts +209 -0
- package/dist/types/types/rx-storage.d.ts +347 -0
- package/dist/types/types/rx-storage.interface.d.ts +312 -0
- package/dist/types/types/util.d.ts +180 -0
- package/eslint.config.mjs +514 -0
- package/package.json +729 -0
- package/plugins/attachments/index.cjs +2 -0
- package/plugins/attachments/index.d.cts +1 -0
- package/plugins/attachments/index.d.mts +1 -0
- package/plugins/attachments/index.mjs +1 -0
- package/plugins/attachments/index.ts +1 -0
- package/plugins/attachments/package.json +18 -0
- package/plugins/attachments-compression/index.cjs +2 -0
- package/plugins/attachments-compression/index.d.cts +1 -0
- package/plugins/attachments-compression/index.d.mts +1 -0
- package/plugins/attachments-compression/index.mjs +1 -0
- package/plugins/attachments-compression/index.ts +1 -0
- package/plugins/attachments-compression/package.json +18 -0
- package/plugins/backup/index.cjs +2 -0
- package/plugins/backup/index.d.cts +1 -0
- package/plugins/backup/index.d.mts +1 -0
- package/plugins/backup/index.mjs +1 -0
- package/plugins/backup/index.ts +1 -0
- package/plugins/backup/package.json +18 -0
- package/plugins/cleanup/index.cjs +2 -0
- package/plugins/cleanup/index.d.cts +1 -0
- package/plugins/cleanup/index.d.mts +1 -0
- package/plugins/cleanup/index.mjs +1 -0
- package/plugins/cleanup/index.ts +1 -0
- package/plugins/cleanup/package.json +18 -0
- package/plugins/core/index.cjs +2 -0
- package/plugins/core/index.d.cts +1 -0
- package/plugins/core/index.d.mts +1 -0
- package/plugins/core/index.mjs +1 -0
- package/plugins/core/index.ts +1 -0
- package/plugins/core/package.json +18 -0
- package/plugins/crdt/index.cjs +2 -0
- package/plugins/crdt/index.d.cts +1 -0
- package/plugins/crdt/index.d.mts +1 -0
- package/plugins/crdt/index.mjs +1 -0
- package/plugins/crdt/index.ts +1 -0
- package/plugins/crdt/package.json +18 -0
- package/plugins/dev-mode/index.cjs +2 -0
- package/plugins/dev-mode/index.d.cts +1 -0
- package/plugins/dev-mode/index.d.mts +1 -0
- package/plugins/dev-mode/index.mjs +1 -0
- package/plugins/dev-mode/index.ts +1 -0
- package/plugins/dev-mode/package.json +18 -0
- package/plugins/electron/index.cjs +2 -0
- package/plugins/electron/index.d.cts +1 -0
- package/plugins/electron/index.d.mts +1 -0
- package/plugins/electron/index.mjs +1 -0
- package/plugins/electron/index.ts +1 -0
- package/plugins/electron/package.json +18 -0
- package/plugins/encryption-crypto-js/index.cjs +2 -0
- package/plugins/encryption-crypto-js/index.d.cts +1 -0
- package/plugins/encryption-crypto-js/index.d.mts +1 -0
- package/plugins/encryption-crypto-js/index.mjs +1 -0
- package/plugins/encryption-crypto-js/index.ts +1 -0
- package/plugins/encryption-crypto-js/package.json +18 -0
- package/plugins/flutter/index.cjs +2 -0
- package/plugins/flutter/index.d.cts +1 -0
- package/plugins/flutter/index.d.mts +1 -0
- package/plugins/flutter/index.mjs +1 -0
- package/plugins/flutter/index.ts +1 -0
- package/plugins/flutter/package.json +18 -0
- package/plugins/json-dump/index.cjs +2 -0
- package/plugins/json-dump/index.d.cts +1 -0
- package/plugins/json-dump/index.d.mts +1 -0
- package/plugins/json-dump/index.mjs +1 -0
- package/plugins/json-dump/index.ts +1 -0
- package/plugins/json-dump/package.json +18 -0
- package/plugins/key-compression/index.cjs +2 -0
- package/plugins/key-compression/index.d.cts +1 -0
- package/plugins/key-compression/index.d.mts +1 -0
- package/plugins/key-compression/index.mjs +1 -0
- package/plugins/key-compression/index.ts +1 -0
- package/plugins/key-compression/package.json +18 -0
- package/plugins/leader-election/index.cjs +2 -0
- package/plugins/leader-election/index.d.cts +1 -0
- package/plugins/leader-election/index.d.mts +1 -0
- package/plugins/leader-election/index.mjs +1 -0
- package/plugins/leader-election/index.ts +1 -0
- package/plugins/leader-election/package.json +18 -0
- package/plugins/local-documents/index.cjs +2 -0
- package/plugins/local-documents/index.d.cts +1 -0
- package/plugins/local-documents/index.d.mts +1 -0
- package/plugins/local-documents/index.mjs +1 -0
- package/plugins/local-documents/index.ts +1 -0
- package/plugins/local-documents/package.json +18 -0
- package/plugins/migration-schema/index.cjs +2 -0
- package/plugins/migration-schema/index.d.cts +1 -0
- package/plugins/migration-schema/index.d.mts +1 -0
- package/plugins/migration-schema/index.mjs +1 -0
- package/plugins/migration-schema/index.ts +1 -0
- package/plugins/migration-schema/package.json +18 -0
- package/plugins/migration-storage/index.cjs +2 -0
- package/plugins/migration-storage/index.d.cts +1 -0
- package/plugins/migration-storage/index.d.mts +1 -0
- package/plugins/migration-storage/index.mjs +1 -0
- package/plugins/migration-storage/index.ts +1 -0
- package/plugins/migration-storage/package.json +18 -0
- package/plugins/pipeline/index.cjs +2 -0
- package/plugins/pipeline/index.d.cts +1 -0
- package/plugins/pipeline/index.d.mts +1 -0
- package/plugins/pipeline/index.mjs +1 -0
- package/plugins/pipeline/index.ts +1 -0
- package/plugins/pipeline/package.json +18 -0
- package/plugins/query-builder/index.cjs +2 -0
- package/plugins/query-builder/index.d.cts +1 -0
- package/plugins/query-builder/index.d.mts +1 -0
- package/plugins/query-builder/index.mjs +1 -0
- package/plugins/query-builder/index.ts +1 -0
- package/plugins/query-builder/package.json +18 -0
- package/plugins/react/index.cjs +2 -0
- package/plugins/react/index.d.cts +1 -0
- package/plugins/react/index.d.mts +1 -0
- package/plugins/react/index.mjs +1 -0
- package/plugins/react/index.ts +1 -0
- package/plugins/react/package.json +18 -0
- package/plugins/reactivity-angular/index.cjs +2 -0
- package/plugins/reactivity-angular/index.d.cts +1 -0
- package/plugins/reactivity-angular/index.d.mts +1 -0
- package/plugins/reactivity-angular/index.mjs +1 -0
- package/plugins/reactivity-angular/index.ts +1 -0
- package/plugins/reactivity-angular/package.json +18 -0
- package/plugins/reactivity-preact-signals/index.cjs +2 -0
- package/plugins/reactivity-preact-signals/index.d.cts +1 -0
- package/plugins/reactivity-preact-signals/index.d.mts +1 -0
- package/plugins/reactivity-preact-signals/index.mjs +1 -0
- package/plugins/reactivity-preact-signals/index.ts +1 -0
- package/plugins/reactivity-preact-signals/package.json +18 -0
- package/plugins/reactivity-vue/index.cjs +2 -0
- package/plugins/reactivity-vue/index.d.cts +1 -0
- package/plugins/reactivity-vue/index.d.mts +1 -0
- package/plugins/reactivity-vue/index.mjs +1 -0
- package/plugins/reactivity-vue/index.ts +1 -0
- package/plugins/reactivity-vue/package.json +18 -0
- package/plugins/replication/index.cjs +2 -0
- package/plugins/replication/index.d.cts +1 -0
- package/plugins/replication/index.d.mts +1 -0
- package/plugins/replication/index.mjs +1 -0
- package/plugins/replication/index.ts +1 -0
- package/plugins/replication/package.json +18 -0
- package/plugins/replication-appwrite/index.cjs +2 -0
- package/plugins/replication-appwrite/index.d.cts +1 -0
- package/plugins/replication-appwrite/index.d.mts +1 -0
- package/plugins/replication-appwrite/index.mjs +1 -0
- package/plugins/replication-appwrite/index.ts +1 -0
- package/plugins/replication-appwrite/package.json +18 -0
- package/plugins/replication-couchdb/index.cjs +2 -0
- package/plugins/replication-couchdb/index.d.cts +1 -0
- package/plugins/replication-couchdb/index.d.mts +1 -0
- package/plugins/replication-couchdb/index.mjs +1 -0
- package/plugins/replication-couchdb/index.ts +1 -0
- package/plugins/replication-couchdb/package.json +18 -0
- package/plugins/replication-firestore/index.cjs +2 -0
- package/plugins/replication-firestore/index.d.cts +1 -0
- package/plugins/replication-firestore/index.d.mts +1 -0
- package/plugins/replication-firestore/index.mjs +1 -0
- package/plugins/replication-firestore/index.ts +1 -0
- package/plugins/replication-firestore/package.json +18 -0
- package/plugins/replication-google-drive/index.cjs +2 -0
- package/plugins/replication-google-drive/index.d.cts +1 -0
- package/plugins/replication-google-drive/index.d.mts +1 -0
- package/plugins/replication-google-drive/index.mjs +1 -0
- package/plugins/replication-google-drive/index.ts +1 -0
- package/plugins/replication-google-drive/package.json +18 -0
- package/plugins/replication-graphql/index.cjs +2 -0
- package/plugins/replication-graphql/index.d.cts +1 -0
- package/plugins/replication-graphql/index.d.mts +1 -0
- package/plugins/replication-graphql/index.mjs +1 -0
- package/plugins/replication-graphql/index.ts +1 -0
- package/plugins/replication-graphql/package.json +18 -0
- package/plugins/replication-microsoft-onedrive/index.cjs +2 -0
- package/plugins/replication-microsoft-onedrive/index.d.cts +1 -0
- package/plugins/replication-microsoft-onedrive/index.d.mts +1 -0
- package/plugins/replication-microsoft-onedrive/index.mjs +1 -0
- package/plugins/replication-microsoft-onedrive/index.ts +1 -0
- package/plugins/replication-microsoft-onedrive/package.json +18 -0
- package/plugins/replication-mongodb/index.cjs +2 -0
- package/plugins/replication-mongodb/index.d.cts +1 -0
- package/plugins/replication-mongodb/index.d.mts +1 -0
- package/plugins/replication-mongodb/index.mjs +1 -0
- package/plugins/replication-mongodb/index.ts +1 -0
- package/plugins/replication-mongodb/package.json +18 -0
- package/plugins/replication-nats/index.cjs +2 -0
- package/plugins/replication-nats/index.d.cts +1 -0
- package/plugins/replication-nats/index.d.mts +1 -0
- package/plugins/replication-nats/index.mjs +1 -0
- package/plugins/replication-nats/index.ts +1 -0
- package/plugins/replication-nats/package.json +18 -0
- package/plugins/replication-supabase/index.cjs +2 -0
- package/plugins/replication-supabase/index.d.cts +1 -0
- package/plugins/replication-supabase/index.d.mts +1 -0
- package/plugins/replication-supabase/index.mjs +1 -0
- package/plugins/replication-supabase/index.ts +1 -0
- package/plugins/replication-supabase/package.json +18 -0
- package/plugins/replication-webrtc/index.cjs +2 -0
- package/plugins/replication-webrtc/index.d.cts +1 -0
- package/plugins/replication-webrtc/index.d.mts +1 -0
- package/plugins/replication-webrtc/index.mjs +1 -0
- package/plugins/replication-webrtc/index.ts +1 -0
- package/plugins/replication-webrtc/package.json +18 -0
- package/plugins/replication-websocket/index.cjs +2 -0
- package/plugins/replication-websocket/index.d.cts +1 -0
- package/plugins/replication-websocket/index.d.mts +1 -0
- package/plugins/replication-websocket/index.mjs +1 -0
- package/plugins/replication-websocket/index.ts +1 -0
- package/plugins/replication-websocket/package.json +18 -0
- package/plugins/state/index.cjs +2 -0
- package/plugins/state/index.d.cts +1 -0
- package/plugins/state/index.d.mts +1 -0
- package/plugins/state/index.mjs +1 -0
- package/plugins/state/index.ts +1 -0
- package/plugins/state/package.json +18 -0
- package/plugins/storage-denokv/index.cjs +2 -0
- package/plugins/storage-denokv/index.d.cts +1 -0
- package/plugins/storage-denokv/index.d.mts +1 -0
- package/plugins/storage-denokv/index.mjs +1 -0
- package/plugins/storage-denokv/index.ts +1 -0
- package/plugins/storage-denokv/package.json +18 -0
- package/plugins/storage-dexie/index.cjs +2 -0
- package/plugins/storage-dexie/index.d.cts +1 -0
- package/plugins/storage-dexie/index.d.mts +1 -0
- package/plugins/storage-dexie/index.mjs +1 -0
- package/plugins/storage-dexie/index.ts +1 -0
- package/plugins/storage-dexie/package.json +18 -0
- package/plugins/storage-foundationdb/index.cjs +2 -0
- package/plugins/storage-foundationdb/index.d.cts +1 -0
- package/plugins/storage-foundationdb/index.d.mts +1 -0
- package/plugins/storage-foundationdb/index.mjs +1 -0
- package/plugins/storage-foundationdb/index.ts +1 -0
- package/plugins/storage-foundationdb/package.json +18 -0
- package/plugins/storage-localstorage/index.cjs +2 -0
- package/plugins/storage-localstorage/index.d.cts +1 -0
- package/plugins/storage-localstorage/index.d.mts +1 -0
- package/plugins/storage-localstorage/index.mjs +1 -0
- package/plugins/storage-localstorage/index.ts +1 -0
- package/plugins/storage-localstorage/package.json +18 -0
- package/plugins/storage-memory/index.cjs +2 -0
- package/plugins/storage-memory/index.d.cts +1 -0
- package/plugins/storage-memory/index.d.mts +1 -0
- package/plugins/storage-memory/index.mjs +1 -0
- package/plugins/storage-memory/index.ts +1 -0
- package/plugins/storage-memory/package.json +18 -0
- package/plugins/storage-mongodb/index.cjs +2 -0
- package/plugins/storage-mongodb/index.d.cts +1 -0
- package/plugins/storage-mongodb/index.d.mts +1 -0
- package/plugins/storage-mongodb/index.mjs +1 -0
- package/plugins/storage-mongodb/index.ts +1 -0
- package/plugins/storage-mongodb/package.json +18 -0
- package/plugins/storage-remote/index.cjs +2 -0
- package/plugins/storage-remote/index.d.cts +1 -0
- package/plugins/storage-remote/index.d.mts +1 -0
- package/plugins/storage-remote/index.mjs +1 -0
- package/plugins/storage-remote/index.ts +1 -0
- package/plugins/storage-remote/package.json +18 -0
- package/plugins/storage-remote-websocket/index.cjs +2 -0
- package/plugins/storage-remote-websocket/index.d.cts +1 -0
- package/plugins/storage-remote-websocket/index.d.mts +1 -0
- package/plugins/storage-remote-websocket/index.mjs +1 -0
- package/plugins/storage-remote-websocket/index.ts +1 -0
- package/plugins/storage-remote-websocket/package.json +18 -0
- package/plugins/storage-sqlite/index.cjs +2 -0
- package/plugins/storage-sqlite/index.d.cts +1 -0
- package/plugins/storage-sqlite/index.d.mts +1 -0
- package/plugins/storage-sqlite/index.mjs +1 -0
- package/plugins/storage-sqlite/index.ts +1 -0
- package/plugins/storage-sqlite/package.json +18 -0
- package/plugins/test-utils/index.cjs +2 -0
- package/plugins/test-utils/index.d.cts +1 -0
- package/plugins/test-utils/index.d.mts +1 -0
- package/plugins/test-utils/index.mjs +1 -0
- package/plugins/test-utils/index.ts +1 -0
- package/plugins/test-utils/package.json +18 -0
- package/plugins/update/index.cjs +2 -0
- package/plugins/update/index.d.cts +1 -0
- package/plugins/update/index.d.mts +1 -0
- package/plugins/update/index.mjs +1 -0
- package/plugins/update/index.ts +1 -0
- package/plugins/update/package.json +18 -0
- package/plugins/utils/index.cjs +2 -0
- package/plugins/utils/index.d.cts +1 -0
- package/plugins/utils/index.d.mts +1 -0
- package/plugins/utils/index.mjs +1 -0
- package/plugins/utils/index.ts +1 -0
- package/plugins/utils/package.json +18 -0
- package/plugins/validate-ajv/index.cjs +2 -0
- package/plugins/validate-ajv/index.d.cts +1 -0
- package/plugins/validate-ajv/index.d.mts +1 -0
- package/plugins/validate-ajv/index.mjs +1 -0
- package/plugins/validate-ajv/index.ts +1 -0
- package/plugins/validate-ajv/package.json +18 -0
- package/plugins/validate-is-my-json-valid/index.cjs +2 -0
- package/plugins/validate-is-my-json-valid/index.d.cts +1 -0
- package/plugins/validate-is-my-json-valid/index.d.mts +1 -0
- package/plugins/validate-is-my-json-valid/index.mjs +1 -0
- package/plugins/validate-is-my-json-valid/index.ts +1 -0
- package/plugins/validate-is-my-json-valid/package.json +18 -0
- package/plugins/validate-z-schema/index.cjs +2 -0
- package/plugins/validate-z-schema/index.d.cts +1 -0
- package/plugins/validate-z-schema/index.d.mts +1 -0
- package/plugins/validate-z-schema/index.mjs +1 -0
- package/plugins/validate-z-schema/index.ts +1 -0
- package/plugins/validate-z-schema/package.json +18 -0
- package/plugins/vector/index.cjs +2 -0
- package/plugins/vector/index.d.cts +1 -0
- package/plugins/vector/index.d.mts +1 -0
- package/plugins/vector/index.mjs +1 -0
- package/plugins/vector/index.ts +1 -0
- package/plugins/vector/package.json +18 -0
- package/plugins/webmcp/index.cjs +2 -0
- package/plugins/webmcp/index.d.cts +1 -0
- package/plugins/webmcp/index.d.mts +1 -0
- package/plugins/webmcp/index.mjs +1 -0
- package/plugins/webmcp/index.ts +1 -0
- package/plugins/webmcp/package.json +18 -0
- package/scripts/acme-challenge/.gittouch +0 -0
- package/scripts/ai-context-generator.mjs +63 -0
- package/scripts/cloud-signaling-script.sh +6 -0
- package/scripts/docs-remove-time.mjs +55 -0
- package/scripts/fix-types.mjs +23 -0
- package/scripts/generate-all-headers.ts +102 -0
- package/scripts/generate-error-messages.mjs +41 -0
- package/scripts/generate-header.ts +226 -0
- package/scripts/generate-plugins-package-json.mjs +133 -0
- package/scripts/install-foundationdb.sh +14 -0
- package/scripts/module_package.json +1 -0
- package/scripts/module_package_no_side.json +1 -0
- package/scripts/postinstall.js +33 -0
- package/scripts/profile.mjs +31 -0
- package/scripts/set-version.mjs +162 -0
- package/scripts/start-cloud-signaling-server.mjs +120 -0
- package/scripts/transpile.mjs +229 -0
- package/scripts/update-version-variable.mjs +49 -0
- package/src/change-event-buffer.ts +171 -0
- package/src/custom-index.ts +376 -0
- package/src/doc-cache.ts +294 -0
- package/src/event-reduce.ts +159 -0
- package/src/hooks.ts +128 -0
- package/src/incremental-write.ts +227 -0
- package/src/index.ts +30 -0
- package/src/overwritable.ts +41 -0
- package/src/plugin-helpers.ts +319 -0
- package/src/plugin.ts +113 -0
- package/src/plugins/attachments/attachments-utils.ts +84 -0
- package/src/plugins/attachments/index.ts +316 -0
- package/src/plugins/attachments-compression/index.ts +221 -0
- package/src/plugins/backup/file-util.ts +132 -0
- package/src/plugins/backup/index.ts +281 -0
- package/src/plugins/cleanup/cleanup-helper.ts +11 -0
- package/src/plugins/cleanup/cleanup-state.ts +92 -0
- package/src/plugins/cleanup/cleanup.ts +140 -0
- package/src/plugins/cleanup/index.ts +45 -0
- package/src/plugins/crdt/index.ts +505 -0
- package/src/plugins/dev-mode/check-document.ts +176 -0
- package/src/plugins/dev-mode/check-migration-strategies.ts +53 -0
- package/src/plugins/dev-mode/check-orm.ts +65 -0
- package/src/plugins/dev-mode/check-query.ts +231 -0
- package/src/plugins/dev-mode/check-schema.ts +564 -0
- package/src/plugins/dev-mode/dev-mode-tracking.ts +125 -0
- package/src/plugins/dev-mode/entity-properties.ts +56 -0
- package/src/plugins/dev-mode/error-messages.ts +1331 -0
- package/src/plugins/dev-mode/index.ts +203 -0
- package/src/plugins/dev-mode/unallowed-properties.ts +96 -0
- package/src/plugins/electron/electron-helper.ts +2 -0
- package/src/plugins/electron/index.ts +3 -0
- package/src/plugins/electron/rx-storage-ipc-main.ts +58 -0
- package/src/plugins/electron/rx-storage-ipc-renderer.ts +62 -0
- package/src/plugins/encryption-crypto-js/index.ts +220 -0
- package/src/plugins/flutter/dart/analysis_options.yaml +30 -0
- package/src/plugins/flutter/dart/example/rxdb_example.dart +6 -0
- package/src/plugins/flutter/dart/lib/rxdb.dart +7 -0
- package/src/plugins/flutter/dart/lib/src/rxdb_base.dart +332 -0
- package/src/plugins/flutter/dart/pubspec.yaml +15 -0
- package/src/plugins/flutter/index.ts +65 -0
- package/src/plugins/json-dump/index.ts +146 -0
- package/src/plugins/key-compression/index.ts +238 -0
- package/src/plugins/leader-election/index.ts +129 -0
- package/src/plugins/local-documents/index.ts +95 -0
- package/src/plugins/local-documents/local-documents-helper.ts +103 -0
- package/src/plugins/local-documents/local-documents.ts +146 -0
- package/src/plugins/local-documents/rx-local-document.ts +388 -0
- package/src/plugins/migration-schema/index.ts +75 -0
- package/src/plugins/migration-schema/migration-helpers.ts +162 -0
- package/src/plugins/migration-schema/migration-types.ts +42 -0
- package/src/plugins/migration-schema/rx-migration-state.ts +632 -0
- package/src/plugins/migration-storage/index.ts +255 -0
- package/src/plugins/pipeline/flagged-functions.ts +131 -0
- package/src/plugins/pipeline/index.ts +18 -0
- package/src/plugins/pipeline/rx-pipeline.ts +303 -0
- package/src/plugins/pipeline/types.ts +28 -0
- package/src/plugins/query-builder/index.ts +81 -0
- package/src/plugins/query-builder/mquery/README.md +5 -0
- package/src/plugins/query-builder/mquery/mquery-utils.ts +37 -0
- package/src/plugins/query-builder/mquery/nosql-query-builder.ts +578 -0
- package/src/plugins/react/database-context.ts +10 -0
- package/src/plugins/react/database-provider.tsx +38 -0
- package/src/plugins/react/hooks/index.ts +4 -0
- package/src/plugins/react/hooks/use-live-rx-query.ts +34 -0
- package/src/plugins/react/hooks/use-rx-collection.ts +73 -0
- package/src/plugins/react/hooks/use-rx-database.ts +35 -0
- package/src/plugins/react/hooks/use-rx-query.ts +168 -0
- package/src/plugins/react/index.ts +2 -0
- package/src/plugins/reactivity-angular/index.ts +32 -0
- package/src/plugins/reactivity-preact-signals/index.ts +85 -0
- package/src/plugins/reactivity-vue/index.ts +43 -0
- package/src/plugins/replication/index.ts +668 -0
- package/src/plugins/replication/replication-helper.ts +122 -0
- package/src/plugins/replication-appwrite/appwrite-helpers.ts +38 -0
- package/src/plugins/replication-appwrite/appwrite-types.ts +31 -0
- package/src/plugins/replication-appwrite/index.ts +269 -0
- package/src/plugins/replication-couchdb/couchdb-helper.ts +100 -0
- package/src/plugins/replication-couchdb/couchdb-types.ts +34 -0
- package/src/plugins/replication-couchdb/index.ts +341 -0
- package/src/plugins/replication-firestore/firestore-helper.ts +79 -0
- package/src/plugins/replication-firestore/firestore-types.ts +72 -0
- package/src/plugins/replication-firestore/index.ts +387 -0
- package/src/plugins/replication-google-drive/AGENTS.md +5 -0
- package/src/plugins/replication-google-drive/document-handling.ts +203 -0
- package/src/plugins/replication-google-drive/download-specs.sh +49 -0
- package/src/plugins/replication-google-drive/downstream.ts +118 -0
- package/src/plugins/replication-google-drive/google-drive-helper.ts +467 -0
- package/src/plugins/replication-google-drive/google-drive-types.ts +84 -0
- package/src/plugins/replication-google-drive/index.ts +221 -0
- package/src/plugins/replication-google-drive/init.ts +108 -0
- package/src/plugins/replication-google-drive/multipart.ts +86 -0
- package/src/plugins/replication-google-drive/signaling.ts +399 -0
- package/src/plugins/replication-google-drive/transaction.ts +222 -0
- package/src/plugins/replication-google-drive/upstream.ts +279 -0
- package/src/plugins/replication-graphql/graphql-schema-from-rx-schema.ts +337 -0
- package/src/plugins/replication-graphql/graphql-websocket.ts +56 -0
- package/src/plugins/replication-graphql/helper.ts +52 -0
- package/src/plugins/replication-graphql/index.ts +255 -0
- package/src/plugins/replication-graphql/query-builder-from-rx-schema.ts +195 -0
- package/src/plugins/replication-microsoft-onedrive/document-handling.ts +216 -0
- package/src/plugins/replication-microsoft-onedrive/downstream.ts +121 -0
- package/src/plugins/replication-microsoft-onedrive/index.ts +220 -0
- package/src/plugins/replication-microsoft-onedrive/init.ts +107 -0
- package/src/plugins/replication-microsoft-onedrive/microsoft-onedrive-helper.ts +355 -0
- package/src/plugins/replication-microsoft-onedrive/microsoft-onedrive-types.ts +88 -0
- package/src/plugins/replication-microsoft-onedrive/signaling.ts +333 -0
- package/src/plugins/replication-microsoft-onedrive/transaction.ts +220 -0
- package/src/plugins/replication-microsoft-onedrive/upstream.ts +282 -0
- package/src/plugins/replication-mongodb/index.ts +275 -0
- package/src/plugins/replication-mongodb/mongodb-checkpoint.ts +184 -0
- package/src/plugins/replication-mongodb/mongodb-helper.ts +69 -0
- package/src/plugins/replication-mongodb/mongodb-types.ts +50 -0
- package/src/plugins/replication-nats/index.ts +289 -0
- package/src/plugins/replication-nats/nats-helper.ts +15 -0
- package/src/plugins/replication-nats/nats-types.ts +43 -0
- package/src/plugins/replication-supabase/helper.ts +63 -0
- package/src/plugins/replication-supabase/index.ts +308 -0
- package/src/plugins/replication-supabase/types.ts +47 -0
- package/src/plugins/replication-webrtc/connection-handler-p2pcf.ts +77 -0
- package/src/plugins/replication-webrtc/connection-handler-simple-peer.ts +302 -0
- package/src/plugins/replication-webrtc/connection-handler-webtorrent.ts +137 -0
- package/src/plugins/replication-webrtc/index.ts +307 -0
- package/src/plugins/replication-webrtc/signaling-server.ts +193 -0
- package/src/plugins/replication-webrtc/webrtc-helper.ts +55 -0
- package/src/plugins/replication-webrtc/webrtc-types.ts +91 -0
- package/src/plugins/replication-websocket/index.ts +3 -0
- package/src/plugins/replication-websocket/websocket-client.ts +187 -0
- package/src/plugins/replication-websocket/websocket-server.ts +135 -0
- package/src/plugins/replication-websocket/websocket-types.ts +47 -0
- package/src/plugins/state/helpers.ts +86 -0
- package/src/plugins/state/index.ts +40 -0
- package/src/plugins/state/rx-state.ts +386 -0
- package/src/plugins/state/types.ts +32 -0
- package/src/plugins/storage-denokv/denokv-helper.ts +46 -0
- package/src/plugins/storage-denokv/denokv-query.ts +135 -0
- package/src/plugins/storage-denokv/denokv-types.ts +19 -0
- package/src/plugins/storage-denokv/index.ts +37 -0
- package/src/plugins/storage-denokv/rx-storage-instance-denokv.ts +426 -0
- package/src/plugins/storage-dexie/dexie-helper.ts +302 -0
- package/src/plugins/storage-dexie/dexie-query.ts +252 -0
- package/src/plugins/storage-dexie/index.ts +4 -0
- package/src/plugins/storage-dexie/rx-storage-dexie.ts +62 -0
- package/src/plugins/storage-dexie/rx-storage-instance-dexie.ts +378 -0
- package/src/plugins/storage-foundationdb/foundationdb-helpers.ts +6 -0
- package/src/plugins/storage-foundationdb/foundationdb-query.ts +140 -0
- package/src/plugins/storage-foundationdb/foundationdb-types.ts +64 -0
- package/src/plugins/storage-foundationdb/index.ts +57 -0
- package/src/plugins/storage-foundationdb/rx-storage-instance-foundationdb.ts +449 -0
- package/src/plugins/storage-localstorage/index.ts +44 -0
- package/src/plugins/storage-localstorage/localstorage-mock.ts +32 -0
- package/src/plugins/storage-localstorage/rx-storage-instance-localstorage.ts +686 -0
- package/src/plugins/storage-memory/binary-search-bounds.ts +106 -0
- package/src/plugins/storage-memory/index.ts +52 -0
- package/src/plugins/storage-memory/memory-helper.ts +259 -0
- package/src/plugins/storage-memory/memory-indexes.ts +34 -0
- package/src/plugins/storage-memory/memory-types.ts +90 -0
- package/src/plugins/storage-memory/rx-storage-instance-memory.ts +609 -0
- package/src/plugins/storage-mongodb/index.ts +4 -0
- package/src/plugins/storage-mongodb/mongodb-helper.ts +119 -0
- package/src/plugins/storage-mongodb/mongodb-types.ts +32 -0
- package/src/plugins/storage-mongodb/rx-storage-instance-mongodb.ts +464 -0
- package/src/plugins/storage-mongodb/rx-storage-mongodb.ts +33 -0
- package/src/plugins/storage-remote/index.ts +5 -0
- package/src/plugins/storage-remote/message-channel-cache.ts +88 -0
- package/src/plugins/storage-remote/remote.ts +285 -0
- package/src/plugins/storage-remote/rx-storage-remote.ts +286 -0
- package/src/plugins/storage-remote/storage-remote-helpers.ts +33 -0
- package/src/plugins/storage-remote/storage-remote-types.ts +118 -0
- package/src/plugins/storage-remote-websocket/index.ts +218 -0
- package/src/plugins/storage-remote-websocket/types.ts +34 -0
- package/src/plugins/storage-sqlite/index.ts +64 -0
- package/src/plugins/storage-sqlite/sqlite-basics-helpers.ts +656 -0
- package/src/plugins/storage-sqlite/sqlite-helpers.ts +287 -0
- package/src/plugins/storage-sqlite/sqlite-storage-instance.ts +507 -0
- package/src/plugins/storage-sqlite/sqlite-types.ts +151 -0
- package/src/plugins/test-utils/config.ts +135 -0
- package/src/plugins/test-utils/humans-collection.ts +557 -0
- package/src/plugins/test-utils/index.ts +24 -0
- package/src/plugins/test-utils/performance.ts +344 -0
- package/src/plugins/test-utils/replication-base-test-suite.ts +236 -0
- package/src/plugins/test-utils/replication.ts +95 -0
- package/src/plugins/test-utils/revisions.ts +4 -0
- package/src/plugins/test-utils/schema-objects.ts +527 -0
- package/src/plugins/test-utils/schemas.ts +1391 -0
- package/src/plugins/test-utils/test-util.ts +85 -0
- package/src/plugins/update/index.ts +57 -0
- package/src/plugins/update/mingo-updater.ts +26 -0
- package/src/plugins/utils/index.ts +20 -0
- package/src/plugins/utils/utils-array.ts +152 -0
- package/src/plugins/utils/utils-base64.ts +49 -0
- package/src/plugins/utils/utils-blob.ts +65 -0
- package/src/plugins/utils/utils-document.ts +117 -0
- package/src/plugins/utils/utils-error.ts +53 -0
- package/src/plugins/utils/utils-global.ts +5 -0
- package/src/plugins/utils/utils-hash.ts +62 -0
- package/src/plugins/utils/utils-map.ts +23 -0
- package/src/plugins/utils/utils-number.ts +9 -0
- package/src/plugins/utils/utils-object-deep-equal.ts +46 -0
- package/src/plugins/utils/utils-object-dot-prop.ts +365 -0
- package/src/plugins/utils/utils-object.ts +272 -0
- package/src/plugins/utils/utils-other.ts +58 -0
- package/src/plugins/utils/utils-premium.ts +37 -0
- package/src/plugins/utils/utils-promise.ts +171 -0
- package/src/plugins/utils/utils-regex.ts +2 -0
- package/src/plugins/utils/utils-revision.ts +55 -0
- package/src/plugins/utils/utils-rxdb-version.template.ts +4 -0
- package/src/plugins/utils/utils-rxdb-version.ts +4 -0
- package/src/plugins/utils/utils-string.ts +91 -0
- package/src/plugins/utils/utils-time.ts +37 -0
- package/src/plugins/validate-ajv/index.ts +61 -0
- package/src/plugins/validate-is-my-json-valid/index.ts +30 -0
- package/src/plugins/validate-z-schema/index.ts +58 -0
- package/src/plugins/vector/helper.ts +0 -0
- package/src/plugins/vector/index.ts +2 -0
- package/src/plugins/vector/types.ts +1 -0
- package/src/plugins/vector/vector-distance.ts +34 -0
- package/src/plugins/webmcp/index.ts +2 -0
- package/src/plugins/webmcp/nosql-query-schema.ts +299 -0
- package/src/plugins/webmcp/webmcp.ts +319 -0
- package/src/query-cache.ts +139 -0
- package/src/query-planner.ts +386 -0
- package/src/replication-protocol/checkpoint.ts +154 -0
- package/src/replication-protocol/conflicts.ts +53 -0
- package/src/replication-protocol/default-conflict-handler.ts +43 -0
- package/src/replication-protocol/downstream.ts +550 -0
- package/src/replication-protocol/helper.ts +96 -0
- package/src/replication-protocol/index.ts +348 -0
- package/src/replication-protocol/meta-instance.ts +195 -0
- package/src/replication-protocol/upstream.ts +560 -0
- package/src/rx-change-event.ts +137 -0
- package/src/rx-collection-helper.ts +262 -0
- package/src/rx-collection.ts +1306 -0
- package/src/rx-database-internal-store.ts +402 -0
- package/src/rx-database.ts +919 -0
- package/src/rx-document-prototype-merge.ts +124 -0
- package/src/rx-document.ts +557 -0
- package/src/rx-error.ts +190 -0
- package/src/rx-query-helper.ts +317 -0
- package/src/rx-query-mingo.ts +87 -0
- package/src/rx-query-single-result.ts +110 -0
- package/src/rx-query.ts +887 -0
- package/src/rx-schema-helper.ts +391 -0
- package/src/rx-schema.ts +247 -0
- package/src/rx-storage-helper.ts +1050 -0
- package/src/rx-storage-multiinstance.ts +188 -0
- package/src/types/conflict-handling.d.ts +48 -0
- package/src/types/couchdb.d.ts +293 -0
- package/src/types/index.d.ts +32 -0
- package/src/types/modules/index.d.ts +0 -0
- package/src/types/modules/mocha.parallel.d.ts +1 -0
- package/src/types/plugins/backup.d.ts +35 -0
- package/src/types/plugins/cleanup.d.ts +38 -0
- package/src/types/plugins/crdt.d.ts +76 -0
- package/src/types/plugins/dexie.d.ts +30 -0
- package/src/types/plugins/local-documents.d.ts +49 -0
- package/src/types/plugins/migration.d.ts +14 -0
- package/src/types/plugins/reactivity.d.ts +40 -0
- package/src/types/plugins/replication-graphql.d.ts +98 -0
- package/src/types/plugins/replication.d.ts +175 -0
- package/src/types/plugins/state.d.ts +4 -0
- package/src/types/plugins/update.d.ts +23 -0
- package/src/types/plugins/webmcp.d.ts +40 -0
- package/src/types/query-planner.d.ts +47 -0
- package/src/types/replication-protocol.d.ts +296 -0
- package/src/types/rx-attachment.d.ts +46 -0
- package/src/types/rx-change-event.d.ts +85 -0
- package/src/types/rx-collection.d.ts +117 -0
- package/src/types/rx-database-internal-store.d.ts +54 -0
- package/src/types/rx-database.d.ts +124 -0
- package/src/types/rx-document.d.ts +160 -0
- package/src/types/rx-error.d.ts +222 -0
- package/src/types/rx-plugin.d.ts +167 -0
- package/src/types/rx-query.d.ts +144 -0
- package/src/types/rx-schema.d.ts +209 -0
- package/src/types/rx-storage.d.ts +347 -0
- package/src/types/rx-storage.interface.d.ts +312 -0
- package/src/types/util.d.ts +180 -0
- package/tsconfig.json +54 -0
- package/tsconfig.lint.json +18 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rx-change-event.d.js","names":[],"sources":["../../../src/types/rx-change-event.d.ts"],"sourcesContent":["import type {\r\n RxDocumentData,\r\n RxStorageChangeEvent,\r\n RxStorageDefaultCheckpoint\r\n} from './rx-storage.d.ts';\r\n\r\n\r\nexport type RxChangeEventBase<RxDocType> = {\r\n operation: 'INSERT' | 'UPDATE' | 'DELETE';\r\n\r\n readonly documentId: string;\r\n\r\n // optional, does not exist on changes to localdocs of the database\r\n readonly collectionName?: string;\r\n\r\n // true if the event is about a local document, false if not.\r\n readonly isLocal: boolean;\r\n\r\n documentData: RxDocumentData<RxDocType>;\r\n};\r\n\r\nexport type RxChangeEventInsert<RxDocType> = RxChangeEventBase<RxDocType> & {\r\n operation: 'INSERT';\r\n previousDocumentData: undefined;\r\n};\r\n\r\nexport type RxChangeEventUpdate<RxDocType> = RxChangeEventBase<RxDocType> & {\r\n operation: 'UPDATE';\r\n previousDocumentData: RxDocumentData<RxDocType>;\r\n};\r\n\r\nexport type RxChangeEventDelete<RxDocType> = RxChangeEventBase<RxDocType> & {\r\n operation: 'DELETE';\r\n previousDocumentData: RxDocumentData<RxDocType>;\r\n};\r\n\r\nexport type RxChangeEvent<RxDocType> = RxChangeEventInsert<RxDocType> | RxChangeEventUpdate<RxDocType> | RxChangeEventDelete<RxDocType>;\r\n\r\n/**\r\n * Internally, all events are processed via bulks\r\n * to save performance when sending them over a transport layer\r\n * or de-duplicating them.\r\n */\r\nexport type RxChangeEventBulk<RxDocType, CheckpointType = RxStorageDefaultCheckpoint> = {\r\n /**\r\n * Unique id of the bulk,\r\n * used to detect duplicate bulks\r\n * that have already been processed.\r\n */\r\n id: string;\r\n\r\n // optional, not given for changes to local documents of a RxDatabase.\r\n collectionName?: string;\r\n\r\n isLocal: boolean;\r\n\r\n events: RxStorageChangeEvent<RxDocType>[];\r\n /**\r\n * Required for replication.\r\n * Passing this checkpoint into getChangedDocumentsSince()\r\n * must return all items that have been modified AFTER this write event.\r\n */\r\n checkpoint: CheckpointType;\r\n\r\n /**\r\n * The context that was given at the call to bulkWrite()\r\n * that caused this EventBulk.\r\n */\r\n context: string;\r\n /**\r\n * Token of the database instance that created the events.\r\n * Used to determine if the events came from another instance over the BroadcastChannel.\r\n */\r\n databaseToken: string;\r\n /**\r\n * The storageToken of the RxDatabase that created the events.\r\n * Used to ensure we do not process events of other RxDatabases.\r\n */\r\n storageToken: string;\r\n /**\r\n * If true, the events belong to some internal stuff like from plugins.\r\n * Internal events are not emitted to the outside over the .$ Observables.\r\n */\r\n internal: boolean;\r\n};\r\n"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rx-collection.d.js","names":[],"sources":["../../../src/types/rx-collection.d.ts"],"sourcesContent":["import type {\r\n RxJsonSchema,\r\n RxDocument,\r\n MigrationStrategies,\r\n RxConflictHandler\r\n} from './index.d.ts';\r\nimport type {\r\n RxCollectionBase\r\n} from '../rx-collection.d.ts';\r\nimport type { QueryCache } from '../query-cache.d.ts';\r\nimport type { RxLocalDocumentMutation } from './rx-database.d.ts';\r\n\r\nexport interface KeyFunctionMap {\r\n [key: string]: Function;\r\n}\r\nexport interface NumberFunctionMap {\r\n [key: number]: Function;\r\n}\r\n\r\n\r\n/**\r\n * Params to create a new collection.\r\n * Notice the name of the collection is set one level higher\r\n * when calling addCollections()\r\n */\r\nexport type RxCollectionCreator<RxDocType = any> = {\r\n schema: RxJsonSchema<RxDocType>;\r\n instanceCreationOptions?: any;\r\n migrationStrategies?: MigrationStrategies;\r\n autoMigrate?: boolean;\r\n statics?: KeyFunctionMap;\r\n methods?: KeyFunctionMap;\r\n attachments?: KeyFunctionMap;\r\n options?: any;\r\n /**\r\n * Set this to true if you want to store local documents\r\n * in the RxCollection instance.\r\n */\r\n localDocuments?: boolean;\r\n cacheReplacementPolicy?: RxCacheReplacementPolicy;\r\n\r\n /**\r\n * Depending on which plugins or storage is used,\r\n * the RxCollection might need a way to resolve conflicts\r\n * which is done by this conflict handler.\r\n * If no conflict handler is provided, a master-always-wins handler\r\n * will be used as default\r\n */\r\n conflictHandler?: RxConflictHandler<RxDocType>;\r\n};\r\n\r\nexport type RxCacheReplacementPolicy = (collection: RxCollection, queryCache: QueryCache) => void;\r\n\r\nexport type RxCollectionHookCallback<\r\n RxDocumentType,\r\n OrmMethods,\r\n Reactivity\r\n> = (\r\n data: RxDocumentType,\r\n instance: RxDocument<RxDocumentType, OrmMethods, Reactivity>\r\n) => void | Promise<void> | any;\r\nexport type RxCollectionHookNoInstance<RxDocumentType> = (data: RxDocumentType) => void | Promise<void> | any;\r\nexport type RxCollectionHookCallbackNonAsync<RxDocumentType, OrmMethods, Reactivity> = (\r\n data: RxDocumentType,\r\n instance: RxDocument<RxDocumentType, OrmMethods, Reactivity>\r\n) => void | any;\r\nexport type RxCollectionHookNoInstanceCallback<\r\n RxDocumentType,\r\n OrmMethods,\r\n Reactivity\r\n> = (\r\n data: RxDocumentType,\r\n instance: RxCollection<RxDocumentType, OrmMethods, Reactivity>\r\n) => Promise<void> | void | any;\r\n\r\nexport type RxCollection<\r\n RxDocumentType = any,\r\n OrmMethods = {},\r\n StaticMethods = {},\r\n InstanceCreationOptions = {},\r\n Reactivity = unknown\r\n> = StaticMethods &\r\n RxCollectionBase<InstanceCreationOptions, RxDocumentType, OrmMethods, StaticMethods, Reactivity> &\r\n RxCollectionGenerated<RxDocumentType, OrmMethods, Reactivity>;\r\n\r\nexport interface RxCollectionGenerated<RxDocumentType = any, OrmMethods = {}, Reactivity = unknown> extends RxLocalDocumentMutation<RxCollection<RxDocumentType, OrmMethods, any, any, Reactivity>> {\r\n\r\n // HOOKS\r\n preInsert(fun: RxCollectionHookNoInstanceCallback<RxDocumentType, OrmMethods, Reactivity>, parallel: boolean): void;\r\n preSave(fun: RxCollectionHookCallback<RxDocumentType, OrmMethods, Reactivity>, parallel: boolean): void;\r\n preRemove(fun: RxCollectionHookCallback<RxDocumentType, OrmMethods, Reactivity>, parallel: boolean): void;\r\n postInsert(fun: RxCollectionHookCallback<RxDocumentType, OrmMethods, Reactivity>, parallel: boolean): void;\r\n postSave(fun: RxCollectionHookCallback<RxDocumentType, OrmMethods, Reactivity>, parallel: boolean): void;\r\n postRemove(fun: RxCollectionHookCallback<RxDocumentType, OrmMethods, Reactivity>, parallel: boolean): void;\r\n postCreate(fun: RxCollectionHookCallbackNonAsync<RxDocumentType, OrmMethods, Reactivity>): void;\r\n\r\n // only inMemory-collections\r\n awaitPersistence(): Promise<void>;\r\n}\r\n\r\n/**\r\n * Previously all properties were typed as any because they could be encrypted.\r\n * This is no longer needed so the type now preserves the original property types.\r\n */\r\nexport type RxDumpCollectionAsAny<T> = T;\r\n\r\ninterface RxDumpCollectionBase {\r\n name: string;\r\n passwordHash?: string;\r\n schemaHash: string;\r\n}\r\nexport interface RxDumpCollection<RxDocumentType> extends RxDumpCollectionBase {\r\n docs: RxDocumentType[];\r\n}\r\nexport interface RxDumpCollectionAny<RxDocumentType> extends RxDumpCollectionBase {\r\n docs: RxDumpCollectionAsAny<RxDocumentType>[];\r\n}\r\n"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rx-database-internal-store.d.js","names":[],"sources":["../../../src/types/rx-database-internal-store.d.ts"],"sourcesContent":["import type {\r\n RxMigrationStatus\r\n} from '../plugins/migration-schema/index.ts';\r\nimport type { RxJsonSchema } from './rx-schema.d.ts';\r\n\r\nexport type InternalStoreDocType<Data = any> = {\r\n id: string;\r\n key: string;\r\n context: string;\r\n data: Data;\r\n};\r\n\r\n/**\r\n * Stores information about the collections.\r\n * The collection.name is the 'key' value.\r\n */\r\nexport type InternalStoreStorageTokenDocType = InternalStoreDocType<{\r\n rxdbVersion: string;\r\n token: string;\r\n instanceToken: string;\r\n passwordHash?: string;\r\n}>;\r\n\r\n/**\r\n * Stores information about the collections.\r\n * The collection.name is the 'key' value.\r\n */\r\nexport type InternalStoreCollectionDocType = InternalStoreDocType<{\r\n /**\r\n * Plain name of the collection\r\n */\r\n name: string;\r\n schema: RxJsonSchema<any>;\r\n schemaHash: string;\r\n version: number;\r\n\r\n /**\r\n * Storages that are connected to this collection\r\n * so that when the collection is removed,\r\n * these storages must also be removed.\r\n * For example the replication meta storage\r\n * must be reset when the collection is removed.\r\n */\r\n connectedStorages: {\r\n collectionName: string;\r\n schema: RxJsonSchema<any>;\r\n }[];\r\n\r\n /**\r\n * Contains the migration status\r\n * only if a migration has been started.\r\n */\r\n migrationStatus?: RxMigrationStatus;\r\n}>;\r\n"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rx-database.d.js","names":[],"sources":["../../../src/types/rx-database.d.ts"],"sourcesContent":["import type {\r\n RxCollection,\r\n RxDumpCollection,\r\n RxDumpCollectionAsAny\r\n} from './rx-collection.d.ts';\r\nimport type {\r\n RxDatabaseBase\r\n} from '../rx-database.d.ts';\r\nimport { Observable } from 'rxjs';\r\nimport type { RxStorage } from './rx-storage.interface.d.ts';\r\nimport type { RxLocalDocument } from './plugins/local-documents.d.ts';\r\nimport type { RxCleanupPolicy } from './plugins/cleanup.d.ts';\r\nimport type { ById, HashFunction } from './util.d.ts';\r\nimport type { RxReactivityFactory } from './plugins/reactivity.d.ts';\r\n\r\nexport interface RxDatabaseCreator<Internals = any, InstanceCreationOptions = any, Reactivity = unknown> {\r\n storage: RxStorage<Internals, InstanceCreationOptions>;\r\n instanceCreationOptions?: InstanceCreationOptions;\r\n name: string;\r\n /**\r\n * Typed as `any` because different encryption plugins\r\n * may use passwords that are not strings.\r\n */\r\n password?: string | any;\r\n multiInstance?: boolean;\r\n eventReduce?: boolean;\r\n ignoreDuplicate?: boolean;\r\n options?: any;\r\n cleanupPolicy?: Partial<RxCleanupPolicy>;\r\n closeDuplicates?: boolean;\r\n /**\r\n * Set this to true if you want to store local documents\r\n * in the RxDatabase instance.\r\n */\r\n localDocuments?: boolean;\r\n\r\n /**\r\n * Hash method used to hash strings and json-stringified objects.\r\n * This hash does not have to be cryptographically secure,\r\n * but it is very important that is does have not create\r\n * collisions.\r\n * Default is the sha256 from crypto.subtle.digest('SHA-256', data)\r\n */\r\n hashFunction?: HashFunction;\r\n\r\n /**\r\n * By default, count() queries in 'slow' mode are not allowed.\r\n */\r\n allowSlowCount?: boolean;\r\n\r\n /**\r\n * Can be used to add a custom reactivity Factory\r\n * that is used on all getters and values that end with the double $$.\r\n * For example you can use the signals api of your framework and vuejs ref()\r\n */\r\n reactivity?: RxReactivityFactory<Reactivity>;\r\n}\r\n\r\nexport type CollectionsOfDatabase = ById<RxCollection>;\r\nexport type RxDatabase<\r\n Collections = CollectionsOfDatabase,\r\n Internals = any,\r\n InstanceCreationOptions = any,\r\n Reactivity = any\r\n> = RxDatabaseBase<\r\n Internals,\r\n InstanceCreationOptions,\r\n Collections,\r\n Reactivity\r\n> & Collections & RxDatabaseGenerated<Collections, Reactivity>;\r\n\r\n\r\nexport interface RxLocalDocumentMutation<StorageType, Reactivity = unknown> {\r\n insertLocal<LocalDocType = any>(id: string, data: LocalDocType): Promise<\r\n RxLocalDocument<StorageType, LocalDocType, Reactivity>\r\n >;\r\n upsertLocal<LocalDocType = any>(id: string, data: LocalDocType): Promise<\r\n RxLocalDocument<StorageType, LocalDocType, Reactivity>\r\n >;\r\n getLocal<LocalDocType = any>(id: string): Promise<\r\n RxLocalDocument<StorageType, LocalDocType, Reactivity> | null\r\n >;\r\n getLocal$<LocalDocType = any>(id: string): Observable<\r\n RxLocalDocument<StorageType, LocalDocType, Reactivity> | null\r\n >;\r\n}\r\n\r\nexport interface RxDatabaseGenerated<Collections, Reactivity> extends RxLocalDocumentMutation<RxDatabase<Collections, any, any, Reactivity>> { }\r\n\r\n/**\r\n * Extract the **DocumentType** of a collection.\r\n */\r\ntype ExtractDTcol<P> = P extends RxCollection<infer T> ? T : { [prop: string]: any; };\r\n\r\ninterface RxDumpDatabaseBase {\r\n instanceToken: string;\r\n name: string;\r\n passwordHash: string | null;\r\n}\r\nexport interface RxDumpDatabase<Col> extends RxDumpDatabaseBase {\r\n collections: RxDumpCollection<ExtractDTcol<Col[keyof Col]>>[];\r\n}\r\nexport interface RxDumpDatabaseAny<Col> extends RxDumpDatabaseBase {\r\n collections: RxDumpCollection<RxDumpCollectionAsAny<ExtractDTcol<Col[keyof Col]>>>[];\r\n}\r\n\r\n\r\n\r\nexport type RxCollectionCreatedEvent = {\r\n type: 'ADDED';\r\n collection: RxCollection;\r\n};\r\n\r\nexport type RxCollectionClosedEvent = {\r\n type: 'CLOSED';\r\n collection: RxCollection;\r\n};\r\n\r\n/**\r\n * Fired on RxDatabase.collection$\r\n */\r\nexport type RxCollectionEvent =\r\n | RxCollectionCreatedEvent\r\n | RxCollectionClosedEvent;\r\n"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rx-document.d.js","names":[],"sources":["../../../src/types/rx-document.d.ts"],"sourcesContent":["import {\r\n Observable\r\n} from 'rxjs';\r\n\r\nimport type {\r\n RxCollection,\r\n} from './rx-collection.d.ts';\r\nimport type {\r\n RxAttachment,\r\n RxAttachmentCreator,\r\n RxAttachmentCreatorBase64\r\n} from './rx-attachment.d.ts';\r\nimport type { RxDocumentData, WithDeleted } from './rx-storage.d.ts';\r\nimport type { RxChangeEvent } from './rx-change-event.d.ts';\r\nimport type { DeepReadonly, MaybePromise, PlainJsonValue } from './util.d.ts';\r\nimport type { UpdateQuery } from './plugins/update.d.ts';\r\nimport type { CRDTEntry } from './plugins/crdt.d.ts';\r\nimport type { Reactified } from './plugins/reactivity.d.ts';\r\n\r\n\r\n\r\nexport type RxDocument<RxDocumentType = {}, OrmMethods = {}, Reactivity = unknown> = RxDocumentBase<\r\n RxDocumentType,\r\n OrmMethods,\r\n Reactivity\r\n> & RxDocumentType & OrmMethods & ExtendObservables<RxDocumentType> & ExtendReactivity<RxDocumentType, Reactivity>;\r\n\r\n\r\n/**\r\n * Extend the base properties by the property$ fields\r\n * so it knows that RxDocument.age also has RxDocument.age$ which is\r\n * an observable.\r\n * TODO how to do this for the nested fields?\r\n */\r\ntype ExtendObservables<RxDocumentType> = {\r\n [P in keyof RxDocumentType as `${string & P}$`]: Observable<RxDocumentType[P]>;\r\n};\r\n\r\ntype ExtendReactivity<RxDocumentType, Reactivity> = {\r\n [P in keyof RxDocumentType as `${string & P}$$`]: Reactified<Reactivity, RxDocumentType[P]>;\r\n};\r\n\r\n/**\r\n * The public facing modify update function.\r\n * It only gets the document parts as input, that\r\n * are mutateable by the user.\r\n */\r\nexport type ModifyFunction<RxDocumentType> = (\r\n doc: WithDeleted<RxDocumentType>\r\n) => MaybePromise<WithDeleted<RxDocumentType>> | MaybePromise<RxDocumentType>;\r\n\r\n/**\r\n * Meta data that is attached to each document by RxDB.\r\n */\r\nexport type RxDocumentMeta = {\r\n /**\r\n * Last write time.\r\n * Unix epoch in milliseconds.\r\n */\r\n lwt: number;\r\n\r\n /**\r\n * The replication plugins \"tags\" the origin\r\n * of writes to later know if a write came from\r\n * the replication or was done locally.\r\n */\r\n o?: {\r\n hash: string;\r\n _rev: number;\r\n };\r\n\r\n /**\r\n * Any other value can be attached to the _meta data.\r\n * Mostly done by plugins to mark documents.\r\n */\r\n [k: string]: PlainJsonValue | undefined;\r\n\r\n\r\n};\r\n\r\nexport declare interface RxDocumentBase<RxDocType, OrmMethods = {}, Reactivity = unknown> {\r\n isInstanceOfRxDocument: true;\r\n collection: RxCollection<RxDocType, OrmMethods, Reactivity>;\r\n readonly deleted: boolean;\r\n\r\n readonly $: Observable<RxDocument<RxDocType, OrmMethods, Reactivity>>;\r\n readonly $$: Reactified<Reactivity, RxDocument<RxDocType, OrmMethods, Reactivity>>;\r\n readonly deleted$: Observable<boolean>;\r\n readonly deleted$$: Reactified<Reactivity, boolean>;\r\n\r\n readonly primary: string;\r\n readonly allAttachments$: Observable<RxAttachment<RxDocType, OrmMethods, Reactivity>[]>;\r\n\r\n // internal things\r\n _data: RxDocumentData<RxDocType>;\r\n primaryPath: string;\r\n revision: string;\r\n /**\r\n * Used to de-duplicate the enriched property objects\r\n * of the document. Lazily initialized on first property access.\r\n */\r\n _propertyCache: Map<string, any> | undefined;\r\n $emit(cE: RxChangeEvent<RxDocType>): void;\r\n _saveData(newData: any, oldData: RxDocumentData<RxDocType>): Promise<RxDocument<RxDocType, OrmMethods, Reactivity>>;\r\n // /internal things\r\n\r\n // Returns the latest state of the document\r\n getLatest(): RxDocument<RxDocType, OrmMethods, Reactivity>;\r\n\r\n\r\n get$(path: string): Observable<any>;\r\n get$$(path: string): Reactified<Reactivity, any>;\r\n get(objPath: string): DeepReadonly<any>;\r\n populate(objPath: string): Promise<RxDocument<RxDocType, OrmMethods, Reactivity> | any | null>;\r\n\r\n /**\r\n * mutate the document with a function\r\n */\r\n modify(mutationFunction: ModifyFunction<RxDocType>, context?: string): Promise<RxDocument<RxDocType, OrmMethods, Reactivity>>;\r\n incrementalModify(mutationFunction: ModifyFunction<RxDocType>, context?: string): Promise<RxDocument<RxDocType, OrmMethods, Reactivity>>;\r\n\r\n /**\r\n * patches the given properties\r\n */\r\n patch(patch: Partial<RxDocType>): Promise<RxDocument<RxDocType, OrmMethods, Reactivity>>;\r\n incrementalPatch(patch: Partial<RxDocType>): Promise<RxDocument<RxDocType, OrmMethods, Reactivity>>;\r\n\r\n update(updateObj: UpdateQuery<RxDocType>): Promise<RxDocument<RxDocType, OrmMethods, Reactivity>>;\r\n incrementalUpdate(updateObj: UpdateQuery<RxDocType>): Promise<RxDocument<RxDocType, OrmMethods, Reactivity>>;\r\n\r\n updateCRDT(updateObj: CRDTEntry<RxDocType> | CRDTEntry<RxDocType>[]): Promise<RxDocument<RxDocType, OrmMethods, Reactivity>>;\r\n\r\n remove(): Promise<RxDocument<RxDocType, OrmMethods, Reactivity>>;\r\n incrementalRemove(): Promise<RxDocument<RxDocType, OrmMethods, Reactivity>>;\r\n\r\n // only for temporary documents\r\n set(objPath: string, value: any): RxDocument<RxDocType, OrmMethods, Reactivity>;\r\n save(): Promise<boolean>;\r\n\r\n // attachments\r\n putAttachment(\r\n creator: RxAttachmentCreator\r\n ): Promise<RxAttachment<RxDocType, OrmMethods, Reactivity>>;\r\n putAttachmentBase64(\r\n creator: RxAttachmentCreatorBase64\r\n ): Promise<RxAttachment<RxDocType, OrmMethods, Reactivity>>;\r\n putAttachments(\r\n creators: RxAttachmentCreator[]\r\n ): Promise<RxAttachment<RxDocType, OrmMethods, Reactivity>[]>;\r\n getAttachment(id: string): RxAttachment<RxDocType, OrmMethods, Reactivity> | null;\r\n allAttachments(): RxAttachment<RxDocType, OrmMethods, Reactivity>[];\r\n\r\n toJSON(withRevAndAttachments: true): DeepReadonly<RxDocumentData<RxDocType>>;\r\n toJSON(withRevAndAttachments?: false): DeepReadonly<RxDocType>;\r\n\r\n toMutableJSON(withRevAndAttachments: true): RxDocumentData<RxDocType>;\r\n toMutableJSON(withRevAndAttachments?: false): RxDocType;\r\n\r\n close(): void;\r\n}\r\n"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rx-error.d.js","names":[],"sources":["../../../src/types/rx-error.d.ts"],"sourcesContent":["import type { RxJsonSchema } from './rx-schema.d.ts';\r\nimport {\r\n RxSchema\r\n} from '../rx-schema.ts';\r\nimport type { RxPlugin } from './rx-plugin.d.ts';\r\nimport { ERROR_MESSAGES } from '../plugins/dev-mode/error-messages.ts';\r\nimport type { RxReplicationWriteToMasterRow } from './replication-protocol.d.ts';\r\nimport type { BulkWriteRow, RxDocumentData } from './rx-storage.d.ts';\r\n\r\ntype KeyOf<T extends object> = Extract<keyof T, string>;\r\nexport type RxErrorKey = KeyOf<typeof ERROR_MESSAGES>;\r\n\r\nexport type {\r\n RxError,\r\n RxTypeError\r\n} from '../rx-error.ts';\r\n\r\n/**\r\n * this lists all possible parameters\r\n */\r\nexport interface RxErrorParameters {\r\n readonly error?: PlainJsonError;\r\n readonly errors?: PlainJsonError[];\r\n readonly errorText?: string;\r\n readonly writeError?: RxStorageWriteError<any>;\r\n readonly schemaPath?: string;\r\n readonly objPath?: string;\r\n readonly rootPath?: string;\r\n readonly childpath?: string;\r\n readonly ids?: string[];\r\n readonly obj?: any;\r\n readonly document?: any;\r\n readonly schema?: Readonly<RxJsonSchema<any> | RxSchema>;\r\n readonly schemaObj?: any;\r\n readonly pluginKey?: string;\r\n readonly originalDoc?: Readonly<any>;\r\n readonly finalDoc?: Readonly<any>;\r\n readonly regex?: string;\r\n readonly fieldName?: string;\r\n readonly id?: string;\r\n readonly documentId?: string;\r\n readonly data?: any;\r\n readonly missingCollections?: string[];\r\n readonly primaryPath?: string;\r\n readonly primary?: string;\r\n readonly primaryKey?: string;\r\n readonly have?: any;\r\n readonly should?: any;\r\n readonly name?: string;\r\n readonly adapter?: any;\r\n readonly link?: string;\r\n readonly path?: string;\r\n readonly value?: any;\r\n readonly givenName?: string;\r\n readonly fromVersion?: number;\r\n readonly toVersion?: number;\r\n readonly version?: number;\r\n readonly args?: any;\r\n readonly opts?: any;\r\n readonly dataBefore?: any;\r\n readonly dataAfter?: any;\r\n readonly pull?: boolean;\r\n readonly push?: boolean;\r\n readonly url?: string;\r\n readonly key?: string;\r\n readonly queryObj?: any;\r\n readonly query?: any;\r\n readonly op?: string;\r\n readonly skip?: any;\r\n readonly limit?: any;\r\n readonly passwordHash?: string;\r\n readonly existingPasswordHash?: string;\r\n readonly password?: string | any;\r\n readonly minPassLength?: number;\r\n readonly own?: any;\r\n readonly source?: any;\r\n readonly method?: any;\r\n readonly field?: string;\r\n readonly ref?: string;\r\n readonly funName?: string;\r\n readonly functionName?: string;\r\n readonly schemaHash?: string;\r\n readonly previousSchema?: Readonly<RxJsonSchema<any>>;\r\n readonly previousSchemaHash?: string;\r\n readonly type?: string;\r\n readonly when?: string;\r\n readonly parallel?: boolean;\r\n readonly collection?: any;\r\n readonly database?: any;\r\n readonly storage?: string;\r\n readonly indexes?: Array<string | string[]> | Readonly<Array<string | string[]>>;\r\n readonly index?: string | string[] | readonly string[];\r\n readonly plugin?: RxPlugin | any;\r\n readonly plugins?: Set<RxPlugin | any>;\r\n\r\n // used in the replication plugin\r\n\r\n /**\r\n * The checkpoint of the response from the last successful\r\n * pull by the client.\r\n * Null if there was no pull operation before\r\n * so that there is no last pulled checkpoint.\r\n */\r\n readonly checkpoint?: any;\r\n /**\r\n * The documents that failed to be pushed.\r\n * Typed as 'any' because they might be modified by the push modifier.\r\n */\r\n readonly pushRows?: RxReplicationWriteToMasterRow<any>[];\r\n readonly direction?: 'pull' | 'push';\r\n\r\n // google-drive-replication\r\n readonly folderPath?: string;\r\n readonly folderName?: string;\r\n readonly file?: any;\r\n readonly parentId?: string;\r\n\r\n // fetch\r\n readonly body?: any;\r\n readonly status?: number;\r\n readonly statusText?: string;\r\n readonly headers?: Record<string, any>;\r\n readonly code?: string;\r\n}\r\n\r\n/**\r\n * Error-Items which are created by the jsonschema-validator\r\n */\r\nexport type RxValidationError = {\r\n readonly field: string;\r\n readonly message: string;\r\n};\r\n\r\n/**\r\n * Use to have a transferable error object\r\n * in plain json instead of a JavaScript Error instance.\r\n */\r\nexport type PlainJsonError = {\r\n name: string;\r\n message: string;\r\n rxdb?: true;\r\n code?: RxErrorKey;\r\n url?: string;\r\n extensions?: Record<string, any>;\r\n parameters?: RxErrorParameters;\r\n stack?: string;\r\n};\r\n\r\n\r\n\r\n\r\n\r\n/**\r\n * Error that can happen per document when\r\n * RxStorage.bulkWrite() is called\r\n */\r\nexport type RxStorageWriteErrorBase<RxDocType> = {\r\n status: number\r\n | 409 // conflict\r\n | 422 // schema validation error\r\n | 510 // attachment data missing\r\n ;\r\n\r\n /**\r\n * set this property to make it easy\r\n * to detect if the object is a RxStorageBulkWriteError\r\n */\r\n isError: true;\r\n\r\n // primary key of the document\r\n documentId: string;\r\n\r\n // the original document data that should have been written.\r\n writeRow: BulkWriteRow<RxDocType>;\r\n\r\n /**\r\n * The context which was given to bulkWrite(),\r\n * used for debugging.\r\n */\r\n context: string;\r\n};\r\n\r\nexport type RxStorageWriteErrorConflict<RxDocType> = RxStorageWriteErrorBase<RxDocType> & {\r\n status: 409;\r\n /**\r\n * A conflict error state must contain the\r\n * document state in the database.\r\n * This ensures that we can continue resolving a conflict\r\n * without having to pull the document out of the db first.\r\n * Is not set if the error happens on an insert.\r\n */\r\n documentInDb: RxDocumentData<RxDocType>;\r\n};\r\n\r\nexport type RxStorageWriteErrorValidation<RxDocType> = RxStorageWriteErrorBase<RxDocType> & {\r\n status: 422;\r\n /**\r\n * Other properties that give\r\n * information about the error,\r\n * for example a schema validation error\r\n * might contain the exact error from the validator here.\r\n * Must be plain JSON!\r\n */\r\n validationErrors: RxValidationError[];\r\n /**\r\n * For easier debugging,\r\n * we directly put the schema into the error.\r\n */\r\n schema: RxJsonSchema<RxDocumentData<RxDocType>>;\r\n};\r\n\r\nexport type RxStorageWriteErrorAttachment<RxDocType> = RxStorageWriteErrorBase<RxDocType> & {\r\n status: 510;\r\n attachmentId: string;\r\n documentInDb?: RxDocumentData<RxDocType>;\r\n};\r\n\r\n\r\nexport type RxStorageWriteError<RxDocType> =\r\n RxStorageWriteErrorConflict<RxDocType> |\r\n RxStorageWriteErrorValidation<RxDocType> |\r\n RxStorageWriteErrorAttachment<RxDocType>;\r\n"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rx-plugin.d.js","names":[],"sources":["../../../src/types/rx-plugin.d.ts"],"sourcesContent":["import type {\r\n RxQuery,\r\n RxQueryOP,\r\n MangoQuery\r\n} from './rx-query.d.ts';\r\nimport type {\r\n RxCollection,\r\n RxCollectionCreator\r\n} from './rx-collection.d.ts';\r\nimport type {\r\n RxStorageInstanceCreationParams\r\n} from './rx-storage.d.ts';\r\nimport type {\r\n DeepReadonly,\r\n FilledMangoQuery,\r\n RxDatabase,\r\n RxDatabaseCreator,\r\n RxDocument,\r\n RxStorage,\r\n RxReplicationWriteToMasterRow,\r\n WithDeleted,\r\n RxState,\r\n BulkWriteRow,\r\n RxStorageInstance\r\n} from './index.d.ts';\r\nimport type { RxSchema } from '../rx-schema.d.ts';\r\n\r\nexport type RxPluginPrePrepareRxQueryArgs = {\r\n op: RxQueryOP;\r\n queryObj: MangoQuery | string | number | Array<any>;\r\n collection: RxCollection;\r\n};\r\n\r\nexport type RxPluginPreCreateRxQueryArgs = {\r\n op: RxQueryOP;\r\n queryObj: MangoQuery;\r\n collection: RxCollection;\r\n};\r\n\r\nexport type RxPluginPreAddRxPluginArgs = {\r\n // the plugin that is getting added\r\n plugin: RxPlugin | any;\r\n // previous added plugins\r\n plugins: Set<RxPlugin | any>;\r\n};\r\n\r\nexport type RxPluginPrePrepareQueryArgs = {\r\n rxQuery: RxQuery<any>;\r\n mangoQuery: FilledMangoQuery<any>;\r\n};\r\n\r\n\r\n/**\r\n * Depending on which plugins are used together,\r\n * it is important that the plugin is able to define if\r\n * the hooks must be added as first or as last array item.\r\n * For example the encryption plugin must run encryption\r\n * before the key-compression changes the fieldnames.\r\n */\r\nexport type RxPluginHooks<Input> = {\r\n /**\r\n * Hook function that is added as first.\r\n */\r\n before?: (i: Input) => void;\r\n /**\r\n * Hook function that is added as last.\r\n */\r\n after?: (i: Input) => void;\r\n};\r\n\r\nexport interface RxPlugin {\r\n /**\r\n * A string to uniquely identifies the plugin.\r\n * Can be used to throw when different versions of the same plugin are used.\r\n * And also other checks.\r\n * Use kebab-case.\r\n */\r\n readonly name: string;\r\n\r\n /**\r\n * set this to true so RxDB\r\n * knows that this object in a rxdb plugin\r\n */\r\n readonly rxdb: true;\r\n\r\n /**\r\n * Init function where dependent plugins could be added.\r\n * (optional)\r\n */\r\n init?(): any;\r\n\r\n prototypes?: {\r\n RxSchema?: (proto: RxSchema) => void;\r\n RxDocument?: (proto: RxDocument) => void;\r\n RxQuery?: (proto: RxQuery) => void;\r\n RxCollection?: (proto: RxCollection) => void;\r\n RxDatabase?: (proto: RxDatabase) => void;\r\n };\r\n overwritable?: {\r\n isDevMode?: () => boolean;\r\n deepFreezeWhenDevMode?: <T>(obj: T) => DeepReadonly<T>;\r\n validatePassword?: Function;\r\n checkAdapter?: Function;\r\n tunnelErrorMessage?: Function;\r\n };\r\n hooks?: {\r\n preAddRxPlugin?: RxPluginHooks<RxPluginPreAddRxPluginArgs>;\r\n preCreateRxDatabase?: RxPluginHooks<any>;\r\n createRxDatabase?: RxPluginHooks<{\r\n database: RxDatabase;\r\n creator: RxDatabaseCreator;\r\n }>;\r\n preCloseRxDatabase?: RxPluginHooks<RxDatabase>;\r\n postRemoveRxDatabase?: RxPluginHooks<{\r\n databaseName: string;\r\n storage: RxStorage<any, any>;\r\n }>;\r\n createRxCollection?: RxPluginHooks<{\r\n collection: RxCollection;\r\n creator: RxCollectionCreator;\r\n }>;\r\n createRxState?: RxPluginHooks<{\r\n collection: RxCollection;\r\n state: RxState<unknown, unknown>;\r\n }>;\r\n preCreateRxCollection?: RxPluginHooks<RxCollectionCreator<any> & {\r\n name: string;\r\n database: RxDatabase;\r\n }>;\r\n postCloseRxCollection?: RxPluginHooks<RxCollection>;\r\n postRemoveRxCollection?: RxPluginHooks<{\r\n storage: RxStorage<any, any>;\r\n databaseName: string;\r\n collectionName: string;\r\n }>;\r\n preCreateRxSchema?: RxPluginHooks<any>;\r\n createRxSchema?: RxPluginHooks<any>;\r\n prePrepareRxQuery?: RxPluginHooks<RxPluginPrePrepareRxQueryArgs>;\r\n preCreateRxQuery?: RxPluginHooks<RxPluginPreCreateRxQueryArgs>;\r\n prePrepareQuery?: RxPluginHooks<RxPluginPrePrepareQueryArgs>;\r\n createRxQuery?: RxPluginHooks<RxQuery>;\r\n createRxDocument?: RxPluginHooks<any>;\r\n postCreateRxDocument?: RxPluginHooks<any>;\r\n preCreateRxStorageInstance?: RxPluginHooks<RxStorageInstanceCreationParams<any, any>>;\r\n /**\r\n * Runs before a write to the storage instance of a RxCollection or RxDatabase.\r\n */\r\n preStorageWrite?: RxPluginHooks<{\r\n storageInstance: RxStorageInstance<any, any, any, any>;\r\n rows: BulkWriteRow<any>[];\r\n }>;\r\n preMigrateDocument?: RxPluginHooks<any>;\r\n postMigrateDocument?: RxPluginHooks<any>;\r\n postCleanup?: RxPluginHooks<{\r\n databaseName: string;\r\n collectionName: string;\r\n }>;\r\n preReplicationMasterWrite?: RxPluginHooks<{\r\n rows: RxReplicationWriteToMasterRow<any>[];\r\n collection: RxCollection;\r\n }>;\r\n preReplicationMasterWriteDocumentsHandle?: RxPluginHooks<{\r\n result: WithDeleted<any>[];\r\n collection: RxCollection;\r\n }>;\r\n };\r\n}\r\n"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rx-query.d.js","names":[],"sources":["../../../src/types/rx-query.d.ts"],"sourcesContent":["import type {\r\n RxQueryBase\r\n} from '../rx-query.d.ts';\r\nimport type { Paths, StringKeys } from './util.d.ts';\r\n\r\n/**\r\n * Typed Mango Query Selector\r\n * @link https://github.com/mongodb/node-mongodb-native/blob/26bce4a8debb65df5a42dc8599e886c9c83de10d/src/mongo_types.ts\r\n * @link https://stackoverflow.com/a/58436959/3443137\r\n */\r\n\r\n\r\nexport type PropertyType<Type, Property extends string> = string extends Property\r\n ? unknown\r\n : Property extends keyof Type\r\n ? Type[Property]\r\n : Property extends `${number}`\r\n ? Type extends ReadonlyArray<infer ArrayType>\r\n ? ArrayType\r\n : unknown\r\n : Property extends `${infer Key}.${infer Rest}`\r\n ? Key extends `${number}`\r\n ? Type extends ReadonlyArray<infer ArrayType>\r\n ? PropertyType<ArrayType, Rest>\r\n : unknown\r\n : Key extends keyof Type\r\n ? Type[Key] extends Map<string, infer MapType>\r\n ? MapType\r\n : PropertyType<Type[Key], Rest>\r\n : unknown\r\n : unknown;\r\n\r\n\r\nexport type MangoQueryRegexOptions = 'i' | 'g' | 'm' | 'gi' | 'ig' | 'igm' | string;\r\n\r\n/*\r\n * The MongoDB query library is huge and we do not need all the operators.\r\n * If you add an operator here, make sure that you properly add a test in\r\n * the file /test/unit/rx-storage-query-correctness.test.ts\r\n *\r\n * @link https://github.com/kofrasa/mingo#es6\r\n */\r\nexport interface MangoQueryOperators<PathValueType> {\r\n $eq?: PathValueType;\r\n $gt?: PathValueType;\r\n $gte?: PathValueType;\r\n $lt?: PathValueType;\r\n $lte?: PathValueType;\r\n $ne?: PathValueType;\r\n $in?: PathValueType[];\r\n $nin?: PathValueType[];\r\n $regex?: string;\r\n $options?: MangoQueryRegexOptions;\r\n $exists?: boolean;\r\n $type?: 'null' | 'boolean' | 'number' | 'string' | 'array' | 'object';\r\n $mod?: [number, number];\r\n $not?: PathValueType;\r\n $size?: number;\r\n $elemMatch?: MangoQuerySelector<PathValueType>;\r\n}\r\n\r\nexport type MangoQuerySelector<DocType> = Partial<{\r\n [Property in Paths<DocType>]: MangoQueryOperators<any> | PropertyType<DocType, Property>;\r\n}> & {\r\n $and?: MangoQuerySelector<DocType>[];\r\n $or?: MangoQuerySelector<DocType>[];\r\n $nor?: MangoQuerySelector<DocType>[];\r\n};\r\n\r\n/**\r\n * Discussion was at:\r\n * @link https://github.com/pubkey/rxdb/issues/1972\r\n */\r\nexport type MangoQuerySortDirection = 'asc' | 'desc';\r\nexport type MangoQuerySortPart<RxDocType = any> = {\r\n [k in StringKeys<RxDocType> | string]: MangoQuerySortDirection;\r\n};\r\n\r\nexport type MangoQuerySelectorAndIndex<RxDocType = any> = {\r\n /**\r\n * Selector is optional,\r\n * if not given, the query matches all documents\r\n * that are not _deleted=true.\r\n */\r\n selector?: MangoQuerySelector<RxDocType>;\r\n /**\r\n * By default, the RxStorage implementation\r\n * decides which index to use when running the query.\r\n *\r\n * For better performance, a different index might be defined\r\n * by setting it in the query.\r\n * How this improves performance and if the defined index is used,\r\n * depends on the RxStorage implementation.\r\n */\r\n index?: string | string[];\r\n};\r\n\r\nexport type MangoQueryNoLimit<RxDocType> = MangoQuerySelectorAndIndex<RxDocType> & {\r\n /**\r\n * Sorting of the results.\r\n * If no sort is set, RxDB will sort by the primary key.\r\n * Also if sort is set, RxDB will add primaryKey sorting\r\n * if the primaryKey was not in the sort parameters before.\r\n * This ensures that there is a deterministic sorting of the\r\n * results, not mather at which order the documents have been\r\n * inserted into the storage.\r\n */\r\n sort?: MangoQuerySortPart<RxDocType>[];\r\n};\r\n\r\nexport type MangoQuery<RxDocType = any> = MangoQueryNoLimit<RxDocType> & {\r\n skip?: number;\r\n limit?: number;\r\n};\r\n\r\nexport type RxQueryOP = 'find' | 'findOne' | 'count' | 'findByIds';\r\n\r\nexport declare class RxQuery<\r\n RxDocumentType = any,\r\n RxQueryResult = any,\r\n OrmMethods = {},\r\n Reactivity = unknown\r\n> extends RxQueryBase<RxDocumentType, RxQueryResult, OrmMethods, Reactivity> {\r\n equals(queryObj: any): RxQuery<RxDocumentType, RxQueryResult>;\r\n eq(queryObj: any): RxQuery<RxDocumentType, RxQueryResult>;\r\n or(queryObj: keyof RxDocumentType | string | any[]): RxQuery<RxDocumentType, RxQueryResult>;\r\n nor(queryObj: keyof RxDocumentType | string | any[]): RxQuery<RxDocumentType, RxQueryResult>;\r\n and(queryObj: keyof RxDocumentType | string | any[]): RxQuery<RxDocumentType, RxQueryResult>;\r\n gt(queryObj: any): RxQuery<RxDocumentType, RxQueryResult>;\r\n gte(queryObj: any): RxQuery<RxDocumentType, RxQueryResult>;\r\n lt(queryObj: any): RxQuery<RxDocumentType, RxQueryResult>;\r\n lte(queryObj: any): RxQuery<RxDocumentType, RxQueryResult>;\r\n ne(queryObj: any): RxQuery<RxDocumentType, RxQueryResult>;\r\n in(queryObj: any[]): RxQuery<RxDocumentType, RxQueryResult>;\r\n nin(queryObj: any[]): RxQuery<RxDocumentType, RxQueryResult>;\r\n all(queryObj: any): RxQuery<RxDocumentType, RxQueryResult>;\r\n regex(queryObj: string | {\r\n $regex: string;\r\n $options: MangoQueryRegexOptions;\r\n }): RxQuery<RxDocumentType, RxQueryResult>;\r\n exists(queryObj: any): RxQuery<RxDocumentType, RxQueryResult>;\r\n elemMatch(queryObj: any): RxQuery<RxDocumentType, RxQueryResult>;\r\n mod(p1: any, p2: any, p3: any): RxQuery<RxDocumentType, RxQueryResult>;\r\n}\r\n"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rx-schema.d.js","names":[],"sources":["../../../src/types/rx-schema.d.ts"],"sourcesContent":["import { AsTyped } from 'as-typed';\r\nimport type { CRDTSchemaOptions } from './plugins/crdt.d.ts';\r\nimport type { StringKeys } from './util.d.ts';\r\n\r\n/**\r\n * @link https://github.com/types/lib-json-schema/blob/master/v4/index.d.ts\r\n */\r\nexport type JsonSchemaTypes = 'array' | 'boolean' | 'integer' | 'number' | 'null' | 'object' | 'string' | (string & {});\r\n\r\nexport type CompositePrimaryKey<RxDocType> = {\r\n /**\r\n * The top level field of the document that will be used\r\n * to store the composite key as string.\r\n */\r\n key: StringKeys<RxDocType>;\r\n\r\n /**\r\n * The fields of the composite key,\r\n * the fields must be required and final\r\n * and have the type number, int, or string.\r\n */\r\n fields: (StringKeys<RxDocType> | string)[] | readonly (StringKeys<RxDocType> | string)[];\r\n /**\r\n * The separator which is used to concat the\r\n * primary fields values.\r\n * Choose a character as separator that is known\r\n * to never appear inside of the primary fields values.\r\n * I recommend to use the pipe char '|'.\r\n */\r\n separator: string;\r\n};\r\n\r\nexport type PrimaryKey<RxDocType> = StringKeys<RxDocType> | CompositePrimaryKey<RxDocType>;\r\n\r\nexport type JsonSchema<RxDocType = any> = {\r\n allOf?: JsonSchema[] | readonly JsonSchema[];\r\n anyOf?: JsonSchema[] | readonly JsonSchema[];\r\n oneOf?: JsonSchema[] | readonly JsonSchema[];\r\n additionalItems?: boolean | JsonSchema;\r\n additionalProperties?: boolean | JsonSchema;\r\n type?: JsonSchemaTypes | JsonSchemaTypes[] | readonly JsonSchemaTypes[];\r\n description?: string;\r\n dependencies?: {\r\n [key: string]: JsonSchema | string[] | readonly string[];\r\n };\r\n exclusiveMinimum?: number;\r\n exclusiveMaximum?: number;\r\n items?: JsonSchema | JsonSchema[] | readonly JsonSchema[];\r\n multipleOf?: number;\r\n maxProperties?: number;\r\n maximum?: number;\r\n minimum?: number;\r\n maxLength?: number;\r\n minLength?: number;\r\n maxItems?: number;\r\n minItems?: number;\r\n minProperties?: number;\r\n pattern?: string;\r\n patternProperties?: {\r\n [key: string]: JsonSchema;\r\n };\r\n properties?: {\r\n [key in StringKeys<RxDocType>]: JsonSchema;\r\n };\r\n required?: string[] | readonly string[];\r\n uniqueItems?: boolean;\r\n enum?: any[] | readonly any[];\r\n not?: JsonSchema;\r\n definitions?: {\r\n [key: string]: JsonSchema;\r\n };\r\n format?: 'date-time' | 'email' | 'hostname' | 'ipv4' | 'ipv6' | 'uri' | string;\r\n example?: any;\r\n\r\n // RxDB-specific\r\n ref?: string;\r\n final?: boolean;\r\n};\r\n\r\nexport interface TopLevelProperty extends JsonSchema {\r\n default?: any;\r\n}\r\n\r\n/**\r\n * @link https://developer.mozilla.org/en-US/docs/Web/API/Compression_Streams_API\r\n */\r\nexport type CompressionMode = 'deflate' | 'gzip';\r\n\r\nexport type RxJsonSchema<\r\n /**\r\n * The doctype must be given, and '=any' cannot be used,\r\n * otherwise the keyof of primaryKey\r\n * would be optional when the type of the document is not known.\r\n */\r\n RxDocType\r\n> = {\r\n title?: string;\r\n description?: string;\r\n version: number;\r\n\r\n /**\r\n * The primary key of the documents.\r\n * Must be in the top level of the properties of the schema\r\n * and that property must have the type 'string'\r\n */\r\n primaryKey: PrimaryKey<RxDocType>;\r\n\r\n /**\r\n * TODO this looks like a typescript-bug\r\n * we have to allows all string because the 'object'-literal is not recognized\r\n * retry this in later typescript-versions\r\n */\r\n type: 'object' | string;\r\n\r\n properties: { [key in StringKeys<RxDocType>]: TopLevelProperty };\r\n\r\n /**\r\n * On the top level the required-array must be set\r\n * because we always have to set the primary key to required.\r\n */\r\n required?: StringKeys<RxDocType>[] | readonly StringKeys<RxDocType>[];\r\n\r\n /**\r\n * Indexes that will be used for the queries.\r\n * RxDB will internally prepend the _deleted field to the index\r\n * because queries do NOT return documents with _deleted=true.\r\n * @example ['firstName', ['lastName', 'yearOfBirth']]\r\n */\r\n indexes?: (string | string[])[] | (string | readonly string[])[] | readonly (string | string[])[] | readonly (string | readonly string[])[];\r\n\r\n /**\r\n * Internally used indexes that do not get _deleted prepended\r\n * by RxDB. Use these to speed up queries that are run manually on the storage\r\n * or to speed up requests when you use the RxDB server.\r\n * These could also be utilised when you build a plugin that\r\n * has to query documents without respecting the _deleted value.\r\n * @example [['firstName'], ['lastName', 'yearOfBirth']]\r\n */\r\n internalIndexes?: string[][] | readonly string[][];\r\n\r\n\r\n /**\r\n * Array of fields that should be encrypted.\r\n * @link https://rxdb.info/encryption.html\r\n * @example ['secret']\r\n */\r\n encrypted?: string[] | readonly string[];\r\n\r\n /**\r\n * Enables key compression for the collection to reduce storage size.\r\n * @link https://rxdb.info/key-compression.html\r\n * @example true\r\n */\r\n keyCompression?: boolean;\r\n\r\n /**\r\n * if not set, rxdb will set 'false' as default\r\n * Having additionalProperties: true is not allowed on the root level to ensure\r\n * that property names do not clash with properties of the RxDocument class\r\n * or ORM methods.\r\n */\r\n additionalProperties?: false;\r\n attachments?: {\r\n encrypted?: boolean;\r\n /**\r\n * @link https://developer.mozilla.org/en-US/docs/Web/API/Compression_Streams_API\r\n */\r\n compression?: CompressionMode;\r\n /**\r\n * Optional whitelist of MIME type patterns that should be compressed.\r\n * Supports '*' suffix for prefix matching (e.g., 'text/*').\r\n * If omitted, a built-in default list of compressible types is used.\r\n * Only relevant when 'compression' is set.\r\n */\r\n compressibleTypes?: string[];\r\n };\r\n /**\r\n * Options for the sharding plugin of rxdb-premium.\r\n * We set these on the schema because changing the shard amount or mode\r\n * will require a migration.\r\n * @link https://rxdb.info/rx-storage-sharding.html\r\n */\r\n sharding?: {\r\n /**\r\n * Amount of shards.\r\n * This value cannot be changed after you have stored data,\r\n * if you change it anyway, you will loose the existing data.\r\n */\r\n shards: number;\r\n /**\r\n * Either shard by collection or by database.\r\n * For most use cases (IndexedDB based storages), sharding by collection is the way to go\r\n * because it has a faster initial load time.\r\n */\r\n mode: 'database' | 'collection';\r\n };\r\n /**\r\n * Configuration for Conflict-free Replicated Data Types (CRDTs).\r\n * @link https://rxdb.info/crdt.html\r\n * @example { field: 'crdts' }\r\n */\r\n crdt?: CRDTSchemaOptions<RxDocType>;\r\n};\r\n\r\n/**\r\n * Used to aggregate the document type from the schema.\r\n * @link https://github.com/pubkey/rxdb/discussions/3467\r\n */\r\nexport type ExtractDocumentTypeFromTypedRxJsonSchema<TypedRxJsonSchema> = AsTyped<TypedRxJsonSchema>;\r\n"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rx-storage.d.js","names":[],"sources":["../../../src/types/rx-storage.d.ts"],"sourcesContent":["import type { ChangeEvent } from 'event-reduce-js';\r\nimport type { RxChangeEvent } from './rx-change-event.d.ts';\r\nimport type { RxDocumentMeta } from './rx-document.d.ts';\r\nimport type { RxStorageWriteError } from './rx-error.d.ts';\r\nimport type { RxJsonSchema } from './rx-schema.d.ts';\r\nimport type { Override } from './util.d.ts';\r\n\r\n/**\r\n * The document data how it comes out of the storage instance.\r\n * Contains all meta data like revision, attachments and deleted-flag.\r\n */\r\nexport type RxDocumentData<T> = T & {\r\n\r\n /**\r\n * As other NoSQL databases,\r\n * RxDB also assumes that no data is finally deleted.\r\n * Instead the documents are stored with _deleted: true\r\n * which means they will not be returned at queries.\r\n */\r\n _deleted: boolean;\r\n\r\n /**\r\n * The attachments meta data is stored besides to document.\r\n */\r\n _attachments: {\r\n [attachmentId: string]: RxAttachmentData;\r\n };\r\n\r\n /**\r\n * Contains a revision which is concatenated with a [height: number]-[identifier: string]\r\n * like: '1-3hl4kj3l4kgj34g34glk'.\r\n * The revision is used to detect write conflicts and have a document history.\r\n * Revisions behave similar to couchdb revisions:\r\n * @link https://docs.couchdb.org/en/stable/replication/conflicts.html#revision-tree\r\n\r\n * When writing a document, you must send the correct revision in the previous-field\r\n * to make sure that you do not cause a write conflict.\r\n * The revision of the 'new' document-field must be created, for example via util.createRevision().\r\n * Any revision that matches the [height]-[hash] format can be used.\r\n */\r\n _rev: string;\r\n _meta: RxDocumentMeta;\r\n};\r\n\r\nexport type RxDocumentDataById<RxDocType> = {\r\n [documentId: string]: RxDocumentData<RxDocType>;\r\n};\r\n\r\n/**\r\n * The document data how it is send to the\r\n * storage instance to save it.\r\n */\r\n// We & T here instead of in RxDocumentData to preserver indexability by keyof T which the Override breaks\r\nexport type RxDocumentWriteData<T> = T & Override<RxDocumentData<{}>, {\r\n _attachments: {\r\n /**\r\n * To create a new attachment, set the write data\r\n * To delete an attachment, leave it out on the _attachments property.\r\n * To change an attachment, set the new write data.\r\n * To not touch an attachment, just send the stub again\r\n * which came out of the storage instance.\r\n */\r\n [attachmentId: string]: RxAttachmentData | RxAttachmentWriteData;\r\n };\r\n}>;\r\n\r\nexport type WithDeleted<DocType> = DocType & {\r\n _deleted: boolean;\r\n};\r\nexport type WithDeletedAndAttachments<DocType> = DocType & {\r\n _deleted: boolean;\r\n\r\n /**\r\n * Here the _attachments might exist\r\n * or might not, depending one the use case.\r\n */\r\n _attachments?: {\r\n [attachmentId: string]: RxAttachmentData | RxAttachmentWriteData;\r\n };\r\n};\r\n\r\n/**\r\n * Send to the bulkWrite() method of a storage instance.\r\n */\r\nexport type BulkWriteRow<RxDocType> = {\r\n /**\r\n * The current document state in the storage engine,\r\n * assumed by the application.\r\n * Undefined if the document is a new insert.\r\n * Notice that we send the full document data as 'previous', not just the revision.\r\n * The reason is that to get the previous revision you anyway have to get the full\r\n * previous document and so it is easier to just send it all to the storage instance.\r\n * This will later allow us to use something different then the _rev key for conflict detection\r\n * when we implement other storage instances.\r\n */\r\n previous?: RxDocumentData<RxDocType>;\r\n /**\r\n * The new document data to be stored in the storage instance.\r\n */\r\n document: RxDocumentWriteData<RxDocType>;\r\n};\r\nexport type BulkWriteRowById<RxDocType> = {\r\n [documentId: string]: BulkWriteRow<RxDocType>;\r\n};\r\n\r\n/**\r\n * After the RxStorage has processed all rows,\r\n * we have this to work with afterwards.\r\n */\r\nexport type BulkWriteRowProcessed<RxDocType> = BulkWriteRow<RxDocType> & {\r\n document: RxDocumentData<RxDocType>;\r\n};\r\n\r\n\r\nexport type RxAttachmentData = {\r\n /**\r\n * Size of the attachments data\r\n */\r\n length: number;\r\n /**\r\n * Content type like 'plain/text'\r\n */\r\n type: string;\r\n /**\r\n * The hash of the attachments content.\r\n * It is calculated by RxDB, and send to the storage.\r\n * The only guarantee is that the digest will change when the attachments data changes.\r\n * @link https://github.com/pouchdb/pouchdb/issues/3156#issuecomment-66831010\r\n * @link https://github.com/pubkey/rxdb/pull/4107\r\n */\r\n digest: string;\r\n};\r\n\r\n/**\r\n * Data which is needed for new attachments\r\n * that are send from RxDB to the RxStorage implementation.\r\n */\r\nexport type RxAttachmentWriteData = RxAttachmentData & {\r\n /**\r\n * The data of the attachment as a Blob.\r\n * Blob is the canonical internal type because:\r\n * - Attachments are blob-like things (images, videos, PDFs)\r\n * - Blob is immutable (safe, no accidental mutation)\r\n * - Blob.type carries MIME type metadata\r\n * - Blob.size gives length synchronously\r\n * - Blob is structured-cloneable (works with Worker/Electron postMessage)\r\n * - IndexedDB stores Blobs efficiently (some engines use external blob storage)\r\n *\r\n * Conversion to ArrayBuffer only happens at boundaries that require it:\r\n * encryption (Web Crypto), compression (CompressionStream), digest hashing,\r\n * and WebSocket serialization.\r\n *\r\n * Encryption/compression run in the wrapRxStorageInstance layer OUTSIDE\r\n * storage transactions, so Blob does not extend transaction lifetimes.\r\n */\r\n data: Blob;\r\n};\r\n\r\n\r\n/**\r\n * The returned data from RxStorageInstance.bulkWrite()\r\n * For better performance, we do NOT use an indexed object,\r\n * but only plain arrays. Because most of the time\r\n * RxDB anyway only need the array data and we can save performance\r\n * by not indexing the results.\r\n *\r\n * We do not longer return the written documents. We only return the errors.\r\n * This is because we construct the written docs array from the input+errors anyway\r\n * and transferring large amounts of data has bad performance when the storage\r\n * is running in a different realm like a WebWorker or remote.\r\n */\r\nexport type RxStorageBulkWriteResponse<RxDocType> = {\r\n /**\r\n * contains all errored writes.\r\n */\r\n error: RxStorageWriteError<RxDocType>[];\r\n};\r\n\r\n/**\r\n * We return a complex object instead of a single array\r\n * so we are able to add additional fields in the future.\r\n */\r\nexport type RxStorageQueryResult<RxDocType> = {\r\n // the found documents, sort order is important.\r\n documents: RxDocumentData<RxDocType>[];\r\n};\r\n\r\nexport type RxStorageCountResult = {\r\n count: number;\r\n /**\r\n * Returns the mode which was used by the storage\r\n * to count the documents.\r\n * If this returns 'slow', RxDB will throw by default\r\n * if 'allowSlowCount' is not set.\r\n */\r\n mode: 'fast' | 'slow';\r\n};\r\n\r\nexport type RxStorageInstanceCreationParams<RxDocType, InstanceCreationOptions> = {\r\n\r\n /**\r\n * A string to uniquely identify the instance of the JavaScript object\r\n * of the RxDatabase where this RxStorageInstance belongs to.\r\n * In most cases you would use RxDatabase.token here.\r\n *\r\n * This is used so that we can add caching or reuse stuff that belongs to the same RxDatabase.\r\n * For example the BroadcastChannel that is used for event propagation between multiple browser tabs\r\n * is cached by this token.\r\n *\r\n * In theory we could just use the databaseName for that. But to make it easier in unit tests\r\n * to simulate cross-tab usage, we cannot assume that the databaseName is unique in a single\r\n * JavaScript process. Therefore we use the instance token instead.\r\n */\r\n databaseInstanceToken: string;\r\n\r\n\r\n databaseName: string;\r\n collectionName: string;\r\n schema: RxJsonSchema<RxDocumentData<RxDocType>>;\r\n options: InstanceCreationOptions;\r\n /**\r\n * If multiInstance is true, there can be more\r\n * then one instance of the database, for example\r\n * when multiple browser tabs exist or more then one Node.js\r\n * process relies on the same storage.\r\n */\r\n multiInstance: boolean;\r\n /**\r\n * Typed as `any` because different encryption plugins\r\n * may use passwords that are not strings.\r\n */\r\n password?: string | any;\r\n\r\n /**\r\n * Some storages can do additional checks\r\n * that are performance expensive\r\n * and should only be done in dev-mode.\r\n */\r\n devMode: boolean;\r\n};\r\n\r\nexport type ChangeStreamOptions = {\r\n\r\n /**\r\n * Sequence number of the first event to start with.\r\n * If you want to get all ongoing events,\r\n * first get the latest sequence number and input it here.\r\n *\r\n * Optional on changeStream,\r\n * will start from the newest sequence.\r\n */\r\n startSequence?: number;\r\n /**\r\n * limits the amount of results\r\n */\r\n limit?: number;\r\n};\r\n\r\n/**\r\n * In the past we handles each RxChangeEvent by its own.\r\n * But it has been shown that this take way more performance then needed,\r\n * especially when the events get transferred over a data layer\r\n * like with WebWorkers or the BroadcastChannel.\r\n * So we now process events as bulks internally.\r\n */\r\nexport type EventBulk<EventType, CheckpointType> = {\r\n /**\r\n * Unique id of the bulk,\r\n * used to detect duplicate bulks\r\n * that have already been processed.\r\n */\r\n id: string;\r\n events: EventType[];\r\n\r\n /**\r\n * Required for replication.\r\n * Passing this checkpoint into getChangedDocumentsSince()\r\n * must return all items that have been modified AFTER this write event.\r\n */\r\n checkpoint: CheckpointType;\r\n\r\n /**\r\n * The context that was given at the call to bulkWrite()\r\n * that caused this EventBulk.\r\n */\r\n context: string;\r\n};\r\n\r\nexport type ChangeStreamEvent<DocType> = ChangeEvent<RxDocumentData<DocType>> & {\r\n /**\r\n * An integer that is increasing\r\n * and unique per event.\r\n * Can be used to sort events or get information\r\n * about how many events there are.\r\n */\r\n sequence: number;\r\n /**\r\n * The value of the primary key\r\n * of the changed document\r\n */\r\n id: string;\r\n};\r\n\r\nexport type RxStorageChangeEvent<RxDocType> = Omit<RxChangeEvent<RxDocType>, 'isLocal' | 'collectionName'>;\r\n\r\n/**\r\n * An example for how a RxStorage checkpoint can look like.\r\n * NOTICE: Not all implementations use this type.\r\n */\r\nexport type RxStorageDefaultCheckpoint = {\r\n id: string;\r\n lwt: number;\r\n};\r\n\r\n\r\n\r\n\r\nexport type CategorizeBulkWriteRowsOutput<RxDocType> = {\r\n bulkInsertDocs: BulkWriteRowProcessed<RxDocType>[];\r\n bulkUpdateDocs: BulkWriteRowProcessed<RxDocType>[];\r\n\r\n errors: RxStorageWriteError<RxDocType>[];\r\n eventBulk: EventBulk<RxStorageChangeEvent<RxDocumentData<RxDocType>>, any>;\r\n attachmentsAdd: {\r\n documentId: string;\r\n attachmentId: string;\r\n attachmentData: RxAttachmentWriteData;\r\n digest: string;\r\n }[];\r\n attachmentsRemove: {\r\n documentId: string;\r\n attachmentId: string;\r\n digest: string;\r\n }[];\r\n attachmentsUpdate: {\r\n documentId: string;\r\n attachmentId: string;\r\n attachmentData: RxAttachmentWriteData;\r\n digest: string;\r\n }[];\r\n /**\r\n * Contains the non-error document row that\r\n * has the newest _meta.lwt time.\r\n * Empty if no successful write exists.\r\n */\r\n newestRow?: BulkWriteRowProcessed<RxDocType>;\r\n};\r\n"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rx-storage.interface.d.js","names":[],"sources":["../../../src/types/rx-storage.interface.d.ts"],"sourcesContent":["import type {\r\n BulkWriteRow,\r\n EventBulk,\r\n RxDocumentData,\r\n RxStorageBulkWriteResponse,\r\n RxStorageChangeEvent,\r\n RxStorageCountResult,\r\n RxStorageInstanceCreationParams,\r\n RxStorageQueryResult\r\n} from './rx-storage.ts';\r\nimport type {\r\n MangoQuerySelector,\r\n MangoQuerySortPart,\r\n RxJsonSchema,\r\n RxQueryPlan\r\n} from './index.d.ts';\r\nimport type {\r\n Observable\r\n} from 'rxjs';\r\n\r\n/**\r\n * RxStorage\r\n * This is an interface that abstracts the storage engine.\r\n * This allows us to use RxDB with different storage engines.\r\n *\r\n * @link https://rxdb.info/rx-storage.html\r\n * @link https://github.com/pubkey/rxdb/issues/1636\r\n */\r\n\r\n/**\r\n * A RxStorage is a module that acts\r\n * as a factory that can create multiple RxStorageInstance\r\n * objects.\r\n *\r\n * All data inputs and outputs of a StorageInstance must be structured-cloneable.\r\n * Document data must be plain JSON objects. Attachment data uses Blob.\r\n * Do not use Map, Set or anything else that is not structured-cloneable.\r\n * This will ensure that the storage can exchange data\r\n * when it is a WebWorker or a WASM process or data is send via BroadcastChannel.\r\n * The only exception is the WebSocket transport, which serializes at its boundary.\r\n */\r\nexport interface RxStorage<Internals, InstanceCreationOptions> {\r\n /**\r\n * name of the storage engine\r\n * used to detect if plugins do not work so we can throw proper errors.\r\n */\r\n readonly name: string;\r\n\r\n /**\r\n * RxDB version is part of the storage\r\n * so we can have fallbacks and stuff when\r\n * multiple storages with different version are in use\r\n * like in the storage migration plugin.\r\n */\r\n readonly rxdbVersion: string;\r\n\r\n /**\r\n * Creates a storage instance\r\n * that can contain the NoSQL documents of a collection.\r\n */\r\n createStorageInstance<RxDocType>(\r\n params: RxStorageInstanceCreationParams<RxDocType, InstanceCreationOptions>\r\n ): Promise<RxStorageInstance<RxDocType, Internals, InstanceCreationOptions>>;\r\n}\r\n\r\n\r\n/**\r\n * User provided mango queries will be filled up by RxDB via normalizeMangoQuery()\r\n * so we do not have to do many if-field-exist tests in the internals.\r\n */\r\nexport type FilledMangoQuery<RxDocType> = {\r\n /**\r\n * The selector is required here.\r\n */\r\n selector: MangoQuerySelector<RxDocumentData<RxDocType>>;\r\n\r\n /**\r\n * In contrast to the user-provided MangoQuery,\r\n * the sorting is required here because\r\n * RxDB has to ensure that the primary key is always\r\n * part of the sort params.\r\n */\r\n sort: MangoQuerySortPart<RxDocumentData<RxDocType>>[];\r\n\r\n /**\r\n * In the normalized mango query,\r\n * the index must always be a string[],\r\n * never just a string.\r\n * This makes it easier to use the query because\r\n * we do not have to do an array check.\r\n */\r\n index?: string[];\r\n\r\n /**\r\n * Skip must be set which defaults to 0\r\n */\r\n skip: number;\r\n\r\n limit?: number;\r\n};\r\n\r\n\r\n/**\r\n * Before sending a query to the storageInstance.query()\r\n * we run it through the query planner and do some normalization\r\n * stuff. Notice that the queryPlan is a hint for the storage and\r\n * it is not required to use it when running queries. Some storages\r\n * might use their own query planning instead.\r\n */\r\nexport type PreparedQuery<RxDocType> = {\r\n // original query from the input\r\n query: FilledMangoQuery<RxDocType>;\r\n queryPlan: RxQueryPlan;\r\n};\r\n\r\nexport interface RxStorageInstance<\r\n /**\r\n * The type of the documents that can be stored in this instance.\r\n * All documents in an instance must comply to the same schema.\r\n * Also all documents are RxDocumentData with the meta properties like\r\n * _deleted or _rev etc.\r\n */\r\n RxDocType,\r\n Internals,\r\n InstanceCreationOptions,\r\n CheckpointType = any\r\n> {\r\n readonly databaseName: string;\r\n /**\r\n * Returns the internal data that is used by the storage engine.\r\n */\r\n readonly internals: Readonly<Internals>;\r\n readonly options: Readonly<InstanceCreationOptions>;\r\n /**\r\n * The schema that defines the documents that are stored in this instance.\r\n * Notice that the schema must be enhanced with the meta properties like\r\n * _meta, _rev and _deleted etc. which are added by fillWithDefaultSettings()\r\n */\r\n readonly schema: Readonly<RxJsonSchema<RxDocumentData<RxDocType>>>;\r\n readonly collectionName: string;\r\n\r\n /**\r\n * (Optional) reference to the underlying persistent storage instance.\r\n * If set, things like replication will run on that storageInstance instead of the parent.\r\n * This is mostly used in things like the memory-synced storage where we want to\r\n * run replications and migrations on the persistent storage instead of the in-memory storage.\r\n *\r\n * Having this is the least hacky option. The only other option would be to toggle all calls to the\r\n * storageInstance by checking the givent context-string. But this would make it impossible\r\n * to run a replication on the parentStorage itself.\r\n */\r\n readonly underlyingPersistentStorage?: RxStorageInstance<RxDocType, any, any, any>;\r\n\r\n /**\r\n * Writes multiple documents to the storage instance.\r\n * The write for each single document is atomic, there\r\n * is no transaction around all documents.\r\n * The written documents must be the newest revision of that documents data.\r\n * If the previous document is not the current newest revision, a conflict error\r\n * must be returned.\r\n * It must be possible that some document writes succeed\r\n * and others error. We need this to have a similar behavior as most NoSQL databases.\r\n */\r\n bulkWrite(\r\n documentWrites: BulkWriteRow<RxDocType>[],\r\n /**\r\n * Context will be used in all\r\n * changeStream()-events that are emitted as a result\r\n * of that bulkWrite() operation.\r\n * Used in plugins so that we can detect that event X\r\n * comes from operation Y.\r\n */\r\n context: string\r\n ): Promise<RxStorageBulkWriteResponse<RxDocType>>;\r\n\r\n /**\r\n * Get Multiple documents by their primary value.\r\n * This must also return deleted documents.\r\n */\r\n findDocumentsById(\r\n /**\r\n * List of primary values\r\n * of the documents to find.\r\n */\r\n ids: string[],\r\n /**\r\n * If set to true, deleted documents will also be returned.\r\n */\r\n withDeleted: boolean\r\n\r\n ): Promise<\r\n /**\r\n * For better performance, we return an array\r\n * instead of an indexed object because most consumers\r\n * of this anyway have to fill a Map() instance or\r\n * even do only need the list at all.\r\n */\r\n RxDocumentData<RxDocType>[]\r\n >;\r\n\r\n /**\r\n * Runs a NoSQL 'mango' query over the storage\r\n * and returns the found documents data.\r\n * Having all storage instances behave similar\r\n * is likely the most difficult thing when creating a new\r\n * rx-storage implementation.\r\n */\r\n query(\r\n preparedQuery: PreparedQuery<RxDocType>\r\n ): Promise<RxStorageQueryResult<RxDocType>>;\r\n\r\n /**\r\n * Returns the amount of non-deleted documents\r\n * that match the given query.\r\n * Sort, skip and limit of the query must be ignored!\r\n */\r\n count(\r\n preparedQuery: PreparedQuery<RxDocType>\r\n ): Promise<RxStorageCountResult>;\r\n\r\n /**\r\n * Returns the data of a single attachment as a Blob.\r\n */\r\n getAttachmentData(\r\n documentId: string,\r\n attachmentId: string,\r\n digest: string\r\n ): Promise<Blob>;\r\n\r\n /**\r\n * Returns the current (not the old!) data of all documents that have been changed AFTER the given checkpoint.\r\n * If the returned array does not reach the limit, it can be assumed that the \"end\" is reached, when paginating over the changes.\r\n * Also returns a new checkpoint for each document which can be used to continue with the pagination from that change on.\r\n * Must never return the same document multiple times in the same call operation.\r\n * This is used by RxDB to known what has changed since X so these docs can be handled by the backup or the replication\r\n * plugin.\r\n *\r\n * Important: This method is optional. If not defined,\r\n * RxDB will manually run a query and use the last returned document\r\n * for checkpointing. In the future we might even remove this method completely\r\n * and let RxDB do the work instead of the RxStorage.\r\n */\r\n getChangedDocumentsSince?(\r\n limit: number,\r\n /**\r\n * The checkpoint from with to start\r\n * when the events are sorted in time.\r\n * If we want to start from the beginning,\r\n * undefined is used as a checkpoint.\r\n */\r\n checkpoint?: CheckpointType\r\n ): Promise<{\r\n documents: RxDocumentData<RxDocType>[];\r\n /**\r\n * The checkpoint contains data so that another\r\n * call to getChangedDocumentsSince() will continue\r\n * from exactly the last document that was returned before.\r\n */\r\n checkpoint: CheckpointType;\r\n }>;\r\n\r\n /**\r\n * Returns an ongoing stream\r\n * of all changes that happen to the\r\n * storage instance.\r\n * Do not forget to unsubscribe.\r\n *\r\n * If the RxStorage support multi-instance,\r\n * and the storage is persistent,\r\n * then the emitted changes of one RxStorageInstance\r\n * must be also emitted to other instances with the same databaseName+collectionName.\r\n * See ./rx-storage-multiinstance.ts\r\n */\r\n changeStream(): Observable<EventBulk<RxStorageChangeEvent<RxDocType>, CheckpointType>>;\r\n\r\n /**\r\n * Runs a cleanup that removes all tompstones\r\n * of documents that have _deleted set to true\r\n * to free up disc space.\r\n *\r\n * Returns true if all cleanable documents have been removed.\r\n * Returns false if there are more documents to be cleaned up,\r\n * but not all have been purged because that would block the storage for too long.\r\n */\r\n cleanup(\r\n /**\r\n * The minimum time in milliseconds\r\n * of how long a document must have been deleted\r\n * until it is purged by the cleanup.\r\n */\r\n minimumDeletedTime: number\r\n ): Promise<\r\n /**\r\n * True if all docs cleaned up,\r\n * false if there are more docs to clean up\r\n */\r\n boolean\r\n >;\r\n\r\n /**\r\n * Closes the storage instance so it cannot be used\r\n * anymore and should clear all memory.\r\n * The returned promise must resolve when everything is cleaned up.\r\n */\r\n close(): Promise<void>;\r\n\r\n /**\r\n * Remove the database and\r\n * deletes all of its data.\r\n */\r\n remove(): Promise<void>;\r\n}\r\n"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"util.d.js","names":[],"sources":["../../../src/types/util.d.ts"],"sourcesContent":["import type { RxStorage } from './rx-storage.interface';\r\n\r\nexport type MaybePromise<T> = Promise<T> | T;\r\n\r\n\r\nexport type PlainJsonValue =\r\n string |\r\n number |\r\n boolean |\r\n PlainSimpleJsonObject |\r\n PlainSimpleJsonObject[] |\r\n PlainJsonValue[] |\r\n { [key: string]: PlainJsonValue; }\r\n ;\r\nexport type PlainSimpleJsonObject = {\r\n [k: string]: PlainJsonValue | PlainJsonValue[];\r\n};\r\n\r\n/**\r\n * @link https://stackoverflow.com/a/49670389/3443137\r\n */\r\ntype DeepReadonly<T> =\r\n T extends (infer R)[] ? DeepReadonlyArray<R> :\r\n T extends Function ? T :\r\n T extends object ? DeepReadonlyObject<T> :\r\n T;\r\n\r\ninterface DeepReadonlyArray<T> extends ReadonlyArray<DeepReadonly<T>> { }\r\n\r\ntype DeepReadonlyObject<T> = {\r\n readonly [P in keyof T]: DeepReadonly<T[P]>;\r\n};\r\n\r\nexport type MaybeReadonly<T> = T | Readonly<T>;\r\n\r\n\r\n/**\r\n * Opposite of DeepReadonly,\r\n * makes everything mutable again.\r\n */\r\ntype DeepMutable<T> = (\r\n T extends object\r\n ? {\r\n -readonly [K in keyof T]: (\r\n T[K] extends object\r\n ? DeepMutable<T[K]>\r\n : T[K]\r\n )\r\n }\r\n : never\r\n);\r\n\r\n/**\r\n * Can be used like 'keyof'\r\n * but only represents the string keys, not the Symbols or numbers.\r\n * @link https://stackoverflow.com/a/51808262/3443137\r\n */\r\nexport type StringKeys<X> = Extract<keyof X, string>;\r\n\r\nexport type AnyKeys<T> = { [P in keyof T]?: T[P] | any };\r\nexport interface AnyObject {\r\n [k: string]: any;\r\n}\r\n\r\n/**\r\n * @link https://dev.to/vborodulin/ts-how-to-override-properties-with-type-intersection-554l\r\n */\r\nexport type Override<T1, T2> = Omit<T1, keyof T2> & T2;\r\n\r\n\r\n\r\nexport type ById<T> = {\r\n [id: string]: T;\r\n};\r\n\r\n/**\r\n * Must be async to support async hashing like from the WebCrypto API.\r\n * Accepts string for document revision hashing,\r\n * ArrayBuffer for raw binary hashing,\r\n * or Blob for attachment digest hashing.\r\n */\r\nexport type HashFunction = (input: string | ArrayBuffer | Blob) => Promise<string>;\r\n\r\nexport declare type QueryMatcher<DocType> = (doc: DocType | DeepReadonly<DocType>) => boolean;\r\n\r\n/**\r\n * To have a deterministic sorting, we cannot return 0,\r\n * we only return 1 or -1.\r\n * This ensures that we always end with the same output array, no mather of the\r\n * pre-sorting of the input array.\r\n */\r\nexport declare type DeterministicSortComparator<DocType> = (a: DocType, b: DocType) => 1 | -1;\r\n\r\n/**\r\n * To test a storage, we need these\r\n * configuration values.\r\n */\r\nexport type RxTestStorage = {\r\n // can be used to setup async stuff\r\n readonly init?: () => any;\r\n readonly name: string;\r\n readonly getStorage: () => RxStorage<any, any>;\r\n /**\r\n * Returns a storage that is used in performance tests.\r\n * For example in a browser it should return the storage with an IndexedDB based adapter,\r\n * while in node.js it must use the filesystem.\r\n */\r\n readonly getPerformanceStorage: () => {\r\n storage: RxStorage<any, any>;\r\n /**\r\n * A description that describes the storage and setting.\r\n * For example 'dexie-native'.\r\n */\r\n description: string;\r\n };\r\n /**\r\n * True if the storage is able to\r\n * keep data after an instance is closed and opened again.\r\n */\r\n readonly hasPersistence: boolean;\r\n readonly hasMultiInstance: boolean;\r\n readonly hasAttachments: boolean;\r\n\r\n /**\r\n * Some storages likes the memory-synced storage,\r\n * are not able to provide a replication while guaranteeing\r\n * data integrity.\r\n */\r\n readonly hasReplication: boolean;\r\n\r\n /**\r\n * To make it possible to test alternative encryption plugins,\r\n * you can specify hasEncryption to signal\r\n * the test runner that the given storage already contains an\r\n * encryption plugin that should be used to test encryption tests.\r\n * Otherwise the encryption-crypto-js plugin will be tested.\r\n *\r\n * hasEncryption must contain a function that is able\r\n * to create a new password.\r\n */\r\n readonly hasEncryption?: () => Promise<string>;\r\n};\r\n\r\n\r\n/**\r\n * The paths as strings-type of nested object\r\n * @link https://stackoverflow.com/a/58436959/3443137\r\n */\r\ntype Join<K, P> = K extends string | number ?\r\n P extends string | number ?\r\n `${K}${'' extends P ? '' : '.'}${P}`\r\n : never : never;\r\n\r\nexport type Paths<T, D extends number = 10> = [D] extends [never] ? never : T extends object ?\r\n { [K in keyof T]-?: K extends string | number ?\r\n `${K}` | (Paths<T[K], Prev[D]> extends infer R ? Join<K, R> : never)\r\n : never\r\n }[keyof T] : '';\r\n\r\nexport type Leaves<T, D extends number = 10> = [D] extends [never] ? never : T extends object ?\r\n { [K in keyof T]-?: Join<K, Leaves<T[K], Prev[D]>> }[keyof T] : '';\r\ntype Prev = [never, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10,\r\n 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, ...0[]];\r\n\r\n\r\n\r\n/**\r\n * In the past, users had to add WeakRef to their typescript config.\r\n * To create an easier setup, we use our own typings instead, because WeakRef\r\n * is used internally only anyways.\r\n */\r\n\r\nexport interface WeakRef<T extends object = any> {\r\n deref(): T | undefined;\r\n}\r\n\r\nexport interface FinalizationRegistry<T> {\r\n register(target: object, heldValue: T, unregisterToken?: object): void;\r\n unregister(unregisterToken: object): boolean;\r\n}\r\n"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* a buffer-cache which holds the last X changeEvents of the collection
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { filter } from 'rxjs/operators';
|
|
6
|
+
import { requestIdlePromiseNoQueue } from "./plugins/utils/index.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* This buffer rembemers previous change events
|
|
10
|
+
* so that queries can use them on .exec()
|
|
11
|
+
* to calculate the new result set via event-reduce instead
|
|
12
|
+
* of running the query against the storage.
|
|
13
|
+
*/
|
|
14
|
+
export var ChangeEventBuffer = /*#__PURE__*/function () {
|
|
15
|
+
/**
|
|
16
|
+
* These properties are private to ensure they cannot
|
|
17
|
+
* be read without first processing the lazy tasks.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* array with changeEvents
|
|
22
|
+
* starts with oldest known event, ends with newest
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
function ChangeEventBuffer(collection) {
|
|
26
|
+
this.subs = [];
|
|
27
|
+
this.counter = 0;
|
|
28
|
+
this.eventCounterMap = new WeakMap();
|
|
29
|
+
this.buffer = [];
|
|
30
|
+
this.limit = 100;
|
|
31
|
+
this.tasks = new Set();
|
|
32
|
+
this.collection = collection;
|
|
33
|
+
this.subs.push(this.collection.eventBulks$.pipe(filter(bulk => !bulk.isLocal)).subscribe(eventBulk => {
|
|
34
|
+
this.tasks.add(() => this._handleChangeEvents(eventBulk.events));
|
|
35
|
+
if (this.tasks.size <= 1) {
|
|
36
|
+
requestIdlePromiseNoQueue().then(() => {
|
|
37
|
+
this.processTasks();
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
}));
|
|
41
|
+
}
|
|
42
|
+
var _proto = ChangeEventBuffer.prototype;
|
|
43
|
+
_proto.processTasks = function processTasks() {
|
|
44
|
+
if (this.tasks.size === 0) {
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
var tasks = Array.from(this.tasks);
|
|
48
|
+
tasks.forEach(task => task());
|
|
49
|
+
this.tasks.clear();
|
|
50
|
+
};
|
|
51
|
+
_proto._handleChangeEvents = function _handleChangeEvents(events) {
|
|
52
|
+
var counterBefore = this.counter;
|
|
53
|
+
this.counter = this.counter + events.length;
|
|
54
|
+
if (events.length > this.limit) {
|
|
55
|
+
this.buffer = events.slice(events.length * -1);
|
|
56
|
+
} else {
|
|
57
|
+
this.buffer = this.buffer.concat(events);
|
|
58
|
+
this.buffer = this.buffer.slice(this.limit * -1);
|
|
59
|
+
}
|
|
60
|
+
var counterBase = counterBefore + 1;
|
|
61
|
+
var eventCounterMap = this.eventCounterMap;
|
|
62
|
+
for (var index = 0; index < events.length; index++) {
|
|
63
|
+
var event = events[index];
|
|
64
|
+
eventCounterMap.set(event, counterBase + index);
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
_proto.getCounter = function getCounter() {
|
|
68
|
+
this.processTasks();
|
|
69
|
+
return this.counter;
|
|
70
|
+
};
|
|
71
|
+
_proto.getBuffer = function getBuffer() {
|
|
72
|
+
this.processTasks();
|
|
73
|
+
return this.buffer;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* gets the array-index for the given pointer
|
|
78
|
+
* @return arrayIndex which can be used to iterate from there. If null, pointer is out of lower bound
|
|
79
|
+
*/;
|
|
80
|
+
_proto.getArrayIndexByPointer = function getArrayIndexByPointer(pointer) {
|
|
81
|
+
this.processTasks();
|
|
82
|
+
var oldestEvent = this.buffer[0];
|
|
83
|
+
var oldestCounter = this.eventCounterMap.get(oldestEvent);
|
|
84
|
+
if (pointer < oldestCounter) return null; // out of bounds
|
|
85
|
+
|
|
86
|
+
var rest = pointer - oldestCounter;
|
|
87
|
+
return rest;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* get all changeEvents which came in later than the pointer-event
|
|
92
|
+
* @return array with change-events. If null, pointer out of bounds
|
|
93
|
+
*/;
|
|
94
|
+
_proto.getFrom = function getFrom(pointer) {
|
|
95
|
+
this.processTasks();
|
|
96
|
+
var ret = [];
|
|
97
|
+
var currentIndex = this.getArrayIndexByPointer(pointer);
|
|
98
|
+
if (currentIndex === null)
|
|
99
|
+
// out of bounds
|
|
100
|
+
return null;
|
|
101
|
+
while (true) {
|
|
102
|
+
var nextEvent = this.buffer[currentIndex];
|
|
103
|
+
currentIndex++;
|
|
104
|
+
if (!nextEvent) {
|
|
105
|
+
return ret;
|
|
106
|
+
} else {
|
|
107
|
+
ret.push(nextEvent);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
_proto.runFrom = function runFrom(pointer, fn) {
|
|
112
|
+
this.processTasks();
|
|
113
|
+
var ret = this.getFrom(pointer);
|
|
114
|
+
if (ret === null) {
|
|
115
|
+
throw new Error('out of bounds');
|
|
116
|
+
} else {
|
|
117
|
+
ret.forEach(cE => fn(cE));
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* no matter how many operations are done on one document,
|
|
123
|
+
* only the last operation has to be checked to calculate the new state
|
|
124
|
+
* this function reduces the events to the last ChangeEvent of each doc.
|
|
125
|
+
* This functionality is currently disabled. It is questionable if
|
|
126
|
+
* pre-merging the events would really be faster or actually slower.
|
|
127
|
+
*/;
|
|
128
|
+
_proto.reduceByLastOfDoc = function reduceByLastOfDoc(changeEvents) {
|
|
129
|
+
this.processTasks();
|
|
130
|
+
return changeEvents.slice(0);
|
|
131
|
+
};
|
|
132
|
+
_proto.close = function close() {
|
|
133
|
+
this.tasks.clear();
|
|
134
|
+
this.subs.forEach(sub => sub.unsubscribe());
|
|
135
|
+
};
|
|
136
|
+
return ChangeEventBuffer;
|
|
137
|
+
}();
|
|
138
|
+
export function createChangeEventBuffer(collection) {
|
|
139
|
+
return new ChangeEventBuffer(collection);
|
|
140
|
+
}
|
|
141
|
+
//# sourceMappingURL=change-event-buffer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"change-event-buffer.js","names":["filter","requestIdlePromiseNoQueue","ChangeEventBuffer","collection","subs","counter","eventCounterMap","WeakMap","buffer","limit","tasks","Set","push","eventBulks$","pipe","bulk","isLocal","subscribe","eventBulk","add","_handleChangeEvents","events","size","then","processTasks","_proto","prototype","Array","from","forEach","task","clear","counterBefore","length","slice","concat","counterBase","index","event","set","getCounter","getBuffer","getArrayIndexByPointer","pointer","oldestEvent","oldestCounter","get","rest","getFrom","ret","currentIndex","nextEvent","runFrom","fn","Error","cE","reduceByLastOfDoc","changeEvents","close","sub","unsubscribe","createChangeEventBuffer"],"sources":["../../src/change-event-buffer.ts"],"sourcesContent":["/**\r\n * a buffer-cache which holds the last X changeEvents of the collection\r\n */\r\nimport {\r\n Subscription\r\n} from 'rxjs';\r\nimport { filter } from 'rxjs/operators';\r\nimport type {\r\n RxChangeEventBulk,\r\n RxCollection,\r\n RxStorageChangeEvent\r\n} from './types/index.d.ts';\r\nimport {\r\n requestIdlePromiseNoQueue\r\n} from './plugins/utils/index.ts';\r\n\r\n\r\n/**\r\n * This buffer rembemers previous change events\r\n * so that queries can use them on .exec()\r\n * to calculate the new result set via event-reduce instead\r\n * of running the query against the storage.\r\n */\r\nexport class ChangeEventBuffer<RxDocType> {\r\n /**\r\n * These properties are private to ensure they cannot\r\n * be read without first processing the lazy tasks.\r\n */\r\n private subs: Subscription[] = [];\r\n private counter: number = 0;\r\n private eventCounterMap: WeakMap<\r\n RxStorageChangeEvent<RxDocType>,\r\n number\r\n > = new WeakMap();\r\n /**\r\n * array with changeEvents\r\n * starts with oldest known event, ends with newest\r\n */\r\n private buffer: RxStorageChangeEvent<RxDocType>[] = [];\r\n\r\n public limit: number = 100;\r\n\r\n\r\n\r\n private tasks = new Set<Function>();\r\n\r\n constructor(\r\n public collection: RxCollection\r\n ) {\r\n this.subs.push(\r\n this.collection.eventBulks$.pipe(\r\n filter((bulk: RxChangeEventBulk<RxDocType>) => !bulk.isLocal)\r\n ).subscribe((eventBulk: RxChangeEventBulk<RxDocType>) => {\r\n this.tasks.add(() => this._handleChangeEvents(eventBulk.events));\r\n if (this.tasks.size <= 1) {\r\n requestIdlePromiseNoQueue().then(() => {\r\n this.processTasks();\r\n });\r\n }\r\n })\r\n );\r\n }\r\n\r\n private processTasks() {\r\n if (this.tasks.size === 0) {\r\n return;\r\n }\r\n const tasks = Array.from(this.tasks);\r\n tasks.forEach(task => task());\r\n this.tasks.clear();\r\n }\r\n\r\n private _handleChangeEvents(events: RxStorageChangeEvent<RxDocType>[]) {\r\n const counterBefore = this.counter;\r\n this.counter = this.counter + events.length;\r\n if (events.length > this.limit) {\r\n this.buffer = events.slice(events.length * -1);\r\n } else {\r\n this.buffer = this.buffer.concat(events);\r\n this.buffer = this.buffer.slice(this.limit * -1);\r\n }\r\n const counterBase = counterBefore + 1;\r\n const eventCounterMap = this.eventCounterMap;\r\n for (let index = 0; index < events.length; index++) {\r\n const event = events[index];\r\n eventCounterMap.set(event, counterBase + index);\r\n }\r\n }\r\n\r\n getCounter() {\r\n this.processTasks();\r\n return this.counter;\r\n }\r\n getBuffer() {\r\n this.processTasks();\r\n return this.buffer;\r\n }\r\n\r\n /**\r\n * gets the array-index for the given pointer\r\n * @return arrayIndex which can be used to iterate from there. If null, pointer is out of lower bound\r\n */\r\n getArrayIndexByPointer(pointer: number): number | null {\r\n this.processTasks();\r\n const oldestEvent = this.buffer[0];\r\n const oldestCounter = this.eventCounterMap.get(\r\n oldestEvent\r\n ) as number;\r\n\r\n if (pointer < oldestCounter)\r\n return null; // out of bounds\r\n\r\n const rest = pointer - oldestCounter;\r\n return rest;\r\n }\r\n\r\n /**\r\n * get all changeEvents which came in later than the pointer-event\r\n * @return array with change-events. If null, pointer out of bounds\r\n */\r\n getFrom(pointer: number): RxStorageChangeEvent<RxDocType>[] | null {\r\n this.processTasks();\r\n const ret = [];\r\n let currentIndex = this.getArrayIndexByPointer(pointer);\r\n if (currentIndex === null) // out of bounds\r\n return null;\r\n\r\n while (true) {\r\n const nextEvent = this.buffer[currentIndex];\r\n currentIndex++;\r\n if (!nextEvent) {\r\n return ret;\r\n } else {\r\n ret.push(nextEvent);\r\n }\r\n }\r\n }\r\n\r\n runFrom(pointer: number, fn: Function) {\r\n this.processTasks();\r\n const ret = this.getFrom(pointer);\r\n if (ret === null) {\r\n throw new Error('out of bounds');\r\n } else {\r\n ret.forEach(cE => fn(cE));\r\n }\r\n }\r\n\r\n /**\r\n * no matter how many operations are done on one document,\r\n * only the last operation has to be checked to calculate the new state\r\n * this function reduces the events to the last ChangeEvent of each doc.\r\n * This functionality is currently disabled. It is questionable if\r\n * pre-merging the events would really be faster or actually slower.\r\n */\r\n reduceByLastOfDoc(changeEvents: RxStorageChangeEvent<RxDocType>[]): RxStorageChangeEvent<RxDocType>[] {\r\n this.processTasks();\r\n return changeEvents.slice(0);\r\n }\r\n\r\n close() {\r\n this.tasks.clear();\r\n this.subs.forEach(sub => sub.unsubscribe());\r\n }\r\n}\r\n\r\nexport function createChangeEventBuffer<RxdocType>(\r\n collection: RxCollection<RxdocType, any>\r\n) {\r\n return new ChangeEventBuffer<RxdocType>(collection);\r\n}\r\n"],"mappings":"AAAA;AACA;AACA;;AAIA,SAASA,MAAM,QAAQ,gBAAgB;AAMvC,SACIC,yBAAyB,QACtB,0BAA0B;;AAGjC;AACA;AACA;AACA;AACA;AACA;AACA,WAAaC,iBAAiB;EAC1B;AACJ;AACA;AACA;;EAOI;AACJ;AACA;AACA;;EASI,SAAAA,kBACWC,UAAwB,EACjC;IAAA,KApBMC,IAAI,GAAmB,EAAE;IAAA,KACzBC,OAAO,GAAW,CAAC;IAAA,KACnBC,eAAe,GAGnB,IAAIC,OAAO,CAAC,CAAC;IAAA,KAKTC,MAAM,GAAsC,EAAE;IAAA,KAE/CC,KAAK,GAAW,GAAG;IAAA,KAIlBC,KAAK,GAAG,IAAIC,GAAG,CAAW,CAAC;IAAA,KAGxBR,UAAwB,GAAxBA,UAAwB;IAE/B,IAAI,CAACC,IAAI,CAACQ,IAAI,CACV,IAAI,CAACT,UAAU,CAACU,WAAW,CAACC,IAAI,CAC5Bd,MAAM,CAAEe,IAAkC,IAAK,CAACA,IAAI,CAACC,OAAO,CAChE,CAAC,CAACC,SAAS,CAAEC,SAAuC,IAAK;MACrD,IAAI,CAACR,KAAK,CAACS,GAAG,CAAC,MAAM,IAAI,CAACC,mBAAmB,CAACF,SAAS,CAACG,MAAM,CAAC,CAAC;MAChE,IAAI,IAAI,CAACX,KAAK,CAACY,IAAI,IAAI,CAAC,EAAE;QACtBrB,yBAAyB,CAAC,CAAC,CAACsB,IAAI,CAAC,MAAM;UACnC,IAAI,CAACC,YAAY,CAAC,CAAC;QACvB,CAAC,CAAC;MACN;IACJ,CAAC,CACL,CAAC;EACL;EAAC,IAAAC,MAAA,GAAAvB,iBAAA,CAAAwB,SAAA;EAAAD,MAAA,CAEOD,YAAY,GAApB,SAAQA,YAAYA,CAAA,EAAG;IACnB,IAAI,IAAI,CAACd,KAAK,CAACY,IAAI,KAAK,CAAC,EAAE;MACvB;IACJ;IACA,IAAMZ,KAAK,GAAGiB,KAAK,CAACC,IAAI,CAAC,IAAI,CAAClB,KAAK,CAAC;IACpCA,KAAK,CAACmB,OAAO,CAACC,IAAI,IAAIA,IAAI,CAAC,CAAC,CAAC;IAC7B,IAAI,CAACpB,KAAK,CAACqB,KAAK,CAAC,CAAC;EACtB,CAAC;EAAAN,MAAA,CAEOL,mBAAmB,GAA3B,SAAQA,mBAAmBA,CAACC,MAAyC,EAAE;IACnE,IAAMW,aAAa,GAAG,IAAI,CAAC3B,OAAO;IAClC,IAAI,CAACA,OAAO,GAAG,IAAI,CAACA,OAAO,GAAGgB,MAAM,CAACY,MAAM;IAC3C,IAAIZ,MAAM,CAACY,MAAM,GAAG,IAAI,CAACxB,KAAK,EAAE;MAC5B,IAAI,CAACD,MAAM,GAAGa,MAAM,CAACa,KAAK,CAACb,MAAM,CAACY,MAAM,GAAG,CAAC,CAAC,CAAC;IAClD,CAAC,MAAM;MACH,IAAI,CAACzB,MAAM,GAAG,IAAI,CAACA,MAAM,CAAC2B,MAAM,CAACd,MAAM,CAAC;MACxC,IAAI,CAACb,MAAM,GAAG,IAAI,CAACA,MAAM,CAAC0B,KAAK,CAAC,IAAI,CAACzB,KAAK,GAAG,CAAC,CAAC,CAAC;IACpD;IACA,IAAM2B,WAAW,GAAGJ,aAAa,GAAG,CAAC;IACrC,IAAM1B,eAAe,GAAG,IAAI,CAACA,eAAe;IAC5C,KAAK,IAAI+B,KAAK,GAAG,CAAC,EAAEA,KAAK,GAAGhB,MAAM,CAACY,MAAM,EAAEI,KAAK,EAAE,EAAE;MAChD,IAAMC,KAAK,GAAGjB,MAAM,CAACgB,KAAK,CAAC;MAC3B/B,eAAe,CAACiC,GAAG,CAACD,KAAK,EAAEF,WAAW,GAAGC,KAAK,CAAC;IACnD;EACJ,CAAC;EAAAZ,MAAA,CAEDe,UAAU,GAAV,SAAAA,UAAUA,CAAA,EAAG;IACT,IAAI,CAAChB,YAAY,CAAC,CAAC;IACnB,OAAO,IAAI,CAACnB,OAAO;EACvB,CAAC;EAAAoB,MAAA,CACDgB,SAAS,GAAT,SAAAA,SAASA,CAAA,EAAG;IACR,IAAI,CAACjB,YAAY,CAAC,CAAC;IACnB,OAAO,IAAI,CAAChB,MAAM;EACtB;;EAEA;AACJ;AACA;AACA,KAHI;EAAAiB,MAAA,CAIAiB,sBAAsB,GAAtB,SAAAA,sBAAsBA,CAACC,OAAe,EAAiB;IACnD,IAAI,CAACnB,YAAY,CAAC,CAAC;IACnB,IAAMoB,WAAW,GAAG,IAAI,CAACpC,MAAM,CAAC,CAAC,CAAC;IAClC,IAAMqC,aAAa,GAAG,IAAI,CAACvC,eAAe,CAACwC,GAAG,CAC1CF,WACJ,CAAW;IAEX,IAAID,OAAO,GAAGE,aAAa,EACvB,OAAO,IAAI,CAAC,CAAC;;IAEjB,IAAME,IAAI,GAAGJ,OAAO,GAAGE,aAAa;IACpC,OAAOE,IAAI;EACf;;EAEA;AACJ;AACA;AACA,KAHI;EAAAtB,MAAA,CAIAuB,OAAO,GAAP,SAAAA,OAAOA,CAACL,OAAe,EAA4C;IAC/D,IAAI,CAACnB,YAAY,CAAC,CAAC;IACnB,IAAMyB,GAAG,GAAG,EAAE;IACd,IAAIC,YAAY,GAAG,IAAI,CAACR,sBAAsB,CAACC,OAAO,CAAC;IACvD,IAAIO,YAAY,KAAK,IAAI;MAAE;MACvB,OAAO,IAAI;IAEf,OAAO,IAAI,EAAE;MACT,IAAMC,SAAS,GAAG,IAAI,CAAC3C,MAAM,CAAC0C,YAAY,CAAC;MAC3CA,YAAY,EAAE;MACd,IAAI,CAACC,SAAS,EAAE;QACZ,OAAOF,GAAG;MACd,CAAC,MAAM;QACHA,GAAG,CAACrC,IAAI,CAACuC,SAAS,CAAC;MACvB;IACJ;EACJ,CAAC;EAAA1B,MAAA,CAED2B,OAAO,GAAP,SAAAA,OAAOA,CAACT,OAAe,EAAEU,EAAY,EAAE;IACnC,IAAI,CAAC7B,YAAY,CAAC,CAAC;IACnB,IAAMyB,GAAG,GAAG,IAAI,CAACD,OAAO,CAACL,OAAO,CAAC;IACjC,IAAIM,GAAG,KAAK,IAAI,EAAE;MACd,MAAM,IAAIK,KAAK,CAAC,eAAe,CAAC;IACpC,CAAC,MAAM;MACHL,GAAG,CAACpB,OAAO,CAAC0B,EAAE,IAAIF,EAAE,CAACE,EAAE,CAAC,CAAC;IAC7B;EACJ;;EAEA;AACJ;AACA;AACA;AACA;AACA;AACA,KANI;EAAA9B,MAAA,CAOA+B,iBAAiB,GAAjB,SAAAA,iBAAiBA,CAACC,YAA+C,EAAqC;IAClG,IAAI,CAACjC,YAAY,CAAC,CAAC;IACnB,OAAOiC,YAAY,CAACvB,KAAK,CAAC,CAAC,CAAC;EAChC,CAAC;EAAAT,MAAA,CAEDiC,KAAK,GAAL,SAAAA,KAAKA,CAAA,EAAG;IACJ,IAAI,CAAChD,KAAK,CAACqB,KAAK,CAAC,CAAC;IAClB,IAAI,CAAC3B,IAAI,CAACyB,OAAO,CAAC8B,GAAG,IAAIA,GAAG,CAACC,WAAW,CAAC,CAAC,CAAC;EAC/C,CAAC;EAAA,OAAA1D,iBAAA;AAAA;AAGL,OAAO,SAAS2D,uBAAuBA,CACnC1D,UAAwC,EAC1C;EACE,OAAO,IAAID,iBAAiB,CAAYC,UAAU,CAAC;AACvD","ignoreList":[]}
|