@glissade/export-web 0.9.1-pre.0 → 0.10.0-pre.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.
package/dist/index.d.ts CHANGED
@@ -15,6 +15,12 @@ declare class MediabunnyVideoFrameSource implements VideoFrameSource {
15
15
  private frameIndex;
16
16
  warm(fromT: number, toT: number): Promise<void>;
17
17
  getFrameSync(mediaT: number): HTMLCanvasElement | OffscreenCanvas;
18
+ /**
19
+ * Test-only introspection (§5.4): the number of decoded frames currently
20
+ * held, so the lookahead/eviction bound (MAX_CACHED_FRAMES) is assertable
21
+ * without reaching into the private cache.
22
+ */
23
+ cachedFrameCount(): number;
18
24
  close(): void;
19
25
  }
20
26
  //#endregion
package/dist/index.js CHANGED
@@ -66,6 +66,14 @@ var MediabunnyVideoFrameSource = class MediabunnyVideoFrameSource {
66
66
  if (!hit) throw new ColdAssetError(this.label, `frame ${idx} not decoded`, mediaT);
67
67
  return hit;
68
68
  }
69
+ /**
70
+ * Test-only introspection (§5.4): the number of decoded frames currently
71
+ * held, so the lookahead/eviction bound (MAX_CACHED_FRAMES) is assertable
72
+ * without reaching into the private cache.
73
+ */
74
+ cachedFrameCount() {
75
+ return this.cache.size;
76
+ }
69
77
  close() {
70
78
  this.cache.clear();
71
79
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glissade/export-web",
3
- "version": "0.9.1-pre.0",
3
+ "version": "0.10.0-pre.0",
4
4
  "description": "glissade in-browser export: WebCodecs VideoEncoder + Mediabunny muxing, OfflineAudioContext audio mix. Frame-accurate, faster than realtime, no server.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -16,9 +16,9 @@
16
16
  ],
17
17
  "dependencies": {
18
18
  "mediabunny": "^1.0.0",
19
- "@glissade/backend-canvas2d": "0.9.1-pre.0",
20
- "@glissade/core": "0.9.1-pre.0",
21
- "@glissade/scene": "0.9.1-pre.0"
19
+ "@glissade/backend-canvas2d": "0.10.0-pre.0",
20
+ "@glissade/core": "0.10.0-pre.0",
21
+ "@glissade/scene": "0.10.0-pre.0"
22
22
  },
23
23
  "repository": {
24
24
  "type": "git",