Skip to content

Commit

Permalink
7.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
pubkey committed May 3, 2018
1 parent 9042e25 commit 96eb5a0
Show file tree
Hide file tree
Showing 29 changed files with 48 additions and 48 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)
### 7.5.1 (May 3, 2018)

Bugfixes:
- Indexes are no longer required thx [@gvuyk](https://github.com/gvuyk) [#620](https://github.com/pubkey/rxdb/issues/620)
Expand Down
4 changes: 1 addition & 3 deletions dist/es/rx-database.js
Original file line number Diff line number Diff line change
Expand Up @@ -470,9 +470,7 @@ export var RxDatabase = function () {
_context5.next = 27;
return pouch.find({
selector: {
language: {
$ne: 'query'
}
_id: {}
},
limit: 1
});
Expand Down
12 changes: 7 additions & 5 deletions dist/es/rx-query.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,11 +354,6 @@ export var RxQuery = function () {
json.skip = options.skip;
}

// add not-query to _id to prevend the grabbing of '_design..' docs
// this is not the best solution because it prevents the usage of a 'language'-field
if (!json.selector.language) json.selector.language = {};
json.selector.language.$ne = 'query';

// strip empty selectors
Object.entries(json.selector).filter(function (_ref5) {
var v = _ref5[1];
Expand All @@ -384,6 +379,13 @@ export var RxQuery = function () {
delete json.selector[primPath];
}

// if no selector is used, pouchdb has a bug, so we add a default-selector
if (Object.keys(json.selector).length === 0) {
json.selector = {
_id: {}
};
}

this._toJSON = json;
return this._toJSON;
};
Expand Down
4 changes: 1 addition & 3 deletions dist/lib/rx-database.js
Original file line number Diff line number Diff line change
Expand Up @@ -708,9 +708,7 @@ var RxDatabase = exports.RxDatabase = function () {
_context5.next = 27;
return pouch.find({
selector: {
language: {
$ne: 'query'
}
_id: {}
},
limit: 1
});
Expand Down
12 changes: 7 additions & 5 deletions dist/lib/rx-query.js
Original file line number Diff line number Diff line change
Expand Up @@ -421,11 +421,6 @@ var RxQuery = exports.RxQuery = function () {
json.skip = options.skip;
}

// add not-query to _id to prevend the grabbing of '_design..' docs
// this is not the best solution because it prevents the usage of a 'language'-field
if (!json.selector.language) json.selector.language = {};
json.selector.language.$ne = 'query';

// strip empty selectors
Object.entries(json.selector).filter(function (_ref5) {
var _ref6 = (0, _slicedToArray3['default'])(_ref5, 2),
Expand Down Expand Up @@ -461,6 +456,13 @@ var RxQuery = exports.RxQuery = function () {
delete json.selector[primPath];
}

// if no selector is used, pouchdb has a bug, so we add a default-selector
if (Object.keys(json.selector).length === 0) {
json.selector = {
_id: {}
};
}

this._toJSON = json;
return this._toJSON;
}
Expand Down
16 changes: 8 additions & 8 deletions dist/rxdb.browserify.js
Original file line number Diff line number Diff line change
Expand Up @@ -9431,9 +9431,7 @@ var RxDatabase = exports.RxDatabase = function () {
_context5.next = 27;
return pouch.find({
selector: {
language: {
$ne: 'query'
}
_id: {}
},
limit: 1
});
Expand Down Expand Up @@ -11275,11 +11273,6 @@ var RxQuery = exports.RxQuery = function () {
json.skip = options.skip;
}

// add not-query to _id to prevend the grabbing of '_design..' docs
// this is not the best solution because it prevents the usage of a 'language'-field
if (!json.selector.language) json.selector.language = {};
json.selector.language.$ne = 'query';

// strip empty selectors
Object.entries(json.selector).filter(function (_ref5) {
var _ref6 = (0, _slicedToArray3['default'])(_ref5, 2),
Expand Down Expand Up @@ -11315,6 +11308,13 @@ var RxQuery = exports.RxQuery = function () {
delete json.selector[primPath];
}

// if no selector is used, pouchdb has a bug, so we add a default-selector
if (Object.keys(json.selector).length === 0) {
json.selector = {
_id: {}
};
}

this._toJSON = json;
return this._toJSON;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/rxdb.browserify.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/contribute.html
Original file line number Diff line number Diff line change
Expand Up @@ -1236,7 +1236,7 @@ <h1 class="search-results-title">No results matching "<span class='search-query'
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"Contribute","level":"3.13","depth":1,"previous":{"title":"Questions & Answers","level":"3.12","depth":1,"path":"questions-answers.md","ref":"./questions-answers.md","articles":[]},"dir":"ltr"},"config":{"plugins":["edit-link","github","custom-favicon","-sharing"],"root":".","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"github":{"url":"https://github.com/pubkey/rxdb"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"favicon":"./files/logo/icon.ico","custom-favicon":{},"edit-link":{"label":"Edit This Page","base":"https://github.com/pubkey/rxdb/tree/master/docs-src"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"RxDB - Documentation","links":{"sidebar":{"Follow @twitter ":"https://twitter.com/rxdbjs","Chat @gitter ":"https://gitter.im/pubkey/rxdb","Star @github ":"https://github.com/pubkey/rxdb"}},"gitbook":"3.2.2"},"file":{"path":"contribute.md","mtime":"2017-12-18T18:53:32.275Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2018-04-24T19:52:36.208Z"},"basePath":".","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"Contribute","level":"3.13","depth":1,"previous":{"title":"Questions & Answers","level":"3.12","depth":1,"path":"questions-answers.md","ref":"./questions-answers.md","articles":[]},"dir":"ltr"},"config":{"plugins":["edit-link","github","custom-favicon","-sharing"],"root":".","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"github":{"url":"https://github.com/pubkey/rxdb"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"favicon":"./files/logo/icon.ico","custom-favicon":{},"edit-link":{"label":"Edit This Page","base":"https://github.com/pubkey/rxdb/tree/master/docs-src"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"RxDB - Documentation","links":{"sidebar":{"Follow @twitter ":"https://twitter.com/rxdbjs","Chat @gitter ":"https://gitter.im/pubkey/rxdb","Star @github ":"https://github.com/pubkey/rxdb"}},"gitbook":"3.2.2"},"file":{"path":"contribute.md","mtime":"2018-04-25T21:23:00.698Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2018-05-03T22:03:22.529Z"},"basePath":".","book":{"language":""}});
});
</script>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/custom-build.html
Original file line number Diff line number Diff line change
Expand Up @@ -1385,7 +1385,7 @@ <h1 class="search-results-title">No results matching "<span class='search-query'
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"Custom Build","level":"3.10","depth":1,"next":{"title":"Plugins","level":"3.11","depth":1,"path":"plugins.md","ref":"./plugins.md","articles":[]},"previous":{"title":"LocalDocuments","level":"3.9","depth":1,"path":"rx-local-document.md","ref":"./rx-local-document.md","articles":[]},"dir":"ltr"},"config":{"plugins":["edit-link","github","custom-favicon","-sharing"],"root":".","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"github":{"url":"https://github.com/pubkey/rxdb"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"favicon":"./files/logo/icon.ico","custom-favicon":{},"edit-link":{"label":"Edit This Page","base":"https://github.com/pubkey/rxdb/tree/master/docs-src"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"RxDB - Documentation","links":{"sidebar":{"Follow @twitter ":"https://twitter.com/rxdbjs","Chat @gitter ":"https://gitter.im/pubkey/rxdb","Star @github ":"https://github.com/pubkey/rxdb"}},"gitbook":"3.2.2"},"file":{"path":"custom-build.md","mtime":"2018-03-19T20:03:34.403Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2018-04-24T19:52:36.208Z"},"basePath":".","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"Custom Build","level":"3.10","depth":1,"next":{"title":"Plugins","level":"3.11","depth":1,"path":"plugins.md","ref":"./plugins.md","articles":[]},"previous":{"title":"LocalDocuments","level":"3.9","depth":1,"path":"rx-local-document.md","ref":"./rx-local-document.md","articles":[]},"dir":"ltr"},"config":{"plugins":["edit-link","github","custom-favicon","-sharing"],"root":".","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"github":{"url":"https://github.com/pubkey/rxdb"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"favicon":"./files/logo/icon.ico","custom-favicon":{},"edit-link":{"label":"Edit This Page","base":"https://github.com/pubkey/rxdb/tree/master/docs-src"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"RxDB - Documentation","links":{"sidebar":{"Follow @twitter ":"https://twitter.com/rxdbjs","Chat @gitter ":"https://gitter.im/pubkey/rxdb","Star @github ":"https://github.com/pubkey/rxdb"}},"gitbook":"3.2.2"},"file":{"path":"custom-build.md","mtime":"2018-04-25T21:23:00.698Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2018-05-03T22:03:22.529Z"},"basePath":".","book":{"language":""}});
});
</script>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/data-migration.html
Original file line number Diff line number Diff line change
Expand Up @@ -1326,7 +1326,7 @@ <h1 class="search-results-title">No results matching "<span class='search-query'
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"DataMigration","level":"3.4","depth":1,"next":{"title":"LeaderElection","level":"3.5","depth":1,"path":"leader-election.md","ref":"./leader-election.md","articles":[]},"previous":{"title":"Population","level":"3.3","depth":1,"path":"population.md","ref":"./population.md","articles":[]},"dir":"ltr"},"config":{"plugins":["edit-link","github","custom-favicon","-sharing"],"root":".","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"github":{"url":"https://github.com/pubkey/rxdb"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"favicon":"./files/logo/icon.ico","custom-favicon":{},"edit-link":{"label":"Edit This Page","base":"https://github.com/pubkey/rxdb/tree/master/docs-src"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"RxDB - Documentation","links":{"sidebar":{"Follow @twitter ":"https://twitter.com/rxdbjs","Chat @gitter ":"https://gitter.im/pubkey/rxdb","Star @github ":"https://github.com/pubkey/rxdb"}},"gitbook":"3.2.2"},"file":{"path":"data-migration.md","mtime":"2017-12-18T18:53:32.275Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2018-04-24T19:52:36.208Z"},"basePath":".","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"DataMigration","level":"3.4","depth":1,"next":{"title":"LeaderElection","level":"3.5","depth":1,"path":"leader-election.md","ref":"./leader-election.md","articles":[]},"previous":{"title":"Population","level":"3.3","depth":1,"path":"population.md","ref":"./population.md","articles":[]},"dir":"ltr"},"config":{"plugins":["edit-link","github","custom-favicon","-sharing"],"root":".","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"github":{"url":"https://github.com/pubkey/rxdb"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"favicon":"./files/logo/icon.ico","custom-favicon":{},"edit-link":{"label":"Edit This Page","base":"https://github.com/pubkey/rxdb/tree/master/docs-src"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"RxDB - Documentation","links":{"sidebar":{"Follow @twitter ":"https://twitter.com/rxdbjs","Chat @gitter ":"https://gitter.im/pubkey/rxdb","Star @github ":"https://github.com/pubkey/rxdb"}},"gitbook":"3.2.2"},"file":{"path":"data-migration.md","mtime":"2018-04-25T21:23:00.698Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2018-05-03T22:03:22.529Z"},"basePath":".","book":{"language":""}});
});
</script>
</div>
Expand Down
Loading

0 comments on commit 96eb5a0

Please sign in to comment.