Comparing version 0.11.20 to 0.11.21
@@ -158,3 +158,3 @@ var emitter = require('../emitter'); | ||
// ingested snapshot and need ops in order to update the document | ||
if (this.type || this.hasWritePending()) { | ||
if (this.type) { | ||
// The version should only be null on a created document when it was | ||
@@ -182,2 +182,6 @@ // created locally without fetching | ||
// Ignore the snapshot if we are already at a newer version. Under no | ||
// circumstance should we ever set the current version backward | ||
if (this.version > snapshot.v) return callback && callback(); | ||
this.version = snapshot.v; | ||
@@ -184,0 +188,0 @@ this.data = snapshot.data; |
{ | ||
"name": "sharedb", | ||
"version": "0.11.20", | ||
"version": "0.11.21", | ||
"description": "JSON OT database backend", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
276515
7300