Skip to content

Commit

Permalink
WIP 14.0.0 (#4181)
Browse files Browse the repository at this point in the history
* CHANGE Do not use hash for revisions

* Remove the deprecated PouchDB RxStorage

* REMOVE pouchdb RxStorage

* FIX typing tests

* FIX imports

* FIX ci

* FIX imports

* FIX tests

* FIX imports

* REMOVe pouchdb from tests

* REMOVE pouchdb scripts

* FIX imports

* FIX import

* FIX tests

* FIX tests

* FIX tests

* FIX lokijs tests

* CHANGE (memory RxStorage) do not clean up database state on closing of the storage, only on `remove()`

* FIX node example

* FIX ci

* FIX stuff

* FIX ci

* FIX foundationdb stuff

* FIX stuff

* FIX test

* FIX t est

* FIX stuff

* REMOVE old `replication-couchdb` plugin. Rename `replication-couchdb-new` to `replication-couchdb`.

* FIX angular replication

* FIX websocket replication

* FIX type

* FIX stuff

* FIX import

* UPDATE stuff

* FIX CouchDB replication: Use correct default fetch method

* FIX vue

* FIX stuff

* FIX stuff

* FIX ci

* FIX vue

* FIX ciu

* aDD log to debug

* FIX stuff

* FIX tests

* CHANGE use plain json errors inside of RxError parameters to make debugging easier.

* FIX tests

* REFACTOR error handling of RxStorageInstance.bulkWrite()

* FIX types

* FIX error

* FIX test

* ADD incremental write queue (#4186)

* ADD incremental write queue

* RMEOVE logs

* FIX types

* Remove depricated `skipIfSame` from `putAttachment()`

* CHANGE immutable documents (#4189)

* CHANGE immutable documents step1

* FIX tests

* FIX more tests

* FIX more tests

* FIX more tests

* FIX more tests

* FIX tests

* FIX tests

* FIX docs

* FIX tests

* FIX tests

* ADD changelog

* FIX tests

* FIX types

* FIX deps

* UPDATE typescript

* UPDATE angular

* UPDATE typescript

* FIX typos

* UPDATE node

* FIX angular

* UPDATE @types/node

* REMOVE unmaintained babel-plugin-transform-async-to-promises

* FIX angular tests

* FIX babel confict

* ADD changelog

* REMOVE comment

* UPDATE testcafe

* TRY fix tests

* FIX run headless

* TRY fix stuff

* TRY ajax timeout

* IMPROVE error log

* FIX stuff

* FIX closing of replication

* FIX todos

* CHANGE `RxCollection.findByIds()` now returns a `RxQuery` (#4191)

* CHANGE `RxCollection.findByIds()` now returns a `RxQuery`

* ADD orga

* FIX do not return deleted documents

* FIX schema hashing should respect the sort order #4005

* FIX lint

* CHANGE Prefix storage plugins with `storage-` like `rxdb/plugins/stor… (#4193)

* CHANGE Prefix storage plugins with `storage-` like `rxdb/plugins/storage-dexie`

* FIX remove more PouchDB stuff

* FIX build

* FIX imports

* FIX types

* FIX imports

* FIX clear cache

* FIX clear cache

* FIX supabase example

* FIX document cache to work with QuickJS

* CHANGE prefix ci task names

* FIX flutter

* FIX tests

* FIX types

* REMOVE more pouchdb specific tests

* REMOVE more pouchdb specific tests

* FIX test

* RENAME atomic->incremental (#4197)

* RENAME atomic->incremental

* ADD more incremental methods

* FIX run hooks on remove

* FIX format

* ADD typings to the query selector

* UPDATE orga

* FIX build

* FIX stuff

* FIX mingo

* FIX circular deps

* TRY fix import

* ADD notes

* REFACTOR utils (#4204)

* REFACTOR utils

* REMOVE $all query type #4203

* Update package.json

* Add missing mingo array operators (#4203)

* ADD #4203 to changelog

* Update dependency babel-loader to v8.3.0 (#4206)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency @types/node to v14.18.36 (#4207)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency apollo-server-express to v3.11.1 (#4205)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* 13.17.1

* Update dependency firebase to v9.15.0 (#4210)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency concurrently to v7.6.0 (#4208)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* REFACTOR use plain functions for replication plugins

* FIX docs

* FIX stuff

* FIX stuff

* FIX build

* TRY fix types

* FIX types

* FIX graphql example

* FIX

* FIX import

Co-authored-by: swnf <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* FIX ci

Co-authored-by: swnf <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
4 people authored Jan 1, 2023
1 parent 7e0dbd4 commit 7607a8b
Show file tree
Hide file tree
Showing 1,132 changed files with 42,300 additions and 69,212 deletions.
241 changes: 66 additions & 175 deletions .github/workflows/main.yml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v18.4.0
v18.12.1
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,28 @@
# RxDB Changelog

<!-- CHANGELOG NEWEST -->
- CHANGE Do not use hash for revisions but use database instance token instead.
- Remove the deprecated PouchDB RxStorage.
- CHANGE (memory RxStorage) do not clean up database state on closing of the storage, only on `remove()`.
- REMOVE old `replication-couchdb` plugin. Rename `replication-couchdb-new` to `replication-couchdb`.
- FIX CouchDB replication: Use correct default fetch method.
- CHANGE use plain json errors inside of RxError parameters to make debugging easier.
- CHANGE crunch multiple incremental (aka 'atomic') operations into a single database write. Also batch writes to multiple documents into a single write.
- CHANGE Make RxDocuments immutable
- ADD `RxDocument.getLatest()`
- REMOVE deprecated `babel-plugin-transform-async-to-promises` plugin.
- CHANGE `RxCollection.findByIds()` now returns a `RxQuery`.
- REMOVED `RxCollection.findByIds$`, use `RxCollection.findByIds().$` instead.
- FIX schema hashing should respect the sort order [#4005](https://github.com/pubkey/rxdb/pull/4005)
- CHANGE Prefix storage plugins with `storage-` like `rxdb/plugins/storage-dexie`.
- RENAME `atomicUpdate()` to `incrementalModify()`
- RENAME `atomicPatch()` to `incrementalPatch()`
- RENAME `atomicUpsert()` to `incrementalUpsert()`
- ADD `RxDocument().incrementalUpdate()`
- ADD `RxDocument.incrementalRemove()`
- ADD non-incremental `RxDocument` methods `patch()` and `modify()`
- ADD typings to the query selector
- CHANGE start replication via pure functions instead of RxCollection methods.

<!-- ADD new changes here! -->

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ import {
* In other JavaScript runtimes, we can use different storages:
* @link https://rxdb.info/rx-storage.html
*/
import { getRxStorageDexie } from 'rxdb/plugins/dexie';
import { getRxStorageDexie } from 'rxdb/plugins/storage-dexie';

// create a database
const db = await createRxDatabase({
Expand Down Expand Up @@ -259,7 +259,7 @@ As you may detect, the query can take very long time to run, because you have th
When a user now logs off, the whole query will re-run over the database which takes again very long.

```js
await anyUser.atomicPatch({loggedIn: false});
await anyUser.incrementalPatch({loggedIn: false});
```

But not with the EventReduce.
Expand Down
19 changes: 2 additions & 17 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,8 @@ const plugins = [
'@babel/transform-block-scoping',
'@babel/plugin-transform-member-expression-literals',
'@babel/transform-property-literals',

/**
* Transpile async/await to promises instead of generators.
* This has shown to be 10% smaller build size and also be a bit faster.
*
*/
['babel-plugin-transform-async-to-promises', {
/**
* TODO use externalHelpers instead of inlineHelpers,
* but we have to wait for this bug to be fixed:
* @link https://github.com/rpetrich/babel-plugin-transform-async-to-promises/issues/62
* @link https://github.com/rpetrich/babel-plugin-transform-async-to-promises/issues/78
*/
externalHelpers: false,
inlineHelpers: true
}],

'@babel/transform-async-to-generator',
'@babel/transform-regenerator',
['@babel/transform-runtime', {
'regenerator': true
}],
Expand Down
10 changes: 3 additions & 7 deletions config/bundle-size.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,13 @@ import {
createRxDatabase
} from '../';
import {
getRxStoragePouch,
addPouchPlugin
} from '../plugins/pouchdb';
getRxStorageMemory,
} from '../plugins/storage-memory';

function run() {
addPouchPlugin(require('pouchdb-adapter-idb'));
createRxDatabase({
// the name of the database
name: 'heroesdb',
// use pouchdb with the indexeddb-adapter as storage engine.
storage: getRxStoragePouch('idb')
storage: getRxStorageMemory()
}).then(db => {
return db.destroy();
});
Expand Down
3 changes: 0 additions & 3 deletions dist/es/browserify.index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/es/browserify.index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/es/custom-index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7607a8b

Please sign in to comment.