@colyseus/fossil-delta-serializer
Advanced tools
Comparing version 0.14.18 to 0.14.19
@@ -17,9 +17,5 @@ 'use strict'; | ||
class FossilDeltaSerializer { | ||
id = 'fossil-delta'; | ||
// when a new user connects, it receives the 'previousState', which holds | ||
// the last binary snapshot other users already have, therefore the patches | ||
// that follow will be the same for all clients. | ||
previousState; | ||
previousStateEncoded; | ||
patches; | ||
constructor() { | ||
this.id = 'fossil-delta'; | ||
} | ||
reset(newState) { | ||
@@ -51,3 +47,3 @@ this.previousState = newState; | ||
*/ | ||
if (newState?.['$changes']) { // tslint:disable-line | ||
if (newState === null || newState === void 0 ? void 0 : newState['$changes']) { // tslint:disable-line | ||
if (newState['$changes'].changes.size > 0) { // tslint:disable-line | ||
@@ -54,0 +50,0 @@ changed = true; |
{ | ||
"name": "@colyseus/fossil-delta-serializer", | ||
"version": "0.14.18", | ||
"version": "0.14.19", | ||
"input": "./src/index.ts", | ||
@@ -9,3 +9,3 @@ "main": "./build/index.js", | ||
"dependencies": { | ||
"@colyseus/core": "^0.14.18", | ||
"@colyseus/core": "^0.14.19", | ||
"fast-json-patch": "^2.0.5", | ||
@@ -19,4 +19,4 @@ "fossil-delta": "^1.0.1", | ||
"build", | ||
"../../LICENSE", | ||
"../../README.md" | ||
"LICENSE", | ||
"README.md" | ||
], | ||
@@ -31,3 +31,3 @@ "repository": { | ||
}, | ||
"gitHead": "7d6d90df6cda22e080b39c6f15eb3116b5642c3e" | ||
"gitHead": "06fcf54d725f5b7ba1a07c99a9c4ae67dbe5e045" | ||
} |
Sorry, the diff of this file is not supported yet
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
159376
24
1
156
1363
Updated@colyseus/core@^0.14.19