@blaxel/core 0.2.80-preview.139 → 0.2.80

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.
@@ -11,8 +11,8 @@ const index_js_1 = require("../authentication/index.js");
11
11
  const env_js_1 = require("../common/env.js");
12
12
  const node_js_1 = require("../common/node.js");
13
13
  // Build info - these placeholders are replaced at build time by build:replace-imports
14
- const BUILD_VERSION = "0.2.80-preview.139";
15
- const BUILD_COMMIT = "90ee846099b1f428daba9643df172bf43a5fd53e";
14
+ const BUILD_VERSION = "0.2.80";
15
+ const BUILD_COMMIT = "800934e57ec03de060b909ccb1f5599343cae9e5";
16
16
  const BUILD_SENTRY_DSN = "https://fd5e60e1c9820e1eef5ccebb84a07127@o4508714045276160.ingest.us.sentry.io/4510465864564736";
17
17
  // Cache for config.yaml tracking value
18
18
  let configTrackingValue = null;
@@ -2,8 +2,11 @@ import http2 from "http2";
2
2
  import type { h2Pool as H2PoolType } from "./h2pool.js";
3
3
  /**
4
4
  * Creates a fetch()-compatible function that sends requests over an existing
5
- * HTTP/2 session. Falls back to global fetch() if the session is closed,
6
- * destroyed, or if the H2 request times out.
5
+ * HTTP/2 session. Falls back to globalThis.fetch() only when the session is
6
+ * closed/destroyed at call time (pre-flight, nothing sent on the wire).
7
+ *
8
+ * Any failure after session.request() succeeds propagates to the caller:
9
+ * this transport never retries. Retry and timeout policy are caller concerns.
7
10
  */
8
11
  export declare function createH2Fetch(session: http2.ClientHttp2Session): (input: Request) => Promise<Response>;
9
12
  /**
@@ -7,15 +7,21 @@ import type http2 from "http2";
7
7
  * an in-flight warming, or establishes a fresh one.
8
8
  * - Closed / destroyed sessions are automatically evicted.
9
9
  */
10
- declare class H2Pool {
10
+ export declare class H2Pool {
11
11
  private sessions;
12
12
  private inflight;
13
13
  private _establish;
14
14
  /**
15
15
  * Lazily resolve the establish function so the http2 / tls / dns modules
16
16
  * are only imported in Node.js environments.
17
+ *
18
+ * Wires up self-healing eviction: the session is removed from the cache
19
+ * as soon as it emits `goaway`, `error`, or `close`, so `tryGet()` never
20
+ * returns a dead session. This replaces the old behavior of papering
21
+ * over session failures at the fetch layer.
17
22
  */
18
23
  private establish;
24
+ private attachEvictionListeners;
19
25
  /**
20
26
  * Fire-and-forget background warming. Safe to call multiple times for
21
27
  * the same domain — only one connection attempt per domain at a time.
@@ -35,4 +41,3 @@ declare class H2Pool {
35
41
  closeAll(): void;
36
42
  }
37
43
  export declare const h2Pool: H2Pool;
38
- export {};