Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bin/repeat-perf-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ for treeish_adapter in "$@"; do
log " $((i=i+1)). $adapter: $description ($treeish)"
done
log
log "!!! This may cause strange issues if you have uncomitted changes. !!!"
log "!!! This may cause strange issues if you have uncommitted changes. !!!"
log
log "Press <enter> to continue."
echo
Expand Down Expand Up @@ -110,7 +110,7 @@ iterate_tests() {
done
}

log "Installing playwright brower..."
log "Installing playwright browser..."
npx playwright install "${CLIENT:-firefox}"

log "Starting dev server..."
Expand Down
2 changes: 1 addition & 1 deletion docs/_includes/api/defaults.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@
Note the special constructor option `prefix`, which appends a prefix to the database name
and can be helpful for URL-based or file-based LevelDOWN path names.

All [constructor options](#create_database) are supported. Default options can still be overriden individually.
All [constructor options](#create_database) are supported. Default options can still be overridden individually.


2 changes: 1 addition & 1 deletion docs/asf.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ The project aims to graduate within 6–12 months based on the experience of the
Apache CouchDB incubation in 2008 and general maturity of the project itself.


#### Homogenous Developers
#### Homogeneous Developers

The current PouchDB maintainers consist of people from around the world,
collaborating across all timezones.
Expand Down
10 changes: 5 additions & 5 deletions docs/external.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ PouchDB Hoodie-like API for data persistence & offline sync.

#### [PouchDB List](http://python-pouchdb.marten-de-vries.nl/plugins.html)

Allows you to re-use your CouchDB list functions on the client side. ([Documentation](http://pythonhosted.org/Python-PouchDB/js-plugins.html#pouchdb-rewrite-plug-in))
Allows you to reuse your CouchDB list functions on the client side. ([Documentation](http://pythonhosted.org/Python-PouchDB/js-plugins.html#pouchdb-rewrite-plug-in))

#### [Pouch Mirror](https://github.com/colinskow/pouch-mirror)

Expand Down Expand Up @@ -106,11 +106,11 @@ Replicate between CouchDB/PouchDB using streams.

#### [PouchDB Rewrite](http://python-pouchdb.marten-de-vries.nl/plugins.html)

A PouchDB plugin that allows you to re-use your CouchDB rewrites on the client side. ([Documentation](http://pythonhosted.org/Python-PouchDB/js-plugins.html#pouchdb-list-plug-in))
A PouchDB plugin that allows you to reuse your CouchDB rewrites on the client side. ([Documentation](http://pythonhosted.org/Python-PouchDB/js-plugins.html#pouchdb-list-plug-in))

#### [PouchDB Show](http://python-pouchdb.marten-de-vries.nl/plugins.html)

A PouchDB plugin that allows you to re-use your CouchDB show functions on the client side. ([Documentation](http://pythonhosted.org/Python-PouchDB/js-plugins.html#pouchdb-show-plug-in))
A PouchDB plugin that allows you to reuse your CouchDB show functions on the client side. ([Documentation](http://pythonhosted.org/Python-PouchDB/js-plugins.html#pouchdb-show-plug-in))

#### [SocketPouch](https://github.com/nolanlawson/socket-pouch)

Expand Down Expand Up @@ -143,15 +143,15 @@ Transforms documents before and after storage, e.g. for encryption, compression,

#### [PouchDB Update](http://python-pouchdb.marten-de-vries.nl/plugins.html)

A PouchDB plugin that allows you to re-use your CouchDB update functions on the client side. ([Documentation](http://pythonhosted.org/Python-PouchDB/js-plugins.html#pouchdb-update-plug-in))
A PouchDB plugin that allows you to reuse your CouchDB update functions on the client side. ([Documentation](http://pythonhosted.org/Python-PouchDB/js-plugins.html#pouchdb-update-plug-in))

#### [PouchDB Upsert](https://github.com/nolanlawson/pouchdb-upsert)

Convenience functions for working with documents: `upsert()` and `putIfNotExists()`.

#### [PouchDB Validation](http://python-pouchdb.marten-de-vries.nl/plugins.html)

A PouchDB plugin that allows you to re-use your CouchDB `validate_doc_update` functions on the client side. ([Documentation](http://pythonhosted.org/Python-PouchDB/js-plugins.html#pouchdb-validation-plug-in))
A PouchDB plugin that allows you to reuse your CouchDB `validate_doc_update` functions on the client side. ([Documentation](http://pythonhosted.org/Python-PouchDB/js-plugins.html#pouchdb-validation-plug-in))

#### [WorkerPouch](http://github.com/nolanlawson/worker-pouch)

Expand Down
2 changes: 1 addition & 1 deletion docs/guides/queries.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: Map/reduce queries
sidebar: guides_nav.html
---

Map/reduce queries, also known as the `query()` API, are one of the most powerful features in PouchDB. However, they can be quite tricky to use, and so this guide is designed to dispell some of the mysteries around them.
Map/reduce queries, also known as the `query()` API, are one of the most powerful features in PouchDB. However, they can be quite tricky to use, and so this guide is designed to dispel some of the mysteries around them.

The first thing to understand is that you don't need map/reduce queries if you merely want to look up documents by `_id` or sort them by `_id`. The `allDocs()` API already does this, using an efficient built-in index (see ["bulk operations"](bulk-operations.html) for details).

Expand Down
2 changes: 1 addition & 1 deletion docs/guides/replication.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ supports a **multi-master** architecture. You can think of this as a system wher

When you use PouchDB, CouchDB, and other members of the Couch family, you
don't have to worry which database is the "single source of truth." They all are. According to the CAP theorem, a database can only have at most 2 of 3 properties: Consistency, Availability, or Partition-Tolerance. Typical relational databases such as MySQL are CP, which means they are consistent and tolerant to node partitions, at the expense of availability. CouchDB is an AP database, meaning that it's **P**artition-Tolerant,
every node is **A**vailable at all times, but it's only eventually **C**onsistent.
every node is **A**available at all times, but it's only eventually **C**onsistent.

To illustrate, imagine a multi-node architecture with CouchDB servers spread across several continents. As long as you're willing to wait, the data will eventually flow
from Australia to Europe to North America to wherever. Users around the world running PouchDB in their browsers or [Couchbase Lite](https://github.com/couchbase/couchbase-lite-ios)/[Cloudant Sync](https://github.com/cloudant/CDTDatastore) in their smartphones experience the
Expand Down
2 changes: 1 addition & 1 deletion docs/posts/2014-11-10-3.1.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Nolan Lawson and Nick Colley worked together to produce some excellent guides to

### Compaction removes orphaned attachments ([#2818](https://github.com/pouchdb/pouchdb/issues/2818))

If you have been using attachments in your PouchDB databases, you may have noticed that it was a bit bigger round the waist than it should have been. We now work harder to ensure there isnt any extra things lying around the database taking up space that you no longer need. This change came along with a lot of compaction and attachment related fixes: [#2890](https://github.com/pouchdb/pouchdb/issues/2890), [#2905](https://github.com/pouchdb/pouchdb/issues/2905), [#2951](https://github.com/pouchdb/pouchdb/issues/2951)
If you have been using attachments in your PouchDB databases, you may have noticed that it was a bit bigger round the waist than it should have been. We now work harder to ensure there isn't any extra things lying around the database taking up space that you no longer need. This change came along with a lot of compaction and attachment related fixes: [#2890](https://github.com/pouchdb/pouchdb/issues/2890), [#2905](https://github.com/pouchdb/pouchdb/issues/2905), [#2951](https://github.com/pouchdb/pouchdb/issues/2951)

### Test against CouchDB master ([#2850](https://github.com/pouchdb/pouchdb/issues/2850))

Expand Down
2 changes: 1 addition & 1 deletion docs/posts/2015-02-03-fix-up-look-sharp.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ The excellent team at [CozyCloud](https://www.cozycloud.cc/) have been working o

### Sync Events - [#3155](https://github.com/pouchdb/pouchdb/issues/3155)

We have introduced [new events](/api.html#replication) to give you more information what is happening during syncing. There are now `active` and `paused` events triggered during replication and the `uptodate` event is now deprecated.
We have introduced [new events](/api.html#replication) to give you more information what is happening during syncing. There are now `active` and `paused` events triggered during replication and the `up-to-date` event is now deprecated.

### Retry Replication - [#966](https://github.com/pouchdb/pouchdb/issues/966)

Expand Down
4 changes: 2 additions & 2 deletions docs/posts/2015-08-03-pouchdb-4.0.0-ballast-overboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ db.changes()
.on('complete', completeFun);
```

* Remove `uptodate` event - ([#4100](https://github.com/pouchdb/pouchdb/issues/4100))
* Remove `up-to-date` event - ([#4100](https://github.com/pouchdb/pouchdb/issues/4100))

`uptodate` was an event introduced to indicate when a `live` replication had finished processing all current changes and was waiting on future changes. It has since been replaced by the `paused` event, which will do the same and additionally indicate whether the replication was paused due to an error. If you have:
`up-to-date` was an event introduced to indicate when a `live` replication had finished processing all current changes and was waiting on future changes. It has since been replaced by the `paused` event, which will do the same and additionally indicate whether the replication was paused due to an error. If you have:

```js
replication.on('uptodate', doneFun);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ becomes:
new PouchDB('mydb').destroy();
```

Keep in mind that the `PouchDB` object is no longer usable after you `destroy()` it. So you should call `new PouchDB()` again if you want to re-use it.
Keep in mind that the `PouchDB` object is no longer usable after you `destroy()` it. So you should call `new PouchDB()` again if you want to reuse it.

* Remove CRUD events ([#4224](http://github.com/pouchdb/pouchdb/issues/4224))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ details, see the ["extras" API documentation]({{ site.baseurl }}/api.html#extras

* Escape unicode in auth header ([#4903](https://github.com/pouchdb/pouchdb/issues/4903))
* Fix cache-busting in Edge ([#4827](https://github.com/pouchdb/pouchdb/issues/4827))
* Better error when trying to re-use a destroyed database ([#4339](https://github.com/pouchdb/pouchdb/issues/4339))
* Better error when trying to reuse a destroyed database ([#4339](https://github.com/pouchdb/pouchdb/issues/4339))
* Cache ddoc views and filters ([#4867](https://github.com/pouchdb/pouchdb/issues/4867))
* Allow creating databases with reserved words ([#4898](https://github.com/pouchdb/pouchdb/issues/4898))
* Fix missing key in ungrouped (custom) reduce functions ([#4878](https://github.com/pouchdb/pouchdb/issues/4878))
Expand Down
2 changes: 1 addition & 1 deletion docs/posts/2016-09-05-pouchdb-6.0.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ non-strict mode or non-sandboxed behavior, then you will need to change your vie
* ([#5418](https://github.com/pouchdb/pouchdb/pull/5418)) - Added PouchDB packages (websocket / stream)
* ([#5422](https://github.com/pouchdb/pouchdb/pull/5422)) - Added GRADEpro GDT to the list of users of PouchDB
* ([#5449](https://github.com/pouchdb/pouchdb/pull/5449)) - Add info about the emit fn in map functions
* ([#5556](https://github.com/pouchdb/pouchdb/pull/5556)) - Fix typo: seperate -> separate
* ([#5556](https://github.com/pouchdb/pouchdb/pull/5556)) - Fix typo: separate -> separate
* ([#5570](https://github.com/pouchdb/pouchdb/pull/5570)) - Fix tiny wording issue in changes() docs
* ([#5594](https://github.com/pouchdb/pouchdb/pull/5594)) - Fix typo in CoC
* ([#5597](https://github.com/pouchdb/pouchdb/pull/5597)) - Added last_seq to example
Expand Down
2 changes: 1 addition & 1 deletion docs/posts/2018-06-21-pouchdb-7.0.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ author: Dale Harvey

---

As promised back in January it is time to drop WebSQL from our default builds. This not only lets us focus our development efforts on a single engine but along with the other changes explained below reduces the default PouchDB package size from 148KB to 122KB, thats 17.5% smaller!
As promised back in January it is time to drop WebSQL from our default builds. This not only lets us focus our development efforts on a single engine but along with the other changes explained below reduces the default PouchDB package size from 148KB to 122KB, that's 17.5% smaller!

## Removed WebSQL

Expand Down
4 changes: 2 additions & 2 deletions docs/posts/2024-05-24-pouchdb-9.0.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,12 @@ The PouchDB developers would like to thank all contributors for their hard and d
* [c469b042](https://github.com/pouchdb/pouchdb/commit/c469b04203e93cc5e0165bfd97e15719aceda9ac) spelling: dont -> don't (#8829)
* [dabd30ac](https://github.com/pouchdb/pouchdb/commit/dabd30ac84cf64b491026fa83e2b862a4106dce6) spelling: comments & docs (#8828)
* [6f3e8ab2](https://github.com/pouchdb/pouchdb/commit/6f3e8ab29e6c0c0107710e59b85a1bdd255d450c) spelling: checkpoint (#8827)
* [a480a525](https://github.com/pouchdb/pouchdb/commit/a480a5253cfaa03fd62c948b0ee2cf73d473123b) fix spelling(docs,comments): wtih -> with (#8822)
* [a480a525](https://github.com/pouchdb/pouchdb/commit/a480a5253cfaa03fd62c948b0ee2cf73d473123b) fix spelling(docs,comments): with -> with (#8822)
* [102a1e39](https://github.com/pouchdb/pouchdb/commit/102a1e39efafa31ca1d21fc8f73ef2c950f4dd3b) immediate dependency: update documentation (#8815)
* [bae22f1a](https://github.com/pouchdb/pouchdb/commit/bae22f1aa594e0f1c777d0f292d9fd1e5990d7ec) docs: reflect CI move travis to GitHub actions (#8798)
* [1c697dc2](https://github.com/pouchdb/pouchdb/commit/1c697dc27ff5ebf1341a7e19eb2aa6cd68bc158f) Remove Saucelabs references from docs (#8800)
* [c0565394](https://github.com/pouchdb/pouchdb/commit/c0565394ec4e98fa8fafa03452a12069dc5bd23b) (#8748) - Fixing some non-function links in documentation + some http -> https
* [afbcf027](https://github.com/pouchdb/pouchdb/commit/afbcf0272a4571a3adcc65aae797541f35dbb4fe) Remvove Promise polyfill mention from docs (#8736)
* [afbcf027](https://github.com/pouchdb/pouchdb/commit/afbcf0272a4571a3adcc65aae797541f35dbb4fe) Remove Promise polyfill mention from docs (#8736)
* [d67ff087](https://github.com/pouchdb/pouchdb/commit/d67ff0874d2727833a61783c958e00f9e1eecac7) docs: standardise docs.couchdb.org links (#8745)
* [c11c4358](https://github.com/pouchdb/pouchdb/commit/c11c4358d6b186bf80064e064efb666390a2e41f) (#8742) - fix dead link in docs
* [43b77da0](https://github.com/pouchdb/pouchdb/commit/43b77da075a7f7cd175d34d57e4259be4e0b4204) Remove TODO.md
Expand Down
2 changes: 1 addition & 1 deletion docs/src/less/bootstrap/input-groups.less
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
font-size: 0;
white-space: nowrap;

// Negative margin for spacing, position for bringing hovered/focused/actived
// Negative margin for spacing, position for bringing hovered/focused/activated
// element above the siblings.
> .btn {
position: relative;
Expand Down
2 changes: 1 addition & 1 deletion docs/src/less/bootstrap/panels.less
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
}


// Collapsable panels (aka, accordion)
// Collapsible panels (aka, accordion)
//
// Wrap a series of panels in `.panel-group` to turn them into an accordion with
// the help of our collapse JavaScript plugin.
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

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

2 changes: 1 addition & 1 deletion packages/node_modules/pouchdb-adapter-idb/src/bulkDocs.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ function idbBulkDocs(dbOpts, req, opts, api, idb, callback) {

req.onsuccess = checkDone;
req.onerror = function (e) {
// this callback is for a constaint error, which we ignore
// this callback is for a constraint error, which we ignore
// because this docid/rev has already been associated with
// the digest (e.g. when new_edits == false)
e.preventDefault(); // avoid transaction abort
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export default function (api, req, opts, metadata, dbOpts, idbChanges, callback)
doc.seq = ++metadata.seq;

let delta = 0;
// If its a new document, we wont decrement if deleted
// If its a new document, we won't decrement if deleted
if (doc.isNewDoc) {
delta = doc.deleted ? 0 : 1;
} else if (doc.wasDeleted !== doc.deleted) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const IDB_COLLATE_LO = Number.NEGATIVE_INFINITY;
const IDB_COLLATE_HI = [[[[[[[[[[[[]]]]]]]]]]]];

//
// TODO: this should be made offical somewhere and used by AllDocs / get /
// TODO: this should be made official somewhere and used by AllDocs / get /
// changes etc as well.
//
function externaliseRecord(idbDoc) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ function IndexeddbPouch(dbOpts, callback) {
});
}

// TODO: this isnt really valid permanently, just being lazy to start
// TODO: this isn't really valid permanently, just being lazy to start
IndexeddbPouch.valid = function () {
return true;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function processDocs(revLimit, docInfos, api, fetchedDocs, tx, results,
revLimit = revLimit || 1000;

function insertDoc(docInfo, resultsIdx, callback) {
// Cant insert new deleted documents
// Can't insert new deleted documents
var winningRev = calculateWinningRev(docInfo.metadata);
var deleted = isDeleted(docInfo.metadata, winningRev);
if ('was_delete' in opts && deleted) {
Expand Down
2 changes: 1 addition & 1 deletion packages/node_modules/pouchdb-merge/src/merge.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ function doMerge(tree, path, dontExpand) {
}
}

// We didnt find
// We didn't find
if (!merged) {
restree.push(path);
}
Expand Down
6 changes: 3 additions & 3 deletions packages/node_modules/pouchdb-replication/src/replicate.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function replicate(src, target, opts, returnValue, result) {
var changesPending = false; // true while src.changes is running
var doc_ids = opts.doc_ids;
var selector = opts.selector;
var repId;
var rapid;
var checkpointer;
var changedDocs = [];
// Like couchdb, every replication gets a unique session id
Expand All @@ -52,7 +52,7 @@ function replicate(src, target, opts, returnValue, result) {
return Promise.resolve();
}
return generateReplicationId(src, target, opts).then(function (res) {
repId = res;
rapid = res;

var checkpointOpts = {};
if (opts.checkpoint === false) {
Expand All @@ -65,7 +65,7 @@ function replicate(src, target, opts, returnValue, result) {
checkpointOpts = { writeSourceCheckpoint: true, writeTargetCheckpoint: true };
}

checkpointer = new Checkpointer(src, target, repId, returnValue, checkpointOpts);
checkpointer = new Checkpointer(src, target, rapid, returnValue, checkpointOpts);
});
}

Expand Down
2 changes: 1 addition & 1 deletion tests/find/test-suite-1/test.array.js
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ describe('test.array.js', function () {
});
});

//CouchDB is returing a different result
//CouchDB is returning a different result
it.skip("returns false if field isn't in doc", function () {
var docs = [
{
Expand Down
2 changes: 1 addition & 1 deletion tests/find/test-suite-1/test.data-type-order.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ describe('test.data-type-order.js', function () {
});
});

// IndexedDB does not index obejcts, so this test fails in idbnext. It is probably
// IndexedDB does not index objects, so this test fails in idbnext. It is probably
// impossible to fix this. Unlike booleans and null, we can't remap objects cleanly,
// because:
// a) they aren't constants, they could have anything in them
Expand Down
2 changes: 1 addition & 1 deletion tests/find/test-suite-1/test.ddoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ describe('test.ddoc.js', function () {
context.db.createIndex({index: {fields: ['series', 'debut', 'rank']}}),
context.db.createIndex({index: {fields: ['rank', 'debut']}})
]).then(function () {
// At time of writing the createIndex implentation also performs a
// At time of writing the createIndex implementation also performs a
// search to "warm" the indexes. If this changes to happen async, or not
// at all, these queries will force the collision to be tested.
return Promise.all([
Expand Down
2 changes: 1 addition & 1 deletion tests/fuzzy/test.fuzzy.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

// We can take an optional seed from the url (?seed=hello) otherwise we just
// generate an arbitrary one. With any given seed the 'random' generations
// are deteministic so if we find a seed that fails the test we can provide
// are deterministic so if we find a seed that fails the test we can provide
// that seed again to rerun the same actions and generate the same failure

// This is the amount of random actions we do
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/deps/bigimage.js

Large diffs are not rendered by default.

Loading