Skip to content

Commit 060f518

Browse files
committed
fix: remove dependency on localStorage
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
1 parent 9a94d08 commit 060f518

File tree

3 files changed

+0
-66
lines changed

3 files changed

+0
-66
lines changed

index.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ var EventEmitter = require('events').EventEmitter
44

55
var merge = require('lodash/merge')
66

7-
var hasLocalChanges = require('./lib/has-local-changes')
8-
var subscribeToInternalEvents = require('./lib/subscribe-to-internal-events')
97
var subscribeToSyncEvents = require('./lib/subscribe-to-sync-events')
108
var syncWrapper = require('./lib/sync-wrapper')
119
var scoped = require('./lib/scoped/')
@@ -71,7 +69,6 @@ function Store (dbName, options) {
7169
off: storeApi.off
7270
},
7371
{
74-
hasLocalChanges: hasLocalChanges,
7572
push: syncWrapper.bind(syncApi, 'push'),
7673
pull: syncWrapper.bind(syncApi, 'pull'),
7774
sync: syncWrapper.bind(syncApi, 'sync'),
@@ -85,7 +82,6 @@ function Store (dbName, options) {
8582
api.reset = require('./lib/reset').bind(null, dbName, options.PouchDB, state, api, storeApi.clear, emitter, options.remoteBaseUrl, remote)
8683

8784
subscribeToSyncEvents(syncApi, emitter)
88-
subscribeToInternalEvents(emitter)
8985

9086
return api
9187
}

lib/has-local-changes.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

lib/subscribe-to-internal-events.js

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)