Pouchdb Versions Save

:koala: - PouchDB is a pocket-sized database.

6.0.7

7 years ago
  • (#5746) - move js-extend into source (fixes Ionic 2 issues)
  • (#5767) - handle rev-1 conflict during sync

6.0.6

7 years ago

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

6.0.5

7 years ago

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

6.0.4

7 years ago

Quick fix to address #5635.

6.0.3

7 years ago

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

5.4.5

7 years ago

Bugfixes

(#3962) - Limit concurrent attachment requests 6a2955c8a4036cce24e4475e1e52bfc897fce228 (#4632) - fix attachment md5sum memory leak 52201f1307f8ab116fd04cabff01686ab2a060c5 (#4967) - fix map function called twice 45156c5bcf5c6ebbfb049c4234611636bb8220d8 (#5402) - Remove the unbounded accumulation of listeners 04c377b21ed6b33545110e891915d099569dd475 (#5417) - proper websql validation for cordova+ios f05ec7cc265a67c27fd89baa5d5e00c8a1e9a95c (#5214) - Stop squelching errors d31bf170ccfa54ca58e6afd43fe9f496e639e1a9

5.4.4

7 years ago
  • (#5356) - leveldb-core should use index-browser.js

5.4.3

7 years ago

Bugfixes

  • (#5315) - fix for non-leveldown migrate for opts.db

5.4.2

7 years ago

Bugfixes

  • (#5315) - fix leveldown as an optional dep
  • (#5334) - fixing missing "inherits" in sublevel-pouchdb

5.4.1

7 years ago
  • (#5293) - fix SQLite Plugin usage, add test
  • (#5305) - fix pouchdb-adapter-node-websql
  • (#4372) - Always prunes the stemmed revs