Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/deps-2026-11.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@cloudhal/astro-renderer": patch
"@cloudhal/cli": patch
"@cloudhal/cloudflare": patch
---

Dependency updates from the November 2026 Dependabot sweep. `@cloudhal/astro-renderer`, `@cloudhal/cli` and `@cloudhal/cloudflare` use wrangler 4.152.0 (its `createTestHarness` runs Miniflare 5.20261019.2-beta, and `wrangler deploy` uploads source maps by default since 4.150). The Studio shipped in `@cloudhal/cli` is built with Tiptap 3.32.0 and `@codemirror/language` 6.13.1. The Rust crate validates with jsonschema 0.60.2, and the monorepo lints and formats with Biome 2.6.2 (Markdown and YAML formatting stay off).
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ pnpm i18n:export / pnpm i18n:import [--locale xx] # translations as nested ICU
12. **Size ratchet** ([docs/engineering/code-structure.md](docs/engineering/code-structure.md)): files ≤ 800 lines (soft 400; `.astro` 500, tests 1500; i18n dictionaries are data and exempt — the Studio bundle budget guards them), functions ≤ 150 lines, depth ≤ 5, ≤ 4 positional params (use an options object beyond 3); one responsibility per module, dispatch tables instead of giant switches. `pnpm size:check` (in `pnpm check`) fails on a new violation or when a file in `scripts/size-baseline.json` grows — put new code in a new module next to it; after shrinking one, run `node scripts/size-check.ts --update`.

## Versions (pinned via pnpm catalog / Cargo workspace)
Node 24 · pnpm 12 · TypeScript 7.0 · Biome 2.5 · Vitest 5 · Turborepo 2.11 · Rust 2024 edition · json-schema-to-typescript 16.0.0 · cargo-typify 0.8.0 · ajv 8.20 · jsonschema 0.59 · better-sqlite3 13 · miniflare 4.20260730 (last stable 4.x; its sharp overridden to 0.35.5; see ADR-0012) · wrangler 4.148 · @astrojs/cloudflare 14.3 · Astro 7.3 · Tailwind 4.3 · marked 18 · Hono 4.13 · Better Auth 1.7.12 · Kumo 2.14 · React 19.3 · TanStack Router 1.170 / Query 5.104 · Vite 8.3.
Node 24 · pnpm 12 · TypeScript 7.0 · Biome 2.6 · Vitest 5 · Turborepo 2.11 · Rust 2024 edition · json-schema-to-typescript 16.0.0 · cargo-typify 0.8.0 · ajv 8.20 · jsonschema 0.60 · better-sqlite3 13 · miniflare 4.20260730 (last stable 4.x; its sharp overridden to 0.35.5; see ADR-0012) · wrangler 4.152 · @astrojs/cloudflare 14.3 · Astro 7.3 · Tailwind 4.3 · marked 18 · Hono 4.13 · Better Auth 1.7.12 · Kumo 2.14 · React 19.3 · TanStack Router 1.170 / Query 5.104 · Vite 8.3.

