@uptimizr/replay 0.2.3 → 0.2.4

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 (2) hide show
  1. package/README.md +15 -11
  2. package/package.json +10 -10
package/README.md CHANGED
@@ -33,7 +33,7 @@ const events = await fetchSessionEvents({
33
33
 
34
34
  const driver = createBabylonReplayDriver({
35
35
  scene,
36
- onPointer: (screen, hitPoint, hitMesh) => {
36
+ onPointer: (screen, hitPoint, hitMesh, type) => {
37
37
  /* render a pointer marker */
38
38
  },
39
39
  });
@@ -67,16 +67,18 @@ backdrop.dispose();
67
67
  (`{ rootNodes, meshes, container, dispose() }`). Its `dispose()` removes
68
68
  everything it added and releases the GPU resources, so the hosted slice can
69
69
  replace one dropped model with the next. The default loader lazily imports
70
- Babylon's glTF `SceneLoader`, so the lean replay path never pulls it in unless a
71
- backdrop is actually requested; pass `options.load` to supply your own loader, or
72
- `options.pluginExtension` to force a parser. Loaded actor/subtree nodes re-drive
73
- exactly like any other scene node (`node_transform`, ADR 0033).
70
+ Babylon's `LoadAssetContainerAsync`, so the lean replay path never pulls it in
71
+ unless a backdrop is actually requested; pass `options.load` to supply your own
72
+ loader, or `options.pluginExtension` to force a parser. For glTF/GLB assets,
73
+ register the loader in the host app (for example `import "@babylonjs/loaders/glTF";`).
74
+ Loaded actor/subtree nodes re-drive exactly like any other scene node
75
+ (`node_transform`, ADR 0033).
74
76
 
75
77
  With the **global** one-call entry point, pass `backdropUrl` (it reuses the host
76
78
  page's Babylon loader so the IIFE never bundles a second `SceneLoader`):
77
79
 
78
- ```ts
79
- await replayInScene({
80
+ ```js
81
+ await window.UptimizrReplay.replayInScene({
80
82
  scene,
81
83
  endpoint: "https://collect.example.com",
82
84
  apiKey: "utk_…",
@@ -120,11 +122,13 @@ The replay endpoint requires `ENABLE_RAW_SESSION_RETENTION` on the collector.
120
122
  from an animation loop. Seeking backward resets the driver and replays from the
121
123
  start, so playback is deterministic.
122
124
  - `ReplayDriver` is the engine extension point: implement `{ reset, apply }` for
123
- another engine and pass it to `ReplayPlayer`. Babylon (`@uptimizr/replay/babylon`)
124
- and three.js (`@uptimizr/replay/three`) drivers ship in the box.
125
+ another engine and pass it to `ReplayPlayer`. Babylon
126
+ (`@uptimizr/replay/babylon`), Babylon Lite (`@uptimizr/replay/babylon-lite`),
127
+ three.js (`@uptimizr/replay/three`), and PlayCanvas
128
+ (`@uptimizr/replay/playcanvas`) drivers ship in the box.
125
129
 
126
- `@babylonjs/core` and `three` are both **optional peer dependencies** — you only
127
- need the one whose driver you import.
130
+ `@babylonjs/core`, `@babylonjs/lite`, `three`, and `playcanvas` are **optional
131
+ peer dependencies** — you only need the one whose driver you import.
128
132
 
129
133
  ## Develop
130
134
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uptimizr/replay",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "Framework-agnostic session-replay core + Babylon driver. Re-drives a captured session in the user's own scene.",
5
5
  "keywords": [
6
6
  "uptimizr",
@@ -77,17 +77,17 @@
77
77
  }
78
78
  },
79
79
  "dependencies": {
80
- "zod": "^4.1.5",
81
- "@uptimizr/schema": "0.5.0",
82
- "@uptimizr/sdk-core": "0.4.0"
80
+ "zod": "^4.4.3",
81
+ "@uptimizr/schema": "0.5.1",
82
+ "@uptimizr/sdk-core": "0.4.1"
83
83
  },
84
84
  "devDependencies": {
85
- "@babylonjs/core": "^9.14.0",
86
- "@babylonjs/lite": "^1.6.0",
87
- "esbuild": "^0.25.0",
88
- "playcanvas": "2.20.0",
89
- "three": "^0.185.0",
90
- "vitest": "^4.1.9"
85
+ "@babylonjs/core": "^9.15.0",
86
+ "@babylonjs/lite": "^1.8.0",
87
+ "esbuild": "^0.28.1",
88
+ "playcanvas": "2.20.6",
89
+ "three": "^0.185.1",
90
+ "vitest": "^4.1.10"
91
91
  },
92
92
  "scripts": {
93
93
  "build": "tsc -p tsconfig.json && pnpm run bundle:global",