A fast, local first, reactive Database for JavaScript Applications https://rxdb.info/
APACHE-2.0 License
Bot releases are hidden (Show)
Published by pubkey over 3 years ago
Breaking:
Setting a primaryKey
for a schema is now required.
When using the type RxJsonSchema<DocType>
the DocType
is now required.
A JsonSchema must have the required
array at the top level and it must contain the primary key.
Outgoing data is now Readonly
typed and deep-frozen in dev mode
RxDocument.putAttachment()
no longer supports string as data, only Blob
or Buffer
.
Changed the default of putAttachment
to skipIfSame=true
.
Removed the deprecated atomicSet()
, use atomicPatch()
instead.
Removed the deprecated RxDatabase.collection()
use RxDatabase().addCollections()
instead.
Moved everything pouchdb related to the pouchdb
plugin.
Pouchdb plugins are not longer added via addRxPlugin()
but addPouchPlugin()
. (RxDB plugins are still added via addRxPlugin
).
Removed plugin hook preCreatePouchDb
.
Removed the watch-for-changes
plugin, this is now directly integrated into the pouchdb RxStorage
.
Removed the adapter-check
plugin. (The function adapterCheck
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 the server()
method, by default we now store logs in the tmp folder and the config is in memory.
Renamed replication
-plugin to replication-couchdb
to be more consistend in naming like with replication-graphql
RxCollection().sync()
to RxCollection().syncCouchDB()
Renamed the functions of the json import/export plugin to be less confusing
dump()
is now exportJSON()
importDump()
is now importJSON()
RxCollection
uses a separate pouchdb instance for local documents, so that they can persist during migrations.
Features:
Other:
should never happen
errors into own error code.Typings:
Published by pubkey over 3 years ago
Breaking:
Setting a primaryKey
for a schema is now required.
When using the type RxJsonSchema<DocType>
the DocType
is now required.
A JsonSchema must have the required
array at the top level and it must contain the primary key.
Outgoing data is now Readonly
typed and deep-frozen in dev mode
RxDocument.putAttachment()
no longer supports string as data, only Blob
or Buffer
.
Changed the default of putAttachment
to skipIfSame=true
.
Removed the deprecated atomicSet()
, use atomicPatch()
instead.
Removed the deprecated RxDatabase.collection()
use RxDatabase().addCollections()
instead.
Moved everything pouchdb related to the pouchdb
plugin.
Pouchdb plugins are not longer added via addRxPlugin()
but addPouchPlugin()
. (RxDB plugins are still added via addRxPlugin
).
Removed plugin hook preCreatePouchDb
.
Removed the watch-for-changes
plugin, this is now directly integrated into the pouchdb RxStorage
.
Removed the adapter-check
plugin. (The function adapterCheck
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 the server()
method, by default we now store logs in the tmp folder and the config is in memory.
Renamed replication
-plugin to replication-couchdb
to be more consistend in naming like with replication-graphql
RxCollection().sync()
to RxCollection().syncCouchDB()
Renamed the functions of the json import/export plugin to be less confusing
dump()
is now exportJSON()
importDump()
is now importJSON()
RxCollection
uses a separate pouchdb instance for local documents, so that they can persist during migrations.
Features:
Other:
should never happen
errors into own error code.Typings:
Published by pubkey over 3 years ago
Breaking:
Setting a primaryKey
for a schema is now required.
When using the type RxJsonSchema<DocType>
the DocType
is now required.
Outgoing data is now Readonly
typed and deep-frozen in dev mode
RxDocument.putAttachment()
no longer supports string as data, only Blob
or Buffer
.
Changed the default of putAttachment
to skipIfSame=true
.
Removed the deprecated atomicSet()
, use atomicPatch()
instead.
Removed the deprecated RxDatabase.collection()
use RxDatabase().addCollections()
instead.
Moved everything pouchdb related to the pouchdb
plugin.
Pouchdb plugins are not longer added via addRxPlugin()
but addPouchPlugin()
. (RxDB plugins are still added via addRxPlugin
).
Removed plugin hook preCreatePouchDb
.
Removed the watch-for-changes
plugin, this is now directly integrated into the pouchdb RxStorage
.
Removed the adapter-check
plugin. (The function adapterCheck
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 the server()
method, by default we now store logs in the tmp folder and the config is in memory.
Renamed replication
-plugin to replication-couchdb
to be more consistend in naming like with replication-graphql
RxCollection().sync()
to RxCollection().syncCouchDB()
Renamed the functions of the json import/export plugin to be less confusing
dump()
is now exportJSON()
importDump()
is now importJSON()
RxCollection
uses a separate pouchdb instance for local documents, so that they can persist during migrations.
Published by pubkey over 3 years ago
Bugfixes:
Features:
Other:
Published by pubkey over 3 years ago
Bugfixes:
RxCollection().findByIds$()
Other:
RxQuery
Published by pubkey over 3 years ago
Features:
RxAttachment
s inside of a migration strategy.Published by pubkey over 3 years ago
Features:
RxDatabase.migrationStates()
which returns an observable to observe the state of all ongoing migrations.startupPromise
to the returned object of RxDatabase().server()
Bugfixes:
RxDatabase.destroy()
resolves. #2938
Other:
Published by pubkey over 3 years ago
Bugfixes:
pouchdb-all-dbs
fixes #2874 Thanks @openscript
Other:
RxError
when data migration failsPublished by pubkey over 3 years ago
Features:
RxReplicationState.awaitInitialReplication()
Bugfixes:
QueryCache.triggerCacheReplacement()
to not spawn setTimeout
regulary. This is needed for server side rendering with angular universal.Other:
Published by pubkey over 3 years ago
Features:
RxCollection().bulkRemove()
#2845 Thanks @qinyang912
Other:
insertLocal()
#2850 Thanks @openscript
bulkInsert()
Published by pubkey over 3 years ago
Bugfixes:
sideEffects: true
for main module #2798
Other:
4.1.3
Published by pubkey almost 4 years ago
Features:
primary
and ref
at the same time in a schema. #2747
Bugfixes:
atomicUpdate()
has thrown once, it was not possible to use it again.Published by pubkey almost 4 years ago
Features:
putAttachment(skipIfSame)
, if set to true
a write will be skipped if the attachment already exists with the same data.Bugfixes:
awaitInitialReplication()
resolves on failed replication #2745. Thanks @dome4
insertLocal()
not emitted the state change across tabsOther:
name
identifier to RxPlugin
dev-mode
plugin is added multiple times because there is no way that this was done intentional likely the developer has mixed core and default usage of RxDB.Published by pubkey almost 4 years ago
Other:
Published by pubkey almost 4 years ago
Features:
RxCollection.getLocal$()
and RxDatabase.getLocal$()
to observe local documents.RxDatabase.addCollections()
to create multiple collections at once. Is faster and better typed than the now deprecated RxDatabase.collection()
Other:
pouchdb.changes()
Published by pubkey almost 4 years ago
Other:
properties
to dev-mode schema checkPublished by pubkey almost 4 years ago
Features:
graphQLSchemaFromRxSchema()
Bugfixes:
syncGraphQL()
did not type-match with RxGraphQLReplicationState
RxDocument.atomicUpdate()
now does a retry on 409 write conflictsOther:
RxDocument.atomicSet()
. Used atomicPatch
instead, it works better with typescriptPublished by pubkey almost 4 years ago
Bugfixes:
RxLocalDocument.$
emitted to often on changes #2471
RxReplicationState.collection
Features:
RxLocalDocument
like myDatabase.getLocal<{foo: string}>('bar')
Other:
Published by pubkey about 4 years ago