## When unsure
Read `docs/adr/README.md` and the relevant ADR; each ADR links its primary sources. If the change alters a contract or a public interface, write an RFC first (`.agents/skills/write-rfc`).
Expand Down
12 changes: 11 additions & 1 deletion biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/2.5.15/schema.json",
"$schema": "https://biomejs.dev/schemas/2.6.2/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
Expand Down Expand Up @@ -101,6 +101,16 @@
"tailwindDirectives": true
}
},
"markdown": {
"formatter": {
"enabled": false
}
},
"yaml": {
"formatter": {
"enabled": false
}
},
"overrides": [
{
"includes": ["**/*.astro"],
Expand Down
2 changes: 1 addition & 1 deletion docs/adr/0006-toolchain-and-runtime.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Cloudhal must run on Cloudflare (workerd) and self-hosted. Wrangler, miniflare a
## Decision
- Runtime: **Node 24 LTS** floor (`engines.node >= 24`), Node 26 in the CI matrix; switch primary to 26 after it enters LTS (2026-10-28).
- Package manager: **pnpm 12** with `catalog:` and `catalogMode: strict`; build scripts allow-listed via `allowBuilds`.
- Tasks: **Turborepo 2.11** (enable `experimentalCargoWorkspaces` when more crates exist). Lint/format: **Biome 2.5** only. Tests: **Vitest 5**. Types: **TypeScript 7.0** (`module: nodenext`, `verbatimModuleSyntax`, `erasableSyntaxOnly`, `rewriteRelativeImportExtensions`). Releases: **Changesets 3**.
- Tasks: **Turborepo 2.11** (enable `experimentalCargoWorkspaces` when more crates exist). Lint/format: **Biome 2.6** only. Tests: **Vitest 5**. Types: **TypeScript 7.0** (`module: nodenext`, `verbatimModuleSyntax`, `erasableSyntaxOnly`, `rewriteRelativeImportExtensions`). Releases: **Changesets 3**.
- Rust: stable toolchain, **edition 2024, resolver 3**, `[workspace.package]` inheritance, clippy `-D warnings`.
- **Bun** is a supported secondary runtime for `cloudhal serve` and pure packages: a `bun-sqlite` storage adapter and a Bun CI job; never for `cloudhal dev` (must spawn wrangler/workerd). No Bun-only APIs in shared code.

Expand Down
2 changes: 1 addition & 1 deletion docs/adr/0012-cloudflare-deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Publish and rollback no longer purge the whole cache. `onPublished` receives the
Decision 6 pins the direct `miniflare` devDependency (the D1, R2 and Durable Object harnesses of `@cloudhal/storage/testing` and the packages that test with them). Wrangler brings its own Miniflare: wrangler 4.148.0 and `@cloudflare/vite-plugin` 1.63.0 (through `@astrojs/cloudflare`) run Miniflare 5.20261006.0-alpha, which that pin does not cover.

- **sharp.** Every Miniflare release pins sharp exactly. 4.20260730.0, still Miniflare's npm `latest`, pins 0.35.2, and the 5.20261006.0 alpha pins 0.35.4. Both are below 0.35.5, the fix for GHSA-wq5f-xc86-pv6w (librsvg), and 0.35.2 is also below 0.35.4, the fix for GHSA-rgj7-g3m4-5g8c (libheif). Miniflare loads sharp only for its Images binding and its `cf.image` fetch mock. Cloudhal configures no Images binding and makes no `cf.image` fetches: the `/cdn-cgi/image/` URLs from `@cloudhal/astro-renderer` are resolved at the edge. `pnpm-workspace.yaml` therefore overrides `sharp@<0.35.5` to exactly 0.35.5. That version was already in the lockfile through Astro, and the calls Miniflare makes behave the same on 0.35.2, 0.35.4 and 0.35.5 (checked locally on 2026-10-25). Overrides are not published. A project that uses `@cloudhal/storage/testing` with Miniflare 4 keeps Miniflare's sharp unless it adds the same override. A new project resolves the starter's `wrangler ^4.148.0` to a release whose Miniflare pins 0.35.5. Remove the override when `pnpm why -r sharp` shows nothing below 0.35.5 without it.
- **wrangler** stays at 4.148.0 in this change. 4.152 is a minor move: it changes the Miniflare under `createTestHarness` (5.20261019.2-beta), needs `@cloudflare/vite-plugin` 1.65 and `@cloudflare/workers-types` ≥ 5.20261019.1, and uploads source maps on deploy by default (4.150). It gets its own change, verified with the CLI's Cloudflare suites.
- **wrangler** stays at 4.148.0 in this change. 4.152 is a minor move: it changes the Miniflare under `createTestHarness` (5.20261019.2-beta), needs `@cloudflare/vite-plugin` 1.65 and `@cloudflare/workers-types` ≥ 5.20261019.1, and uploads source maps on deploy by default (4.150). It gets its own change, verified with the CLI's Cloudflare suites. (wrangler 4.152.0 landed 2026-11-08. @astrojs/cloudflare 14.4.2 waits: its lockfile resolves @cloudflare/vite-plugin 1.67, which needs wrangler ^4.156.1.)
- **undici.** The undici versions Miniflare pins (7.28.0 in 4.20260730.0, 7.29.1 in the 5.x alpha) are accepted for local development and tests: Miniflare uses undici to reach its own workerd on localhost and, outside tests, to fetch Cloudflare's `cf.json` from workers.cloudflare.com, a trusted endpoint (set `CLOUDFLARE_CF_FETCH_ENABLED=false` to turn that off). The fixed 7.30.1 is a minor move inside `dispatchFetch`, which the D1 harness and Miniflare's binding proxy depend on (the Durable Object harness bypasses it since #116), so an override waits for its own serial test run.

Sources: https://github.com/advisories/GHSA-wq5f-xc86-pv6w · https://github.com/advisories/GHSA-rgj7-g3m4-5g8c · https://pnpm.io/settings#overrides · `npm view miniflare dist-tags`, `npm view sharp time`, `npm view wrangler time` (checked 2026-10-25) · Miniflare 4.20260730.0 `dist/src/index.js` (`imagesLocalFetcher`, `cfImageLocalFetcher`, `setupCf`).
2 changes: 1 addition & 1 deletion docs/engineering/code-structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ without a big-bang refactor.
| Source | File | Function | Params | Nesting | Complexity |
| --- | --- | --- | --- | --- | --- |
| ESLint core defaults (`max-lines`, `max-lines-per-function`, `max-params`, `max-depth`, `complexity`) | 300 | 50 | 3 | 4 | 20 (cyclomatic) |
| Biome 2.5 defaults (`noExcessiveLinesPerFile`, `noExcessiveLinesPerFunction`, `useMaxParams`, `noExcessiveCognitiveComplexity`) | 300 | 50 | 4 | — | 15 (cognitive) |
| Biome 2.6 defaults (`noExcessiveLinesPerFile`, `noExcessiveLinesPerFunction`, `useMaxParams`, `noExcessiveCognitiveComplexity`) | 300 | 50 | 4 | — | 15 (cognitive) |
| Airbnb JS style | no file/function cap; `max-len` 100 | — | — | — | off |
| Google TypeScript style | no numeric caps; "one concept per file", named exports, no default exports | — | — | — | — |
| Clippy (`too_many_lines` pedantic, `too_many_arguments`, `cognitive_complexity`, `excessive_nesting`) | — | 100 | 7 | off by default | 25 (cognitive) |
Expand Down
96 changes: 48 additions & 48 deletions packages/ui/test/schedules.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -927,56 +927,56 @@ describe("RescheduleDialog", () => {
});
});

describe("ScheduleFilters", () => {
const labels: ScheduleFiltersLabels = {
toolbar: "Filter schedules",
facet: {
kind: "Kind",
state: "State",
origin: "Origin",
approval: "Approval",
collection: "Collection",
term: "Category or tag",
locale: "Language",
},
selected: (f, n) => `${f}, ${n} selected`,
clear: "Clear filters",
view: "View",
builtinViews: "Built-in views",
savedViews: "Saved views",
saveView: "Save view…",
};
const labels: ScheduleFiltersLabels = {
toolbar: "Filter schedules",
facet: {
kind: "Kind",
state: "State",
origin: "Origin",
approval: "Approval",
collection: "Collection",
term: "Category or tag",
locale: "Language",
},
selected: (f, n) => `${f}, ${n} selected`,
clear: "Clear filters",
view: "View",
builtinViews: "Built-in views",
savedViews: "Saved views",
saveView: "Save view…",
};

function Filters({ onChange }: { onChange: (v: ScheduleFilterValue) => void }) {
const [value, setValue] = useState<ScheduleFilterValue>({ kind: ["publish"] });
return (
<ScheduleFilters
value={value}
onChange={(v) => {
onChange(v);
setValue(v);
}}
facets={[
{
facet: "kind",
options: [
{ value: "publish", label: "Publish" },
{ value: "release", label: "Release" },
],
},
{ facet: "origin", options: [{ value: "agent", label: "Agents" }] },
]}
labels={labels}
views={[
{ id: "all", label: "All", builtin: true },
{ id: "waiting", label: "Waiting for approval", builtin: true },
]}
view="all"
onViewChange={() => {}}
/>
);
}
function Filters({ onChange }: { onChange: (v: ScheduleFilterValue) => void }) {
const [value, setValue] = useState<ScheduleFilterValue>({ kind: ["publish"] });
return (
<ScheduleFilters
value={value}
onChange={(v) => {
onChange(v);
setValue(v);
}}
facets={[
{
facet: "kind",
options: [
{ value: "publish", label: "Publish" },
{ value: "release", label: "Release" },
],
},
{ facet: "origin", options: [{ value: "agent", label: "Agents" }] },
]}
labels={labels}
views={[
{ id: "all", label: "All", builtin: true },
{ id: "waiting", label: "Waiting for approval", builtin: true },
]}
view="all"
onViewChange={() => {}}
/>
);
}

describe("ScheduleFilters", () => {
it("is controlled, multi-valued and clears", async () => {
const onChange = vi.fn();
render(<Filters onChange={onChange} />);
Expand Down
96 changes: 58 additions & 38 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ catalogMode: strict

catalog:
"@capsizecss/unpack": 4.0.1
"@biomejs/biome": 2.5.15
"@biomejs/biome": 2.6.2
"@changesets/cli": 3.0.3
"@phosphor-icons/core": 2.1.1
"@types/node": ^26.6.5
Expand Down
2 changes: 1 addition & 1 deletion starters/blog/src/styles/features/chrome-menus.css
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@
}
/* On a brand hero the primary button would vanish into it: its colors swap until the fill. */
.ch-header[data-transparent]:is([data-over="brand"], [data-over="gradient"]):not([data-ch-scrolled])
.ch-button--primary {
.ch-button--primary {
background: var(--ch-color-on-brand);
color: var(--ch-color-brand);
}
Expand Down
4 changes: 2 additions & 2 deletions starters/blog/src/styles/features/motion.css
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
}
/* Below the first screen: the motion module adds .ch-pre while off screen, removes it on entry. */
:root:is([data-ch-motion="subtle"], [data-ch-motion="standard"], [data-ch-motion="expressive"])
[data-ch-reveal].ch-pre {
[data-ch-reveal].ch-pre {
opacity: 0;
translate: var(--ch-from-tr);
scale: var(--ch-from-sc);
Expand Down Expand Up @@ -158,7 +158,7 @@
}
/* Effects that do not move anything: every level but "none". */
:root:not([data-ch-motion="none"])
[data-ch-hover="glow"]:is(:hover, :focus-visible, :focus-within) {
[data-ch-hover="glow"]:is(:hover, :focus-visible, :focus-within) {
box-shadow:
0 0 0 1px color-mix(in oklch, var(--ch-color-brand) 45%, transparent),
0 10px 30px -10px color-mix(in oklch, var(--ch-color-brand) 55%, transparent);
Expand Down
Loading
Loading