@astrale-os/adapter-cloudflare 0.5.0-beta.102 → 0.5.0-beta.105
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 +41 -0
- package/dist/params.d.ts +1 -0
- package/package.json +2 -2
- package/template/astrale.config.ts +26 -18
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,46 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.5.0-beta.105](https://github.com/astrale-os/sdk/compare/adapter-cloudflare-v0.5.0-beta.104...adapter-cloudflare-v0.5.0-beta.105) (2026-09-02)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Dependencies
|
|
7
|
+
|
|
8
|
+
* The following workspace dependencies were updated
|
|
9
|
+
* dependencies
|
|
10
|
+
* @astrale-os/sdk bumped to 0.5.0-beta.102
|
|
11
|
+
|
|
12
|
+
## [0.5.0-beta.104](https://github.com/astrale-os/sdk/compare/adapter-cloudflare-v0.5.0-beta.103...adapter-cloudflare-v0.5.0-beta.104) (2026-09-02)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### ⚠ BREAKING CHANGES
|
|
16
|
+
|
|
17
|
+
* require defineProject and add demo Datasets ([#387](https://github.com/astrale-os/sdk/issues/387))
|
|
18
|
+
|
|
19
|
+
### Features
|
|
20
|
+
|
|
21
|
+
* require defineProject and add demo Datasets ([#387](https://github.com/astrale-os/sdk/issues/387)) ([106cf90](https://github.com/astrale-os/sdk/commit/106cf9019c75a85c413249748da07778a672aeca))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Dependencies
|
|
25
|
+
|
|
26
|
+
* The following workspace dependencies were updated
|
|
27
|
+
* dependencies
|
|
28
|
+
* @astrale-os/sdk bumped to 0.5.0-beta.101
|
|
29
|
+
|
|
30
|
+
## [0.5.0-beta.103](https://github.com/astrale-os/sdk/compare/adapter-cloudflare-v0.5.0-beta.102...adapter-cloudflare-v0.5.0-beta.103) (2026-09-02)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Bug Fixes
|
|
34
|
+
|
|
35
|
+
* **auth:** widen token exchange ceiling ([23c2b47](https://github.com/astrale-os/sdk/commit/23c2b47bac602bb4db073bb38ccc27c148f20f86))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
### Dependencies
|
|
39
|
+
|
|
40
|
+
* The following workspace dependencies were updated
|
|
41
|
+
* dependencies
|
|
42
|
+
* @astrale-os/sdk bumped to 0.5.0-beta.100
|
|
43
|
+
|
|
3
44
|
## [0.5.0-beta.102](https://github.com/astrale-os/sdk/compare/adapter-cloudflare-v0.5.0-beta.101...adapter-cloudflare-v0.5.0-beta.102) (2026-09-01)
|
|
4
45
|
|
|
5
46
|
|
package/dist/params.d.ts
CHANGED
|
@@ -65,6 +65,7 @@ export interface CloudflareParams {
|
|
|
65
65
|
readonly invocationTimeoutMs?: number;
|
|
66
66
|
/**
|
|
67
67
|
* Configure the caller-only Domain token exchange lifetime, or disable exchange.
|
|
68
|
+
* The default maximum is 30 minutes; production and CI environments may select a shorter bound.
|
|
68
69
|
*/
|
|
69
70
|
readonly tokenExchange?: ExchangeOptions | false;
|
|
70
71
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrale-os/adapter-cloudflare",
|
|
3
|
-
"version": "0.5.0-beta.
|
|
3
|
+
"version": "0.5.0-beta.105",
|
|
4
4
|
"description": "Deploy an Astrale application through Cloudflare Workers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"adapter",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"registry": "https://registry.npmjs.org/"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@astrale-os/sdk": "0.5.0-beta.
|
|
56
|
+
"@astrale-os/sdk": "0.5.0-beta.102",
|
|
57
57
|
"@noble/hashes": "2.3.0",
|
|
58
58
|
"hono": "^4.6.20",
|
|
59
59
|
"jose": "^6.1.3",
|
|
@@ -12,34 +12,42 @@
|
|
|
12
12
|
*/
|
|
13
13
|
import { cloudflare } from '@astrale-os/adapter-cloudflare'
|
|
14
14
|
import { deploy, runtime } from '@astrale-os/sdk/deployment'
|
|
15
|
+
import { defineProject } from '@astrale-os/sdk/project'
|
|
16
|
+
import { dataset, tests } from '@astrale-os/sdk/testing'
|
|
15
17
|
// No Cloudflare account? Swap the adapter for the Astrale-managed one — it
|
|
16
18
|
// publishes the same bundle THROUGH the platform and installs it on your
|
|
17
19
|
// instance (auth = your `astrale auth login` session):
|
|
18
20
|
//
|
|
19
21
|
// import { astrale } from '@astrale-os/adapter-astrale'
|
|
20
|
-
//
|
|
22
|
+
// deployment: deploy({ application, entrypoint: runtime('./runtime.ts'), adapter: astrale({
|
|
21
23
|
// dev: { secrets: '.env.dev' }, // tunnel + install + View
|
|
22
24
|
// prod: { instance: '<your-instance-slug>' }, // managed deploy + install
|
|
23
25
|
// }) })
|
|
24
26
|
|
|
25
27
|
import { application } from './application.js'
|
|
26
28
|
|
|
27
|
-
export default
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
29
|
+
export default defineProject({
|
|
30
|
+
// Exactly what ships: the Application, its Runtime module, and the provider adapter.
|
|
31
|
+
deployment: deploy({
|
|
32
|
+
application,
|
|
33
|
+
entrypoint: runtime('./runtime.ts'),
|
|
34
|
+
adapter: cloudflare({
|
|
35
|
+
// Local dev: allocated Worker/Vite ports, one Worker-facing URL, and HMR.
|
|
36
|
+
// Supply `pnpm dev --host <origin> --port <port>` for ingress you own.
|
|
37
|
+
dev: { secrets: '.env.dev' },
|
|
38
|
+
// Custom-domain prod. Drop `route` to ship to *.workers.dev instead.
|
|
39
|
+
// The scaffold creates this identity once. Retain it in managed secret
|
|
40
|
+
// storage and restore it at this path in CI before every remote deploy.
|
|
41
|
+
prod: {
|
|
42
|
+
route: 'astrale-domain.example.dev',
|
|
43
|
+
secrets: '.env.prod',
|
|
44
|
+
signingIdentity: '.astrale/identity.json',
|
|
45
|
+
},
|
|
46
|
+
// Author secrets ship via `secrets: '.env.prod'` on any env. Extra bindings
|
|
47
|
+
// (KV, R2, D1, queues, …) ride a `wrangler` block on any env (deep-merged).
|
|
48
|
+
}),
|
|
44
49
|
}),
|
|
50
|
+
// Development-only resources. Dataset modules load on demand (Domain Studio, tests) and
|
|
51
|
+
// never reach a Build, a Release, or an installation. Paths resolve from this file.
|
|
52
|
+
tests: tests({ datasets: [dataset('./tests/datasets/demo.ts')] }),
|
|
45
53
|
})
|