@hyperframes/producer 0.9.88 → 0.9.89

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/server.d.ts CHANGED
@@ -24,7 +24,7 @@ export interface HandlerOptions {
24
24
  logger?: ProducerLogger;
25
25
  /** Extract or generate a request ID. Defaults to x-request-id header or random UUID. */
26
26
  getRequestId?: (c: Context) => string;
27
- /** Directory for rendered output files. Defaults to PRODUCER_RENDERS_DIR or /tmp. */
27
+ /** Directory for rendered output files. Defaults to PRODUCER_RENDERS_DIR or a new private temp folder. */
28
28
  rendersDir?: string;
29
29
  /** Prefix for output URLs in responses. Default: "/outputs". */
30
30
  outputUrlPrefix?: string;
@@ -17,6 +17,7 @@ export interface PrepareAnimatedGifInputsOptions {
17
17
  cacheDir?: string;
18
18
  sourceAssets?: Map<string, string>;
19
19
  timeoutMs?: number;
20
+ signal?: AbortSignal;
20
21
  transcode?: (input: AnimatedGifTranscodeRequest) => Promise<void>;
21
22
  allowOutsideFiles?: boolean;
22
23
  }
@@ -25,6 +26,7 @@ export interface AnimatedGifTranscodeRequest {
25
26
  outputPath: string;
26
27
  args: string[];
27
28
  timeoutMs?: number;
29
+ signal?: AbortSignal;
28
30
  }
29
31
  export interface PrepareAnimatedGifInputsResult {
30
32
  html: string;
@@ -37,10 +37,10 @@ export declare function dropMediaOutsideProject(input: {
37
37
  allowOutsideProjectAssets?: boolean;
38
38
  }): void;
39
39
  /**
40
- * Fail early when a successfully-probed local asset cannot satisfy the HTML
41
- * element that owns it. Missing, corrupt, remote-at-runtime, and unprobeable
42
- * inputs deliberately remain untouched so their existing source/download/
43
- * invalid-media classification is preserved downstream.
40
+ * Fail early when a probed local asset cannot satisfy its HTML element, a PNG
41
+ * cut short under a <video> included. Other missing, corrupt, remote-at-runtime
42
+ * and unprobeable inputs deliberately remain untouched so their existing
43
+ * source/download/invalid-media classification is preserved downstream.
44
44
  */
45
45
  export declare function preflightCompositionAssetMediaTypes(input: {
46
46
  projectDir: string;
@@ -0,0 +1,2 @@
1
+ /** The temp file an ffmpeg run writes, when its last argument is one: what to remove if the run is cut off. */
2
+ export declare function scratchOutputOf(spawnfile: string, args: readonly string[]): string | undefined;
@@ -16,6 +16,7 @@ export interface HeifTranscodeRequest {
16
16
  inputPath: string;
17
17
  outputPath: string;
18
18
  timeoutMs?: number;
19
+ signal?: AbortSignal;
19
20
  }
20
21
  export interface PrepareHeifImageInputsOptions {
21
22
  projectDir: string;
@@ -25,6 +26,7 @@ export interface PrepareHeifImageInputsOptions {
25
26
  cacheDir?: string;
26
27
  sourceAssets?: Map<string, string>;
27
28
  timeoutMs?: number;
29
+ signal?: AbortSignal;
28
30
  transcode?: (input: HeifTranscodeRequest) => Promise<void>;
29
31
  allowOutsideFiles?: boolean;
30
32
  /** Leaves an image whose conversion failed as authored and reports it, instead of throwing. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperframes/producer",
3
- "version": "0.9.88",
3
+ "version": "0.9.89",
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.13.0",
37
37
  "puppeteer-core": "^25.13.0",
38
- "@hyperframes/core": "0.9.88",
39
- "@hyperframes/lint": "0.9.88",
40
- "@hyperframes/engine": "0.9.88",
41
- "@hyperframes/parsers": "0.9.88",
42
- "@hyperframes/studio-server": "0.9.88"
38
+ "@hyperframes/core": "0.9.89",
39
+ "@hyperframes/lint": "0.9.89",
40
+ "@hyperframes/studio-server": "0.9.89",
41
+ "@hyperframes/engine": "0.9.89",
42
+ "@hyperframes/parsers": "0.9.89"
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.12",
51
- "@hyperframes/aws-lambda": "0.9.88"
51
+ "@hyperframes/aws-lambda": "0.9.89"
52
52
  },
53
53
  "engines": {
54
54
  "node": ">=22"