diff --git a/.changeset/deps-2026-11.md b/.changeset/deps-2026-11.md new file mode 100644 index 00000000..d046d8ce --- /dev/null +++ b/.changeset/deps-2026-11.md @@ -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). diff --git a/AGENTS.md b/AGENTS.md index 730e4d61..5411b850 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -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`). diff --git a/biome.json b/biome.json index 5ca2c72e..7bd5fffa 100644 --- a/biome.json +++ b/biome.json @@ -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", @@ -101,6 +101,16 @@ "tailwindDirectives": true } }, + "markdown": { + "formatter": { + "enabled": false + } + }, + "yaml": { + "formatter": { + "enabled": false + } + }, "overrides": [ { "includes": ["**/*.astro"], diff --git a/docs/adr/0006-toolchain-and-runtime.md b/docs/adr/0006-toolchain-and-runtime.md index def6433e..f1fee1c4 100644 --- a/docs/adr/0006-toolchain-and-runtime.md +++ b/docs/adr/0006-toolchain-and-runtime.md @@ -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. diff --git a/docs/adr/0012-cloudflare-deployment.md b/docs/adr/0012-cloudflare-deployment.md index 703bcda0..031c3096 100644 --- a/docs/adr/0012-cloudflare-deployment.md +++ b/docs/adr/0012-cloudflare-deployment.md @@ -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`). diff --git a/docs/engineering/code-structure.md b/docs/engineering/code-structure.md index c2dfbc9f..43f9e2e6 100644 --- a/docs/engineering/code-structure.md +++ b/docs/engineering/code-structure.md @@ -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) | diff --git a/packages/ui/test/schedules.test.tsx b/packages/ui/test/schedules.test.tsx index 5ed53d05..83b6293b 100644 --- a/packages/ui/test/schedules.test.tsx +++ b/packages/ui/test/schedules.test.tsx @@ -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({ kind: ["publish"] }); - return ( - { - 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({ kind: ["publish"] }); + return ( + { + 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(); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index dfdc3d50..3b659384 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -180,8 +180,8 @@ catalogs: specifier: 0.5.0 version: 0.5.0 '@biomejs/biome': - specifier: 2.5.15 - version: 2.5.15 + specifier: 2.6.2 + version: 2.6.2 '@capsizecss/unpack': specifier: 4.0.1 version: 4.0.1 @@ -378,7 +378,7 @@ importers: devDependencies: '@biomejs/biome': specifier: 'catalog:' - version: 2.5.15 + version: 2.6.2 '@capsizecss/unpack': specifier: 'catalog:' version: 4.0.1 @@ -1470,59 +1470,71 @@ packages: '@better-fetch/fetch@1.3.2': resolution: {integrity: sha512-Gs7n99b5tqUC6cQAPbV0uED3IraHB6xQbHLQ/C3l7ZFafHScOx9pQ+DYmP5blbLFShVWLqxNUlI9wi4xU/X+ow==} - '@biomejs/biome@2.5.15': - resolution: {integrity: sha512-WZTW4slm/pdkh92K6t/3aEN++44JD1PQ7squ7RCMLI1flHGl43DVOIGXvCjHiZgBMO1V4uYxoFNtqrIA4qGuIQ==} + '@biomejs/biome@2.6.2': + resolution: {integrity: sha512-JLTFAFF9vfJcWwLhwuL4ZHflLg+XfTEC4IUnAlJRX1cMRt57++Xd1Ysb9Fdmlh9YUrvyCXfPEHjjEIqKJGdPKw==} engines: {node: '>=14.21.3'} hasBin: true - '@biomejs/cli-darwin-arm64@2.5.15': - resolution: {integrity: sha512-BZVzFhJ/mUvTLMYbc9x6el0o2Uv5zP7bACYyhFb6fSc1giroXm7PL0a5KqMJ9F+/BnkYRjagD/ROSDVOZ6eapg==} + '@biomejs/cli-android-arm64@2.6.2': + resolution: {integrity: sha512-dMpdpH7zFEL5FxuIA9LJW+RoNyC3oeDB7PJyjqVVwtMNoKB5uo8OZYmrVSBikn71txzYwy/3xga7UME6bJQZ6A==} + engines: {node: '>=14.21.3'} + cpu: [arm64] + os: [android] + + '@biomejs/cli-android-x64@2.6.2': + resolution: {integrity: sha512-XCwEhPBGYzuRA502dRkCcQ+5cefQwuxQR7f9wa4do92dvIcuBL6VMLMFB/fL9hlpZ4dGSfHdpGFSIDlp52mg0A==} + engines: {node: '>=14.21.3'} + cpu: [x64] + os: [android] + + '@biomejs/cli-darwin-arm64@2.6.2': + resolution: {integrity: sha512-rpXtabRgyZNz3aCjd/cRoSZGYi92R9eAXdUUe1sigIsRDyfMwgThaa98Yxt1fiZ7mxquqkAyIHIo08N/e1ToBA==} engines: {node: '>=14.21.3'} cpu: [arm64] os: [darwin] - '@biomejs/cli-darwin-x64@2.5.15': - resolution: {integrity: sha512-V5Kw63V+fVGNFhFrizDxMbGXAzZCh8kYzJpy3GI6gTapWDg7bZK9oYC9CbVgQSEdTnupz0U5Efz8Ev+5vdBBXw==} + '@biomejs/cli-darwin-x64@2.6.2': + resolution: {integrity: sha512-7GGzlm1GxUKoQ9CNV8tQZ+XXad4sz+v+uzNsWlhaGjsnZqUOVBw1OmAMpG3uNV/Mr0UrCpRJvSK0qvfuqSQOjg==} engines: {node: '>=14.21.3'} cpu: [x64] os: [darwin] - '@biomejs/cli-linux-arm64-musl@2.5.15': - resolution: {integrity: sha512-tGzZUTcJCV7tj5Adh/Gn6nR4MycqA3iohq2LEcrarAgRBkU0h0OKd2UzCRkOsOYOuUGaUJb4YmqRqyy2feGGSw==} + '@biomejs/cli-linux-arm64-musl@2.6.2': + resolution: {integrity: sha512-I+FYCLVSmR3cYfKcQ+KNeLOZ5w0wRd9fQFlw3JbSvy7bkegvTqdHaBRRcJzHQB/1ldldTLIcG21ka6X2cTWmJw==} engines: {node: '>=14.21.3'} cpu: [arm64] os: [linux] libc: [musl] - '@biomejs/cli-linux-arm64@2.5.15': - resolution: {integrity: sha512-XaG7P7eeSLYETD3K9grfB0mQmpLQZjygdbsxekWBJAg4am79fGAtRpfRyNnTvXB2fZFNnJZG3nXm7HBat0+VUw==} + '@biomejs/cli-linux-arm64@2.6.2': + resolution: {integrity: sha512-Qs4CofCE8MdkjZFfEjswh2NAcbyQ7IVYtGSzQBvLqFlla/CSXroGbktUFndWG/kVSTywadauzAspYWtSfqAc2g==} engines: {node: '>=14.21.3'} cpu: [arm64] os: [linux] libc: [glibc] - '@biomejs/cli-linux-x64-musl@2.5.15': - resolution: {integrity: sha512-IlxUcyxilVGPsE008x13pWdkTbU3nQpP2i9b5UrbOYj6goBkKsRX1XB7yJLcV+O1H9LBchIIm4adOaVLZBX0ZQ==} + '@biomejs/cli-linux-x64-musl@2.6.2': + resolution: {integrity: sha512-wnjEXAK2pDd2j8r9gKI3L+44sIxjkYzS5aHmD1+K57RNJ3sFyT4n22NH6QFPqqeVdRBxN54H3kckUUCrFKCcJw==} engines: {node: '>=14.21.3'} cpu: [x64] os: [linux] libc: [musl] - '@biomejs/cli-linux-x64@2.5.15': - resolution: {integrity: sha512-xE4iEW/3LqlYj9GFgGrFsFSH51dEEpUbYWBfeOv0q87WkUDxK2o/HhreSb7qMJqck70RVM6Lg96hgedcAYcOkA==} + '@biomejs/cli-linux-x64@2.6.2': + resolution: {integrity: sha512-FJKsb95418139xDdbv9XnNJsIIwvsgR21Of0aE9B9U+nQlOtRq5gJl2ps0jZUmYBxTaOlP9BKo8N+Ff8+Rui1g==} engines: {node: '>=14.21.3'} cpu: [x64] os: [linux] libc: [glibc] - '@biomejs/cli-win32-arm64@2.5.15': - resolution: {integrity: sha512-2kPKzhNlm8C+Ru3GcO0Me2ODkCBLrVOUNuyi84RJyWDVKAA4+Kjj3jMjL938lF6BRfvltC4vB2nPY9SvN51Ovg==} + '@biomejs/cli-win32-arm64@2.6.2': + resolution: {integrity: sha512-/PEOo6evlgrQOfKhMNtC/4Gk8ai3hySXXEtjUzCqZe/4iAbMdqelpp7qvZEDyLxlZS+BjOMQFpq2gXI/BPaAqw==} engines: {node: '>=14.21.3'} cpu: [arm64] os: [win32] - '@biomejs/cli-win32-x64@2.5.15': - resolution: {integrity: sha512-yAzh4UqEImV6Hcy0zjUqNfJAsUhoD64FBQCdTG8Md/Z2wQeVP/ZmJ3XRYAs1g8J9fjTFyl2fCtc5FB5til47+g==} + '@biomejs/cli-win32-x64@2.6.2': + resolution: {integrity: sha512-FVlWD+mDDz8nN5LWKRWUhhb7wKIK0VE3oXQvQBX7Fwwj00CvqMVhMyiz1iz8O5aZGmnkhFlKSwJPrUvMh5prQw==} engines: {node: '>=14.21.3'} cpu: [x64] os: [win32] @@ -5048,39 +5060,47 @@ snapshots: '@better-fetch/fetch@1.3.2': {} - '@biomejs/biome@2.5.15': + '@biomejs/biome@2.6.2': optionalDependencies: - '@biomejs/cli-darwin-arm64': 2.5.15 - '@biomejs/cli-darwin-x64': 2.5.15 - '@biomejs/cli-linux-arm64': 2.5.15 - '@biomejs/cli-linux-arm64-musl': 2.5.15 - '@biomejs/cli-linux-x64': 2.5.15 - '@biomejs/cli-linux-x64-musl': 2.5.15 - '@biomejs/cli-win32-arm64': 2.5.15 - '@biomejs/cli-win32-x64': 2.5.15 + '@biomejs/cli-android-arm64': 2.6.2 + '@biomejs/cli-android-x64': 2.6.2 + '@biomejs/cli-darwin-arm64': 2.6.2 + '@biomejs/cli-darwin-x64': 2.6.2 + '@biomejs/cli-linux-arm64': 2.6.2 + '@biomejs/cli-linux-arm64-musl': 2.6.2 + '@biomejs/cli-linux-x64': 2.6.2 + '@biomejs/cli-linux-x64-musl': 2.6.2 + '@biomejs/cli-win32-arm64': 2.6.2 + '@biomejs/cli-win32-x64': 2.6.2 + + '@biomejs/cli-android-arm64@2.6.2': + optional: true + + '@biomejs/cli-android-x64@2.6.2': + optional: true - '@biomejs/cli-darwin-arm64@2.5.15': + '@biomejs/cli-darwin-arm64@2.6.2': optional: true - '@biomejs/cli-darwin-x64@2.5.15': + '@biomejs/cli-darwin-x64@2.6.2': optional: true - '@biomejs/cli-linux-arm64-musl@2.5.15': + '@biomejs/cli-linux-arm64-musl@2.6.2': optional: true - '@biomejs/cli-linux-arm64@2.5.15': + '@biomejs/cli-linux-arm64@2.6.2': optional: true - '@biomejs/cli-linux-x64-musl@2.5.15': + '@biomejs/cli-linux-x64-musl@2.6.2': optional: true - '@biomejs/cli-linux-x64@2.5.15': + '@biomejs/cli-linux-x64@2.6.2': optional: true - '@biomejs/cli-win32-arm64@2.5.15': + '@biomejs/cli-win32-arm64@2.6.2': optional: true - '@biomejs/cli-win32-x64@2.5.15': + '@biomejs/cli-win32-x64@2.6.2': optional: true '@bruits/satteri-darwin-arm64@0.10.5': diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 8af8c7d8..c0aae397 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -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 diff --git a/starters/blog/src/styles/features/chrome-menus.css b/starters/blog/src/styles/features/chrome-menus.css index a33935dd..c104f05c 100644 --- a/starters/blog/src/styles/features/chrome-menus.css +++ b/starters/blog/src/styles/features/chrome-menus.css @@ -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); } diff --git a/starters/blog/src/styles/features/motion.css b/starters/blog/src/styles/features/motion.css index ca48d13f..4a643f0b 100644 --- a/starters/blog/src/styles/features/motion.css +++ b/starters/blog/src/styles/features/motion.css @@ -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); @@ -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); diff --git a/starters/blog/src/styles/features/surfaces.css b/starters/blog/src/styles/features/surfaces.css index b0d5c618..042f619a 100644 --- a/starters/blog/src/styles/features/surfaces.css +++ b/starters/blog/src/styles/features/surfaces.css @@ -180,13 +180,14 @@ } /* Loud surfaces: their text, buttons and links follow the surface's own text color. */ :is( - [data-surface="brand"], - [data-surface="inverse"], - [data-surface="accent"], - [data-surface="gradient"], - [data-tone="brand"], - [data-tone="inverse"] -) :is(.ch-text, .ch-stat__label, .ch-stat__detail) { + [data-surface="brand"], + [data-surface="inverse"], + [data-surface="accent"], + [data-surface="gradient"], + [data-tone="brand"], + [data-tone="inverse"] + ) + :is(.ch-text, .ch-stat__label, .ch-stat__detail) { color: inherit; opacity: 0.85; }