6.1.1

@daleharvey daleharvey released this Jan 10, 2017 · 21 commits to master since this release

Full changelog

New features

  • #6039 - include id in all bulk_docs results

Bug fixes and performance improvements

  • #5987 - remove references to "db" option
  • #6002 - remove excessive debug dep
  • #5962 - fix broken verify-bundle-size.sh script
  • #5990 - Use native Map/Set
  • #6012 - replace js-extend with Object.assign
  • #6018 - simplify processNextBatch in mapreduce
  • #5501 - fall back from bulk_get on any error
  • #6027 - remove unused utils.extend
  • #6015 - use Map and Set in mapreduce
  • #6016 - separate funcs for map vs reduce
  • #6031 - faster IDB changes() with batched cursor
  • #5930 - use travis_retry
  • #6055 - remove docCount optimization from IDB
  • #6055 - remove docCount optimization from WebSQL
  • #6089 - Don't add default heartbeat to non-live _changes requests
  • #6068 - safely reimplement IDB docCount optimization
  • #6096 - clean up and reduce memory usage of mapreduce
  • #6099 - use Map/Set in viewCleanup()
  • #6101 - add perf test for building secondary indexes

Downloads

6.1.0

@nolanlawson nolanlawson released this Dec 12, 2016 · 73 commits to master since this release

Full changelog

New features

  • #5857 - add latest:true

Bug fixes and performance improvements

  • #5857 - use latest:true during replication
  • #5904 - more helpful error message for invalid plugin
  • #5736 - warn about attachments without content_type
  • #5925 - remove peerDependency on pouchdb-core
  • #5922 - transitive default
  • #5930 #5898 - simplify timeouts
  • #5934 - simplify parseAdapter
  • #5905 - remove es6-promise-pool
  • #5899 - simplify PouchError code
  • #5902 - fix fetch() implementation
  • #5886 - fix bulkGet() with reserved _id
  • #5855 - fix JSON.parse() overflows
  • #5883 - retrieve appropriate _revisions when there are duplicate rev hashes
  • #5832 - return correct revision after doc update
  • #5479 - ensure sync events are called the correct number of times
  • #5812 - fix memory leaks in pouchdb-core
  • #5793 - fixes for Couchbase Sync Gateway
  • #5988 - remove unsafe new Buffer() usages

Downloads

6.0.6

@nolanlawson nolanlawson released this Sep 30, 2016 · 157 commits to master since this release

