@zerodensity/realityhub-api 1.22.0 → 1.23.0

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.
@@ -12,7 +12,6 @@ const { EventEmitter } = require('node:events');
12
12
  * @property {*} data
13
13
  * @property {string|null} [error]
14
14
  * @property {boolean} [stale]
15
- * @property {string} [status] `disabled` when the host intentionally stops source traffic.
16
15
  *
17
16
  * @typedef {Object} Subscription
18
17
  * @property {function(): void} stop
@@ -35,7 +34,6 @@ const { EventEmitter } = require('node:events');
35
34
  * @property {function(Object|null): Promise<Snapshot>} setState
36
35
  * @property {function(Function): void} schedule Queue background work after the current handler/startup.
37
36
  * @property {Object} data Named query bindings configured on the field.
38
- * @property {boolean} data.enabled Whether bound query traffic is enabled for this field.
39
37
  * @property {function(string, Object=): Promise<DataSnapshot>} data.request
40
38
  * @property {function(string, Object, Function, Function=): Subscription} data.subscribe Legacy direct callbacks.
41
39
  * @property {function(string, Object, Function, Function=): Watch} data.watch Await callbacks in the handler queue.
@@ -175,7 +173,6 @@ function createBackendRuntime({ snapshot: initial, context = {}, request, emit }
175
173
  enqueue(operation).catch(report);
176
174
  },
177
175
  data: {
178
- enabled: context.dataSourceEnabled !== false,
179
176
  request: (query, parameters = {}) => request('data.request', { query, parameters }),
180
177
  subscribe,
181
178
  watch,
@@ -11,7 +11,6 @@ const copy = (value) => JSON.parse(JSON.stringify(value));
11
11
  * @property {Object} context
12
12
  * @property {boolean} backend
13
13
  * @property {boolean} paused
14
- * @property {boolean} dataSourceEnabled
15
14
  * @property {'connecting'|'connected'|'disconnected'|'closed'|'error'} connection
16
15
  * @property {string|null} error
17
16
  *
@@ -59,7 +58,6 @@ function createClient({ window: target = window, timeoutMs = 15000 } = {}) {
59
58
  context: {},
60
59
  backend: Boolean(backend),
61
60
  paused: false,
62
- dataSourceEnabled: true,
63
61
  connection: 'connecting',
64
62
  error: null,
65
63
  };
@@ -178,7 +176,6 @@ function createClient({ window: target = window, timeoutMs = 15000 } = {}) {
178
176
  readOnly: Boolean(message.readOnly),
179
177
  context: message.context || {},
180
178
  paused: Boolean(message.paused),
181
- dataSourceEnabled: message.dataSourceEnabled !== false,
182
179
  connection: backend ? backendConnection : 'connected',
183
180
  ...(!backend ? { state: message.state || null, value: message.value === undefined ? null : message.value } : {}),
184
181
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zerodensity/realityhub-api",
3
- "version": "1.22.0",
3
+ "version": "1.23.0",
4
4
  "description": "RealityHub API Javascript Implementation",
5
5
  "main": "src/index.js",
6
6
  "repository": {