Skip to content

Commit

Permalink
Merge 036ab06 into e950b17
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Dec 23, 2016
2 parents e950b17 + 036ab06 commit cc4b244
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 209 deletions.
21 changes: 1 addition & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
[![Dependency Status](https://david-dm.org/hoodiehq/hoodie-store-client.svg)](https://david-dm.org/hoodiehq/hoodie-store-client)
[![devDependency Status](https://david-dm.org/hoodiehq/hoodie-store-client/dev-status.svg)](https://david-dm.org/hoodiehq/hoodie-store-client#info=devDependencies)

`hoodie-store-client` combines [pouchdb-hoodie-api](https://github.com/hoodiehq/pouchdb-hoodie-api) and [pouchdb-hoodie-sync](https://github.com/hoodiehq/pouchdb-hoodie-sync). It adds a few other methods like `.isPersistent()` or `.hasLocalChanges()` and a scoped store API.
`hoodie-store-client` combines [pouchdb-hoodie-api](https://github.com/hoodiehq/pouchdb-hoodie-api) and [pouchdb-hoodie-sync](https://github.com/hoodiehq/pouchdb-hoodie-sync).

## Example

Expand Down Expand Up @@ -58,7 +58,6 @@ var store = new PresetStore('mydb')
- [store.connect()](#storeconnect)
- [store.disconnect()](#storedisconnect)
- [store.isConnected()](#storeisconnected)
- [store.hasLocalChanges()](#storehaslocalchanges)
- [store.on()](#storeon)
- [store.one()](#storeone)
- [store.off()](#storeoff)
Expand Down Expand Up @@ -1001,24 +1000,6 @@ Example
```js
```

### store.hasLocalChanges()

---

🐕 **Complete README**: [#102](https://github.com/hoodiehq/hoodie-store-client/issues/102)

---

| Argument | Type | Description | Required
| :------- | :--- | :---------- | :-------

Returns `true` / `false`

Example

```js
```

### store.on()

---
Expand Down
4 changes: 0 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ var EventEmitter = require('events').EventEmitter

var merge = require('lodash/merge')

var hasLocalChanges = require('./lib/has-local-changes')
var subscribeToInternalEvents = require('./lib/subscribe-to-internal-events')
var subscribeToSyncEvents = require('./lib/subscribe-to-sync-events')
var syncWrapper = require('./lib/sync-wrapper')
var scoped = require('./lib/scoped/')
Expand Down Expand Up @@ -71,7 +69,6 @@ function Store (dbName, options) {
off: storeApi.off
},
{
hasLocalChanges: hasLocalChanges,
push: syncWrapper.bind(syncApi, 'push'),
pull: syncWrapper.bind(syncApi, 'pull'),
sync: syncWrapper.bind(syncApi, 'sync'),
Expand All @@ -85,7 +82,6 @@ function Store (dbName, options) {
api.reset = require('./lib/reset').bind(null, dbName, options.PouchDB, state, api, storeApi.clear, emitter, options.remoteBaseUrl, remote)

subscribeToSyncEvents(syncApi, emitter)
subscribeToInternalEvents(emitter)

return api
}
Expand Down
13 changes: 0 additions & 13 deletions lib/has-local-changes.js

This file was deleted.

49 changes: 0 additions & 49 deletions lib/subscribe-to-internal-events.js

This file was deleted.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
},
"dependencies": {
"hoodie-zuul-config": "^2.0.0",
"humble-localstorage": "^1.4.2",
"lodash": "^4.6.0",
"pouchdb-hoodie-api": "^1.6.2",
"pouchdb-hoodie-sync": "^2.0.0"
Expand Down
2 changes: 0 additions & 2 deletions tests/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
require('./specs/constructor')
require('./specs/api')
require('./specs/has-local-changes')
require('./specs/subscribe-to-internal-events')
require('./specs/sync')
require('./specs/scoped')
require('./specs/is-persistent')
104 changes: 0 additions & 104 deletions tests/specs/has-local-changes.js

This file was deleted.

16 changes: 0 additions & 16 deletions tests/specs/subscribe-to-internal-events.js

This file was deleted.

0 comments on commit cc4b244

Please sign in to comment.