@unyt/datex 0.0.10 → 0.0.12

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.
Files changed (91) hide show
  1. package/README.md +10 -14
  2. package/esm/datex-web/datex_web.d.ts +2 -0
  3. package/esm/datex-web/datex_web.d.ts.map +1 -0
  4. package/esm/datex-web/datex_web.internal.d.ts +383 -0
  5. package/esm/datex-web/datex_web.internal.d.ts.map +1 -0
  6. package/esm/{datex-core/datex_core_js.internal.js → datex-web/datex_web.internal.js} +794 -1141
  7. package/esm/datex-web/datex_web.js +18 -0
  8. package/esm/datex-web/datex_web.wasm +0 -0
  9. package/esm/datex-web/wasm_url.node.js +1 -0
  10. package/esm/{datex-core.d.ts → datex.d.ts} +3 -3
  11. package/esm/datex.d.ts.map +1 -0
  12. package/esm/{datex-core.js → datex.js} +3 -3
  13. package/esm/default.d.ts.map +1 -1
  14. package/esm/default.js +2 -3
  15. package/esm/deno.json +28 -20
  16. package/esm/dif/core.d.ts +5 -3
  17. package/esm/dif/core.d.ts.map +1 -1
  18. package/esm/dif/core.js +7 -5
  19. package/esm/dif/definitions.d.ts +45 -34
  20. package/esm/dif/definitions.d.ts.map +1 -1
  21. package/esm/dif/definitions.js +14 -9
  22. package/esm/dif/dif-handler.d.ts +135 -35
  23. package/esm/dif/dif-handler.d.ts.map +1 -1
  24. package/esm/dif/dif-handler.js +378 -159
  25. package/esm/dif/display.d.ts +3 -3
  26. package/esm/dif/display.d.ts.map +1 -1
  27. package/esm/dif/display.js +5 -7
  28. package/esm/dif/js-lib.d.ts +8 -0
  29. package/esm/dif/js-lib.d.ts.map +1 -0
  30. package/esm/dif/js-lib.js +3 -0
  31. package/esm/dif/mod.d.ts +0 -1
  32. package/esm/dif/mod.d.ts.map +1 -1
  33. package/esm/dif/mod.js +0 -1
  34. package/esm/dif/type-registry.d.ts +80 -0
  35. package/esm/dif/type-registry.d.ts.map +1 -0
  36. package/esm/dif/type-registry.js +166 -0
  37. package/esm/global.d.ts +2 -0
  38. package/esm/global.d.ts.map +1 -0
  39. package/esm/global.js +1 -0
  40. package/esm/{runtime/special-core-types.d.ts → lib/special-core-types/endpoint.d.ts} +3 -1
  41. package/esm/lib/special-core-types/endpoint.d.ts.map +1 -0
  42. package/esm/{runtime/special-core-types.js → lib/special-core-types/endpoint.js} +6 -1
  43. package/esm/mod.d.ts +3 -1
  44. package/esm/mod.d.ts.map +1 -1
  45. package/esm/mod.js +3 -1
  46. package/esm/network/com-hub.d.ts +20 -22
  47. package/esm/network/com-hub.d.ts.map +1 -1
  48. package/esm/network/com-hub.js +30 -49
  49. package/esm/network/interfaces/websocket-server-base.d.ts +8 -0
  50. package/esm/network/interfaces/websocket-server-base.d.ts.map +1 -0
  51. package/esm/network/interfaces/websocket-server-base.js +93 -0
  52. package/esm/network/interfaces/websocket-server-deno.d.ts +4 -0
  53. package/esm/network/interfaces/websocket-server-deno.d.ts.map +1 -0
  54. package/esm/network/interfaces/websocket-server-deno.js +22 -0
  55. package/esm/network/mod.d.ts +0 -1
  56. package/esm/network/mod.d.ts.map +1 -1
  57. package/esm/network/mod.js +0 -1
  58. package/esm/refs/ref.d.ts.map +1 -1
  59. package/esm/refs/ref.js +1 -2
  60. package/esm/runtime/runtime.d.ts +25 -62
  61. package/esm/runtime/runtime.d.ts.map +1 -1
  62. package/esm/runtime/runtime.js +42 -26
  63. package/esm/utils/devtools-formatter.d.ts +2 -0
  64. package/esm/utils/devtools-formatter.d.ts.map +1 -0
  65. package/esm/utils/devtools-formatter.js +40 -0
  66. package/esm/utils/exceptions.d.ts +4 -0
  67. package/esm/utils/exceptions.d.ts.map +1 -0
  68. package/esm/utils/exceptions.js +9 -0
  69. package/esm/utils/js-runtime-compat/js-runtime.d.ts.map +1 -1
  70. package/package.json +7 -7
  71. package/esm/datex-core/datex_core_js.d.ts +0 -2
  72. package/esm/datex-core/datex_core_js.d.ts.map +0 -1
  73. package/esm/datex-core/datex_core_js.internal.d.ts +0 -512
  74. package/esm/datex-core/datex_core_js.internal.d.ts.map +0 -1
  75. package/esm/datex-core/datex_core_js.js +0 -21
  76. package/esm/datex-core/datex_core_js.wasm +0 -0
  77. package/esm/datex-core/wasm_url.node.js +0 -1
  78. package/esm/datex-core.d.ts.map +0 -1
  79. package/esm/dif/builders.d.ts +0 -16
  80. package/esm/dif/builders.d.ts.map +0 -1
  81. package/esm/dif/builders.js +0 -28
  82. package/esm/network/com-interface.d.ts +0 -35
  83. package/esm/network/com-interface.d.ts.map +0 -1
  84. package/esm/network/com-interface.js +0 -75
  85. package/esm/network/interface-impls/base.d.ts +0 -46
  86. package/esm/network/interface-impls/base.d.ts.map +0 -1
  87. package/esm/network/interface-impls/base.js +0 -47
  88. package/esm/network/interface-impls/websocket-client.d.ts +0 -8
  89. package/esm/network/interface-impls/websocket-client.d.ts.map +0 -1
  90. package/esm/network/interface-impls/websocket-client.js +0 -8
  91. package/esm/runtime/special-core-types.d.ts.map +0 -1
