Releases: pubkey/rxdb
10.0.0-beta.1
Read 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.
9.20.0
9.18.0
9.17.0
9.16.0
Features:
- Added
RxDatabase.migrationStates()
which returns an observable to observe the state of all ongoing migrations. - Added
startupPromise
to the returned object ofRxDatabase().server()
Bugfixes:
- Ensure every background task is done when
RxDatabase.destroy()
resolves. #2938
Other:
- Added analytics to docs page
9.15.0
9.14.0
Features:
- Added
RxReplicationState.awaitInitialReplication()
Bugfixes:
- Using the replication plugins must not required to also use leader-election
- Refactor
QueryCache.triggerCacheReplacement()
to not spawnsetTimeout
regulary. This is needed for server side rendering with angular universal.
Other:
- Added server side rendering to the angular example
9.13.0
Features:
- Added
RxCollection().bulkRemove()
#2845 Thanks @qinyang912
Other:
- Improved typings of
insertLocal()
#2850 Thanks @openscript - Improved typings of
bulkInsert()
9.12.1
9.12.0
Features:
- Allow
primary
andref
at the same time in a schema. #2747
Bugfixes:
- #2705 when use bulkInsert to insert doc, the rxDocument property on changeEvent is an object, not a RxDocument instance. Thanks @qinyang912
- When the mutation function of
atomicUpdate()
has thrown once, it was not possible to use it again.