@hyperframes/producer 0.8.201 → 0.8.203

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.js CHANGED
@@ -19555,6 +19555,9 @@ function validatePlanVideosForChunk(value) {
19555
19555
  );
19556
19556
  }
19557
19557
  }
19558
+ function interleavesCapture(overlapping, options) {
19559
+ return overlapping && options?.interleaveCapture === true;
19560
+ }
19558
19561
  var MIN_FRAMES_PER_CHUNK_BROWSER = 20;
19559
19562
  function resolveChunkCaptureWorkers(framesInChunk, machineSized, maxCaptureWorkers) {
19560
19563
  if (maxCaptureWorkers === void 0) return machineSized;
@@ -20032,7 +20035,7 @@ async function renderChunk(planDir, chunkIndex, outputChunkPath, options) {
20032
20035
  },
20033
20036
  frameRange: range,
20034
20037
  onFrameLanded: (frame) => overlap.current?.onFrameLanded(frame),
20035
- interleaveFrames: overlap.current !== null
20038
+ interleaveFrames: interleavesCapture(overlap.current !== null, options)
20036
20039
  }).catch(async (captureError) => {
20037
20040
  await overlap.current?.abort();
20038
20041
  overlap.current = null;
@@ -115,7 +115,9 @@ export interface RenderChunkOptions {
115
115
  * this many, one browser per 20 frames; never lowers it.
116
116
  */
117
117
  maxCaptureWorkers?: number;
118
+ interleaveCapture?: boolean;
118
119
  }
120
+ export declare function interleavesCapture(overlapping: boolean, options?: RenderChunkOptions): boolean;
119
121
  /** Capture browsers for a chunk: the machine-wide sizing, raised by the runtime's budget. */
120
122
  export declare function resolveChunkCaptureWorkers(framesInChunk: number, machineSized: number, maxCaptureWorkers: number | undefined): number;
121
123
  /** The frames a chunk renders: its slice, or a validated sub-range of it. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperframes/producer",
3
- "version": "0.8.201",
3
+ "version": "0.8.203",
4
4
  "description": "HTML-to-video rendering engine using Chrome's BeginFrame API",
5
5
  "repository": {
6
6
  "type": "git",
@@ -35,11 +35,11 @@
35
35
  "postcss": "^8.4.0",
36
36
  "puppeteer": "^25.2.1",
37
37
  "puppeteer-core": "^25.2.1",
38
- "@hyperframes/core": "0.8.201",
39
- "@hyperframes/engine": "0.8.201",
40
- "@hyperframes/studio-server": "0.8.201",
41
- "@hyperframes/parsers": "0.8.201",
42
- "@hyperframes/lint": "0.8.201"
38
+ "@hyperframes/core": "0.8.203",
39
+ "@hyperframes/engine": "0.8.203",
40
+ "@hyperframes/lint": "0.8.203",
41
+ "@hyperframes/parsers": "0.8.203",
42
+ "@hyperframes/studio-server": "0.8.203"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@types/node": "^25.0.10",
@@ -48,7 +48,7 @@
48
48
  "tsx": "^4.21.0",
49
49
  "typescript": "^5.7.2",
50
50
  "vitest": "^4.1.11",
51
- "@hyperframes/aws-lambda": "0.8.201"
51
+ "@hyperframes/aws-lambda": "0.8.203"
52
52
  },
53
53
  "engines": {
54
54
  "node": ">=22"