Skip to content

Commit

Permalink
fix: remove dependency on localStorage
Browse files Browse the repository at this point in the history
BREAKING CHANGE:

The `.hasLocalChanges()` was removed, see #138. To find out if there are changes that have not yet been replicated to remote, you can use the workaround described in #138
  • Loading branch information
gr2m committed Dec 23, 2016
1 parent 9a94d08 commit 060f518
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 66 deletions.
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.

0 comments on commit 060f518

Please sign in to comment.