@astrale-os/adapter-cloudflare 0.3.2 → 0.4.2

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.
@@ -25,9 +25,9 @@
25
25
  * so no self-fetch is attempted (the worker's JWKS is served as a normal
26
26
  * route by createRemoteServer).
27
27
  * • Self-binding (autobinding): when a handler calls back into its OWN domain
28
- * (`ctx.callRemote`), the redirect resolves to this worker's own host — a
29
- * forbidden same-host subrequest. We route those through the `SELF` service
30
- * binding instead.
28
+ * (`ctx.kernel.call` / `ctx.fn.kernel().call`), the redirect resolves to
29
+ * this worker's own host — a forbidden same-host subrequest. We route those
30
+ * through the `SELF` service binding instead.
31
31
  * • SPA: `/ui/*` is served from the `ASSETS` binding (or proxied to Vite in
32
32
  * dev via `VIEW_DEV_URL`).
33
33
  */
@@ -25,9 +25,9 @@
25
25
  * so no self-fetch is attempted (the worker's JWKS is served as a normal
26
26
  * route by createRemoteServer).
27
27
  * • Self-binding (autobinding): when a handler calls back into its OWN domain
28
- * (`ctx.callRemote`), the redirect resolves to this worker's own host — a
29
- * forbidden same-host subrequest. We route those through the `SELF` service
30
- * binding instead.
28
+ * (`ctx.kernel.call` / `ctx.fn.kernel().call`), the redirect resolves to
29
+ * this worker's own host — a forbidden same-host subrequest. We route those
30
+ * through the `SELF` service binding instead.
31
31
  * • SPA: `/ui/*` is served from the `ASSETS` binding (or proxied to Vite in
32
32
  * dev via `VIEW_DEV_URL`).
33
33
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrale-os/adapter-cloudflare",
3
- "version": "0.3.2",
3
+ "version": "0.4.2",
4
4
  "description": "Deploy an Astrale domain as a standalone Cloudflare Worker",
5
5
  "keywords": [
6
6
  "adapter",
@@ -32,7 +32,7 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "jose": "^6.1.3",
35
- "@astrale-os/sdk": "^0.3.0"
35
+ "@astrale-os/sdk": "^0.4.2"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@astrale-os/ox": ">=0.1.0 <1.0.0",
@@ -25,9 +25,9 @@
25
25
  * so no self-fetch is attempted (the worker's JWKS is served as a normal
26
26
  * route by createRemoteServer).
27
27
  * • Self-binding (autobinding): when a handler calls back into its OWN domain
28
- * (`ctx.callRemote`), the redirect resolves to this worker's own host — a
29
- * forbidden same-host subrequest. We route those through the `SELF` service
30
- * binding instead.
28
+ * (`ctx.kernel.call` / `ctx.fn.kernel().call`), the redirect resolves to
29
+ * this worker's own host — a forbidden same-host subrequest. We route those
30
+ * through the `SELF` service binding instead.
31
31
  * • SPA: `/ui/*` is served from the `ASSETS` binding (or proxied to Vite in
32
32
  * dev via `VIEW_DEV_URL`).
33
33
  */
package/template/env.ts CHANGED
@@ -15,7 +15,7 @@ export interface Env {
15
15
  * Present on Cloudflare deploys AND on current managed runtimes (the host
16
16
  * binds every service to itself). Optional — hosts predating log/SELF
17
17
  * support omit it; for graph reads from views/functions prefer
18
- * `ctx.selfKernel()`. */
18
+ * `ctx.fn.kernel()`. */
19
19
  SELF?: { fetch(request: Request): Promise<Response> }
20
20
  /** Dev-only: forward /ui/* to a running Vite dev server. */
21
21
  VIEW_DEV_URL?: string