@@ -1,10 +1,19 @@
1
- import type { JSRuntime, RuntimeDIFHandle } from "../datex-core.js";
1
+ import type { JSRuntime, RuntimeDIFHandle } from "../datex.js";
2
2
  import { Ref } from "../refs/ref.js";
3
- import { type DIFContainer, type DIFPointerAddress, DIFReferenceMutability, type DIFTypeContainer, type DIFUpdate, type DIFUpdateData, type DIFValue, type DIFValueContainer, type ObserveOptions } from "./definitions.js";
3
+ import { type DIFPointerAddress, type DIFProperty, DIFReferenceMutability, type DIFTypeDefinition, type DIFUpdate, type DIFUpdateData, type DIFValue, type DIFValueContainer, type ObserveOptions } from "./definitions.js";
4
+ import { type TypeBinding, TypeRegistry } from "./type-registry.js";
5
+ export declare const IS_PROXY_ACCESS: unique symbol;
6
+ export type CustomReferenceMetadata = Record<string | symbol, unknown> & {
7
+ [IS_PROXY_ACCESS]?: boolean;
8
+ };
9
+ export type ReferenceMetadata<M extends CustomReferenceMetadata> = {
10
+ address: string;
11
+ customMetadata: M;
12
+ };
4
13
  /**
5
14
  * The DIFHandler class provides methods to interact with the DATEX Core DIF runtime,
6
- * including executing Datex scripts, creating and managing pointers, and observing changes.
7
- * It includes a local pointer cache to optimize performance and reduce cross-language calls.
15
+ * including executing Datex scripts, creating and managing references, and observing changes.
16
+ * It includes a local reference cache to optimize performance and reduce cross-language calls.
8
17
  */
