Skip to content

Commit 00baa0d

Browse files
committed
release 0.3.0 browser support, universal json docs
1 parent efd98ad commit 00baa0d

File tree

11 files changed

+1184
-29
lines changed

11 files changed

+1184
-29
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (C) 2013 by Maciej Małecki, portions (C) 2014 by Colin Skow
1+
Copyright (C) 2013 by Maciej Małecki, portions (C) 2014-2016 by Colin Skow
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ npm install pouchdb-seed-design
1515

1616
```js
1717
var PouchDB = require('pouchdb');
18-
var seed = require('pouchdb-seed-design');
18+
var pouchSeed = require('pouchdb-seed-design');
1919
var db = new PouchDB('http://localhost:5984/design');
2020

2121
var ddoc = {
@@ -34,7 +34,7 @@ var ddoc = {
3434
}
3535
};
3636

37-
var promise = seed(db, ddoc).then(function(updated) {
37+
var promise = pouchSeed(db, ddoc).then(function(updated) {
3838
if(updated) {
3939
console.log('DDocs updated!');
4040
} else {
@@ -45,7 +45,7 @@ var promise = seed(db, ddoc).then(function(updated) {
4545

4646
## API
4747

48-
### `pouchdb-seed-design(db, design, cb)`
48+
### `pouchSeed(db, design, cb)`
4949

5050
* `db` (`object`, required) - `PouchDB` (or compatible) database object
5151
* `design` (`object`, required) - design object
@@ -57,6 +57,8 @@ If no changes between remote design documents and `design` object are detected,
5757

5858
Seed will return a Promise that fulfills with `false` if no updates were necessary, or the result of the `bulkDocs` operation if changes were pushed. (You will need a `Promise` shim if you are using an older browser or version of Node.)
5959

60+
The browser version will export `window.pouchSeed`.
61+
6062
## Updates
6163

6264
##### (0.3.0) 2016-05-08

bower.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "pouchdb-seed-design",
3+
"description": "Seed CouchDB's design documents with PouchDB",
4+
"version": "0.3.0",
5+
"author": "Colin Skow",
6+
"license": "MIT",
7+
"homepage": "http://github.com/colinskow/pouchdb-seed-design",
8+
"repository": {
9+
"type": "git",
10+
"url": "git://github.com/colinskow/pouchdb-seed-design.git"
11+
},
12+
"main": ["dist/pouchdb-seed-design.js"],
13+
"keywords": [
14+
"PouchDB",
15+
"CouchDB",
16+
"seed",
17+
"design docs"
18+
],
19+
"dependencies": {},
20+
"devDependencies": {}
21+
}

0 commit comments

Comments
 (0)