10.0.0-beta.1
Pre-releaseRead the full release article
Breaking:
-
Setting a
primaryKey
for a schema is now required. -
When using the type
RxJsonSchema<DocType>
theDocType
is now required. -
Outgoing data is now
Readonly
typed and deep-frozen in dev mode -
RxDocument.putAttachment()
no longer supports string as data, onlyBlob
orBuffer
. -
Changed the default of
putAttachment
toskipIfSame=true
. -
Removed the deprecated
atomicSet()
, useatomicPatch()
instead. -
Removed the deprecated
RxDatabase.collection()
useRxDatabase().addCollections()
instead. -
Moved everything pouchdb related to the
pouchdb
plugin. -
Pouchdb plugins are not longer added via
addRxPlugin()
butaddPouchPlugin()
. (RxDB plugins are still added viaaddRxPlugin
). -
Removed plugin hook
preCreatePouchDb
. -
Removed the
watch-for-changes
plugin, this is now directly integrated into the pouchdbRxStorage
. -
Removed the
adapter-check
plugin. (The functionadapterCheck
is move to the pouchdb plugin). -
Calling
RxDatabase.server()
now returns a promise that resolves when the server is started up. -
Changed the defaults of
PouchDBExpressServerOptions
from theserver()
method, by default we now store logs in the tmp folder and the config is in memory. -
Renamed
replication
-plugin toreplication-couchdb
to 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()
-
RxCollection
uses a separate pouchdb instance for local documents, so that they can persist during migrations.