@astrale-os/adapter-cloudflare 0.5.0-beta.72 → 0.5.0-beta.74

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/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.5.0-beta.74](https://github.com/astrale-os/sdk/compare/adapter-cloudflare-v0.5.0-beta.73...adapter-cloudflare-v0.5.0-beta.74) (2026-08-28)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **adapter-cloudflare:** bypass fresh tunnel DNS propagation ([#313](https://github.com/astrale-os/sdk/issues/313)) ([9a71196](https://github.com/astrale-os/sdk/commit/9a71196cf9bed1e2c27402ee893b44df3dd42d3f))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @astrale-os/sdk bumped to 0.5.0-beta.71
16
+
17
+ ## [0.5.0-beta.73](https://github.com/astrale-os/sdk/compare/adapter-cloudflare-v0.5.0-beta.72...adapter-cloudflare-v0.5.0-beta.73) (2026-08-28)
18
+
19
+
20
+ ### Dependencies
21
+
22
+ * The following workspace dependencies were updated
23
+ * dependencies
24
+ * @astrale-os/sdk bumped to 0.5.0-beta.70
25
+
3
26
  ## [0.5.0-beta.72](https://github.com/astrale-os/sdk/compare/adapter-cloudflare-v0.5.0-beta.71...adapter-cloudflare-v0.5.0-beta.72) (2026-08-28)
4
27
 
5
28
 
@@ -8,10 +8,9 @@ export interface ResolvedFetchDependencies {
8
8
  readonly request: RequestAddress;
9
9
  }
10
10
  /**
11
- * Fetch one HTTPS origin through authoritative A records instead of the host
12
- * process' getaddrinfo cache. Quick Tunnel hostnames can be negatively cached
13
- * when their URL is observed milliseconds before DNS propagation; retrying
14
- * global fetch in that process then remains stuck even after the record exists.
11
+ * Fetch one HTTPS origin through the stable TryCloudflare edge addresses.
12
+ * Fresh Quick Tunnel hostnames can remain absent from DNS after the connector
13
+ * is registered, while TLS SNI and Host already route through the stable edge.
15
14
  */
16
15
  export declare function resolvedHttpsFetch(origin: string, dependencies?: ResolvedFetchDependencies): ReadinessFetch;
17
16
  declare function requestAddress(url: URL, address: string, init: Parameters<ReadinessFetch>[1]): Promise<Response>;
@@ -6,23 +6,25 @@ const defaults = Object.freeze({
6
6
  request: requestAddress,
7
7
  });
8
8
  /**
9
- * Fetch one HTTPS origin through authoritative A records instead of the host
10
- * process' getaddrinfo cache. Quick Tunnel hostnames can be negatively cached
11
- * when their URL is observed milliseconds before DNS propagation; retrying
12
- * global fetch in that process then remains stuck even after the record exists.
9
+ * Fetch one HTTPS origin through the stable TryCloudflare edge addresses.
10
+ * Fresh Quick Tunnel hostnames can remain absent from DNS after the connector
11
+ * is registered, while TLS SNI and Host already route through the stable edge.
13
12
  */
14
13
  export function resolvedHttpsFetch(origin, dependencies = defaults) {
15
14
  const expected = new URL(origin);
16
15
  if (expected.protocol !== 'https:') {
17
16
  throw new TypeError('Resolved development fetch requires an HTTPS origin.');
18
17
  }
18
+ const resolutionHost = expected.hostname.endsWith('.trycloudflare.com')
19
+ ? 'trycloudflare.com'
20
+ : expected.hostname;
19
21
  let addresses;
20
22
  let cursor = 0;
21
23
  return async (input, init) => {
22
24
  const url = new URL(input);
23
25
  if (url.origin !== expected.origin)
24
26
  return fetch(input, init);
25
- const resolved = addresses ?? (await dependencies.resolve(expected.hostname));
27
+ const resolved = addresses ?? (await dependencies.resolve(resolutionHost));
26
28
  if (resolved.length === 0)
27
29
  throw new Error(`No IPv4 address resolved for ${expected.hostname}.`);
28
30
  addresses = resolved;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrale-os/adapter-cloudflare",
3
- "version": "0.5.0-beta.72",
3
+ "version": "0.5.0-beta.74",
4
4
  "description": "Deploy an Astrale application through Cloudflare Workers",
5
5
  "keywords": [
6
6
  "adapter",
@@ -49,7 +49,7 @@
49
49
  "registry": "https://registry.npmjs.org/"
50
50
  },
51
51
  "dependencies": {
52
- "@astrale-os/sdk": "0.5.0-beta.69",
52
+ "@astrale-os/sdk": "0.5.0-beta.71",
53
53
  "@noble/hashes": "2.3.0",
54
54
  "hono": "^4.6.20",
55
55
  "jose": "^6.1.3",