9
18
  export declare class DIFHandler {
10
19
  #private;
@@ -23,6 +32,7 @@ export declare class DIFHandler {
23
32
  * @returns The transceiver ID of the DIF client.
24
33
  */
25
34
  get _transceiver_id(): number;
35
+ get type_registry(): TypeRegistry;
26
36
  /**
27
37
  * Creates a new DIFHandler instance.
28
38
  * @param runtime - The JSRuntime instance for executing Datex scripts.
@@ -36,7 +46,7 @@ export declare class DIFHandler {
36
46
  * @returns A Promise that resolves to the execution result as a DIFContainer.
37
47
  * @throws If an error occurs during execution.
38
48
  */
39
- executeDIF(datexScript: string, values?: unknown[] | null): Promise<DIFContainer>;
49
+ executeDIF(datexScript: string, values?: unknown[] | null): Promise<DIFValueContainer>;
40
50
  /**
41
51
  * Executes a Datex script synchronously and returns the result as a DIFContainer.
42
52
  * @param datexScript - The Datex script source code to execute.
@@ -44,29 +54,21 @@ export declare class DIFHandler {
44
54
  * @returns The execution result as a DIFContainer.
45
55
  * @throws If an error occurs during execution.
46
56
  */
47
- executeSyncDIF(datexScript: string, values?: unknown[] | null): DIFContainer;
57
+ executeSyncDIF(datexScript: string, values?: unknown[] | null): DIFValueContainer;
48
58
  /**
49
- * Creates a new pointer for the specified value.
50
- * @param difValue - The DIFValue value to create a pointer for.
59
+ * Creates a new pointer for the specified DIF value.
60
+ * @param difValueContainer - The DIFValueContainer value to create a pointer for.
51
61
  * @param allowedType - The allowed type for the pointer.
52
62
  * @param mutability - The mutability of the pointer.
53
63
  * @returns The created pointer address.
54
64
  */
55
- createPointer(difValue: DIFValue, allowedType: (DIFTypeContainer | null) | undefined, mutability: DIFReferenceMutability): string;
56
- /**
57
- * Creates a new pointer that points to an existing address.
58
- * @param address - The address to create a reference pointer for.
59
- * @param allowedType - The allowed type for the pointer.
60
- * @param mutability - The mutability of the pointer.
61
- * @returns A Promise that resolves to the created pointer address.
62
- */
63
- createRefPointer(address: string, allowedType: (DIFTypeContainer | null) | undefined, mutability: DIFReferenceMutability): string;
65
+ createReferenceFromDIFValue(difValueContainer: DIFValueContainer, allowedType: (DIFTypeDefinition | null) | undefined, mutability: DIFReferenceMutability): string;
64
66
  /**
65
67
  * Updates the DIF value at the specified address.
66
68
  * @param address - The address of the DIF value to update.
67
69
  * @param dif - The DIFUpdate object containing the update information.
68
70
  */
69
- updatePointer(address: string, dif: DIFUpdateData): void;
71
+ updateReference(address: string, dif: DIFUpdateData): void;
70
72
  /**
71
73
  * Registers an observer callback for changes to the DIF value at the specified address
72
74
  * directly on the DATEX core runtime.
@@ -105,7 +107,7 @@ export declare class DIFHandler {
105
107
  * @param address - The address of the DIF value being observed.
106
108
  * @param observerId - The observer ID returned by the observePointer method.
107
109
  */
108
- unobservePointerBindDirect(address: string, observerId: number): void;
110
+ unobserveReferenceBindDirect(address: string, observerId: number): void;
109
111
  /**
110
112
  * Registers a local observer callback for changes to the DIF value at the specified address.
111
113
  * The callback will be invoked whenever the value at the address is updated.
@@ -169,6 +171,10 @@ export declare class DIFHandler {
169
171
  * @throws If the resolution would require asynchronous operations.
170
172
  */
171
173
  resolveDIFValueContainerSync<T extends unknown>(value: DIFValueContainer): T;
174
+ /**
175
+ * Resolves a DIFProperty to its corresponding JS value.
176
+ */
177
+ resolveDIFPropertySync<T extends unknown>(property: DIFProperty): T;
172
178
  /**
173
179
  * Resolves a pointer address to its corresponding JS value.
174
180
  * If the pointer address is not yet loaded in memory, it returns a Promise that resolves to the value.
@@ -186,49 +192,143 @@ export declare class DIFHandler {
186
192
  * @throws If the resolution would require asynchronous operations.
187
193
  */
188
194
  resolvePointerAddressSync<T extends unknown>(address: string): T;
195
+ /**
196
+ * Retrieves the original value from a proxy value if available
197
+ * @param proxy
198
+ * @returns
199
+ */
200
+ getOriginalValueFromProxy<T extends WeakKey>(proxy: T): T | null;
201
+ /**
202
+ * Retrieves the proxy value for a given original value if available
203
+ * @param original
204
+ * @returns
205
+ */
206
+ getProxyValueFromOriginal<T extends WeakKey>(original: T): T | null;
189
207
  /**
190
208
  * Converts an array of JS values to an array of DIFValues.
191
209
  * If the input is null, it returns null.
192
210
  * @param values
193
211
  */
194
- convertToDIFValues<T extends unknown[]>(values: T | null): DIFValue[] | null;
212
+ convertToDIFValues<T extends unknown[]>(values: T | null): DIFValueContainer[] | null;
195
213
  /**
196
214
  * Returns true if the given address is within the specified address range.
197
215
  */
198
216
  protected isPointerAddressInAdresses(address: DIFPointerAddress, range: Set<string>): boolean;
199
217
  /**
200
- * Initializes a pointer with the given value and mutability, by
218
+ * Initializes a reference with the given value and mutability, by
201
219
  * adding a proxy wrapper if necessary, and setting up observation and caching on the JS side.
202
220
  */
203
- protected initPointer<T>(ptrAddress: string, value: T, mutability: DIFReferenceMutability, allowedType?: DIFTypeContainer | null): T | Ref<T>;
221
+ protected initReference<T>(pointerAddress: string, value: T, mutability: DIFReferenceMutability, allowedType?: DIFTypeDefinition | null): T | Ref<T>;
204
222
  /**
205
223
  * Handles a pointer update received from the DATEX core runtime.
224
+ * for non-primitive values.
206
225
  * If the pointer is cached and has a dereferenceable value, it updates the value.
207
- * @param address - The address of the pointer being updated.
226
+ * @param pointerAddress - The address of the pointer being updated.
208
227
  * @param update - The DIFUpdateData containing the update information.
209
228
  * @returns True if the pointer was found and updated, false otherwise.
210
229
  */
211
- protected handlePointerUpdate(address: string, update: DIFUpdateData): boolean;
230
+ protected handlePointerUpdate<T extends WeakKey>(pointerAddress: string, value: T, update: DIFUpdateData, typeBinding: TypeBinding<T> | null): boolean;
212
231
  /**
213
- * Caches the given pointer value with the given address in the JS side cache.
214
- * The pointer must already be wrapped if necessary.
232
+ * Handles a pointer update received from the DATEX core runtime.
233
+ * for primitive values (typeBinding not supported).
234
+ * If the pointer is cached and has a dereferenceable value, it updates the value.
235
+ * @param pointerAddress - The address of the pointer being updated.
236
+ * @param update - The DIFUpdateData containing the update information.
237
+ * @returns True if the pointer was found and updated, false otherwise.
238
+ */
239
+ protected handlePointerUpdate<T>(pointerAddress: string, value: T, update: DIFUpdateData, typeBinding: null): boolean;
240
+ /**
241
+ * Caches the given reference value with the given address in the JS side cache.
242
+ * The reference must already be wrapped if necessary.
215
243
  */
216
- protected cacheWrappedPointerValue(address: string, value: WeakKey, observerId: number | null): void;
217
- protected getCachedPointer(address: string): WeakKey | undefined;
244
+ protected cacheWrappedReferenceValue(address: string, originalValue: unknown, proxiedValue: WeakKey, observerId: number | null, metadata?: CustomReferenceMetadata): void;
245
+ protected getCachedReference(address: string): WeakKey | undefined;
218
246
  /**
219
- * Creates a new pointer containg the given JS value.
247
+ * Creates a new reference containg the given JS value.
220
248
  * The returned value is a proxy object that behaves like the original object,
221
249
  * but also propagates changes between JS and the DATEX runtime.
250
+ * If a reference for the given value already exists, an error is thrown.
222
251
  */
223
- createPointerFromJSValue(value: unknown, allowedType?: DIFTypeContainer | null, mutability?: DIFReferenceMutability): unknown | Ref<unknown>;
224
- protected wrapJSValueInProxy<T>(value: T, pointerAddress: string, _type?: DIFTypeContainer | null): (T | Ref<unknown>) & WeakKey;
252
+ createTransparentReference<V, M extends DIFReferenceMutability = typeof DIFReferenceMutability.Mutable>(value: V, allowedType?: DIFTypeDefinition | null, mutability?: M): PointerOut<V, M>;
253
+ protected isPrimitiveValue(value: unknown): value is null | undefined | boolean | number | bigint | string | symbol;
254
+ protected isWeakKey(value: unknown): value is WeakKey;
255
+ /**
256
+ * Wraps a given JS value in a Ref proxy if necessary.
257
+ */
258
+ protected wrapJSValue<T>(value: T, pointerAddress: string, _type?: DIFTypeDefinition | null): (T | Ref<unknown>) & WeakKey;
225
259
  private isRef;
226
- private proxifyJSMap;
227
260
  private wrapJSObjectInProxy;
228
- getPointerAddressForValue<T>(value: T): string | null;
229
261
  /**
230
- * Converts a given JS value to its DIFValue representation.
262
+ * Returns the pointer address for the given value if it is already cached, or null otherwise.
263
+ */
264
+ getPointerAddressForValue<T extends WeakKey>(value: T): string | null;
265
+ /**
266
+ * Returns the reference metadata for the given value if it is registered.
267
+ * The caller must ensure that the correct type M is used and the reference is already registered.
268
+ * If the reference is not found, an error is thrown.
269
+ */
270
+ getReferenceMetadataUnsafe<M extends CustomReferenceMetadata, T extends WeakKey>(value: T): ReferenceMetadata<M>;
271
+ /**
272
+ * Returns the reference metadata for the given value if it is registered, or null otherwise.
273
+ */
274
+ tryGetReferenceMetadata<M extends CustomReferenceMetadata, T extends WeakKey>(value: T): ReferenceMetadata<M> | null;
275
+ isReference(value: WeakKey): boolean;
276
+ getReferenceProxy<T extends WeakKey>(value: T): T | null;
277
+ /**
278
+ * Converts a given JS value to its DIFValueContainer representation.
279
+ * This method can be called statically or with an instance to use the instance's DIFHandler context.
280
+ * NOTE: When called statically, there is no cache for already registered references, meaning that new references will be created
281
+ * for the same object each time this method is called.
282
+ */
283
+ static convertJSValueToDIFValueContainer<T extends unknown>(value: T, difHandlerInstance?: DIFHandler): DIFValueContainer;
284
+ /**
285
+ * Instance method wrapper for static convertJSValueToDIFValueContainer
286
+ * Converts a given JS value to its DIFValueContainer representation.
287
+ * @param value
288
+ */
289
+ convertJSValueToDIFValueContainer<T extends unknown>(value: T): DIFValueContainer;
290
+ /** DIF update handler utilities */
291
+ /**
292
+ * Triggers a 'set' update for the given pointer address, key and value.
293
+ */
294
+ triggerSet<K, V>(pointerAddress: string, key: K, value: V): void;
295
+ /**
296
+ * Triggers a 'set' update for the given pointer address, index and value.
297
+ */
298
+ triggerIndexSet<V>(pointerAddress: string, index: number | bigint, value: V): void;
299
+ /**
300
+ * Triggers an 'append' update for the given pointer address and value.
301
+ */
302
+ triggerAppend<V>(pointerAddress: string, value: V): void;
303
+ /**
304
+ * Triggers a 'replace' update for the given pointer address and key.
305
+ */
306
+ triggerReplace<V>(pointerAddress: string, value: V): void;
307
+ /**
308
+ * Triggers a 'delete' update for the given pointer address and key.
309
+ */
310
+ triggerDelete<K>(pointerAddress: string, key: K): void;
311
+ /**
312
+ * Triggers a 'clear' update for the given pointer address.
313
+ */
314
+ triggerClear(pointerAddress: string): void;
315
+ /**
316
+ * Triggers a 'list splice' update for the given pointer address.
231
317
  */
232
- convertJSValueToDIFValue<T extends unknown>(value: T): DIFValue;
318
+ triggerListSplice<V>(pointerAddress: string, start: number, deleteCount: number, items: V[]): void;
233
319
  }
320
+ type PrimitiveValue = string | number | boolean | bigint | symbol;
321
+ type WidenLiteral<T> = T extends string ? string : T extends number ? number : T extends boolean ? boolean : T extends bigint ? bigint : T extends symbol ? symbol : T;
322
+ /** A type representing an assignable reference or a plain value **/
323
+ export type AssignableRef<T> = Ref<T> | T & {
324
+ value?: T;
325
+ };
326
+ type Builtins = ((...args: unknown[]) => unknown) | Date | RegExp | Map<unknown, unknown> | Set<unknown> | WeakMap<WeakKey, unknown> | WeakSet<WeakKey> | Array<unknown>;
327
+ type IsPlainObject<T> = T extends Builtins ? false : T extends object ? true : false;
328
+ export type PointerOut<V, M extends DIFReferenceMutability> = V extends Ref<infer U> ? M extends typeof DIFReferenceMutability.Immutable ? Ref<U> : AssignableRef<U> : IsPlainObject<V> extends true ? (M extends typeof DIFReferenceMutability.Immutable ? {
329
+ readonly [K in keyof V]: V[K];
330
+ } : {
331
+ [K in keyof V]: V[K];
332
+ }) : V extends PrimitiveValue ? Ref<M extends typeof DIFReferenceMutability["Immutable"] ? V : WidenLiteral<V>> : V;
333
+ export {};
234
334
  //# sourceMappingURL=dif-handler.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dif-handler.d.ts","sourceRoot":"","sources":["../../src/dif/dif-handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpE,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AAErC,OAAO,EAEH,KAAK,YAAY,EAGjB,KAAK,iBAAiB,EAGtB,sBAAsB,EACtB,KAA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