@nxtedition/deepstream.io-client-js 25.6.2 → 25.6.3

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": "25.6.2",
3
+ "version": "25.6.3",
4
4
  "description": "the javascript client for deepstream.io",
5
5
  "homepage": "http://deepstream.io",
6
6
  "type": "module",
@@ -389,7 +389,7 @@ class Record {
389
389
  this._version = nextVersion
390
390
  }
391
391
 
392
- _onUpdate([, version, data]) {
392
+ _onUpdate([, version, data, hasProvider]) {
393
393
  const prevData = this._data
394
394
  const prevVersion = this._version
395
395
  const prevState = this._state
@@ -422,7 +422,9 @@ class Record {
422
422
  this._onPatching(false)
423
423
  }
424
424
 
425
- if (this._state < C.RECORD_STATE.SERVER) {
425
+ if (hasProvider === 'T') {
426
+ this._state = C.RECORD_STATE.PROVIDER
427
+ } else if (this._state < C.RECORD_STATE.SERVER) {
426
428
  this._state = this._version.charAt(0) === 'I' ? C.RECORD_STATE.STALE : C.RECORD_STATE.SERVER
427
429
  }
428
430