Makes minor perf improvements and fixes some inefficiencies in packaging, also PouchDB can now be Rollup'ed itself.

  • (#5737) - fix jsnext:main pointing to incorrect file
  • (#5730) - fix leveldown included in pouchdb-adapter-leveldb-core
  • (#5612) - remove unnecessary stringify/parse from vm usage

Downloads

6.0.5

@nolanlawson nolanlawson released this Sep 17, 2016 · 171 commits to master since this release

Bugfixes

  • (#5612) - execute map/reduce functions in a sandbox in Node
  • (#5659) - fix jsnext:main target for pouchdb
  • (#5644) - Use encodeDocId for PUT url

Perf

  • (#5692) - remove unnecessary deps in pouchdb package
  • (#5626) - aggressively bundle pouchdb-browser/pouchdb-node
  • (#5663) - remove unnecessary NotFoundError allocation

Downloads

6.0.3

@nolanlawson nolanlawson released this Sep 5, 2016 · 193 commits to master since this release

To celebrate the USA and Canada's Labo(u)r Day, we have decided to work extra hard to bring
you PouchDB 6.0.0. This release brings early retirement to those features that have done great
work over the years, but whose services are no longer necessary (don't worry, we will pay
their pensions in full).

Along with the removed features, we have a large list of bugfixes, documentation
work and general improvements for you to enjoy with your BBQ.

Removed Features

PouchDB 5.4.0 introduced some deprecations. In 6.0.0, we have now removed these
features permanently:

(#5154) - Remove db.put(doc, id, rev)

Please use db.put({_id: id, _rev: rev, data: 'foo'}) instead.

(#5251) - Remove new PouchDB(dbName).then

The constructor is now stateless. If you need to test whether setup can complete,
then new PouchDB(dbName).info() can do that for you.

Note this also applies to the callback style, i.e. new PouchDB(dbName, function (err) { /* ... */ }.

(#5591) - Remove SQLite Plugin support

The WebSQL adapter no longer automatically detects the SQLite Plugin in Cordova environments.
Please use the pouchdb-adapter-cordova-sqlite plugin instead.

(#5519) - Remove extras API

APIs like require('pouchdb/extras/ajax') are gone. Instead these have been extracted out into
separate packages:

Removed Use instead
require('pouchdb/extras/ajax') require('pouchdb-ajax')
require('pouchdb/extras/checkpointer') require('pouchdb-checkpointer')
require('pouchdb/extras/generateReplicationId') require('pouchdb-generate-replication-id')
require('pouchdb/extras/promise') require('pouchdb-promise')
require('pouchdb/extras/fruitdown') require('pouchdb-adapter-fruitdown')*
require('pouchdb/extras/localstorage') require('pouchdb-adapter-localstorage')*
require('pouchdb/extras/memory') require('pouchdb-adapter-memory')*
require('pouchdb/extras/websql') require('pouchdb-adapter-node-websql')*

* For the adapters, you'll also need to explicitly register them using PouchDB.plugin(), e.g. PouchDB.plugin(require('pouchdb-adapter-memory')). Please see Custom builds for more info.

(#5435) - Remove getUrl(), getHeaders() from HTTP adapter

Instead of the getUrl() API, you can use db.name to determine the URL for HTTP-based adapters. For getHeaders()
no replacement is intended. Both APIs were previously undocumented.

(#5625, #5590) - Remove node-websql as dependency, remove optionalDependencies

leveldown and websql are no longer optional dependencies. Instead, websql is removed entirely (use
pouchdb-adapter-node-websql instead), and leveldown is
now required.

If you want to avoid installing leveldown, then you can use the pouchdb-browser preset if you don't need Node support, or you can use pouchdb-memory if you only need an in-memory database. For all other uses, see Custom builds.

(#5612) - Sandbox view and filter function execution

View and filter functions now execute in 'use strict' environments and within a sandbox in Node. If you were depending on
non-strict mode or non-sandboxed behavior, then you will need to change your view/filter functions.

Bugfixes

  • (#5214) - Stop squelching errors
  • (#3962) - Limit concurrent attachment requests
  • (#4632) - Fix attachment md5sum memory leak
  • (#4967) - Fix map function called twice
  • (#5402) - Remove the unbounded accumulation of listeners
  • (#5379) - Do not update checkpoint if last_seq has not changed
  • (#5441) - Release memory faster in ajax requests
  • (#5450) - Don't leak change listeners
  • (#5172) - Differentiate between validation and non-validation errors
  • (#5527) - Check if ArrayBuffer is defined before binary check
  • (#5471) - PouchDB.plugin() giving more helpful errors
  • (#5574) - Encode db name if opts.prefix is a URL
  • (#5443) - Use PUT when checkpointing to remote dbs
  • (#5612) - Change view & filter function execution
  • (#5491) - Fix for scenario where xhr.response === null
  • (#5584) - Support options.timeout in a replication's bulkDocs()

Documentation

  • (#5359) - Remove whitespace that breaks markdown rendering
  • (#5836) - Remove references to index.html to fix excerpts
  • (#5304) - Add ServiceWorker support to the website
  • (#5418) - Added PouchDB packages (websocket / stream)
  • (#5422) - Added GRADEpro GDT to the list of users of PouchDB
  • (#5449) - Add info about the emit fn in map functions
  • (#5556) - Fix typo: seperate -> separate
  • (#5570) - Fix tiny wording issue in changes() docs
  • (#5594) - Fix typo in CoC
  • (#5597) - Added last_seq to example
  • (#5412) - markdownify headings
  • (#5602) - Update ISSUE_TEMPLATE.md

Downloads

5.4.5

@nolanlawson nolanlawson released this Jul 3, 2016 · 323 commits to master since this release

Bugfixes

(#3962) - Limit concurrent attachment requests 6a2955c
(#4632) - fix attachment md5sum memory leak 52201f1
(#4967) - fix map function called twice 45156c5
(#5402) - Remove the unbounded accumulation of listeners 04c377b
(#5417) - proper websql validation for cordova+ios f05ec7c
(#5214) - Stop squelching errors d31bf17

Downloads