@astrale-os/adapter-cloudflare 0.4.7 → 0.4.9

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.
@@ -13,7 +13,7 @@
13
13
  */
14
14
  import { CLIENT_DIST_DIR } from '../client';
15
15
  import { deepMergeConfig } from './merge';
16
- const COMPATIBILITY_DATE = '2026-07-12';
16
+ const COMPATIBILITY_DATE = '2026-07-07';
17
17
  export function generateWranglerConfig(opts) {
18
18
  const config = {
19
19
  name: opts.workerName,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrale-os/adapter-cloudflare",
3
- "version": "0.4.7",
3
+ "version": "0.4.9",
4
4
  "description": "Deploy an Astrale domain as a standalone Cloudflare Worker",
5
5
  "keywords": [
6
6
  "adapter",
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "jose": "^6.1.3",
36
- "@astrale-os/sdk": "^0.4.13"
36
+ "@astrale-os/sdk": "^0.4.15"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@astrale-os/ox": ">=0.1.0 <1.0.0",
@@ -42,7 +42,8 @@
42
42
  "oxfmt": "0.52.0",
43
43
  "oxlint": "latest",
44
44
  "typescript": "~6.0.1-rc",
45
- "vitest": "^3.0.0"
45
+ "vitest": "^3.0.0",
46
+ "wrangler": "4.106.0"
46
47
  },
47
48
  "engines": {
48
49
  "node": ">=22"
@@ -41,7 +41,7 @@ export interface WranglerCodegenOptions {
41
41
  wrangler?: Record<string, unknown>
42
42
  }
43
43
 
44
- const COMPATIBILITY_DATE = '2026-07-12'
44
+ const COMPATIBILITY_DATE = '2026-07-07'
45
45
 
46
46
  export function generateWranglerConfig(opts: WranglerCodegenOptions): string {
47
47
  const config: Record<string, unknown> = {
@@ -35,6 +35,10 @@ Keep `schema/index.ts` and `runtime/index.ts` as composition roots. Put standalo
35
35
  bounded context that owns them, then wire them from `domain.ts`; do not create a generic functions
36
36
  junk drawer. The same rule applies to views and client code.
37
37
 
38
+ Cross-layer imports use the package's `#` aliases (`#schema`, `#runtime`, `#deps`, `#core/*`,
39
+ `#integrations/*`, `#functions/*`, `#simulation/*`, and `#views`). Keep relative imports for nearby
40
+ files inside the same bounded context.
41
+
38
42
  The client includes Tailwind CSS v4 and an empty shadcn `radix-nova` setup. Add only the components a
39
43
  real view needs with `pnpm exec shadcn add <component>`; component source stays in the project and can
40
44
  be adapted to the domain's visual language.
package/template/deps.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { Env } from './env'
1
+ import type { Env } from '#env'
2
2
 
3
3
  /** Typed dependencies available to runtime methods, functions, and views. */
4
4
  export interface Deps extends Env {}
@@ -1,8 +1,8 @@
1
1
  import { defineDomain } from '@astrale-os/sdk'
2
2
 
3
- import { deps } from './deps'
4
- import { methods } from './runtime'
5
- import { schema } from './schema'
3
+ import { deps } from '#deps'
4
+ import { methods } from '#runtime'
5
+ import { schema } from '#schema'
6
6
 
7
7
  export const domain = defineDomain({
8
8
  schema,
@@ -6,6 +6,19 @@
6
6
  "client"
7
7
  ],
8
8
  "type": "module",
9
+ "imports": {
10
+ "#core/*": "./core/*.ts",
11
+ "#deps": "./deps.ts",
12
+ "#env": "./env.ts",
13
+ "#functions": "./functions/index.ts",
14
+ "#functions/*": "./functions/*.ts",
15
+ "#integrations/*": "./integrations/*.ts",
16
+ "#runtime": "./runtime/index.ts",
17
+ "#runtime/*": "./runtime/*.ts",
18
+ "#schema": "./schema/index.ts",
19
+ "#simulation/*": "./simulation/*.ts",
20
+ "#views": "./views/index.ts"
21
+ },
9
22
  "scripts": {
10
23
  "dev": "astrale-domain dev",
11
24
  "prod": "astrale-domain prod",
@@ -31,7 +44,7 @@
31
44
  "oxlint": ">=1.72.0 <2.0.0",
32
45
  "typescript": "~6.0.1-rc",
33
46
  "vitest": "^3.2.4",
34
- "wrangler": "^4.0.0"
47
+ "wrangler": ">=4.106.0 <5.0.0"
35
48
  },
36
49
  "engines": {
37
50
  "node": ">=22"
@@ -1,7 +1,7 @@
1
1
  import type { SchemaMethodsImpl } from '@astrale-os/sdk'
2
2
 
3
- import type { Deps } from '../deps'
4
- import type { schema } from '../schema'
3
+ import type { Deps } from '#deps'
4
+ import type { schema } from '#schema'
5
5
 
6
6
  export const methods: SchemaMethodsImpl<typeof schema, Deps> = {
7
7
  class: {},