@3dsource/angular-unreal-module 0.0.173 → 0.0.175
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/README.md
CHANGED
|
@@ -377,12 +377,26 @@ The package publishes two dependency-free scripts for use in the document
|
|
|
377
377
|
></script>
|
|
378
378
|
```
|
|
379
379
|
|
|
380
|
-
`stream-prefetch.js` runs
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
380
|
+
`stream-prefetch.js` runs only on `metabox-configurator/modular/{configuratorId}`
|
|
381
|
+
routes — the configurator id comes from the route and there is no attribute to
|
|
382
|
+
supply one, so the script cannot be enabled for an arbitrary page.
|
|
383
|
+
|
|
384
|
+
It reads the same-origin `assets/config.json` and `assets/features.json`, then
|
|
385
|
+
the configurator's cached record from `{cdn}/cache/configurator/{id}.json` — the
|
|
386
|
+
same document the host app reads — so it polls under the identity the app will
|
|
387
|
+
use rather than inventing one. The `newOrchestration` feature flag picks the
|
|
388
|
+
transport: `signalling` (HTTP polling) or `newSignalling` (control socket +
|
|
389
|
+
`requestStream`). The orchestration-issued `streamRequestId` is forwarded to
|
|
390
|
+
Cirrus on the WebSocket URL (the session `connectionId`) and parked for adoption.
|
|
391
|
+
|
|
392
|
+
`window.__stream` is both the parked stream and the lock: whichever of the script
|
|
393
|
+
and the Angular module writes it first owns the connection, so a page never
|
|
394
|
+
builds two. Load the script and the package from the same version — an older
|
|
395
|
+
script does not know about the lock.
|
|
396
|
+
|
|
397
|
+
Optional `data-*`: `data-config-url`, `data-features-url`, `data-ws-timeout`,
|
|
398
|
+
`data-poll-timeout`.
|
|
399
|
+
|
|
386
400
|
Pin an exact package version in production when deterministic CDN assets are
|
|
387
401
|
required.
|
|
388
402
|
|
|
@@ -418,4 +432,4 @@ pnpm unreal:purge-cdn -- latest
|
|
|
418
432
|
pnpm unreal:purge-cdn -- dev
|
|
419
433
|
```
|
|
420
434
|
|
|
421
|
-
Repository tooling requires Node.js 24.16.0 or newer and pnpm 11.
|
|
435
|
+
Repository tooling requires Node.js 24.16.0 or newer and pnpm 11.22.0.
|