Skip to content

Commit

Permalink
8.7.5
Browse files Browse the repository at this point in the history
  • Loading branch information
pubkey committed Jan 6, 2020
1 parent 88065cf commit d3aafcc
Show file tree
Hide file tree
Showing 34 changed files with 165 additions and 73 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

### X.X.X (comming soon)
### 8.7.5 (6 January 2020)

Other:
- Added a new example for electron with the remote API. Thanks [@SebastienWae](https://github.com/SebastienWae)
Expand Down
11 changes: 9 additions & 2 deletions dist/es/plugins/replication-graphql/index.js

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

24 changes: 18 additions & 6 deletions dist/es/rx-query.js

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

11 changes: 9 additions & 2 deletions dist/lib/plugins/replication-graphql/index.js

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

22 changes: 17 additions & 5 deletions dist/lib/rx-query.js

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

100 changes: 71 additions & 29 deletions dist/rxdb.browserify.js
Original file line number Diff line number Diff line change
Expand Up @@ -7977,11 +7977,23 @@ function () {
_proto.doesDocumentDataMatch = function doesDocumentDataMatch(docData) {
// if doc is deleted, it cannot match
if (docData._deleted) return false;
var selector = this.mquery._conditions;
docData = this.collection.schema.swapPrimaryToId(docData);
var inMemoryFields = Object.keys(selector);
var matches = (0, _pouchdbSelectorCore.rowFilter)(docData, this.massageSelector, inMemoryFields);
return matches;
docData = this.collection.schema.swapPrimaryToId(docData); // return matchesSelector(docData, selector);

/**
* the following is equal to the implementation of pouchdb
* we do not use matchesSelector() directly so we can cache the
* result of massageSelector
* @link https://github.com/pouchdb/pouchdb/blob/master/packages/node_modules/pouchdb-selector-core/src/matches-selector.js
*/

var selector = this.massageSelector;
var row = {
doc: docData
};
var rowsMatched = (0, _pouchdbSelectorCore.filterInMemoryFields)([row], {
selector: selector
}, Object.keys(selector));
return rowsMatched && rowsMatched.length === 1;
}
/**
* deletes all found documents
Expand Down Expand Up @@ -46073,7 +46085,10 @@ var CatchSubscriber = (function (_super) {
this._unsubscribeAndRecycle();
var innerSubscriber = new InnerSubscriber_1.InnerSubscriber(this, undefined, undefined);
this.add(innerSubscriber);
subscribeToResult_1.subscribeToResult(this, result, undefined, undefined, innerSubscriber);
var innerSubscription = subscribeToResult_1.subscribeToResult(this, result, undefined, undefined, innerSubscriber);
if (innerSubscription !== innerSubscriber) {
this.add(innerSubscription);
}
}
};
return CatchSubscriber;
Expand Down Expand Up @@ -47126,10 +47141,13 @@ var ExhaustMapSubscriber = (function (_super) {
this._innerSub(result, value, index);
};
ExhaustMapSubscriber.prototype._innerSub = function (result, value, index) {
var innerSubscriber = new InnerSubscriber_1.InnerSubscriber(this, undefined, undefined);
var innerSubscriber = new InnerSubscriber_1.InnerSubscriber(this, value, index);
var destination = this.destination;
destination.add(innerSubscriber);
subscribeToResult_1.subscribeToResult(this, result, value, index, innerSubscriber);
var innerSubscription = subscribeToResult_1.subscribeToResult(this, result, undefined, undefined, innerSubscriber);
if (innerSubscription !== innerSubscriber) {
destination.add(innerSubscription);
}
};
ExhaustMapSubscriber.prototype._complete = function () {
this.hasCompleted = true;
Expand Down Expand Up @@ -48040,10 +48058,13 @@ var MergeMapSubscriber = (function (_super) {
this._innerSub(result, value, index);
};
MergeMapSubscriber.prototype._innerSub = function (ish, value, index) {
var innerSubscriber = new InnerSubscriber_1.InnerSubscriber(this, undefined, undefined);
var innerSubscriber = new InnerSubscriber_1.InnerSubscriber(this, value, index);
var destination = this.destination;
destination.add(innerSubscriber);
subscribeToResult_1.subscribeToResult(this, ish, value, index, innerSubscriber);
var innerSubscription = subscribeToResult_1.subscribeToResult(this, ish, undefined, undefined, innerSubscriber);
if (innerSubscription !== innerSubscriber) {
destination.add(innerSubscription);
}
};
MergeMapSubscriber.prototype._complete = function () {
this.hasCompleted = true;
Expand Down Expand Up @@ -48156,10 +48177,13 @@ var MergeScanSubscriber = (function (_super) {
}
};
MergeScanSubscriber.prototype._innerSub = function (ish, value, index) {
var innerSubscriber = new InnerSubscriber_1.InnerSubscriber(this, undefined, undefined);
var innerSubscriber = new InnerSubscriber_1.InnerSubscriber(this, value, index);
var destination = this.destination;
destination.add(innerSubscriber);
subscribeToResult_1.subscribeToResult(this, ish, value, index, innerSubscriber);
var innerSubscription = subscribeToResult_1.subscribeToResult(this, ish, undefined, undefined, innerSubscriber);
if (innerSubscription !== innerSubscriber) {
destination.add(innerSubscription);
}
};
MergeScanSubscriber.prototype._complete = function () {
this.hasCompleted = true;
Expand Down Expand Up @@ -48409,7 +48433,10 @@ var OnErrorResumeNextSubscriber = (function (_super) {
var innerSubscriber = new InnerSubscriber_1.InnerSubscriber(this, undefined, undefined);
var destination = this.destination;
destination.add(innerSubscriber);
subscribeToResult_1.subscribeToResult(this, next, undefined, undefined, innerSubscriber);
var innerSubscription = subscribeToResult_1.subscribeToResult(this, next, undefined, undefined, innerSubscriber);
if (innerSubscription !== innerSubscriber) {
destination.add(innerSubscription);
}
}
else {
this.destination.complete();
Expand Down Expand Up @@ -49367,6 +49394,7 @@ function shareReplayOperator(_a) {
},
complete: function () {
isComplete = true;
subscription = undefined;
subject.complete();
},
});
Expand Down Expand Up @@ -49618,7 +49646,11 @@ var SkipUntilSubscriber = (function (_super) {
var innerSubscriber = new InnerSubscriber_1.InnerSubscriber(_this, undefined, undefined);
_this.add(innerSubscriber);
_this.innerSubscription = innerSubscriber;
subscribeToResult_1.subscribeToResult(_this, notifier, undefined, undefined, innerSubscriber);
var innerSubscription = subscribeToResult_1.subscribeToResult(_this, notifier, undefined, undefined, innerSubscriber);
if (innerSubscription !== innerSubscriber) {
_this.add(innerSubscription);
_this.innerSubscription = innerSubscription;
}
return _this;
}
SkipUntilSubscriber.prototype._next = function (value) {
Expand Down Expand Up @@ -49812,10 +49844,13 @@ var SwitchMapSubscriber = (function (_super) {
if (innerSubscription) {
innerSubscription.unsubscribe();
}
var innerSubscriber = new InnerSubscriber_1.InnerSubscriber(this, undefined, undefined);
var innerSubscriber = new InnerSubscriber_1.InnerSubscriber(this, value, index);
var destination = this.destination;
destination.add(innerSubscriber);
this.innerSubscription = subscribeToResult_1.subscribeToResult(this, result, value, index, innerSubscriber);
this.innerSubscription = subscribeToResult_1.subscribeToResult(this, result, undefined, undefined, innerSubscriber);
if (this.innerSubscription !== innerSubscriber) {
destination.add(this.innerSubscription);
}
};
SwitchMapSubscriber.prototype._complete = function () {
var innerSubscription = this.innerSubscription;
Expand Down Expand Up @@ -52154,24 +52189,31 @@ exports.EmptyError = EmptyErrorImpl;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var nextHandle = 1;
var tasksByHandle = {};
function runIfPresent(handle) {
var cb = tasksByHandle[handle];
if (cb) {
cb();
var RESOLVED = (function () { return Promise.resolve(); })();
var activeHandles = {};
function findAndClearHandle(handle) {
if (handle in activeHandles) {
delete activeHandles[handle];
return true;
}
return false;
}
exports.Immediate = {
setImmediate: function (cb) {
var handle = nextHandle++;
tasksByHandle[handle] = cb;
Promise.resolve().then(function () { return runIfPresent(handle); });
activeHandles[handle] = true;
RESOLVED.then(function () { return findAndClearHandle(handle) && cb(); });
return handle;
},
clearImmediate: function (handle) {
delete tasksByHandle[handle];
findAndClearHandle(handle);
},
};
exports.TestTools = {
pending: function () {
return Object.keys(activeHandles).length;
}
};

},{}],673:[function(require,module,exports){
"use strict";
Expand Down Expand Up @@ -52492,15 +52534,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
var InnerSubscriber_1 = require("../InnerSubscriber");
var subscribeTo_1 = require("./subscribeTo");
var Observable_1 = require("../Observable");
function subscribeToResult(outerSubscriber, result, outerValue, outerIndex, destination) {
if (destination === void 0) { destination = new InnerSubscriber_1.InnerSubscriber(outerSubscriber, outerValue, outerIndex); }
if (destination.closed) {
function subscribeToResult(outerSubscriber, result, outerValue, outerIndex, innerSubscriber) {
if (innerSubscriber === void 0) { innerSubscriber = new InnerSubscriber_1.InnerSubscriber(outerSubscriber, outerValue, outerIndex); }
if (innerSubscriber.closed) {
return undefined;
}
if (result instanceof Observable_1.Observable) {
return result.subscribe(destination);
return result.subscribe(innerSubscriber);
}
return subscribeTo_1.subscribeTo(result)(destination);
return subscribeTo_1.subscribeTo(result)(innerSubscriber);
}
exports.subscribeToResult = subscribeToResult;

Expand Down
2 changes: 1 addition & 1 deletion dist/rxdb.browserify.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit d3aafcc

Please sign in to comment.