docs/posts/2022-04-13-pouchdb-7.3.0.md
We're happy to announce the release of PouchDB 7.3.0, bringing in features, fixes and dependency updates. For a full changelog from 7.2.2 to 7.3.0, please see the releases page or view the latest commits. Some of the highlights:
We have been investing lots of time into our test suites, with around 36 commits, 112 files changed, 3314 insertions and 2064 deletions made about this topic. We have:
async/await) into your new tests contributions.indexeddb adapter in the default distributionThe indexeddb adapter is now available in the default distribution. You can use it specifying the adapter:
PouchDB.plugin(require('pouchdb-adapter-indexeddb'));
const db = new PouchDB('mydb', {adapter: 'indexeddb'});
Please note that it is considered BETA quality, use it carefully and please report any issues you find. Thank you.
view_update_changes_batch_size#8320 With view_update_changes_batch_size, we can now specify how many change records will be consumed at a time when rebuilding view indexes when the query() method is used.
partial_filter_selector#8276 #8277 Now PouchDB-find supports partial_filter_selector.
#8321 We can now subscribe to an indexing event, which will emit a progress object containing the properties view, last_seq, results_count and indexed_docs.
#8324 During replication, we can subscribe to checkpoint events, which will emit the following properties: checkpoint, revs_diff, start_next_batch and pending_batch.
style to replication options#8380 #8379 We expose changes feed style to replication options.
view_adapter option#8335 view_adapter provides an option for the user to specify a separate adapter to store their view index in addition to the main adapter for their core data:
const db = new PouchDB(DB_NAME, {adapter: 'indexeddb', view_adapter: 'memory'});
In Github we have enabled:
_access field in documentspartial_filter_selectorauto_compaction to indexeddb bulkDocspartial_filter_selector option to createIndex()packages/node_modules/pouchdb/distviews.*.map should pass on more recent CouchDB versions which do not reject the design doc on write, but fail on queries insteadpackages/node_modulesAs always, we welcome feedback from the community and would love to hear what you think of this release as well as PouchDB's future direction. Please don't hesitate to file issues, open discussions or get in touch. And of course, a big thanks to all of our new and existing contributors!