Breaking:
-
Setting a
primaryKeyfor a schema is now required. -
When using the type
RxJsonSchema<DocType>theDocTypeis now required. -
A JsonSchema must have the
requiredarray at the top level and it must contain the primary key. -
Outgoing data is now
Readonlytyped and deep-frozen in dev mode -
RxDocument.putAttachment()no longer supports string as data, onlyBloborBuffer. -
Changed the default of
putAttachmenttoskipIfSame=true. -
Removed the deprecated
atomicSet(), useatomicPatch()instead. -
Removed the deprecated
RxDatabase.collection()useRxDatabase().addCollections()instead. -
Moved everything pouchdb related to the
pouchdbplugin. -
Pouchdb plugins are not longer added via
addRxPlugin()butaddPouchPlugin(). (RxDB plugins are still added viaaddRxPlugin). -
Removed plugin hook
preCreatePouchDb. -
Removed the
watch-for-changesplugin, this is now directly integrated into the pouchdbRxStorage. -
Removed the
adapter-checkplugin. (The functionadapterCheckis move to the pouchdb plugin). -
Calling
RxDatabase.server()now returns a promise that resolves when the server is started up. -
Changed the defaults of
PouchDBExpressServerOptionsfrom theserver()method, by default we now store logs in the tmp folder and the config is in memory. -
Renamed
replication-plugin toreplication-couchdbto be more consistend in naming like withreplication-graphql- Renamed
RxCollection().sync()toRxCollection().syncCouchDB()
- Renamed
-
Renamed the functions of the json import/export plugin to be less confusing
dump()is nowexportJSON()importDump()is nowimportJSON()
-
RxCollectionuses a separate pouchdb instance for local documents, so that they can persist during migrations.
Features:
- Added support for composite primary keys.
Other:
- Moved all
should never happenerrors into own error code.
Typings:
- Improved typings of error codes.