@nxtedition/deepstream.io-client-js 26.0.8 → 26.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/deepstream.io-client-js",
3
- "version": "26.0.8",
3
+ "version": "26.0.9",
4
4
  "description": "the javascript client for deepstream.io",
5
5
  "homepage": "http://deepstream.io",
6
6
  "type": "module",
@@ -392,7 +392,7 @@ class Record {
392
392
  this._version = nextVersion
393
393
  }
394
394
 
395
- _onUpdate([, version, data]) {
395
+ _onUpdate([, version, data, hasProvider]) {
396
396
  const prevData = this._data
397
397
  const prevVersion = this._version
398
398
  const prevState = this._state
@@ -425,7 +425,9 @@ class Record {
425
425
  this._onPatching(false)
426
426
  }
427
427
 
428
- if (this._state < C.RECORD_STATE.SERVER) {
428
+ if (this._state < C.RECORD_STATE.PROVIDER && hasProvider === 'T') {
429
+ this._state = C.RECORD_STATE.PROVIDER
430
+ } else if (this._state < C.RECORD_STATE.SERVER) {
429
431
  this._state = this._version.charAt(0) === 'I' ? C.RECORD_STATE.STALE : C.RECORD_STATE.SERVER
430
432
  }
431
433