diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index 7cc45ae..6a87c68 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -26,13 +26,20 @@ updates:
minor-and-patch:
update-types: [minor, patch]
ignore:
- # D21 — TypeScript 7's native compiler does not expose the API that
- # `astro check` needs, so `pnpm check` fails on it. Hold at 6.x.
+ # D21 (amended 2026-10-23) — TypeScript runs side by side. `typescript`
+ # is the @typescript/typescript6 wrapper: the TS 6 API that astro check,
+ # typescript-eslint and svelte2tsx load (TS 7 ships none yet). TS 7 itself
+ # is `@typescript/native` (an alias of typescript@7), whose `tsc` checks
+ # the .ts files. Majors of either are a decision, not a weekly bump.
+ # Dependabot's handling of `npm:` aliases is unproven here — ⚠ verify on
+ # the first Monday run after the switch.
- dependency-name: typescript
update-types: ['version-update:semver-major']
- # The Node typings track the Node major in .nvmrc (24 LTS), not the
- # newest Node: @types/node 26 types APIs the runtime does not have.
- # Bump both together when .nvmrc moves (docs/01 §4).
+ - dependency-name: '@typescript/native'
+ update-types: ['version-update:semver-major']
+ # The Node typings track the Node major in .nvmrc (26), not the newest
+ # Node: a newer @types/node types APIs the runtime does not have. Bump
+ # both together when .nvmrc moves (docs/01 §5 rule 4).
- dependency-name: '@types/node'
update-types: ['version-update:semver-major']
commit-message:
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 48cfb57..ba6db64 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -190,3 +190,58 @@ jobs:
--max-concurrency 4 --retry-wait-time 5 --max-retries 4 --timeout 45
--accept '200..=299,403,429'
/tmp/urls.txt
+
+ # docs/12 §2 — SonarQube Cloud, CI-based analysis (sonar-project.properties).
+ # Deliberately NOT a required check: a Sonar outage must never block a
+ # merge, and a failing quality gate still turns this job red on the PR
+ # (`sonar.qualitygate.wait`).
+ #
+ # The `if:` may only read the `github` context. A `secrets` reference there
+ # makes the WHOLE workflow invalid — and then `build` and `gates`, which are
+ # required, never appear. Runs that would lack SONAR_TOKEN are skipped
+ # instead: Dependabot (its secrets are a separate store), pull requests from
+ # forks, and the bot data PRs that quarantine.yml / vt-recheck.yml dispatch
+ # CI on (`workflow_dispatch`, or `pull_request` runs a maintainer approves).
+ sonar:
+ if: >-
+ github.event_name != 'workflow_dispatch' &&
+ github.actor != 'dependabot[bot]' &&
+ github.actor != 'github-actions[bot]' &&
+ (github.event_name != 'pull_request' ||
+ github.event.pull_request.head.repo.full_name == github.repository)
+ runs-on: ubuntu-latest
+ timeout-minutes: 20
+ steps:
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ with:
+ # Blame and the new-code period come from history: a shallow clone
+ # makes Sonar attribute old lines to the latest commit.
+ fetch-depth: 0
+ persist-credentials: false
+ - uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
+ - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
+ with:
+ node-version-file: .nvmrc
+ cache: pnpm
+ - run: pnpm install --frozen-lockfile
+
+ # The same unit run as the build job's; Sonar reads coverage/lcov.info.
+ - name: Unit tests (coverage report)
+ run: pnpm coverage
+ # "Previous version" is this project's new-code period, so each analysis
+ # carries package.json's version: new code on main is then everything
+ # since the last release instead of everything since the first scan.
+ - name: Project version
+ id: version
+ run: echo "version=$(node -p "require('./package.json').version")" >> "$GITHUB_OUTPUT"
+ # scannerVersion pins the newest SonarScanner CLI (the action's default
+ # trails it); the action verifies the download's signature.
+ - name: SonarQube Cloud scan
+ uses: SonarSource/sonarqube-scan-action@d209202bc7d53ff1cc128f7f907dac145c9d6ae9 # v8.3.0
+ env:
+ SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
+ with:
+ scannerVersion: 8.2.0.6438
+ args: >-
+ -Dsonar.projectVersion=${{ steps.version.outputs.version }}
+ -Dsonar.qualitygate.wait=true
diff --git a/.nvmrc b/.nvmrc
index a45fd52..6f4247a 100644
--- a/.nvmrc
+++ b/.nvmrc
@@ -1 +1 @@
-24
+26
diff --git a/.sonarcloud.properties b/.sonarcloud.properties
deleted file mode 100644
index 5e144cb..0000000
--- a/.sonarcloud.properties
+++ /dev/null
@@ -1,12 +0,0 @@
-# SonarCloud automatic analysis (project poli0981_softharbor).
-# https://docs.sonarsource.com/sonarqube-cloud/advanced-setup/automatic-analysis/
-#
-# Sources stay rooted at the repo so workflow files under .github/ keep being
-# analysed (the githubactions rules found unpinned actions there). Tests are
-# split out so test files are judged by test rules, and the curated dataset is
-# excluded: it is CC BY-SA content validated by Zod + validate:data, not code.
-sonar.sources=.
-sonar.tests=.
-sonar.exclusions=src/data/**,data/**,docs/**,dist/**,coverage/**,node_modules/**,**/*.test.ts,**/*.test.mjs,e2e/**
-sonar.test.inclusions=**/*.test.ts,**/*.test.mjs,e2e/**
-sonar.cpd.exclusions=src/data/**,src/i18n/**
diff --git a/CLAUDE.md b/CLAUDE.md
index e848047..ba34f4c 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -19,8 +19,9 @@ googling every tool one by one.
route disabled, PR previews only — see `docs/16`), deployed by Cloudflare
Workers Builds when `main` changes. One tiny Worker answers
`POST /api/verify` only (D25); no backend, no database.
-- Stack: Node 24 LTS · pnpm 11 · Astro 7 (static output) · Svelte 5 islands ·
- Tailwind CSS 4.3 · TypeScript strict · Wrangler 4 — full table in `docs/01`
+- Stack: Node 26 · pnpm 11 · Astro 7 (static output) · Svelte 5 islands ·
+ Tailwind CSS 4.3 · TypeScript strict (TS 7 `tsc` beside the TS 6 API that
+ `astro check` needs — D28) · Wrangler 4 — full table in `docs/01`
## Hard rules (never violate)
@@ -81,11 +82,12 @@ criteria (`docs/15`) are met.
## Commands
```bash
-pnpm install # Node 24 LTS required (see .nvmrc / engines)
+pnpm install # Node 26 required (see .nvmrc / engines)
pnpm dev # astro dev
pnpm build # astro build → dist/
pnpm preview # astro preview
pnpm lint # eslint + prettier --check
+pnpm check # astro check (TS 6) + tsc --noEmit (TS 7)
pnpm test # vitest run (unit, islands, scripts, worker)
pnpm coverage # vitest run --coverage (thresholds in vitest.config.ts)
pnpm e2e # playwright + axe against astro preview (build first)
diff --git a/README.md b/README.md
index 59fa3a7..8ca356b 100644
--- a/README.md
+++ b/README.md
@@ -37,9 +37,9 @@ Control. The [Privacy Policy](https://softharbor.net/legal/privacy) has the
details.
Astro 7 (static) · Svelte 5 islands · Tailwind CSS 4 · TypeScript strict ·
-Node 24 · pnpm 11 · Cloudflare Workers Static Assets (+ one Worker route).
+Node 26 · pnpm 11 · Cloudflare Workers Static Assets (+ one Worker route).
Tested with Vitest (unit, islands, build scripts, the Worker) and Playwright +
-axe on the built site.
+axe on the built site; analysed by CodeQL and SonarQube Cloud.
```bash
pnpm install
diff --git a/docs/00_PROJECT_OVERVIEW.md b/docs/00_PROJECT_OVERVIEW.md
index 18c231d..61de722 100644
--- a/docs/00_PROJECT_OVERVIEW.md
+++ b/docs/00_PROJECT_OVERVIEW.md
@@ -86,7 +86,7 @@ consistent over time.
| D4 | Data license | **CC BY-SA 4.0** (`src/data/**`) | 2026-07-15 | Copyleft spirit for the curated dataset; see docs/14 §1 |
| D5 | Framework | Astro 7 static + Svelte 5 islands | 2026-07-15 | Zod-validated content collections, built-in i18n routing, ~0 JS baseline |
| D6 | Styling | Tailwind CSS 4.3.x | 2026-07-15 | Current stable line |
-| D7 | Runtime | Node 24 LTS (Krypton) | 2026-07-15 | Active LTS; Node 26 not LTS until 2026-10 |
+| D7 | Runtime | Node 24 LTS (Krypton) — *amended 2026-10-23: **Node 26** (`.nvmrc` `26`, engines `>=26 <27`, `@types/node` 26), taken five days before its LTS promotion on 2026-10-28 at the owner's request; Node 24 entered maintenance on 2026-10-20* | 2026-07-15 | Active LTS; Node 26 not LTS until 2026-10 |
| D8 | Search | MiniSearch, client-side, VN-insensitive normalizer | 2026-07-15 | Lightweight; dataset ≤ ~1 000 entries |
| D9 | Fonts | Bricolage Grotesque (display) · Be Vietnam Pro (body) · IBM Plex Mono (badges) | 2026-07-15 | All ship Vietnamese subsets; distinctive, non-generic |
| D10 | Security field | `status/evidence/checkedAt` model — never boolean "virus: no" | 2026-07-15 | Legal defensibility; honesty |
@@ -99,7 +99,7 @@ consistent over time.
| D17 | Package manager | **pnpm 10** kept, though sibling org projects use npm — *amended: the line is **pnpm 11** since P1 (`packageManager: pnpm@11.15.1`); `ignore-scripts` was dropped for `allowBuilds` (docs/09 §7)* | 2026-07-27 | `reusable-web-react.yml` accepts `package-manager: pnpm`, so nothing is lost; docs/09 §7's `ignore-scripts` + `--frozen-lockfile` posture stays intact |
| D18 | CSP / inline scripts | Zero inline scripts → plain `script-src 'self'` | 2026-07-27 | ⛔ **superseded by D20 the same week** — S1 proved it unachievable: Astro's island hydration emits inline scripts on any page with a `client:*` directive |
| D20 | CSP (actual) | **Split policy.** `script-src`/`style-src` come from Astro's `security.csp` per-page `` with generated hashes; `_headers` carries **only** `frame-ancestors 'none'` — *amended 2026-10-21: the meta tag is moved first in `
`, the head scripts are hashed `/_astro/` files from `src/scripts/`, the policy adds exactly the two Cloudflare origins of D25/D26 and one style hash, and `check:csp` gates the build* | 2026-07-27 | Header CSP and meta CSP are enforced as two policies and a resource must pass both — so `_headers` must not also declare script-src or the intersection kills Astro's hashes. Theme snippet still externalised to `public/theme.js` (since v1.1: `src/scripts/theme.js`). Verified by recomputing every inline hash against the emitted policy (docs/09 §4) |
-| D21 | TypeScript major | **Hold at 6.x**; do not adopt TS 7 | 2026-07-27 | TS 7's native compiler does not expose the API `astro check` needs, so `pnpm check` fails on it (docs/01 §2) |
+| D21 | TypeScript major | **Hold at 6.x**; do not adopt TS 7 — *amended 2026-10-23: TS 6 and TS 7 side by side. `typescript` is the `@typescript/typescript6` wrapper — the TS 6 API that `astro check`, typescript-eslint and svelte2tsx load — and `@typescript/native` is TS 7, whose `tsc --noEmit` checks every `.ts` file in `pnpm check` (docs/01 §2)* | 2026-07-27 | TS 7's native compiler does not expose the API `astro check` needs, so `pnpm check` fails on it (docs/01 §2) |
| D22 | Search fuzziness | `FUZZY = 0.25`; the `gmip → GIMP` vector is retired | 2026-07-27 | Measured, not guessed: `gmip` needs 2 edits on 4 chars (fuzzy ≥ 0.375), and at that setting the *correctly spelled* query `gimp` stops being exact. Precision on correct spellings beats one contrived typo (docs/05 §A2) |
| D19 | Suite correctness | Spec claims about external systems are **verified against the real system** before they enter the docs | 2026-07-27 | The 2026-07-27 audit found two ops-repo workflows that never existed and four stale tool majors — all cheap to catch on paper, all expensive to catch in CI |
| D23 | Logo fallback | Third `logo` form `monogram` (initials) when no brand mark is available | 2026-07-29 | Simple Icons covers only part of the catalogue; docs/14 §3d sanctions no other source than the vendor's own assets (docs/15 §4) |
@@ -107,6 +107,8 @@ consistent over time.
| D25 | Server code | **One Worker, for `POST /api/verify` only** (amends hard rule 1): the legal gate's step 2 — Turnstile after acceptance, token checked server-side, rate-limited, everything fails **open**; `run_worker_first` keeps pages and assets on the unbilled asset path | 2026-10-21 | Consent-first human check on a public site without ever locking a person out (docs/09 §4a, docs/08 Part E) |
| D26 | Analytics | **Cloudflare Web Analytics, honouring Global Privacy Control** (supersedes D14; amends hard rule 7): cookieless beacon, never under GPC, production host only | 2026-10-21 | Knowing whether the site works and is used, with the least data and a privacy signal honoured (docs/09 §8) |
| D27 | Contacts | **One address per purpose at `@poli0981.dev`** — `src/lib/contacts.ts`; `contact@softharbor.net` retired; mail hosted by Google | 2026-10-21 | A message reaches the right queue; `sponsor@` deliberately unused (docs/14 Part 2) |
+| D28 | Toolchain | **Node 26 + TypeScript 6/7 side by side** (amends D7 and D21) — `.nvmrc` 26; `typescript` = the `@typescript/typescript6` API wrapper, `@typescript/native` = TS 7, whose `tsc --noEmit` now type-checks every `.ts` file in `pnpm check` | 2026-10-23 | Node 24 entered maintenance 2026-10-20; TS 7 ships no API yet, which astro check, typescript-eslint and svelte2tsx need (docs/01 §2) |
+| D29 | Code analysis | **SonarQube Cloud CI-based analysis with coverage** (`ci.yml` `sonar` job, not a required check) replaces Automatic Analysis | 2026-10-23 | Automatic Analysis cannot import coverage; a CI scan measures the same lcov the ratchet gates (docs/12 §2, docs/11 §1) |
## 6. Identifiers (locked)
diff --git a/docs/01_TECH_STACK.md b/docs/01_TECH_STACK.md
index 262057c..eecf5d1 100644
--- a/docs/01_TECH_STACK.md
+++ b/docs/01_TECH_STACK.md
@@ -20,12 +20,17 @@
> Wrangler 4.151.3 · ESLint 10.13 · `typescript-eslint` 8.72 · Prettier
> 3.9 · knip 6.42 · lefthook 2.2.2. `package.json` is the authority; this
> line is a snapshot.
+>
+> **Changed for v1.2 (2026-10-23):** Node 26.12 · `@types/node` 26.6 ·
+> TypeScript 7.0.2 (`tsc`, as `@typescript/native`) beside 6.0.3 (the API, via
+> `@typescript/typescript6` 6.0.2) · SonarScanner CLI 8.2 through
+> `sonarqube-scan-action` 8.3.
## 1. Runtime & toolchain
| Layer | Package | Line (2026-07-15) | Notes |
|---|---|---|---|
-| Runtime | Node.js | **24 LTS "Krypton"** (24.x) | Active LTS; maintenance until 2028-04. Node 26 is Current only — do not use until it reaches LTS (2026-10) and CI passes on it. Pin via `.nvmrc` = `24` and `"engines": { "node": ">=24 <25" }`; CI reads `.nvmrc` (`node-version-file`), and `@types/node` majors are held to the same line (Dependabot ignore, §5). |
+| Runtime | Node.js | **26** (26.12 at v1.2; was 24 LTS "Krypton" until 2026-10-23) | LTS from 2026-10-28, maintenance from 2027-10, end of life 2029-04. Taken five days before the LTS label at the owner's request (D7 amended) — Node 24 had entered maintenance on 2026-10-20, and CI, the e2e suite and a Workers Builds preview all passed on 26 first. Pin via `.nvmrc` = `26` and `"engines": { "node": ">=26 <27" }`; CI and Workers Builds read `.nvmrc`, and `@types/node` majors are held to the same line (Dependabot ignore, §5). **Node 25+ ships no Corepack**: a laptop whose `pnpm` came from Corepack needs `npm install -g corepack` (or a standalone pnpm) after upgrading, or `pnpm` and the lefthook hooks stop working. |
| Package manager | pnpm | **11.x** (`11.15.1`, `packageManager`) | `packageManager` field pinned; CI's `pnpm/action-setup` reads it (no `version:`), so CI, Dependabot, Workers Builds and laptops run the same pnpm. **Do not set `ignore-scripts`** — pnpm ≥ 10 already blocks dependency install scripts and wants an `allowBuilds` allowlist in `pnpm-workspace.yaml` instead (docs/09 §7). pnpm 11's default **24 h `minimumReleaseAge`** refuses day-old releases — hence Dependabot's 2-day cooldown (§5). |
| Deploy CLI | Wrangler | **4.x** (4.151 at v1.1) | Workers Builds runs `npx wrangler deploy` (main) and `wrangler versions upload` (PRs); CI runs `wrangler deploy --dry-run` to bundle `worker/` and validate `wrangler.jsonc`. Since D25 there **is** a Worker script (`worker/index.ts`), tested under Vitest in Node — the local `workerd` runtime stays blocked in `allowBuilds` (docs/09 §7). Types for the Worker are written by hand (`worker/env.ts`), not `@cloudflare/workers-types`. |
@@ -36,7 +41,7 @@
| Framework | `astro` | **7.x** (7.0.9 at P1; 7.4.1 at v1.1) | Static output. Ships Vite 8 + Rolldown (Rust bundler). Content Layer + Zod validation is the backbone of the data pipeline. `security.csp` provides the per-page meta policy (docs/09 §4); `` is **not** used — Astro does not support it with `security.csp` (docs/02 §6). |
| Islands | `svelte` + `@astrojs/svelte` | Svelte **5.x** (5.57 at v1.1) | Runes mode. Only 6 islands exist (docs/02 §5). |
| Styling | `tailwindcss` + `@tailwindcss/vite` | **4.3.x** (≥ 4.3.2) | CSS-first config via `@theme`; tokens in docs/06 §2. |
-| Language | `typescript` | **6.x — pinned, do not take 7** | `strict` + `noUncheckedIndexedAccess` (docs/10 §1). **TypeScript 7's native compiler does not expose the programmatic API `astro check` needs**, so `pnpm check` fails outright on it (reproduced in P1, 2026-07-27; upstream tracking: withastro/roadmap discussion 1321). Dependabot ignores this major until Astro says so — see §5.4. |
+| Language | `typescript` + `@typescript/native` | **6.x API + 7.x compiler, side by side** (since 2026-10-23) | `strict` + `noUncheckedIndexedAccess` (docs/10 §1). TypeScript 7's native compiler still ships no programmatic API, and `astro check` (its language server asserts `ts.findConfigFile`/`ts.sys`), typescript-eslint's project service and svelte2tsx all load one — so Microsoft's documented pair is used: `"typescript": "npm:@typescript/typescript6@^6"` (re-exports TS 6; bin `tsc6`) and `"@typescript/native": "npm:typescript@^7"` (bin `tsc`). `pnpm check` = `astro check` (TS 6, `.astro` files) **then** `tsc --noEmit` (TS 7, every `.ts` file — which nothing type-checked before: astro check reports `.astro` diagnostics only). `.svelte` script blocks are still checked by nothing. A TS 7-only setup waits on Astro (withastro/astro #18471, roadmap discussion 1321) and typescript-eslint (#10940). Dependabot ignores both majors (§5.4). |
| State | `nanostores` **only** | 1.x | Cross-island filter/search state (~1 KB). **There is no `@nanostores/svelte` package** — it returns 404 on the registry (verified in P1, 2026-07-27). None is needed: a nanostores atom already satisfies Svelte's store contract (`.subscribe(cb)` fires immediately and returns an unsubscribe), so `$atom` auto-subscription works directly. Bindings exist for React/Vue/Solid/Preact/Lit/Angular precisely because those frameworks lack that contract. |
| Search | `minisearch` | **7.x** | Client-side index; options in docs/05 §A2. Loaded with a dynamic `import()` on first search, so it is not in any page's static bundle. |
| Icons | `unplugin-icons` + `@iconify-json/simple-icons` + `@iconify-json/lucide` | latest | Simple Icons = app logos (SVG, CC0 set — trademark caveat in docs/14 §3d); Lucide = UI icons. In islands: `~icons/lucide/` via `unplugin-icons` (`compiler: 'svelte'`). In `.astro`: `ShIcon.astro` / `src/lib/icon.ts`, which read the same vendored JSON at build time (data-driven names cannot be static imports). Nothing fetched at runtime. |
@@ -58,7 +63,7 @@
| Git hooks | `lefthook` | **2.x** |
| Link checking (CI) | `lychee` via `lycheeverse/lychee-action` | v2 line (v2.9.0) |
| Dep updates | **Dependabot** (`.github/dependabot.yml`) | npm + github-actions, weekly — docs/12 §6 (replaced the never-installed Renovate) |
-| CVE / code scanning | `osv-scanner` action + `pnpm audit --prod`; CodeQL (org reusable workflow); SonarCloud automatic analysis | latest |
+| CVE / code scanning | `osv-scanner` action + `pnpm audit --prod`; CodeQL (org reusable workflow); SonarQube Cloud **CI-based** analysis with coverage (`ci.yml` `sonar` job, `sonarqube-scan-action` 8.3, CLI 8.2 — docs/12 §2) | latest |
## 4. Rationale for the contested picks
@@ -99,11 +104,13 @@ unbilled asset path and no SSR exists.
release of the direct dependency is fixed with an `overrides` floor in
`pnpm-workspace.yaml`, the advisory ids in a comment (docs/09 §7), or a
tracking issue.
-4. Node upgrades follow LTS promotions only (next window: Node 26 → LTS
- 2026-10; adopt after CI passes on it), and `@types/node` moves with
- `.nvmrc` — Dependabot ignores its majors until then. **TypeScript is
- exempt from rule 1 until Astro supports TS 7** (§2) — hold at 6.x;
- Dependabot ignores TypeScript majors (D21).
+4. Node upgrades follow LTS lines, adopted once CI, the e2e suite and a
+ Workers Builds preview pass on them; `@types/node` moves with `.nvmrc` and
+ Dependabot ignores its majors in between. (Node 26 was taken on
+ 2026-10-23, five days before its LTS promotion — the owner's call, D7.)
+ **TypeScript is exempt from rule 1 while Astro needs the TS 6 API** (§2):
+ `typescript` stays the TS 6 wrapper and `@typescript/native` is TS 7;
+ Dependabot ignores both majors (D21).
5. Every dependency bump that touches Astro/Vite/Tailwind majors must re-run
spike S1 (docs/11 §3) before merge — in practice, the full CI including
the e2e suite on the built site.
diff --git a/docs/02_ARCHITECTURE.md b/docs/02_ARCHITECTURE.md
index 74b1c0c..94ad151 100644
--- a/docs/02_ARCHITECTURE.md
+++ b/docs/02_ARCHITECTURE.md
@@ -64,7 +64,8 @@ softharbor/
├── eslint.config.js / prettier.config.mjs / .prettierignore
├── knip.json / lefthook.yml # docs/10 §4
├── .dev.vars.example # Turnstile TEST secret for `wrangler dev`
-├── .sonarcloud.properties / .gitattributes / .gitignore
+├── sonar-project.properties # SonarQube Cloud CI analysis (docs/12 §2)
+├── .gitattributes / .gitignore
├── .github/
│ ├── CODEOWNERS # * @poli0981 + .github/ scripts/ src/data/ worker/ (T6)
│ ├── dependabot.yml # npm + github-actions, weekly (docs/12 §6)
diff --git a/docs/08_PLATFORM_CLOUDFLARE.md b/docs/08_PLATFORM_CLOUDFLARE.md
index 0dcb93b..7972271 100644
--- a/docs/08_PLATFORM_CLOUDFLARE.md
+++ b/docs/08_PLATFORM_CLOUDFLARE.md
@@ -80,8 +80,11 @@ serves (`workers_dev: false`). Full domain checklist: docs/16 §10.
3. never "help" with a manual `wrangler deploy` while builds are queued
(A3).
- The **build environment is Cloudflare's**: it must match `.nvmrc`
- (Node 24) and `packageManager` (pnpm 11), or production can differ from
- what CI validated — re-check after any toolchain bump (docs/13 §2).
+ (Node 26 since 2026-10-23; the image preinstalls only 22 and 24, so 26 is
+ downloaded per build) and `packageManager` (pnpm 11), or production can
+ differ from what CI validated — re-check after any toolchain bump
+ (docs/13 §2). Node 25+ ships no Corepack; should a build ever fail to find
+ pnpm, the Workers Builds variable `PNPM_VERSION=11.15.1` is the fix.
- Rollback: dashboard → the Worker → **Deployments** → promote a previous
version, or `wrangler rollback`.
diff --git a/docs/09_SECURITY_PRIVACY.md b/docs/09_SECURITY_PRIVACY.md
index e847a25..69f0ef1 100644
--- a/docs/09_SECURITY_PRIVACY.md
+++ b/docs/09_SECURITY_PRIVACY.md
@@ -358,8 +358,9 @@ does not read issue labels.
Dependabot security updates are enabled in the repository settings.
`osv-scanner` + `pnpm audit --prod` gate every PR and push to `main`
(`ci.yml` `gates` job — docs/01 §5, docs/12 §2). CodeQL runs on PRs,
- pushes and weekly; SonarCloud's automatic analysis covers workflows and
- scripts (`.sonarcloud.properties`).
+ pushes and weekly; SonarQube Cloud's CI-based analysis (`ci.yml` `sonar`
+ job, `sonar-project.properties`) covers workflows, scripts and the site
+ code, with coverage, on every PR and push to `main`.
- All GitHub Actions in this repository's workflows pinned to **commit
SHAs** with a version comment (Dependabot bumps both); the org's own
reusable workflows (`poli0981/.github`) are tracked at `@main` on purpose.
diff --git a/docs/11_TESTING.md b/docs/11_TESTING.md
index 0faa9ee..756b08a 100644
--- a/docs/11_TESTING.md
+++ b/docs/11_TESTING.md
@@ -27,19 +27,26 @@ resolve and compile exactly like the build):
| Project | Environment | Includes | Asserts |
|---|---|---|---|
-| `unit` | node | `src/{lib,i18n,styles}/**/*.test.ts` | pure logic, plus `contrast.test.ts` reading `global.css` (docs/06 §2) |
+| `unit` | node (a file may opt into happy-dom) | `src/{lib,i18n,styles,scripts}/**/*.test.ts`, `src/pages/**/_*.test.ts`, `src/*.test.ts` | pure logic, plus `contrast.test.ts` reading `global.css` (docs/06 §2); the Zod schema (`content.config.test.ts`) and the three data endpoints (`src/pages/_endpoints.test.ts` — the `_` keeps it out of routing) with `astro:content` stubbed; the verbatim head scripts re-imported per test in happy-dom (`src/scripts/head.test.ts`) |
| `islands` | happy-dom, `resolve.conditions: ['browser']` (else Svelte resolves to its SSR build and `mount()` throws) | `src/components/**/*.test.ts` | island *state machines* — open/close, keyboard interception, storage, fail-open paths — never layout or the top layer (that is e2e) |
| `scripts` | node | `scripts/**/*.test.ts` | the **real** build scripts, run as child processes inside throwaway project trees (`scripts/fixture.ts`), exit code and all |
| `worker` | node | `worker/**/*.test.ts` | `/api/verify` against a stubbed Siteverify — Node has every Web API it uses |
-**Coverage** (`pnpm coverage`, V8): scoped to code that ships —
-`src/lib/**`, `src/i18n/**`, the island `.svelte` files and `worker/**`.
-The build scripts run as child processes, which V8 coverage cannot see, so
-their tests' assertions are the measure. Thresholds are a **ratchet**:
-statements 93 · branches 78 · functions 90 · lines 93, just under the
-measured ≈ 94.6 / 81.9 / 92.1 / 95.6 (2026-10-21). Raise them when coverage
+**Coverage** (`pnpm coverage`, V8) measures every analysed source since
+2026-10-23: `src/lib/**`, `src/i18n/**`, `src/scripts/*.js`, the endpoints
+in `src/pages/**/*.ts`, `src/content.config.ts`, the island `.svelte` files,
+`worker/**` **and the build scripts** — they run as child processes, and
+`coverage.autoAttachSubprocess` (Vitest 5) hands each child
+`NODE_V8_COVERAGE`, so their real runs count. Never also import a script
+in-process: Vitest merges the two kinds of coverage for one file wrongly.
+Thresholds are a **ratchet**: statements 96 · branches 85 · functions 95 ·
+lines 97, just under the measured 96.7 / 85.6 / 95.5 / 97.6 (2026-10-23;
+they were 93/78/90/93 over the narrower scope). Raise them when coverage
rises; never lower them to land a change. CI runs `pnpm coverage` as *the*
-unit step, so a drop fails the PR.
+unit step, so a drop fails the PR, and the `sonar` job sends the same
+`coverage/lcov.info` to SonarQube Cloud (docs/12 §2), which indexes no
+`.svelte`/`.astro` file — the islands' entries are reported unresolved — and
+excludes only the root `*.config.*` files.
## 2. Unit targets (`vitest`)
@@ -70,9 +77,8 @@ spelled `gimp` from being an exact match (table in docs/05 §A2). It was
also pins the *precision* side — `gimp` → only GIMP, `archiver` → only 7-Zip
— so a future fuzzy miss cannot be "fixed" by raising the constant.
-Coverage gates: the global ratchet in §1 (statements 93 · branches 78 ·
-functions 90 · lines 93) over `src/lib`, `src/i18n`, the islands and
-`worker/`. `.astro` files carry no coverage gate — their rendered output is
+Coverage gates: the global ratchet in §1 (statements 96 · branches 85 ·
+functions 95 · lines 97) over everything listed there. `.astro` files carry no coverage gate — their rendered output is
checked by the build gates and the e2e suite.
## 3. P0 spikes — run before feature work (phase P1)
@@ -100,7 +106,8 @@ changed the spec:
2. Island hydration emits inline scripts ⇒ D18 unachievable, replaced by the
split CSP of D20 (docs/09 §4). ClientRouter itself is external, so View
Transitions are safe.
-3. TypeScript 7 breaks `astro check` ⇒ hold at 6.x (D21).
+3. TypeScript 7 breaks `astro check` ⇒ hold at 6.x (D21; since 2026-10-23
+ TS 6 and TS 7 run side by side — docs/01 §2).
4. `ignore-scripts=true` does **not** "break nothing" — it stops the build
outright, and pnpm ≥ 10 supersedes it anyway (docs/09 §7).
diff --git a/docs/12_CI_CD.md b/docs/12_CI_CD.md
index acea765..847dccf 100644
--- a/docs/12_CI_CD.md
+++ b/docs/12_CI_CD.md
@@ -39,13 +39,16 @@ Consequences worth knowing:
a `main` commit only once its build starts. Hence the release step: wait
for that check to go green, *then* verify production (§3, docs/13 §3).
- The **build environment is Cloudflare's**, not a GitHub runner. It must
- match `.nvmrc` (Node 24) and `packageManager` (pnpm 11), or the deployed
+ match `.nvmrc` (Node 26 since 2026-10-23 — downloaded per build, the image
+ preinstalls 22 and 24) and `packageManager` (pnpm 11), or the deployed
output can differ from what CI validated. CI runs the same `pnpm build`
composite, so the gates are identical; verify after any toolchain bump
- (docs/13 §2).
+ (docs/13 §2). Node 25+ ships no Corepack — if a build ever cannot find
+ pnpm, set the Workers Builds variable `PNPM_VERSION=11.15.1`.
- `CLOUDFLARE_API_TOKEN` / `CLOUDFLARE_ACCOUNT_ID` repo secrets (action item
- H3) are **no longer used by any workflow**. They can be deleted, and should
- be if nothing else claims them — an unused deploy credential is pure risk.
+ H3) were **deleted** — not present on 2026-10-23, when the repository's
+ Actions secrets were `DISCORD_RELEASES_WEBHOOK`, `SONAR_TOKEN` and
+ `VT_API_KEY`. No workflow deploys.
- A local `pnpm deploy` (build + `wrangler deploy`) still works for the
maintainer, but it bypasses `ci` — and **must never run while Workers
Builds builds are queued**: a queued older build would land after it and
@@ -87,12 +90,15 @@ deliberately: first-party org workflows (`poli0981/.github`) are tracked at
`@main` so org-wide fixes land everywhere at once, and how *they* pin their
internal actions is the ops repo's call — do not file it as a defect here.
-Pinned as of 2026-10-21: `actions/checkout` v7.0.1 · `pnpm/action-setup`
+Pinned as of 2026-10-23: `actions/checkout` v7.0.1 · `pnpm/action-setup`
v6.1.0 (no `version:` — it reads `packageManager`) · `actions/setup-node`
v7.1.0 (`node-version-file: .nvmrc`) · `actions/cache` v6.1.0 ·
`actions/upload-artifact` v7.0.2 · `google/osv-scanner-action` v2.7.0 ·
`lycheeverse/lychee-action` v2.9.0 · `peter-evans/create-pull-request`
-v8.1.1.
+v8.1.1 · `SonarSource/sonarqube-scan-action` v8.3.0 (with
+`scannerVersion: 8.2.0.6438`, the newest CLI — Dependabot bumps the action,
+not that input; the deprecated `sonarcloud-github-action` must not come
+back).
## 2. Callers to `poli0981/.github` reusable workflows
@@ -104,7 +110,7 @@ v8.1.1.
> would have failed on the first CI run. Re-check the listing before adding
> any new caller.
-`.github/workflows/ci.yml` — **self-contained, two jobs (`build`, `gates`).**
+`.github/workflows/ci.yml` — **self-contained, three jobs (`build`, `gates`, `sonar`).**
It is deliberately NOT a caller. An earlier version delegated to
`reusable-web-react.yml` and every run ended in `startup_failure`, for two
@@ -143,6 +149,26 @@ cancels superseded runs except on `main`. Jobs:
- **`gates`** (15 min cap) — `validate:data`, `i18n:check`, `osv-scanner`
(lockfile mode), `pnpm audit --prod`, and on PRs the changed-files lychee
sweep (§5).
+- **`sonar`** (20 min cap, **not** a required check — a SonarQube Cloud outage
+ must never block a merge) — CI-based analysis since 2026-10-23, replacing
+ Automatic Analysis (which cannot import coverage, and which must stay off:
+ a CI scan fails while it is on). Full-history checkout (blame and the
+ new-code period need it) → install → `pnpm coverage` →
+ `SonarSource/sonarqube-scan-action` with `scannerVersion` pinned to the
+ newest SonarScanner CLI, `-Dsonar.projectVersion=`
+ (the project's new-code period is "previous version", so new code on
+ `main` is everything since the last release) and
+ `-Dsonar.qualitygate.wait=true`, so a failed **Sonar way** gate turns the
+ job red. Scope lives in `sonar-project.properties` (organization
+ `poli0981`, project `poli0981_softharbor`): sources rooted at the repo so
+ `.github/` workflows are analysed, the dataset/docs/build output excluded,
+ tests (and `scripts/fixture.ts`) judged by test rules, coverage from
+ `coverage/lcov.info` with only the root `*.config.*` files excluded
+ (docs/11 §1). The job's `if:` reads **only** the `github` context — a
+ `secrets` reference there invalidates the whole workflow, and the
+ required `build`/`gates` would never appear — and skips runs that lack
+ `SONAR_TOKEN`: Dependabot (separate secret store), fork PRs, and the bot
+ data PRs (`workflow_dispatch`, or `github-actions[bot]`).
Two action references that do not work the obvious way: the OSV scanner lives
in a **subdirectory** of its repo and publishes **no rolling major tag**, so it
@@ -397,7 +423,7 @@ transitive packages. One bot, configured here, instead of two.
| Ecosystem | Schedule | Policy |
|---|---|---|
-| `npm` | weekly, Monday 05:00 Asia/Ho_Chi_Minh | **2-day cooldown**; `minor` + `patch` grouped (`minor-and-patch`); up to 10 open PRs; `versioning-strategy: increase`; **ignores TypeScript majors** (D21 — TS 7 breaks `astro check`) and **`@types/node` majors** (the typings track the Node major in `.nvmrc`, docs/01 §4); commit prefixes `fix(deps)` / `chore(deps)` (dev) |
+| `npm` | weekly, Monday 05:00 Asia/Ho_Chi_Minh | **2-day cooldown**; `minor` + `patch` grouped (`minor-and-patch`); up to 10 open PRs; `versioning-strategy: increase`; **ignores the majors of `typescript` and `@typescript/native`** (D21 as amended — the TS 6 API wrapper and TS 7 run side by side; how Dependabot treats `npm:` aliases is ⚠ unverified) and **`@types/node` majors** (the typings track the Node major in `.nvmrc`, docs/01 §5 rule 4); commit prefixes `fix(deps)` / `chore(deps)` (dev) |
| `github-actions` | same | 2-day cooldown; all actions in one group; bumps the pinned SHA and its `# vX.Y.Z` comment together; prefix `ci` |
**Why the cooldown:** pnpm 11 refuses any release younger than its default
@@ -408,9 +434,10 @@ policy — a PR opened on release day failed before a single test ran (#14,
Plus `osv-scanner` (`google/osv-scanner-action`, lockfile mode) and
`pnpm audit --prod`, both steps of `ci.yml`'s **`gates` job** (§2), on every
PR and push to `main`; a finding fails the job (policy docs/01 §5).
-CodeQL (§2) and SonarCloud's automatic analysis (`.sonarcloud.properties` —
-sources rooted at the repo so `.github/` workflows are analysed too; the
-dataset, docs and build output excluded) complete the scanning.
+CodeQL (§2) and SonarQube Cloud's CI-based analysis (`ci.yml` `sonar` job,
+`sonar-project.properties` — sources rooted at the repo so `.github/`
+workflows are analysed too; the dataset, docs and build output excluded;
+coverage imported) complete the scanning.
## 7. Issue forms
diff --git a/docs/15_ROADMAP.md b/docs/15_ROADMAP.md
index 7ecea7a..b8c253d 100644
--- a/docs/15_ROADMAP.md
+++ b/docs/15_ROADMAP.md
@@ -114,10 +114,12 @@ them (item 9 especially), so new work is appended, never renumbered.
the Worker files a GitHub issue with a fine-grained token (runtime
secret), rate-limited like D25. A second Worker route, so it needs its
own decision-log entry under hard rule 1.
-16. **Platform upkeep** — Node 26 LTS (from 2026-10-28) together with
- `.nvmrc`, `engines` and the `@types/node` major Dependabot holds back;
- TypeScript 7 once `astro check` supports it (D21); an OpenSearch
- description; a versioned `/api/v1` with a published JSON Schema.
+16. **Platform upkeep** — ~~Node 26 together with `.nvmrc`, `engines` and
+ the `@types/node` major~~ **done 2026-10-23 (D28)**; TypeScript 7
+ **partly done** — it type-checks every `.ts` file beside the TS 6 API
+ that `astro check` still needs (D28; a TS 7-only setup waits on Astro
+ #18471 and typescript-eslint #10940); still open: an OpenSearch
+ description, a versioned `/api/v1` with a published JSON Schema.
## 3. Explicitly rejected (for the record)
@@ -265,6 +267,8 @@ rule 8) · ads/affiliate links (conflicts with the trust proposition).
| 2026-10-21 | **Recorded late: v1.0.0 tagged and released on 2026-07-30** — 326 apps, 320 `clean`, 6 `unverified`. Supersedes the 2026-07-28 "v1.0.0 NOT tagged" row | ✅ |
| 2026-10-21 | **v1.1.0 tagged and released** after #23–#25 (merge 2c40baf: `Workers Builds: softharbor`, `build`, `gates`, `codeql` green; production checked — `/contact`, the v1.1 CSP meta, single immutable `Cache-Control`, `/api/verify` answering from the Worker with the runtime secret set) | ✅ |
| 2026-10-21 | **Suite v2.0** (site v1.1) — a MAJOR bump by §6's rule, because D25/D26 amend hard rules 1 and 7: docs/00–16 brought in line with the code — D25–D27, the rows above, superseded statuses marked; claims that could not be checked from the repository or a live probe are marked "⚠ verify" | ✅ |
+| 2026-10-23 | **D28 — Node 26, and TypeScript 6 and 7 side by side** (amends D7, D21). `.nvmrc` `26`, engines `>=26 <27`, `@types/node` 26 — five days before Node 26's LTS promotion (2026-10-28), at the owner's request; Node 24 had entered maintenance on 2026-10-20. TypeScript follows Microsoft's documented pair: `typescript` → `npm:@typescript/typescript6` (re-exports TS 6.0.3: the API `astro check`'s language server asserts, typescript-eslint's project service and svelte2tsx load) and `@typescript/native` → `npm:typescript@7` (bin `tsc`). `pnpm check` is now `astro check && tsc --noEmit` — and that second half is the first type-check `.ts` files ever had: astro check reports `.astro` diagnostics only. Node 25+ ships no Corepack, so laptops reinstall it (`npm i -g corepack`) and Workers Builds downloads Node 26 per build (`PNPM_VERSION` is the fallback) | ✅ (owner, 2026-10-23) |
+| 2026-10-23 | **D29 — SonarQube Cloud: CI-based analysis with coverage**, replacing Automatic Analysis (which cannot import coverage and must stay off). `ci.yml` job `sonar`, not a required check; `sonar-project.properties` replaces `.sonarcloud.properties`; `sonarqube-scan-action` 8.3 with the newest CLI (8.2); `sonar.projectVersion` from `package.json` so the "previous version" new-code period finally has a baseline (every analysis until now was "not provided"). Coverage now measures what Sonar analyses instead of excluding it: the build scripts through Vitest 5's `autoAttachSubprocess` (their child-process runs count), the head scripts, the endpoints and the schema through new tests — ratchet 93/78/90/93 → **96/85/95/97**. The schema tests caught a real bug: an impossible or malformed date made `toISOString()` throw, crashing `astro build` with a bare RangeError instead of naming the field | ✅ |
## 5. Open questions for Kokone
@@ -293,8 +297,8 @@ Status as of 2026-10-21: v1.0.0 shipped on 2026-07-30 and v1.1.0 on
5. **Speed Brain off** (H12) — production still sent `Speculation-Rules:
"/cdn-cgi/speculation"` on 2026-10-21, and Cloudflare answers prefetch
on Worker requests with a 503 (docs/16 §9).
-6. **Delete `CLOUDFLARE_API_TOKEN` / `CLOUDFLARE_ACCOUNT_ID`** — unused since
- deployment moved to Workers Builds (docs/12 §1). ⚠ verify whether done.
+6. ~~**Delete `CLOUDFLARE_API_TOKEN` / `CLOUDFLARE_ACCOUNT_ID`**~~ — done:
+ neither secret exists on 2026-10-23 (docs/12 §1).
7. **GSC Domain property + sitemap + Bing import + Crawler Hints** (docs/16
§8, H8) — the `google-site-verification` TXT is published (observed
2026-10-21); the rest ⚠ verify.
diff --git a/package.json b/package.json
index 12d2e10..f1c571a 100644
--- a/package.json
+++ b/package.json
@@ -8,13 +8,13 @@
"author": "poli0981 / SkullMute",
"packageManager": "pnpm@11.15.1",
"engines": {
- "node": ">=24 <25"
+ "node": ">=26 <27"
},
"//": "Dependency build-script policy lives in pnpm-workspace.yaml (allowBuilds) — pnpm 11 ignores a \"pnpm\" field here.",
"scripts": {
"build": "pnpm run validate:data && pnpm run i18n:check && astro build && pnpm run postbuild:html && pnpm run check:csp && pnpm run check:assets && pnpm run check:sw && pnpm run check:feed",
"build:site": "astro build",
- "check": "astro check",
+ "check": "astro check && tsc --noEmit",
"check:assets": "node scripts/check-assets.mjs",
"check:csp": "node scripts/check-csp.mjs",
"check:feed": "node scripts/check-feed.mjs",
@@ -58,7 +58,8 @@
"@axe-core/playwright": "^4.14.0",
"@eslint/js": "^10.0.1",
"@playwright/test": "^1.64.1",
- "@types/node": "^24.19.2",
+ "@types/node": "^26.6.5",
+ "@typescript/native": "npm:typescript@^7.0.2",
"@vitest/coverage-v8": "5.0.5",
"eslint": "^10.13.0",
"eslint-plugin-astro": "^3.2.1",
@@ -73,7 +74,7 @@
"prettier-plugin-tailwindcss": "^0.8.1",
"sharp": "^0.35.5",
"svelte-eslint-parser": "^1.9.0",
- "typescript": "^6.0.3",
+ "typescript": "npm:@typescript/typescript6@^6.0.2",
"typescript-eslint": "^8.72.0",
"vitest": "^5.0.5",
"wrangler": "^4.151.3"
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index f53dee5..88847a2 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -20,7 +20,7 @@ importers:
version: 3.7.4
'@astrojs/svelte':
specifier: ^9.1.0
- version: 9.1.0(@types/node@24.19.2)(astro@7.4.1(@types/node@24.19.2)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1))(esbuild@0.28.2)(jiti@2.7.0)(svelte@5.57.2(@typescript-eslint/types@8.72.0))(terser@5.49.0)(typescript@6.0.3)(yaml@2.9.1)
+ version: 9.1.0(@types/node@26.6.5)(@typescript/typescript6@6.0.2)(astro@7.4.1(@types/node@26.6.5)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1))(esbuild@0.28.2)(jiti@2.7.0)(svelte@5.57.2(@typescript-eslint/types@8.72.0))(terser@5.49.0)(yaml@2.9.1)
'@fontsource-variable/bricolage-grotesque':
specifier: ^5.3.0
version: 5.3.0
@@ -38,13 +38,13 @@ importers:
version: 1.2.100
'@tailwindcss/vite':
specifier: ^4.3.3
- version: 4.3.3(vite@8.3.4(@types/node@24.19.2)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1))
+ version: 4.3.3(vite@8.3.4(@types/node@26.6.5)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1))
'@vite-pwa/astro':
specifier: ^1.2.0
- version: 1.2.0(astro@7.4.1(@types/node@24.19.2)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1))(vite-plugin-pwa@1.3.0(supports-color@10.2.2)(vite@8.3.4(@types/node@24.19.2)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1))(workbox-build@7.4.1(supports-color@10.2.2))(workbox-window@7.4.1))
+ version: 1.2.0(astro@7.4.1(@types/node@26.6.5)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1))(vite-plugin-pwa@1.3.0(supports-color@10.2.2)(vite@8.3.4(@types/node@26.6.5)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1))(workbox-build@7.4.1(supports-color@10.2.2))(workbox-window@7.4.1))
astro:
specifier: ^7.4.1
- version: 7.4.1(@types/node@24.19.2)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1)
+ version: 7.4.1(@types/node@26.6.5)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1)
minisearch:
specifier: ^7.2.0
version: 7.2.0
@@ -59,11 +59,11 @@ importers:
version: 4.3.3
unplugin-icons:
specifier: ^24.0.0
- version: 24.0.0(esbuild@0.28.2)(rolldown@1.2.14)(rollup@4.62.2)(svelte@5.57.2(@typescript-eslint/types@8.72.0))(vite@8.3.4(@types/node@24.19.2)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1))
+ version: 24.0.0(esbuild@0.28.2)(rolldown@1.2.14)(rollup@4.62.2)(svelte@5.57.2(@typescript-eslint/types@8.72.0))(vite@8.3.4(@types/node@26.6.5)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1))
devDependencies:
'@astrojs/check':
specifier: ^0.9.11
- version: 0.9.11(@emnapi/runtime@1.11.3)(prettier-plugin-astro@1.1.1(@emnapi/core@1.11.3)(@emnapi/runtime@1.11.3)(prettier@3.9.10))(prettier@3.9.10)(typescript@6.0.3)
+ version: 0.9.11(@emnapi/runtime@1.11.3)(@typescript/typescript6@6.0.2)(prettier-plugin-astro@1.1.1(@emnapi/core@1.11.3)(@emnapi/runtime@1.11.3)(prettier@3.9.10))(prettier@3.9.10)
'@axe-core/playwright':
specifier: ^4.14.0
version: 4.14.0(playwright-core@1.64.1)
@@ -74,8 +74,11 @@ importers:
specifier: ^1.64.1
version: 1.64.1
'@types/node':
- specifier: ^24.19.2
- version: 24.19.2
+ specifier: ^26.6.5
+ version: 26.6.5
+ '@typescript/native':
+ specifier: npm:typescript@^7.0.2
+ version: typescript@7.0.2
'@vitest/coverage-v8':
specifier: 5.0.5
version: 5.0.5(vitest@5.0.5)
@@ -84,7 +87,7 @@ importers:
version: 10.13.0(jiti@2.7.0)(supports-color@10.2.2)
eslint-plugin-astro:
specifier: ^3.2.1
- version: 3.2.1(@typescript-eslint/parser@8.72.0(eslint@10.13.0(jiti@2.7.0)(supports-color@10.2.2))(supports-color@10.2.2)(typescript@6.0.3))(eslint@10.13.0(jiti@2.7.0)(supports-color@10.2.2))(supports-color@10.2.2)(typescript-eslint@8.72.0(eslint@10.13.0(jiti@2.7.0)(supports-color@10.2.2))(supports-color@10.2.2)(typescript@6.0.3))
+ version: 3.2.1(@typescript-eslint/parser@8.72.0(@typescript/typescript6@6.0.2)(eslint@10.13.0(jiti@2.7.0)(supports-color@10.2.2))(supports-color@10.2.2))(eslint@10.13.0(jiti@2.7.0)(supports-color@10.2.2))(supports-color@10.2.2)(typescript-eslint@8.72.0(@typescript/typescript6@6.0.2)(eslint@10.13.0(jiti@2.7.0)(supports-color@10.2.2))(supports-color@10.2.2))
eslint-plugin-svelte:
specifier: ^3.23.1
version: 3.23.1(eslint@10.13.0(jiti@2.7.0)(supports-color@10.2.2))(svelte@5.57.2(@typescript-eslint/types@8.72.0))
@@ -114,22 +117,22 @@ importers:
version: 0.8.1(prettier-plugin-astro@1.1.1(@emnapi/core@1.11.3)(@emnapi/runtime@1.11.3)(prettier@3.9.10))(prettier-plugin-svelte@4.1.1(prettier@3.9.10)(svelte@5.57.2(@typescript-eslint/types@8.72.0)))(prettier@3.9.10)
sharp:
specifier: ^0.35.5
- version: 0.35.5(@types/node@24.19.2)
+ version: 0.35.5(@types/node@26.6.5)
svelte-eslint-parser:
specifier: ^1.9.0
version: 1.9.0(svelte@5.57.2(@typescript-eslint/types@8.72.0))
typescript:
- specifier: ^6.0.3
- version: 6.0.3
+ specifier: npm:@typescript/typescript6@^6.0.2
+ version: '@typescript/typescript6@6.0.2'
typescript-eslint:
specifier: ^8.72.0
- version: 8.72.0(eslint@10.13.0(jiti@2.7.0)(supports-color@10.2.2))(supports-color@10.2.2)(typescript@6.0.3)
+ version: 8.72.0(@typescript/typescript6@6.0.2)(eslint@10.13.0(jiti@2.7.0)(supports-color@10.2.2))(supports-color@10.2.2)
vitest:
specifier: ^5.0.5
- version: 5.0.5(@types/node@24.19.2)(@vitest/coverage-v8@5.0.5)(happy-dom@21.0.3)(vite@8.3.4(@types/node@24.19.2)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1))
+ version: 5.0.5(@types/node@26.6.5)(@vitest/coverage-v8@5.0.5)(happy-dom@21.0.3)(vite@8.3.4(@types/node@26.6.5)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1))
wrangler:
specifier: ^4.151.3
- version: 4.151.3(@types/node@24.19.2)
+ version: 4.151.3(@types/node@26.6.5)
packages:
@@ -2179,6 +2182,9 @@ packages:
'@types/node@24.19.2':
resolution: {integrity: sha512-93d49wCWJkCyN87MxLpNN6KXPCwFw7bVUg79mGUV1OS40JGWwVCr8n61DXCSqz7CV6/VfPkb7xec7uP2M+QHWQ==}
+ '@types/node@26.6.5':
+ resolution: {integrity: sha512-uMzsv9stDdofIZBx4UGh4Z9ZgXnGC9seRDscilBcTHAeOFk67MZg/k9bWVfO+bk4qZmG+l52hRnLwUiH2LnJTg==}
+
'@types/resolve@1.20.2':
resolution: {integrity: sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==}
@@ -2256,6 +2262,130 @@ packages:
resolution: {integrity: sha512-E2mroviasaWecDzTGiGMtuEguuLVOeRggnrIn93CJuxYJzQBHbyymlT08aVQydbBal5538o+JkBKXh2sRuCyIA==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+ '@typescript/typescript-aix-ppc64@7.0.2':
+ resolution: {integrity: sha512-MTKKkWB7p/0E9xi1d1tHtZ5PiLkGEMIq88pK2CubZjOsLtYTLqhgIgi6zepFa+9GHZ6h05NMCkQxGKiPXMxXtQ==}
+ engines: {node: '>=16.20.0'}
+ cpu: [ppc64]
+ os: [aix]
+
+ '@typescript/typescript-darwin-arm64@7.0.2':
+ resolution: {integrity: sha512-gowzar9MwS/aRWp6f3a4KUqzRjAZjOsmGNCM6LcTgXum+dBfgsBVMN+AgvOCCbguXyick6LJhpBszxMebJ8syA==}
+ engines: {node: '>=16.20.0'}
+ cpu: [arm64]
+ os: [darwin]
+
+ '@typescript/typescript-darwin-x64@7.0.2':
+ resolution: {integrity: sha512-SZ9xZInqApNlNGc9s0W1VSsktYSOe9cFqNOIqmN1Gs8SmkjKZYFt017G4VwPxASInODuAdbTW7sXiFUf893RgA==}
+ engines: {node: '>=16.20.0'}
+ cpu: [x64]
+ os: [darwin]
+
+ '@typescript/typescript-freebsd-arm64@7.0.2':
+ resolution: {integrity: sha512-W5NH4y/J0plIIS5b2xvTEkU7JFxyqdMAOgf+Ilhl0vHQXKO5dZoxd+C/jEtq56c4F3wk71RB4BMRQ2XdI+bwYQ==}
+ engines: {node: '>=16.20.0'}
+ cpu: [arm64]
+ os: [freebsd]
+
+ '@typescript/typescript-freebsd-x64@7.0.2':
+ resolution: {integrity: sha512-UMGDx5sTpzNw3WiPebH7l90IWfJggEd+egHt/q6p7/Cm3zqoV7VxkGXt+3DxPIw8CcmvAB0j3sVVfbhX+M4Tpw==}
+ engines: {node: '>=16.20.0'}
+ cpu: [x64]
+ os: [freebsd]
+
+ '@typescript/typescript-linux-arm64@7.0.2':
+ resolution: {integrity: sha512-Qh4eU4/y3yDjnfjjyPYihMj5/ODIlmt+Bzu17OI+fiSRDW57QmU5SiN63exPRNJPKUzcc1INa1NXdrJ+MqHjUQ==}
+ engines: {node: '>=16.20.0'}
+ cpu: [arm64]
+ os: [linux]
+
+ '@typescript/typescript-linux-arm@7.0.2':
+ resolution: {integrity: sha512-gffT3xPz9sR7j/YJExkyPntrI0P2EP9XbOyWzth2/Gs0RstK+90RBcO0ncXoXy/beYll1SXw846Nf2zdnEz0QQ==}
+ engines: {node: '>=16.20.0'}
+ cpu: [arm]
+ os: [linux]
+
+ '@typescript/typescript-linux-loong64@7.0.2':
+ resolution: {integrity: sha512-uEHck9i8hoAzXPiYRib1O7miOnz23SxIeVl6F4LXox+qov1K35jHcEW6VHKvZI+pyvl7fZEP4MCU5LYvIq1GuQ==}
+ engines: {node: '>=16.20.0'}
+ cpu: [loong64]
+ os: [linux]
+
+ '@typescript/typescript-linux-mips64el@7.0.2':
+ resolution: {integrity: sha512-R4KvAMnE43W5Qeqb0Ly56O3mWMWIAgsMyz36DCaycd5nbg/9kzm0liw3JocfRqyJY0KPmzFjbswozXyW0DnIYA==}
+ engines: {node: '>=16.20.0'}
+ cpu: [mips64el]
+ os: [linux]
+
+ '@typescript/typescript-linux-ppc64@7.0.2':
+ resolution: {integrity: sha512-DORx5b3sd/4S7eayxm4FQv+A7CrkUIGRaHiwI8oiHTAI1fAPWhF4J0vAlkC8biAlHSVVwxMQ3tjZ2/DVbnQiiA==}
+ engines: {node: '>=16.20.0'}
+ cpu: [ppc64]
+ os: [linux]
+
+ '@typescript/typescript-linux-riscv64@7.0.2':
+ resolution: {integrity: sha512-wf0jqEDOjrPRnKwYRyyJDRo11KMbvMFrU+q4zqKyChODBzvlkbhNQfKvLxQCcwTpdDaXSHZTVuh0JoCrKCUMHQ==}
+ engines: {node: '>=16.20.0'}
+ cpu: [riscv64]
+ os: [linux]
+
+ '@typescript/typescript-linux-s390x@7.0.2':
+ resolution: {integrity: sha512-IkwJc3L7yhytWd/ewjyxNDfOmswCm9GWMJT/ue/dU4aZNbwZeYAetq42VyLmsmSjvoX7z74X6ZaYCtzAr0EuGw==}
+ engines: {node: '>=16.20.0'}
+ cpu: [s390x]
+ os: [linux]
+
+ '@typescript/typescript-linux-x64@7.0.2':
+ resolution: {integrity: sha512-EYdf2cNg7rgCWJnxCdJ+F3V39O8ihb37eHAu1LK8oAFizgTQbPOK7zHHXbPt8rX24COqODXeI3sIf0fCXG7H/A==}
+ engines: {node: '>=16.20.0'}
+ cpu: [x64]
+ os: [linux]
+
+ '@typescript/typescript-netbsd-arm64@7.0.2':
+ resolution: {integrity: sha512-+polYF4MF04aPpO5FTkHran9yUQDSXqy5GiSDKpsll5jy3l3+g9QLhpf39T+ePtefhXLOGrLl0QIjkQP6VnelA==}
+ engines: {node: '>=16.20.0'}
+ cpu: [arm64]
+ os: [netbsd]
+
+ '@typescript/typescript-netbsd-x64@7.0.2':
+ resolution: {integrity: sha512-8YIT0EHM/3dq10ZOVF/A7pc/YSMtbcecct4rWtexrnSCHOPcpC2KTLXfTCR6vDpnSiY12heNb1GiN/wu+T/FyA==}
+ engines: {node: '>=16.20.0'}
+ cpu: [x64]
+ os: [netbsd]
+
+ '@typescript/typescript-openbsd-arm64@7.0.2':
+ resolution: {integrity: sha512-APT8+ClYnuYm1u9+kgGXoMj2VzWzcymwh2gNSQVySHfkRDGOTVkoWLjCmOQSaO+PoqQ57B0flRp9SA+7GnnkzQ==}
+ engines: {node: '>=16.20.0'}
+ cpu: [arm64]
+ os: [openbsd]
+
+ '@typescript/typescript-openbsd-x64@7.0.2':
+ resolution: {integrity: sha512-yX7s+Q0Dln0Dt9tEzZsAjXXR/+ytBM7AlglaqyeMPxQszJ1JhlJdZ6jLA+IzldHtflX81em7lDao1xXu+aRRkg==}
+ engines: {node: '>=16.20.0'}
+ cpu: [x64]
+ os: [openbsd]
+
+ '@typescript/typescript-sunos-x64@7.0.2':
+ resolution: {integrity: sha512-dLJDGaLZ1D4HPQn62u1n8mBDkJREwMsAkCdkwd4Ieqw+x3TUyTsqY0YiBCtE6H6OzzgGk3iuZ3vFWRS+E8/d1g==}
+ engines: {node: '>=16.20.0'}
+ cpu: [x64]
+ os: [sunos]
+
+ '@typescript/typescript-win32-arm64@7.0.2':
+ resolution: {integrity: sha512-Gyl1Vy6OsWesLzmq+EP0Fb7b4Nid5232AvcA2SFcdYreldpNtYFFofPjnt62y9hQy7VTaZp65ICJjuAQRaVcIQ==}
+ engines: {node: '>=16.20.0'}
+ cpu: [arm64]
+ os: [win32]
+
+ '@typescript/typescript-win32-x64@7.0.2':
+ resolution: {integrity: sha512-0BQ3HkAHHlKLSp1qRvf3SUhGpGsDuhB/jgFw75guyqbxJqEaS0Cw/VFO8i2nHglJUzQCRtMMR/IBAKE3ETMC4g==}
+ engines: {node: '>=16.20.0'}
+ cpu: [x64]
+ os: [win32]
+
+ '@typescript/typescript6@6.0.2':
+ resolution: {integrity: sha512-mbCddXd+jm7hfx7w2YU64/Av4/NqqeG3GoRZgxPcgoTxYjhrcfJRw9ULch71SS4G+Q3bOXFhRvPqjguN0Hyp5w==}
+ hasBin: true
+
'@ungap/structured-clone@1.4.0':
resolution: {integrity: sha512-1mEZtMKPM09vDmQt5y7YvmN2+DFTP7Tg0EWXdic8/C6VRnpb33e4ghisCIE3WZjsE2N8mf+QV1Zqh7ZFYLWInQ==}
@@ -4357,6 +4487,11 @@ packages:
engines: {node: '>=14.17'}
hasBin: true
+ typescript@7.0.2:
+ resolution: {integrity: sha512-8FYau96o3NKOhbjKi/qNvG/W5jhzxkbdm5sj9AbZ/5T5sWqn3hJgLfGx27sRKZWTvyzCP8dLRBTf5tBTSRVUNA==}
+ engines: {node: '>=16.20.0'}
+ hasBin: true
+
ufo@1.6.4:
resolution: {integrity: sha512-JFNbkD1Svwe0KvGi8GOeLcP4kAWQ609twvCdcHxq1oSL8svv39ZuSvajcD8B+5D0eL4+s1Is2D/O6KN3qcTeRA==}
@@ -4377,6 +4512,9 @@ packages:
undici-types@7.24.6:
resolution: {integrity: sha512-WRNW+sJgj5OBN4/0JpHFqtqzhpbnV0GuB+OozA9gCL7a993SmU+1JBZCzLNxYsbMfIeDL+lTsphD5jN5N+n0zg==}
+ undici-types@8.9.0:
+ resolution: {integrity: sha512-KTDyRTYX8sWmKXAikPHHSyc63CRPETMctyjKFupcC6OBLXT3xsN0e9aF7m+mIXutFWpUXuedtowG7iLOzp0kQg==}
+
undici@7.29.1:
resolution: {integrity: sha512-RYONW2MeafgYlkVOKYKkA/Ag7BmXqgIWCa8t1m0JcxrQg9pI9lEqRhAOruOBCbAohOa/gkCF+iPi9hrgvTzu6Q==}
engines: {node: '>=20.18.1'}
@@ -5004,12 +5142,12 @@ snapshots:
transitivePeerDependencies:
- '@emnapi/runtime'
- '@astrojs/check@0.9.11(@emnapi/runtime@1.11.3)(prettier-plugin-astro@1.1.1(@emnapi/core@1.11.3)(@emnapi/runtime@1.11.3)(prettier@3.9.10))(prettier@3.9.10)(typescript@6.0.3)':
+ '@astrojs/check@0.9.11(@emnapi/runtime@1.11.3)(@typescript/typescript6@6.0.2)(prettier-plugin-astro@1.1.1(@emnapi/core@1.11.3)(@emnapi/runtime@1.11.3)(prettier@3.9.10))(prettier@3.9.10)':
dependencies:
- '@astrojs/language-server': 2.17.2(@emnapi/runtime@1.11.3)(prettier-plugin-astro@1.1.1(@emnapi/core@1.11.3)(@emnapi/runtime@1.11.3)(prettier@3.9.10))(prettier@3.9.10)(typescript@6.0.3)
+ '@astrojs/language-server': 2.17.2(@emnapi/runtime@1.11.3)(@typescript/typescript6@6.0.2)(prettier-plugin-astro@1.1.1(@emnapi/core@1.11.3)(@emnapi/runtime@1.11.3)(prettier@3.9.10))(prettier@3.9.10)
chokidar: 5.0.0
kleur: 4.1.5
- typescript: 6.0.3
+ typescript: '@typescript/typescript6@6.0.2'
yargs: 18.2.0
transitivePeerDependencies:
- '@emnapi/runtime'
@@ -5136,11 +5274,11 @@ snapshots:
unified: 11.0.5
yaml: 2.9.1
- '@astrojs/language-server@2.17.2(@emnapi/runtime@1.11.3)(prettier-plugin-astro@1.1.1(@emnapi/core@1.11.3)(@emnapi/runtime@1.11.3)(prettier@3.9.10))(prettier@3.9.10)(typescript@6.0.3)':
+ '@astrojs/language-server@2.17.2(@emnapi/runtime@1.11.3)(@typescript/typescript6@6.0.2)(prettier-plugin-astro@1.1.1(@emnapi/core@1.11.3)(@emnapi/runtime@1.11.3)(prettier@3.9.10))(prettier@3.9.10)':
dependencies:
'@astrojs/astro2tsx': 0.1.3(@emnapi/runtime@1.11.3)
'@astrojs/yaml2ts': 0.2.4
- '@volar/kit': 2.4.28(typescript@6.0.3)
+ '@volar/kit': 2.4.28(@typescript/typescript6@6.0.2)
'@volar/language-core': 2.4.28
'@volar/language-server': 2.4.28
'@volar/language-service': 2.4.28
@@ -5184,15 +5322,15 @@ snapshots:
sitemap: 9.0.1
zod: 4.6.7
- '@astrojs/svelte@9.1.0(@types/node@24.19.2)(astro@7.4.1(@types/node@24.19.2)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1))(esbuild@0.28.2)(jiti@2.7.0)(svelte@5.57.2(@typescript-eslint/types@8.72.0))(terser@5.49.0)(typescript@6.0.3)(yaml@2.9.1)':
+ '@astrojs/svelte@9.1.0(@types/node@26.6.5)(@typescript/typescript6@6.0.2)(astro@7.4.1(@types/node@26.6.5)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1))(esbuild@0.28.2)(jiti@2.7.0)(svelte@5.57.2(@typescript-eslint/types@8.72.0))(terser@5.49.0)(yaml@2.9.1)':
dependencies:
- '@sveltejs/vite-plugin-svelte': 7.3.1(svelte@5.57.2(@typescript-eslint/types@8.72.0))(vite@8.3.4(@types/node@24.19.2)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1))
- astro: 7.4.1(@types/node@24.19.2)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1)
+ '@sveltejs/vite-plugin-svelte': 7.3.1(svelte@5.57.2(@typescript-eslint/types@8.72.0))(vite@8.3.4(@types/node@26.6.5)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1))
+ astro: 7.4.1(@types/node@26.6.5)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1)
svelte: 5.57.2(@typescript-eslint/types@8.72.0)
- svelte2tsx: 0.7.62(svelte@5.57.2(@typescript-eslint/types@8.72.0))(typescript@6.0.3)
- typescript: 6.0.3
- vite: 8.3.4(@types/node@24.19.2)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1)
- vitefu: 1.1.3(vite@8.3.4(@types/node@24.19.2)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1))
+ svelte2tsx: 0.7.62(@typescript/typescript6@6.0.2)(svelte@5.57.2(@typescript-eslint/types@8.72.0))
+ typescript: '@typescript/typescript6@6.0.2'
+ vite: 8.3.4(@types/node@26.6.5)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1)
+ vitefu: 1.1.3(vite@8.3.4(@types/node@26.6.5)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1))
transitivePeerDependencies:
- '@types/node'
- '@vitejs/devtools'
@@ -6716,14 +6854,14 @@ snapshots:
dependencies:
acorn: 8.19.0
- '@sveltejs/vite-plugin-svelte@7.3.1(svelte@5.57.2(@typescript-eslint/types@8.72.0))(vite@8.3.4(@types/node@24.19.2)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1))':
+ '@sveltejs/vite-plugin-svelte@7.3.1(svelte@5.57.2(@typescript-eslint/types@8.72.0))(vite@8.3.4(@types/node@26.6.5)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1))':
dependencies:
deepmerge: 4.3.1
magic-string: 1.4.3
obug: 2.2.1
svelte: 5.57.2(@typescript-eslint/types@8.72.0)
- vite: 8.3.4(@types/node@24.19.2)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1)
- vitefu: 1.1.3(vite@8.3.4(@types/node@24.19.2)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1))
+ vite: 8.3.4(@types/node@26.6.5)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1)
+ vitefu: 1.1.3(vite@8.3.4(@types/node@26.6.5)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1))
'@tailwindcss/node@4.3.3':
dependencies:
@@ -6786,12 +6924,12 @@ snapshots:
'@tailwindcss/oxide-win32-arm64-msvc': 4.3.3
'@tailwindcss/oxide-win32-x64-msvc': 4.3.3
- '@tailwindcss/vite@4.3.3(vite@8.3.4(@types/node@24.19.2)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1))':
+ '@tailwindcss/vite@4.3.3(vite@8.3.4(@types/node@26.6.5)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1))':
dependencies:
'@tailwindcss/node': 4.3.3
'@tailwindcss/oxide': 4.3.3
tailwindcss: 4.3.3
- vite: 8.3.4(@types/node@24.19.2)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1)
+ vite: 8.3.4(@types/node@26.6.5)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1)
'@trickfilm400/rollup-plugin-off-main-thread@3.0.0-pre1':
dependencies:
@@ -6837,11 +6975,15 @@ snapshots:
dependencies:
undici-types: 7.24.6
+ '@types/node@26.6.5':
+ dependencies:
+ undici-types: 8.9.0
+
'@types/resolve@1.20.2': {}
'@types/sax@1.2.7':
dependencies:
- '@types/node': 24.19.2
+ '@types/node': 26.6.5
'@types/trusted-types@2.0.7': {}
@@ -6851,42 +6993,42 @@ snapshots:
'@types/ws@8.18.2':
dependencies:
- '@types/node': 24.19.2
+ '@types/node': 26.6.5
- '@typescript-eslint/eslint-plugin@8.72.0(@typescript-eslint/parser@8.72.0(eslint@10.13.0(jiti@2.7.0)(supports-color@10.2.2))(supports-color@10.2.2)(typescript@6.0.3))(eslint@10.13.0(jiti@2.7.0)(supports-color@10.2.2))(supports-color@10.2.2)(typescript@6.0.3)':
+ '@typescript-eslint/eslint-plugin@8.72.0(@typescript-eslint/parser@8.72.0(@typescript/typescript6@6.0.2)(eslint@10.13.0(jiti@2.7.0)(supports-color@10.2.2))(supports-color@10.2.2))(@typescript/typescript6@6.0.2)(eslint@10.13.0(jiti@2.7.0)(supports-color@10.2.2))(supports-color@10.2.2)':
dependencies:
'@eslint-community/regexpp': 4.12.2
- '@typescript-eslint/parser': 8.72.0(eslint@10.13.0(jiti@2.7.0)(supports-color@10.2.2))(supports-color@10.2.2)(typescript@6.0.3)
+ '@typescript-eslint/parser': 8.72.0(@typescript/typescript6@6.0.2)(eslint@10.13.0(jiti@2.7.0)(supports-color@10.2.2))(supports-color@10.2.2)
'@typescript-eslint/scope-manager': 8.72.0
- '@typescript-eslint/type-utils': 8.72.0(eslint@10.13.0(jiti@2.7.0)(supports-color@10.2.2))(supports-color@10.2.2)(typescript@6.0.3)
- '@typescript-eslint/utils': 8.72.0(eslint@10.13.0(jiti@2.7.0)(supports-color@10.2.2))(supports-color@10.2.2)(typescript@6.0.3)
+ '@typescript-eslint/type-utils': 8.72.0(@typescript/typescript6@6.0.2)(eslint@10.13.0(jiti@2.7.0)(supports-color@10.2.2))(supports-color@10.2.2)
+ '@typescript-eslint/utils': 8.72.0(@typescript/typescript6@6.0.2)(eslint@10.13.0(jiti@2.7.0)(supports-color@10.2.2))(supports-color@10.2.2)
'@typescript-eslint/visitor-keys': 8.72.0
eslint: 10.13.0(jiti@2.7.0)(supports-color@10.2.2)
ignore: 7.0.13
natural-compare: 1.4.0
- ts-api-utils: 2.5.0(typescript@6.0.3)
- typescript: 6.0.3
+ ts-api-utils: 2.5.0(@typescript/typescript6@6.0.2)
+ typescript: '@typescript/typescript6@6.0.2'
transitivePeerDependencies:
- supports-color
- '@typescript-eslint/parser@8.72.0(eslint@10.13.0(jiti@2.7.0)(supports-color@10.2.2))(supports-color@10.2.2)(typescript@6.0.3)':
+ '@typescript-eslint/parser@8.72.0(@typescript/typescript6@6.0.2)(eslint@10.13.0(jiti@2.7.0)(supports-color@10.2.2))(supports-color@10.2.2)':
dependencies:
'@typescript-eslint/scope-manager': 8.72.0
'@typescript-eslint/types': 8.72.0
- '@typescript-eslint/typescript-estree': 8.72.0(supports-color@10.2.2)(typescript@6.0.3)
+ '@typescript-eslint/typescript-estree': 8.72.0(@typescript/typescript6@6.0.2)(supports-color@10.2.2)
'@typescript-eslint/visitor-keys': 8.72.0
debug: 4.4.3(supports-color@10.2.2)
eslint: 10.13.0(jiti@2.7.0)(supports-color@10.2.2)
- typescript: 6.0.3
+ typescript: '@typescript/typescript6@6.0.2'
transitivePeerDependencies:
- supports-color
- '@typescript-eslint/project-service@8.72.0(supports-color@10.2.2)(typescript@6.0.3)':
+ '@typescript-eslint/project-service@8.72.0(@typescript/typescript6@6.0.2)(supports-color@10.2.2)':
dependencies:
- '@typescript-eslint/tsconfig-utils': 8.72.0(typescript@6.0.3)
+ '@typescript-eslint/tsconfig-utils': 8.72.0(@typescript/typescript6@6.0.2)
'@typescript-eslint/types': 8.72.0
debug: 4.4.3(supports-color@10.2.2)
- typescript: 6.0.3
+ typescript: '@typescript/typescript6@6.0.2'
transitivePeerDependencies:
- supports-color
@@ -6895,47 +7037,47 @@ snapshots:
'@typescript-eslint/types': 8.72.0
'@typescript-eslint/visitor-keys': 8.72.0
- '@typescript-eslint/tsconfig-utils@8.72.0(typescript@6.0.3)':
+ '@typescript-eslint/tsconfig-utils@8.72.0(@typescript/typescript6@6.0.2)':
dependencies:
- typescript: 6.0.3
+ typescript: '@typescript/typescript6@6.0.2'
- '@typescript-eslint/type-utils@8.72.0(eslint@10.13.0(jiti@2.7.0)(supports-color@10.2.2))(supports-color@10.2.2)(typescript@6.0.3)':
+ '@typescript-eslint/type-utils@8.72.0(@typescript/typescript6@6.0.2)(eslint@10.13.0(jiti@2.7.0)(supports-color@10.2.2))(supports-color@10.2.2)':
dependencies:
'@typescript-eslint/types': 8.72.0
- '@typescript-eslint/typescript-estree': 8.72.0(supports-color@10.2.2)(typescript@6.0.3)
- '@typescript-eslint/utils': 8.72.0(eslint@10.13.0(jiti@2.7.0)(supports-color@10.2.2))(supports-color@10.2.2)(typescript@6.0.3)
+ '@typescript-eslint/typescript-estree': 8.72.0(@typescript/typescript6@6.0.2)(supports-color@10.2.2)
+ '@typescript-eslint/utils': 8.72.0(@typescript/typescript6@6.0.2)(eslint@10.13.0(jiti@2.7.0)(supports-color@10.2.2))(supports-color@10.2.2)
debug: 4.4.3(supports-color@10.2.2)
eslint: 10.13.0(jiti@2.7.0)(supports-color@10.2.2)
- ts-api-utils: 2.5.0(typescript@6.0.3)
- typescript: 6.0.3
+ ts-api-utils: 2.5.0(@typescript/typescript6@6.0.2)
+ typescript: '@typescript/typescript6@6.0.2'
transitivePeerDependencies:
- supports-color
'@typescript-eslint/types@8.72.0': {}
- '@typescript-eslint/typescript-estree@8.72.0(supports-color@10.2.2)(typescript@6.0.3)':
+ '@typescript-eslint/typescript-estree@8.72.0(@typescript/typescript6@6.0.2)(supports-color@10.2.2)':
dependencies:
- '@typescript-eslint/project-service': 8.72.0(supports-color@10.2.2)(typescript@6.0.3)
- '@typescript-eslint/tsconfig-utils': 8.72.0(typescript@6.0.3)
+ '@typescript-eslint/project-service': 8.72.0(@typescript/typescript6@6.0.2)(supports-color@10.2.2)
+ '@typescript-eslint/tsconfig-utils': 8.72.0(@typescript/typescript6@6.0.2)
'@typescript-eslint/types': 8.72.0
'@typescript-eslint/visitor-keys': 8.72.0
debug: 4.4.3(supports-color@10.2.2)
minimatch: 10.2.6
semver: 7.8.5
tinyglobby: 0.2.17
- ts-api-utils: 2.5.0(typescript@6.0.3)
- typescript: 6.0.3
+ ts-api-utils: 2.5.0(@typescript/typescript6@6.0.2)
+ typescript: '@typescript/typescript6@6.0.2'
transitivePeerDependencies:
- supports-color
- '@typescript-eslint/utils@8.72.0(eslint@10.13.0(jiti@2.7.0)(supports-color@10.2.2))(supports-color@10.2.2)(typescript@6.0.3)':
+ '@typescript-eslint/utils@8.72.0(@typescript/typescript6@6.0.2)(eslint@10.13.0(jiti@2.7.0)(supports-color@10.2.2))(supports-color@10.2.2)':
dependencies:
'@eslint-community/eslint-utils': 4.10.1(eslint@10.13.0(jiti@2.7.0)(supports-color@10.2.2))
'@typescript-eslint/scope-manager': 8.72.0
'@typescript-eslint/types': 8.72.0
- '@typescript-eslint/typescript-estree': 8.72.0(supports-color@10.2.2)(typescript@6.0.3)
+ '@typescript-eslint/typescript-estree': 8.72.0(@typescript/typescript6@6.0.2)(supports-color@10.2.2)
eslint: 10.13.0(jiti@2.7.0)(supports-color@10.2.2)
- typescript: 6.0.3
+ typescript: '@typescript/typescript6@6.0.2'
transitivePeerDependencies:
- supports-color
@@ -6944,12 +7086,76 @@ snapshots:
'@typescript-eslint/types': 8.72.0
eslint-visitor-keys: 5.0.1
+ '@typescript/typescript-aix-ppc64@7.0.2':
+ optional: true
+
+ '@typescript/typescript-darwin-arm64@7.0.2':
+ optional: true
+
+ '@typescript/typescript-darwin-x64@7.0.2':
+ optional: true
+
+ '@typescript/typescript-freebsd-arm64@7.0.2':
+ optional: true
+
+ '@typescript/typescript-freebsd-x64@7.0.2':
+ optional: true
+
+ '@typescript/typescript-linux-arm64@7.0.2':
+ optional: true
+
+ '@typescript/typescript-linux-arm@7.0.2':
+ optional: true
+
+ '@typescript/typescript-linux-loong64@7.0.2':
+ optional: true
+
+ '@typescript/typescript-linux-mips64el@7.0.2':
+ optional: true
+
+ '@typescript/typescript-linux-ppc64@7.0.2':
+ optional: true
+
+ '@typescript/typescript-linux-riscv64@7.0.2':
+ optional: true
+
+ '@typescript/typescript-linux-s390x@7.0.2':
+ optional: true
+
+ '@typescript/typescript-linux-x64@7.0.2':
+ optional: true
+
+ '@typescript/typescript-netbsd-arm64@7.0.2':
+ optional: true
+
+ '@typescript/typescript-netbsd-x64@7.0.2':
+ optional: true
+
+ '@typescript/typescript-openbsd-arm64@7.0.2':
+ optional: true
+
+ '@typescript/typescript-openbsd-x64@7.0.2':
+ optional: true
+
+ '@typescript/typescript-sunos-x64@7.0.2':
+ optional: true
+
+ '@typescript/typescript-win32-arm64@7.0.2':
+ optional: true
+
+ '@typescript/typescript-win32-x64@7.0.2':
+ optional: true
+
+ '@typescript/typescript6@6.0.2':
+ dependencies:
+ '@typescript/old': typescript@6.0.3
+
'@ungap/structured-clone@1.4.0': {}
- '@vite-pwa/astro@1.2.0(astro@7.4.1(@types/node@24.19.2)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1))(vite-plugin-pwa@1.3.0(supports-color@10.2.2)(vite@8.3.4(@types/node@24.19.2)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1))(workbox-build@7.4.1(supports-color@10.2.2))(workbox-window@7.4.1))':
+ '@vite-pwa/astro@1.2.0(astro@7.4.1(@types/node@26.6.5)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1))(vite-plugin-pwa@1.3.0(supports-color@10.2.2)(vite@8.3.4(@types/node@26.6.5)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1))(workbox-build@7.4.1(supports-color@10.2.2))(workbox-window@7.4.1))':
dependencies:
- astro: 7.4.1(@types/node@24.19.2)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1)
- vite-plugin-pwa: 1.3.0(supports-color@10.2.2)(vite@8.3.4(@types/node@24.19.2)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1))(workbox-build@7.4.1(supports-color@10.2.2))(workbox-window@7.4.1)
+ astro: 7.4.1(@types/node@26.6.5)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1)
+ vite-plugin-pwa: 1.3.0(supports-color@10.2.2)(vite@8.3.4(@types/node@26.6.5)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1))(workbox-build@7.4.1(supports-color@10.2.2))(workbox-window@7.4.1)
'@vitest/coverage-v8@5.0.5(vitest@5.0.5)':
dependencies:
@@ -6961,7 +7167,7 @@ snapshots:
obug: 3.0.0
std-env: 4.3.0
tinyrainbow: 3.2.0
- vitest: 5.0.5(@types/node@24.19.2)(@vitest/coverage-v8@5.0.5)(happy-dom@21.0.3)(vite@8.3.4(@types/node@24.19.2)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1))
+ vitest: 5.0.5(@types/node@26.6.5)(@vitest/coverage-v8@5.0.5)(happy-dom@21.0.3)(vite@8.3.4(@types/node@26.6.5)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1))
'@vitest/istanbul-lib-coverage@1.0.2': {}
@@ -6969,23 +7175,23 @@ snapshots:
dependencies:
'@vitest/istanbul-lib-coverage': 1.0.2
- '@vitest/mocker@5.0.5(vite@8.3.4(@types/node@24.19.2)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1))':
+ '@vitest/mocker@5.0.5(vite@8.3.4(@types/node@26.6.5)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1))':
dependencies:
'@jridgewell/trace-mapping': 0.3.31
'@vitest/spy': 5.0.5
estree-walker: 3.0.3
magic-string: 1.4.3
optionalDependencies:
- vite: 8.3.4(@types/node@24.19.2)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1)
+ vite: 8.3.4(@types/node@26.6.5)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1)
'@vitest/spy@5.0.5': {}
- '@volar/kit@2.4.28(typescript@6.0.3)':
+ '@volar/kit@2.4.28(@typescript/typescript6@6.0.2)':
dependencies:
'@volar/language-service': 2.4.28
'@volar/typescript': 2.4.28
typesafe-path: 0.2.2
- typescript: 6.0.3
+ typescript: '@typescript/typescript6@6.0.2'
vscode-languageserver-textdocument: 1.0.15
vscode-uri: 3.2.0
@@ -7116,7 +7322,7 @@ snapshots:
transitivePeerDependencies:
- supports-color
- astro@7.4.1(@types/node@24.19.2)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1):
+ astro@7.4.1(@types/node@26.6.5)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1):
dependencies:
'@astrojs/compiler-rs': 0.5.2
'@astrojs/internal-helpers': 0.13.0
@@ -7165,13 +7371,13 @@ snapshots:
unifont: 1.0.3
unstorage: 1.17.6
verkit: 0.5.0
- vite: 8.3.4(@types/node@24.19.2)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1)
- vitefu: 1.1.3(vite@8.3.4(@types/node@24.19.2)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1))
+ vite: 8.3.4(@types/node@26.6.5)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1)
+ vitefu: 1.1.3(vite@8.3.4(@types/node@26.6.5)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1))
xxhash-wasm: 1.1.0
yargs-parser: 22.0.0
zod: 4.6.7
optionalDependencies:
- sharp: 0.35.5(@types/node@24.19.2)
+ sharp: 0.35.5(@types/node@26.6.5)
transitivePeerDependencies:
- '@azure/app-configuration'
- '@azure/cosmos'
@@ -7269,7 +7475,7 @@ snapshots:
buffer-image-size@0.6.4:
dependencies:
- '@types/node': 24.19.2
+ '@types/node': 26.6.5
cacheable@2.5.0:
dependencies:
@@ -7619,7 +7825,7 @@ snapshots:
escape-string-regexp@4.0.0: {}
- eslint-plugin-astro@3.2.1(@typescript-eslint/parser@8.72.0(eslint@10.13.0(jiti@2.7.0)(supports-color@10.2.2))(supports-color@10.2.2)(typescript@6.0.3))(eslint@10.13.0(jiti@2.7.0)(supports-color@10.2.2))(supports-color@10.2.2)(typescript-eslint@8.72.0(eslint@10.13.0(jiti@2.7.0)(supports-color@10.2.2))(supports-color@10.2.2)(typescript@6.0.3)):
+ eslint-plugin-astro@3.2.1(@typescript-eslint/parser@8.72.0(@typescript/typescript6@6.0.2)(eslint@10.13.0(jiti@2.7.0)(supports-color@10.2.2))(supports-color@10.2.2))(eslint@10.13.0(jiti@2.7.0)(supports-color@10.2.2))(supports-color@10.2.2)(typescript-eslint@8.72.0(@typescript/typescript6@6.0.2)(eslint@10.13.0(jiti@2.7.0)(supports-color@10.2.2))(supports-color@10.2.2)):
dependencies:
'@eslint-community/eslint-utils': 4.10.1(eslint@10.13.0(jiti@2.7.0)(supports-color@10.2.2))
'@jridgewell/sourcemap-codec': 1.6.0
@@ -7632,8 +7838,8 @@ snapshots:
postcss-selector-parser: 7.1.7
synckit: 0.11.13
optionalDependencies:
- '@typescript-eslint/parser': 8.72.0(eslint@10.13.0(jiti@2.7.0)(supports-color@10.2.2))(supports-color@10.2.2)(typescript@6.0.3)
- typescript-eslint: 8.72.0(eslint@10.13.0(jiti@2.7.0)(supports-color@10.2.2))(supports-color@10.2.2)(typescript@6.0.3)
+ '@typescript-eslint/parser': 8.72.0(@typescript/typescript6@6.0.2)(eslint@10.13.0(jiti@2.7.0)(supports-color@10.2.2))(supports-color@10.2.2)
+ typescript-eslint: 8.72.0(@typescript/typescript6@6.0.2)(eslint@10.13.0(jiti@2.7.0)(supports-color@10.2.2))(supports-color@10.2.2)
transitivePeerDependencies:
- supports-color
@@ -7955,7 +8161,7 @@ snapshots:
happy-dom@21.0.3:
dependencies:
- '@types/node': 24.19.2
+ '@types/node': 26.6.5
'@types/whatwg-mimetype': 3.0.2
'@types/ws': 8.18.2
buffer-image-size: 0.6.4
@@ -8452,10 +8658,10 @@ snapshots:
micromark-util-types@2.0.3: {}
- miniflare@5.20261019.1-beta(@types/node@24.19.2):
+ miniflare@5.20261019.1-beta(@types/node@26.6.5):
dependencies:
'@cspotcode/source-map-support': 0.8.1
- sharp: 0.35.5(@types/node@24.19.2)
+ sharp: 0.35.5(@types/node@26.6.5)
undici: 7.29.1
workerd: 1.20261019.1
ws: 8.21.0
@@ -8949,7 +9155,7 @@ snapshots:
es-errors: 1.3.0
es-object-atoms: 1.1.2
- sharp@0.35.5(@types/node@24.19.2):
+ sharp@0.35.5(@types/node@26.6.5):
dependencies:
'@img/colour': 1.1.0
detect-libc: 2.1.2
@@ -8980,7 +9186,7 @@ snapshots:
'@img/sharp-win32-arm64': 0.35.5
'@img/sharp-win32-ia32': 0.35.5
'@img/sharp-win32-x64': 0.35.5
- '@types/node': 24.19.2
+ '@types/node': 26.6.5
shebang-command@2.0.0:
dependencies:
@@ -9156,12 +9362,12 @@ snapshots:
optionalDependencies:
svelte: 5.57.2(@typescript-eslint/types@8.72.0)
- svelte2tsx@0.7.62(svelte@5.57.2(@typescript-eslint/types@8.72.0))(typescript@6.0.3):
+ svelte2tsx@0.7.62(@typescript/typescript6@6.0.2)(svelte@5.57.2(@typescript-eslint/types@8.72.0)):
dependencies:
dedent-js: 1.0.1
scule: 1.3.0
svelte: 5.57.2(@typescript-eslint/types@8.72.0)
- typescript: 6.0.3
+ typescript: '@typescript/typescript6@6.0.2'
svelte@5.57.2(@typescript-eslint/types@8.72.0):
dependencies:
@@ -9238,9 +9444,9 @@ snapshots:
trough@2.2.0: {}
- ts-api-utils@2.5.0(typescript@6.0.3):
+ ts-api-utils@2.5.0(@typescript/typescript6@6.0.2):
dependencies:
- typescript: 6.0.3
+ typescript: '@typescript/typescript6@6.0.2'
tslib@2.8.1: {}
@@ -9289,19 +9495,42 @@ snapshots:
dependencies:
semver: 7.8.5
- typescript-eslint@8.72.0(eslint@10.13.0(jiti@2.7.0)(supports-color@10.2.2))(supports-color@10.2.2)(typescript@6.0.3):
+ typescript-eslint@8.72.0(@typescript/typescript6@6.0.2)(eslint@10.13.0(jiti@2.7.0)(supports-color@10.2.2))(supports-color@10.2.2):
dependencies:
- '@typescript-eslint/eslint-plugin': 8.72.0(@typescript-eslint/parser@8.72.0(eslint@10.13.0(jiti@2.7.0)(supports-color@10.2.2))(supports-color@10.2.2)(typescript@6.0.3))(eslint@10.13.0(jiti@2.7.0)(supports-color@10.2.2))(supports-color@10.2.2)(typescript@6.0.3)
- '@typescript-eslint/parser': 8.72.0(eslint@10.13.0(jiti@2.7.0)(supports-color@10.2.2))(supports-color@10.2.2)(typescript@6.0.3)
- '@typescript-eslint/typescript-estree': 8.72.0(supports-color@10.2.2)(typescript@6.0.3)
- '@typescript-eslint/utils': 8.72.0(eslint@10.13.0(jiti@2.7.0)(supports-color@10.2.2))(supports-color@10.2.2)(typescript@6.0.3)
+ '@typescript-eslint/eslint-plugin': 8.72.0(@typescript-eslint/parser@8.72.0(@typescript/typescript6@6.0.2)(eslint@10.13.0(jiti@2.7.0)(supports-color@10.2.2))(supports-color@10.2.2))(@typescript/typescript6@6.0.2)(eslint@10.13.0(jiti@2.7.0)(supports-color@10.2.2))(supports-color@10.2.2)
+ '@typescript-eslint/parser': 8.72.0(@typescript/typescript6@6.0.2)(eslint@10.13.0(jiti@2.7.0)(supports-color@10.2.2))(supports-color@10.2.2)
+ '@typescript-eslint/typescript-estree': 8.72.0(@typescript/typescript6@6.0.2)(supports-color@10.2.2)
+ '@typescript-eslint/utils': 8.72.0(@typescript/typescript6@6.0.2)(eslint@10.13.0(jiti@2.7.0)(supports-color@10.2.2))(supports-color@10.2.2)
eslint: 10.13.0(jiti@2.7.0)(supports-color@10.2.2)
- typescript: 6.0.3
+ typescript: '@typescript/typescript6@6.0.2'
transitivePeerDependencies:
- supports-color
typescript@6.0.3: {}
+ typescript@7.0.2:
+ optionalDependencies:
+ '@typescript/typescript-aix-ppc64': 7.0.2
+ '@typescript/typescript-darwin-arm64': 7.0.2
+ '@typescript/typescript-darwin-x64': 7.0.2
+ '@typescript/typescript-freebsd-arm64': 7.0.2
+ '@typescript/typescript-freebsd-x64': 7.0.2
+ '@typescript/typescript-linux-arm': 7.0.2
+ '@typescript/typescript-linux-arm64': 7.0.2
+ '@typescript/typescript-linux-loong64': 7.0.2
+ '@typescript/typescript-linux-mips64el': 7.0.2
+ '@typescript/typescript-linux-ppc64': 7.0.2
+ '@typescript/typescript-linux-riscv64': 7.0.2
+ '@typescript/typescript-linux-s390x': 7.0.2
+ '@typescript/typescript-linux-x64': 7.0.2
+ '@typescript/typescript-netbsd-arm64': 7.0.2
+ '@typescript/typescript-netbsd-x64': 7.0.2
+ '@typescript/typescript-openbsd-arm64': 7.0.2
+ '@typescript/typescript-openbsd-x64': 7.0.2
+ '@typescript/typescript-sunos-x64': 7.0.2
+ '@typescript/typescript-win32-arm64': 7.0.2
+ '@typescript/typescript-win32-x64': 7.0.2
+
ufo@1.6.4: {}
ultrahtml@1.7.0: {}
@@ -9319,6 +9548,8 @@ snapshots:
undici-types@7.24.6: {}
+ undici-types@8.9.0: {}
+
undici@7.29.1: {}
undici@8.12.3: {}
@@ -9384,13 +9615,13 @@ snapshots:
universalify@2.0.1: {}
- unplugin-icons@24.0.0(esbuild@0.28.2)(rolldown@1.2.14)(rollup@4.62.2)(svelte@5.57.2(@typescript-eslint/types@8.72.0))(vite@8.3.4(@types/node@24.19.2)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1)):
+ unplugin-icons@24.0.0(esbuild@0.28.2)(rolldown@1.2.14)(rollup@4.62.2)(svelte@5.57.2(@typescript-eslint/types@8.72.0))(vite@8.3.4(@types/node@26.6.5)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1)):
dependencies:
'@antfu/install-pkg': 1.1.0
'@iconify/utils': 3.1.7
local-pkg: 1.2.1
obug: 2.2.1
- unplugin: 3.4.0(esbuild@0.28.2)(rolldown@1.2.14)(rollup@4.62.2)(vite@8.3.4(@types/node@24.19.2)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1))
+ unplugin: 3.4.0(esbuild@0.28.2)(rolldown@1.2.14)(rollup@4.62.2)(vite@8.3.4(@types/node@26.6.5)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1))
optionalDependencies:
svelte: 5.57.2(@typescript-eslint/types@8.72.0)
transitivePeerDependencies:
@@ -9405,7 +9636,7 @@ snapshots:
- vite
- webpack
- unplugin@3.4.0(esbuild@0.28.2)(rolldown@1.2.14)(rollup@4.62.2)(vite@8.3.4(@types/node@24.19.2)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1)):
+ unplugin@3.4.0(esbuild@0.28.2)(rolldown@1.2.14)(rollup@4.62.2)(vite@8.3.4(@types/node@26.6.5)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1)):
dependencies:
'@jridgewell/remapping': 2.3.5
picomatch: 4.0.7
@@ -9414,7 +9645,7 @@ snapshots:
esbuild: 0.28.2
rolldown: 1.2.14
rollup: 4.62.2
- vite: 8.3.4(@types/node@24.19.2)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1)
+ vite: 8.3.4(@types/node@26.6.5)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1)
unstorage@1.17.6:
dependencies:
@@ -9453,18 +9684,18 @@ snapshots:
'@types/unist': 3.0.3
vfile-message: 4.0.3
- vite-plugin-pwa@1.3.0(supports-color@10.2.2)(vite@8.3.4(@types/node@24.19.2)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1))(workbox-build@7.4.1(supports-color@10.2.2))(workbox-window@7.4.1):
+ vite-plugin-pwa@1.3.0(supports-color@10.2.2)(vite@8.3.4(@types/node@26.6.5)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1))(workbox-build@7.4.1(supports-color@10.2.2))(workbox-window@7.4.1):
dependencies:
debug: 4.4.3(supports-color@10.2.2)
pretty-bytes: 6.1.1
tinyglobby: 0.2.17
- vite: 8.3.4(@types/node@24.19.2)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1)
+ vite: 8.3.4(@types/node@26.6.5)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1)
workbox-build: 7.4.1(supports-color@10.2.2)
workbox-window: 7.4.1
transitivePeerDependencies:
- supports-color
- vite@8.3.4(@types/node@24.19.2)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1):
+ vite@8.3.4(@types/node@26.6.5)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1):
dependencies:
lightningcss: 1.33.0
picomatch: 4.0.7
@@ -9472,21 +9703,21 @@ snapshots:
rolldown: 1.2.14
tinyglobby: 0.2.17
optionalDependencies:
- '@types/node': 24.19.2
+ '@types/node': 26.6.5
esbuild: 0.28.2
fsevents: 2.3.3
jiti: 2.7.0
terser: 5.49.0
yaml: 2.9.1
- vitefu@1.1.3(vite@8.3.4(@types/node@24.19.2)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1)):
+ vitefu@1.1.3(vite@8.3.4(@types/node@26.6.5)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1)):
optionalDependencies:
- vite: 8.3.4(@types/node@24.19.2)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1)
+ vite: 8.3.4(@types/node@26.6.5)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1)
- vitest@5.0.5(@types/node@24.19.2)(@vitest/coverage-v8@5.0.5)(happy-dom@21.0.3)(vite@8.3.4(@types/node@24.19.2)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1)):
+ vitest@5.0.5(@types/node@26.6.5)(@vitest/coverage-v8@5.0.5)(happy-dom@21.0.3)(vite@8.3.4(@types/node@26.6.5)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1)):
dependencies:
'@types/chai': 5.2.3
- '@vitest/mocker': 5.0.5(vite@8.3.4(@types/node@24.19.2)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1))
+ '@vitest/mocker': 5.0.5(vite@8.3.4(@types/node@26.6.5)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1))
chai: 6.3.0
es-module-lexer: 2.3.2
expect-type: 1.4.0
@@ -9497,10 +9728,10 @@ snapshots:
tinybench: 6.2.2
tinyexec: 1.3.1
tinyglobby: 0.2.17
- vite: 8.3.4(@types/node@24.19.2)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1)
+ vite: 8.3.4(@types/node@26.6.5)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.49.0)(yaml@2.9.1)
why-is-node-running: 3.2.1
optionalDependencies:
- '@types/node': 24.19.2
+ '@types/node': 26.6.5
'@vitest/coverage-v8': 5.0.5(vitest@5.0.5)
happy-dom: 21.0.3
transitivePeerDependencies:
@@ -9788,13 +10019,13 @@ snapshots:
'@cloudflare/workerd-linux-arm64': 1.20261019.1
'@cloudflare/workerd-windows-64': 1.20261019.1
- wrangler@4.151.3(@types/node@24.19.2):
+ wrangler@4.151.3(@types/node@26.6.5):
dependencies:
'@cloudflare/kv-asset-handler': 0.5.0
'@cloudflare/unenv-preset': 2.16.2(unenv@2.0.0-rc.24)(workerd@1.20261019.1)
blake3-wasm: 2.1.5
esbuild: 0.28.2
- miniflare: 5.20261019.1-beta(@types/node@24.19.2)
+ miniflare: 5.20261019.1-beta(@types/node@26.6.5)
path-to-regexp: 6.3.0
unenv: 2.0.0-rc.24
workerd: 1.20261019.1
diff --git a/scripts/gen-icons.test.ts b/scripts/gen-icons.test.ts
new file mode 100644
index 0000000..ad95cf0
--- /dev/null
+++ b/scripts/gen-icons.test.ts
@@ -0,0 +1,55 @@
+// SPDX-License-Identifier: GPL-3.0-only
+// Copyright (C) 2026 poli0981 (SkullMute)
+//
+// `pnpm icons` — run for real in a throwaway tree. The PNG bytes depend on
+// sharp's version, so they are checked by their headers; the vector mark is
+// plain text and must equal the committed public/favicon.svg, which would
+// otherwise drift from the script that claims to produce it.
+
+import { readFileSync } from 'node:fs';
+import { join } from 'node:path';
+import { describe, expect, it } from 'vitest';
+import { project, run } from './fixture';
+
+/** Width and height from a PNG's IHDR chunk. */
+const pngSize = (buf: Buffer) => [buf.readUInt32BE(16), buf.readUInt32BE(20)];
+
+describe('gen-icons.mjs', () => {
+ it('writes every icon from the one vector mark', () => {
+ const root = project({});
+ const r = run('gen-icons.mjs', root);
+ expect(r.code).toBe(0);
+ expect(r.out).toContain('icons — wrote favicon.svg');
+
+ const svg = readFileSync(join(root, 'public/favicon.svg'), 'utf8');
+ expect(svg).toBe(readFileSync(join(process.cwd(), 'public/favicon.svg'), 'utf8'));
+
+ const pngs: Array<[string, number]> = [
+ ['icons/icon-192.png', 192],
+ ['icons/icon-512.png', 512],
+ ['icons/maskable-512.png', 512],
+ ['apple-touch-icon.png', 180],
+ ];
+ for (const [file, size] of pngs) {
+ const buf = readFileSync(join(root, 'public', file));
+ expect(buf.subarray(1, 4).toString('latin1'), file).toBe('PNG');
+ expect(pngSize(buf), file).toEqual([size, size]);
+ }
+ });
+
+ it('packs 16, 32 and 48 px PNGs into favicon.ico', () => {
+ const root = project({});
+ expect(run('gen-icons.mjs', root).code).toBe(0);
+
+ const ico = readFileSync(join(root, 'public/favicon.ico'));
+ expect(ico.readUInt16LE(2)).toBe(1); // type: icon
+ expect(ico.readUInt16LE(4)).toBe(3); // three images
+ const entries = [0, 1, 2].map((i) => 6 + 16 * i);
+ expect(entries.map((e) => ico.readUInt8(e))).toEqual([16, 32, 48]);
+ // Each directory entry points at a PNG inside the file.
+ for (const e of entries) {
+ const offset = ico.readUInt32LE(e + 12);
+ expect(ico.subarray(offset + 1, offset + 4).toString('latin1')).toBe('PNG');
+ }
+ });
+});
diff --git a/sonar-project.properties b/sonar-project.properties
new file mode 100644
index 0000000..f24dfcb
--- /dev/null
+++ b/sonar-project.properties
@@ -0,0 +1,25 @@
+# SonarQube Cloud, CI-based analysis (docs/12 §2). Read by the scanner in
+# ci.yml's `sonar` job; Automatic Analysis is off for this project — it and a
+# CI scan cannot both run, and only a CI scan can import coverage.
+sonar.organization=poli0981
+sonar.projectKey=poli0981_softharbor
+sonar.projectName=SoftHarbor
+
+# Sources stay rooted at the repo so workflow files under .github/ keep being
+# analysed (the githubactions rules found unpinned actions there). Tests are
+# split out so test files are judged by test rules — scripts/fixture.ts is the
+# scripts' test kit, not shipped code — and the curated dataset is excluded:
+# it is CC BY-SA content validated by Zod + validate:data, not code.
+sonar.sources=.
+sonar.tests=.
+sonar.exclusions=src/data/**,data/**,docs/**,dist/**,coverage/**,node_modules/**,**/*.test.ts,**/*.test.mjs,e2e/**,scripts/fixture.ts
+sonar.test.inclusions=**/*.test.ts,**/*.test.mjs,e2e/**,scripts/fixture.ts
+sonar.cpd.exclusions=src/data/**,src/i18n/**
+
+# Written by `pnpm coverage` (vitest.config.ts). Sonar indexes no .svelte or
+# .astro file, so the islands' lcov entries are reported as unresolved and
+# skipped; every analysed .ts/.js/.mjs file is measured. The only exclusions
+# are the root toolchain configs — read by the tools themselves, not
+# unit-testable logic.
+sonar.javascript.lcov.reportPaths=coverage/lcov.info
+sonar.coverage.exclusions=*.config.ts,*.config.js,*.config.mjs
diff --git a/src/content.config.test.ts b/src/content.config.test.ts
new file mode 100644
index 0000000..cc0f6df
--- /dev/null
+++ b/src/content.config.test.ts
@@ -0,0 +1,164 @@
+// SPDX-License-Identifier: GPL-3.0-only
+// Copyright (C) 2026 poli0981 (SkullMute)
+//
+// Validation layer L1 (docs/03 §2): the Zod rules in src/content.config.ts.
+// Astro's content runtime is stubbed — `defineCollection` hands the config
+// back, `reference()` becomes a plain id — so what runs here is exactly our
+// schema; resolving references against categories.json stays the build's job.
+
+import { z } from 'astro/zod';
+import { describe, expect, it, vi } from 'vitest';
+
+vi.mock('astro:content', () => ({
+ defineCollection: (config: unknown) => config,
+ reference: () => z.string(),
+}));
+vi.mock('astro/loaders', () => ({
+ glob: (options: unknown) => ({ kind: 'glob', options }),
+ file: (path: string) => ({ kind: 'file', path }),
+}));
+
+const { collections } = await import('./content.config');
+
+interface Schema {
+ safeParse(input: unknown): { success: boolean; error?: { issues: Array<{ path: unknown[] }> } };
+}
+const apps = collections.apps as unknown as { schema: Schema; loader: unknown };
+const categories = collections.categories as unknown as { schema: Schema; loader: unknown };
+
+const TODAY = new Date().toISOString().slice(0, 10);
+
+function app(overrides: Record = {}) {
+ return {
+ name: '7-Zip',
+ developer: 'Igor Pavlov',
+ logo: 'simple-icons:7zip',
+ summary: {
+ en: 'File archiver with a high compression ratio.',
+ vi: 'Trình nén tệp với tỷ lệ nén cao.',
+ },
+ categories: ['file-management'],
+ tags: ['archiver'],
+ platforms: ['windows'],
+ pricing: 'free',
+ license: 'LGPL-2.1-or-later',
+ links: {
+ homepage: 'https://www.7-zip.org',
+ repo: null,
+ download: 'https://www.7-zip.org/download.html',
+ },
+ security: {
+ status: 'clean',
+ evidence: 'https://www.virustotal.com/gui/url/abc',
+ checkedAt: '2026-07-30',
+ },
+ addedAt: '2026-07-28',
+ ...overrides,
+ };
+}
+
+/** The distinct paths of every issue, joined, e.g. ["security.evidence"]. */
+function issues(input: unknown): string[] {
+ const r = apps.schema.safeParse(input);
+ return r.success ? [] : [...new Set((r.error?.issues ?? []).map((i) => i.path.join('.')))];
+}
+
+describe('collection wiring', () => {
+ it('loads apps from one JSON file per slug and categories from the registry', () => {
+ expect(apps.loader).toEqual({
+ kind: 'glob',
+ options: { pattern: '*.json', base: './src/data/apps' },
+ });
+ expect(categories.loader).toEqual({ kind: 'file', path: './src/data/categories.json' });
+ });
+
+ it('accepts a registry row and rejects a bad id', () => {
+ const row = {
+ id: 'ai-local',
+ label: { en: 'Local AI', vi: 'AI cục bộ' },
+ icon: 'bot',
+ order: 1,
+ };
+ expect(categories.schema.safeParse(row).success).toBe(true);
+ expect(categories.schema.safeParse({ ...row, id: 'AI Local' }).success).toBe(false);
+ });
+});
+
+describe('apps schema (L1)', () => {
+ it('accepts a complete entry', () => {
+ expect(issues(app())).toEqual([]);
+ });
+
+ it('rejects unknown keys, so the export contract cannot silently grow', () => {
+ expect(issues(app({ rating: 5 }))).toEqual(['']);
+ });
+
+ it('accepts only the three logo forms', () => {
+ for (const logo of ['simple-icons:7zip', 'local:seven-zip.svg', 'monogram']) {
+ expect(issues(app({ logo }))).toEqual([]);
+ }
+ for (const logo of ['simple-icons:7-Zip', 'local:logo.png', 'https://x.test/a.svg']) {
+ expect(issues(app({ logo }))).toEqual(['logo']);
+ }
+ });
+
+ it('bounds summaries, categories, tags and platforms', () => {
+ expect(
+ issues(app({ summary: { en: 'too short', vi: 'Trình nén tệp với tỷ lệ nén cao.' } })),
+ ).toEqual(['summary.en']);
+ expect(issues(app({ categories: [] }))).toEqual(['categories']);
+ expect(issues(app({ categories: ['a', 'b', 'c', 'd'] }))).toEqual(['categories']);
+ expect(issues(app({ tags: ['Not Kebab'] }))).toEqual(['tags.0']);
+ expect(issues(app({ tags: Array.from({ length: 9 }, (_, i) => `t${i}`) }))).toEqual(['tags']);
+ expect(issues(app({ platforms: [] }))).toEqual(['platforms']);
+ expect(issues(app({ platforms: ['android'] }))).toEqual(['platforms.0']);
+ });
+
+ it('defaults tags to an empty list', () => {
+ const entry: Record = app();
+ Reflect.deleteProperty(entry, 'tags');
+ const r = apps.schema.safeParse(entry) as { success: boolean; data?: { tags: string[] } };
+ expect(r.success).toBe(true);
+ expect(r.data?.tags).toEqual([]);
+ });
+
+ it('allows only the three pricing buckets (hard rule 3)', () => {
+ expect(issues(app({ pricing: 'onetime' }))).toEqual([]);
+ expect(issues(app({ pricing: 'subscription' }))).toEqual(['pricing']);
+ });
+
+ it('wants https links, a nullable repo, and no http anywhere', () => {
+ const links = app().links;
+ expect(issues(app({ links: { ...links, repo: 'https://github.com/ip7z/7zip' } }))).toEqual([]);
+ expect(issues(app({ links: { ...links, homepage: 'http://www.7-zip.org' } }))).toEqual([
+ 'links.homepage',
+ ]);
+ expect(issues(app({ links: { ...links, download: 'not a url' } }))).toEqual(['links.download']);
+ });
+
+ it('requires evidence for a status that claims something (hard rule 4)', () => {
+ const security = app().security;
+ for (const status of ['clean', 'flagged']) {
+ expect(issues(app({ security: { ...security, status, evidence: null } }))).toEqual([
+ 'security.evidence',
+ ]);
+ }
+ expect(
+ issues(app({ security: { ...security, status: 'unverified', evidence: null } })),
+ ).toEqual([]);
+ expect(issues(app({ security: { ...security, status: 'safe' } }))).toEqual(['security.status']);
+ });
+
+ it('takes only real, past calendar dates', () => {
+ const security = app().security;
+ expect(issues(app({ addedAt: '2026-02-31' }))).toEqual(['addedAt']);
+ expect(issues(app({ addedAt: '28/07/2026' }))).toEqual(['addedAt']);
+ expect(issues(app({ addedAt: '2999-01-01' }))).toEqual(['addedAt']);
+ expect(issues(app({ security: { ...security, checkedAt: TODAY } }))).toEqual([]);
+ });
+
+ it('keeps updatedAt on or after addedAt', () => {
+ expect(issues(app({ updatedAt: '2026-07-28' }))).toEqual([]);
+ expect(issues(app({ updatedAt: '2026-07-01' }))).toEqual(['updatedAt']);
+ });
+});
diff --git a/src/content.config.ts b/src/content.config.ts
index 0deab79..417ebfb 100644
--- a/src/content.config.ts
+++ b/src/content.config.ts
@@ -8,8 +8,10 @@
// fails the build (hard rule 2). Cross-file rules Zod cannot see live in L2,
// scripts/validate-data.mjs (docs/03 §2).
-import { defineCollection, reference, z } from 'astro:content';
+import { defineCollection, reference } from 'astro:content';
import { glob, file } from 'astro/loaders';
+// `z` from 'astro:content' is deprecated and goes away in Astro 8.
+import { z } from 'astro/zod';
/** Today in UTC, at build time: data dated after the build is a typo. */
const TODAY = new Date().toISOString().slice(0, 10);
@@ -17,13 +19,20 @@ const TODAY = new Date().toISOString().slice(0, 10);
/**
* A real calendar date in YYYY-MM-DD, not in the future. The regex alone let
* `2026-02-31` through; round-tripping through Date catches impossible days.
+ * Zod runs this refinement even after the regex failed, and an unparseable
+ * string makes `toISOString()` THROW — which crashed the build with a bare
+ * RangeError instead of naming the field — so the NaN case is answered first.
*/
const DATE = z
.string()
.regex(/^\d{4}-\d{2}-\d{2}$/, 'YYYY-MM-DD')
- .refine((d) => new Date(`${d}T00:00:00Z`).toISOString().slice(0, 10) === d, {
- message: 'not a real calendar date',
- })
+ .refine(
+ (d) => {
+ const t = Date.parse(`${d}T00:00:00Z`);
+ return !Number.isNaN(t) && new Date(t).toISOString().slice(0, 10) === d;
+ },
+ { message: 'not a real calendar date' },
+ )
.refine((d) => d <= TODAY, { message: 'date is in the future' });
const HTTPS = z.url().refine((u) => u.startsWith('https://'), { message: 'https:// only' });
diff --git a/src/i18n/index.test.ts b/src/i18n/index.test.ts
index 772f016..4fe2284 100644
--- a/src/i18n/index.test.ts
+++ b/src/i18n/index.test.ts
@@ -5,7 +5,7 @@
import { describe, expect, it } from 'vitest';
import en from './en.json';
import vi from './vi.json';
-import { localeFromPath, localePair, localePath, t } from './index';
+import { appCount, localeFromPath, localePair, localePath, t } from './index';
import { canonicalPath } from '../lib/locale';
describe('t() — lookup and interpolation', () => {
@@ -25,6 +25,19 @@ describe('t() — lookup and interpolation', () => {
});
});
+describe('appCount() — plural rule and digit grouping per language', () => {
+ it('never prints "1 apps"', () => {
+ expect(appCount('en', 1)).toBe('1 app');
+ expect(appCount('en', 0)).toBe('0 apps');
+ expect(appCount('en', 1368)).toBe('1,368 apps');
+ });
+
+ it('uses Vietnamese grouping, which has no plural form', () => {
+ expect(appCount('vi', 1)).toBe('1 ứng dụng');
+ expect(appCount('vi', 1368)).toBe('1.368 ứng dụng');
+ });
+});
+
describe('dictionary parity (hard rule 6 — same check CI runs)', () => {
it('EN and VI have identical key sets', () => {
expect(Object.keys(vi).sort()).toEqual(Object.keys(en).sort());
diff --git a/src/lib/constants.test.ts b/src/lib/constants.test.ts
new file mode 100644
index 0000000..9c8a75e
--- /dev/null
+++ b/src/lib/constants.test.ts
@@ -0,0 +1,33 @@
+// SPDX-License-Identifier: GPL-3.0-only
+// Copyright (C) 2026 poli0981 (SkullMute)
+//
+// Two modules that are data rather than logic, pinned to the decisions behind
+// them: one address per purpose on poli0981.dev (D27), and the single inline
+// stylesheet whose hash astro.config.ts adds to style-src (check:csp holds
+// the rendered element to it on every build).
+
+import { describe, expect, it } from 'vitest';
+import { CONTACTS } from './contacts';
+import { VIEW_TRANSITION_OPT_IN } from './inlineCss';
+
+describe('CONTACTS (D27)', () => {
+ it('routes every purpose to its own poli0981.dev alias', () => {
+ const addresses = Object.values(CONTACTS);
+ for (const address of addresses) expect(address).toMatch(/^[a-z]+@poli0981\.dev$/);
+ expect(new Set(addresses).size).toBe(addresses.length);
+ });
+
+ it('offers no paid-placement or unrelated-project address', () => {
+ const addresses = Object.values(CONTACTS).join(' ');
+ expect(addresses).not.toContain('sponsor@');
+ expect(addresses).not.toContain('games@');
+ });
+});
+
+describe('VIEW_TRANSITION_OPT_IN', () => {
+ it('opts into cross-document transitions only without a reduced-motion preference', () => {
+ expect(VIEW_TRANSITION_OPT_IN).toBe(
+ '@media (prefers-reduced-motion:no-preference){@view-transition{navigation:auto}}',
+ );
+ });
+});
diff --git a/src/lib/paths.test.ts b/src/lib/paths.test.ts
index 52924ca..654d455 100644
--- a/src/lib/paths.test.ts
+++ b/src/lib/paths.test.ts
@@ -2,11 +2,15 @@
// Copyright (C) 2026 poli0981 (SkullMute)
import { describe, expect, it, vi } from 'vitest';
-import { byAddedDesc } from './paths';
+import { appPathsEn, appPathsVi, byAddedDesc, categoryPathsEn, categoryPathsVi } from './paths';
-// paths.ts builds getStaticPaths from the content layer; only its comparator
-// is under test here, so the virtual module is stubbed out.
-vi.mock('astro:content', () => ({ getCollection: vi.fn() }));
+// paths.ts builds getStaticPaths from the content layer, so the virtual
+// module is stubbed with two tiny collections.
+vi.mock('astro:content', () => ({
+ getCollection: vi.fn(async (name: string) =>
+ name === 'apps' ? [{ id: '7-zip', data: {} }] : [{ id: 'utilities', data: {} }],
+ ),
+}));
const entry = (name: string, addedAt: string) => ({ data: { name, addedAt } });
@@ -26,3 +30,19 @@ describe('byAddedDesc — category page order', () => {
expect(sorted).toEqual(['7-Zip', 'cherrytree', 'Chocolatey', 'Écrit', 'Hugin', 'Zed']);
});
});
+
+describe('getStaticPaths builders', () => {
+ it('emit one route per app and per category, carrying the page locale', async () => {
+ expect(await appPathsEn()).toEqual([
+ { params: { slug: '7-zip' }, props: { app: { id: '7-zip', data: {} }, locale: 'en' } },
+ ]);
+ expect((await appPathsVi())[0]?.props.locale).toBe('vi');
+ expect(await categoryPathsEn()).toEqual([
+ {
+ params: { id: 'utilities' },
+ props: { category: { id: 'utilities', data: {} }, locale: 'en' },
+ },
+ ]);
+ expect((await categoryPathsVi())[0]?.props.locale).toBe('vi');
+ });
+});
diff --git a/src/pages/_endpoints.test.ts b/src/pages/_endpoints.test.ts
new file mode 100644
index 0000000..cd10d87
--- /dev/null
+++ b/src/pages/_endpoints.test.ts
@@ -0,0 +1,98 @@
+// SPDX-License-Identifier: GPL-3.0-only
+// Copyright (C) 2026 poli0981 (SkullMute)
+//
+// The three data endpoints, run against a stubbed content layer. Their logic
+// lives in src/lib (feed.ts, search.ts) and is tested there; what is pinned
+// here is the wiring: which fields leave the collection, the guid seam in the
+// feed, and the export's plain category ids. The leading `_` keeps this file
+// out of Astro's routing.
+
+import type { APIContext } from 'astro';
+import MiniSearch from 'minisearch';
+import { describe, expect, it, vi } from 'vitest';
+import { miniSearchOptions, type SearchDoc } from '../lib/searchOptions';
+
+const APPS = [
+ {
+ id: 'zeta-tool',
+ data: {
+ name: 'Zeta Tool',
+ summary: { en: 'Zeta summary & more', vi: 'Tóm tắt Zeta' },
+ tags: ['cli'],
+ categories: [{ id: 'utilities', collection: 'categories' }],
+ addedAt: '2026-07-28',
+ },
+ },
+ {
+ id: 'alpha-app',
+ data: {
+ name: 'Alpha App',
+ summary: { en: 'Alpha summary', vi: 'Tóm tắt Alpha' },
+ tags: ['portable', 'editor'],
+ categories: [
+ { id: 'ide-editor', collection: 'categories' },
+ { id: 'developer-tools', collection: 'categories' },
+ ],
+ addedAt: '2026-10-21',
+ },
+ },
+];
+
+vi.mock('astro:content', () => ({ getCollection: async () => APPS }));
+
+const context = (site?: string) =>
+ ({ site: site ? new URL(site) : undefined }) as unknown as APIContext;
+
+describe('/rss.xml', () => {
+ it('lists the newest first with the bare slug as a non-permalink guid', async () => {
+ const { GET } = await import('./rss.xml');
+ const xml = await (await GET(context('https://softharbor.net'))).text();
+
+ const guids = [...xml.matchAll(/([^<]+)<\/guid>/g)].map((m) => m[1]);
+ expect(guids).toEqual(['alpha-app', 'zeta-tool']);
+ expect(xml).toContain('https://softharbor.net/apps/alpha-app');
+ expect(xml).toContain('Zeta summary & more');
+ // No channel-level build date: a redeploy must not change the bytes.
+ expect(xml).not.toContain('');
+ });
+
+ it('falls back to the canonical origin when the build has no `site`', async () => {
+ const { GET } = await import('./rss.xml');
+ const xml = await (await GET(context())).text();
+ expect(xml).toContain('https://softharbor.net/apps/zeta-tool');
+ });
+});
+
+describe('/search-index.json', () => {
+ it('serves a loadable MiniSearch index over the raw fields', async () => {
+ const { GET } = await import('./search-index.json');
+ const res = await GET(context());
+ expect(res.headers.get('Content-Type')).toBe('application/json');
+
+ const json = await res.text();
+ // `as never`, as in src/lib/searchIndex.ts: the options are a readonly
+ // literal, MiniSearch's Options type wants mutable arrays.
+ const index = MiniSearch.loadJSON(json, miniSearchOptions as never);
+ expect(index.documentCount).toBe(2);
+ expect(index.search('portable').map((r) => r.id)).toEqual(['alpha-app']);
+ });
+});
+
+describe('/api/apps.json', () => {
+ it('exports every entry with its slug and plain category ids', async () => {
+ const { GET } = await import('./api/apps.json');
+ const res = await GET(context());
+ expect(res.headers.get('Content-Type')).toBe('application/json; charset=utf-8');
+
+ const body = (await res.json()) as {
+ schemaVersion: number;
+ count: number;
+ apps: Array<{ slug: string; categories: string[]; name: string }>;
+ };
+ expect(body.schemaVersion).toBe(1);
+ expect(body.count).toBe(2);
+ expect(body.apps.map((a) => a.slug)).toEqual(['alpha-app', 'zeta-tool']);
+ expect(body.apps[0]?.categories).toEqual(['ide-editor', 'developer-tools']);
+ expect(body.apps[0]?.name).toBe('Alpha App');
+ });
+});
diff --git a/src/scripts/head.test.ts b/src/scripts/head.test.ts
new file mode 100644
index 0000000..7630c97
--- /dev/null
+++ b/src/scripts/head.test.ts
@@ -0,0 +1,259 @@
+// @vitest-environment happy-dom
+// SPDX-License-Identifier: GPL-3.0-only
+// Copyright (C) 2026 poli0981 (SkullMute)
+//
+// The three head scripts ship verbatim (Base.astro, `?url&no-inline`), so
+// nothing type-checks or bundles them. Each test re-imports the REAL file after
+// vi.resetModules(), which re-runs its IIFE against the globals set up first.
+// src/lib/prefs.test.ts separately pins theme.js to the typed helpers it
+// mirrors; this file covers what the scripts do on their own.
+
+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
+
+// Classic scripts, not modules: a specifier held in a variable keeps the type
+// checker from demanding exports while Vitest still resolves (and measures)
+// the real file next to this one.
+const SCRIPTS = {
+ theme: './theme.js',
+ errors: './errors.js',
+ analytics: './analytics.js',
+} as const;
+
+async function run(name: keyof typeof SCRIPTS): Promise {
+ vi.resetModules();
+ await import(/* @vite-ignore */ SCRIPTS[name]);
+}
+
+function stubStorage(seed: Record = {}, mode: 'ok' | 'throws' = 'ok') {
+ const map = new Map(Object.entries(seed));
+ Object.defineProperty(globalThis, 'localStorage', {
+ configurable: true,
+ value: {
+ getItem: (k: string) => {
+ if (mode === 'throws') throw new DOMException('denied', 'SecurityError');
+ return map.get(k) ?? null;
+ },
+ },
+ });
+}
+
+function prefersDark(dark: boolean) {
+ vi.stubGlobal('matchMedia', (query: string) => ({ matches: dark, media: query }));
+}
+
+const root = () => document.documentElement;
+
+/** happy-dom's own window API; not part of the DOM typings. */
+const setURL = (url: string) =>
+ (window as unknown as { happyDOM: { setURL(url: string): void } }).happyDOM.setURL(url);
+
+const clearPrefs = () => {
+ for (const attr of ['data-theme', 'data-scrollbar', 'data-motion']) root().removeAttribute(attr);
+};
+
+afterEach(() => {
+ vi.unstubAllGlobals();
+ vi.restoreAllMocks();
+ clearPrefs();
+});
+
+describe('theme.js (pre-paint display preferences)', () => {
+ it('applies an explicit stored theme over the OS setting', async () => {
+ stubStorage({ 'sh:theme': 'dark' });
+ prefersDark(false);
+ await run('theme');
+ expect(root().dataset['theme']).toBe('dark');
+ });
+
+ it('follows the OS when nothing valid is stored', async () => {
+ stubStorage({ 'sh:theme': 'sepia' });
+ prefersDark(true);
+ await run('theme');
+ expect(root().dataset['theme']).toBe('dark');
+
+ prefersDark(false);
+ await run('theme');
+ expect(root().dataset['theme']).toBe('light');
+ });
+
+ it('falls back to the OS when storage throws instead of aborting', async () => {
+ stubStorage({}, 'throws');
+ prefersDark(true);
+ await run('theme');
+ expect(root().dataset['theme']).toBe('dark');
+ expect(root().dataset['scrollbar']).toBeUndefined();
+ expect(root().dataset['motion']).toBeUndefined();
+ });
+
+ it('applies only known scrollbar and motion choices', async () => {
+ prefersDark(false);
+ stubStorage({ 'sh:scrollbar': 'thin', 'sh:motion': 'reduce' });
+ await run('theme');
+ expect(root().dataset['scrollbar']).toBe('thin');
+ expect(root().dataset['motion']).toBe('reduce');
+
+ clearPrefs();
+ stubStorage({ 'sh:scrollbar': 'wide', 'sh:motion': 'fast' });
+ await run('theme');
+ expect(root().dataset['scrollbar']).toBeUndefined();
+ expect(root().dataset['motion']).toBeUndefined();
+
+ stubStorage({ 'sh:scrollbar': 'hidden' });
+ await run('theme');
+ expect(root().dataset['scrollbar']).toBe('hidden');
+ });
+
+ it("marks an aborted view transition's promises as handled", async () => {
+ stubStorage();
+ prefersDark(false);
+ await run('theme');
+
+ const promise = () => ({ catch: vi.fn() });
+ const vt = { ready: promise(), finished: promise(), updateCallbackDone: undefined };
+ for (const type of ['pageswap', 'pagereveal']) {
+ window.dispatchEvent(Object.assign(new Event(type), { viewTransition: vt }));
+ }
+ expect(vt.ready.catch).toHaveBeenCalled();
+ expect(vt.finished.catch).toHaveBeenCalled();
+
+ // A navigation without a transition carries none; nothing to settle.
+ expect(() => window.dispatchEvent(new Event('pagereveal'))).not.toThrow();
+ });
+});
+
+describe('errors.js (console ring buffer)', () => {
+ const buffer = () => (globalThis as unknown as { __shErrors: string[] }).__shErrors;
+ const fire = (target: EventTarget, type: string, props: Record) =>
+ target.dispatchEvent(Object.assign(new Event(type), props));
+ const scriptError = (props: Record) =>
+ window.dispatchEvent(new ErrorEvent('error', props));
+
+ beforeEach(async () => {
+ Reflect.deleteProperty(globalThis, '__shErrors');
+ await run('errors');
+ });
+
+ it('records same-origin script errors with their position, stamped', () => {
+ scriptError({
+ message: 'boom',
+ filename: `${location.origin}/_astro/app.js`,
+ lineno: 3,
+ colno: 7,
+ });
+ expect(buffer()).toHaveLength(1);
+ expect(buffer()[0]).toMatch(
+ /^\[\d{4}-\d\d-\d\dT[^\]]+\] \/\S* error: boom @ .*\/_astro\/app\.js:3:7$/,
+ );
+ });
+
+ it('labels an error without a file as inline', () => {
+ scriptError({ message: 'inline boom', lineno: 1, colno: 2 });
+ expect(buffer()[0]).toContain('error: inline boom @ inline:1:2');
+ });
+
+ it('skips resource failures and other origins', () => {
+ scriptError({ message: '' });
+ scriptError({ message: 'extension', filename: 'chrome-extension://abc/content.js' });
+ expect(buffer()).toEqual([]);
+ });
+
+ it('de-duplicates a repeating failure and keeps only the newest 20 lines', () => {
+ for (let i = 0; i < 3; i++) scriptError({ message: 'loop' });
+ expect(buffer()).toHaveLength(1);
+
+ for (let i = 0; i < 25; i++) scriptError({ message: `distinct ${i}` });
+ expect(buffer()).toHaveLength(20);
+ expect(buffer().at(-1)).toContain('distinct 24');
+ expect(buffer().some((line) => line.includes('error: loop'))).toBe(false);
+ });
+
+ it('caps a line at 500 characters', () => {
+ scriptError({ message: 'x'.repeat(2000) });
+ expect(buffer()[0]).toHaveLength(500);
+ });
+
+ it('records unhandled rejections by the first two stack lines, or the value', () => {
+ const err = new Error('nope');
+ err.stack = 'Error: nope\n at a (x.js:1:1)\n at b (y.js:2:2)';
+ fire(window, 'unhandledrejection', { reason: err });
+ fire(window, 'unhandledrejection', { reason: 'plain reason' });
+ expect(buffer()[0]).toContain('unhandledrejection: Error: nope | at a (x.js:1:1)');
+ expect(buffer()[0]).not.toContain('y.js');
+ expect(buffer()[1]).toContain('unhandledrejection: plain reason');
+ });
+
+ it('records CSP violations, which a meta policy cannot report anywhere else', () => {
+ fire(document, 'securitypolicyviolation', {
+ effectiveDirective: 'script-src-elem',
+ blockedURI: 'https://evil.example/x.js',
+ sourceFile: `${location.origin}/apps`,
+ lineNumber: 12,
+ });
+ fire(document, 'securitypolicyviolation', { effectiveDirective: 'style-src-attr' });
+ expect(buffer()[0]).toContain(
+ `csp: script-src-elem blocked https://evil.example/x.js @ ${location.origin}/apps:12`,
+ );
+ expect(buffer()[1]).toContain('csp: style-src-attr blocked inline');
+ });
+
+ it("records Astro's re-dispatched hydration errors", () => {
+ fire(document, 'astro:hydration-error', {
+ detail: { componentUrl: '/_astro/ShSearch.js', error: new Error('hydrate') },
+ });
+ fire(document, 'astro:hydration-error', {});
+ expect(buffer()[0]).toContain('hydration: /_astro/ShSearch.js — Error: hydrate');
+ expect(buffer()[1]).toContain('hydration: ? — undefined');
+ });
+
+ it('keeps the buffer another copy of the script already created', async () => {
+ (globalThis as Record)['__shErrors'] = ['[earlier] kept'];
+ await run('errors');
+ expect(buffer()).toEqual(['[earlier] kept']);
+ });
+});
+
+describe('analytics.js (Web Analytics beacon, D26)', () => {
+ const append = () => vi.spyOn(document.head, 'append').mockImplementation(() => {});
+
+ function setGpc(value: boolean | undefined) {
+ Object.defineProperty(navigator, 'globalPrivacyControl', { configurable: true, value });
+ }
+
+ afterEach(() => {
+ setURL('http://localhost:3000/');
+ setGpc(undefined);
+ });
+
+ it('loads the beacon on the production host when GPC is not set', async () => {
+ setURL('https://softharbor.net/apps');
+ setGpc(undefined);
+ const spy = append();
+ await run('analytics');
+
+ expect(spy).toHaveBeenCalledTimes(1);
+ const beacon = spy.mock.calls[0]?.[0] as HTMLScriptElement;
+ expect(beacon.type).toBe('module');
+ expect(beacon.src).toBe('https://static.cloudflareinsights.com/beacon.min.js');
+ expect(JSON.parse(beacon.dataset['cfBeacon'] ?? '')).toEqual({
+ token: '3901bbd0eb53453aa51bc10390e07fd3',
+ });
+ });
+
+ it('sends nothing under Global Privacy Control', async () => {
+ setURL('https://softharbor.net/');
+ setGpc(true);
+ const spy = append();
+ await run('analytics');
+ expect(spy).not.toHaveBeenCalled();
+ });
+
+ it('sends nothing from previews, localhost or the e2e suite', async () => {
+ setGpc(false);
+ const spy = append();
+ for (const url of ['http://localhost:4321/', 'https://abc123-softharbor.workers.dev/']) {
+ setURL(url);
+ await run('analytics');
+ }
+ expect(spy).not.toHaveBeenCalled();
+ });
+});
diff --git a/tsconfig.json b/tsconfig.json
index 15a21b1..2c1656f 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -6,5 +6,13 @@
"verbatimModuleSyntax": true
},
"include": [".astro/types.d.ts", "**/*"],
- "exclude": ["dist", "node_modules", ".claude"]
+ "exclude": [
+ "dist",
+ "node_modules",
+ ".claude",
+ "coverage",
+ ".wrangler",
+ "playwright-report",
+ "test-results"
+ ]
}
diff --git a/vitest.config.ts b/vitest.config.ts
index e3ea7b5..9a0d730 100644
--- a/vitest.config.ts
+++ b/vitest.config.ts
@@ -9,31 +9,47 @@ import { getViteConfig } from 'astro/config';
export default getViteConfig({
test: {
- // `pnpm coverage`. Scoped to the code that ships to visitors; the build
- // scripts run as child processes in their tests (scripts/fixture.ts), which
- // V8 coverage cannot see, so they are judged by those tests' assertions.
+ // `pnpm coverage`, also read by SonarQube Cloud (sonar-project.properties).
+ // Every analysed source is measured: the code that ships to visitors, the
+ // Worker, and the build scripts. Those run as child processes in their
+ // tests (scripts/fixture.ts); `autoAttachSubprocess` hands each child
+ // NODE_V8_COVERAGE, so their real runs count. Do not also import a script
+ // in-process: Vitest merges the two kinds of coverage for one file wrongly.
// Thresholds sit just under the measured numbers: a ratchet, not a goal —
// raise them when coverage rises, never lower them to land a change.
coverage: {
provider: 'v8',
+ autoAttachSubprocess: true,
include: [
'src/lib/**/*.ts',
'src/i18n/**/*.ts',
+ 'src/scripts/**/*.js',
+ 'src/pages/**/*.ts',
+ 'src/content.config.ts',
'src/components/islands/**/*.svelte',
'worker/**/*.ts',
+ 'scripts/**/*.mjs',
],
exclude: ['**/*.test.ts'],
reporter: ['text-summary', 'html', 'lcov'],
- thresholds: { statements: 93, branches: 78, functions: 90, lines: 93 },
+ thresholds: { statements: 96, branches: 85, functions: 95, lines: 97 },
},
projects: [
{
- // Pure logic — src/lib/**. No DOM, so a DOM bug can never hide here.
+ // Pure logic — src/lib/** — plus the schema, the endpoints and the
+ // head scripts. No DOM by default, so a DOM bug can never hide here;
+ // a file that needs one says so with `@vitest-environment happy-dom`.
+ // Endpoint tests sit in src/pages/ behind a leading `_`, which keeps
+ // them out of Astro's routing.
extends: true,
test: {
name: 'unit',
environment: 'node',
- include: ['src/{lib,i18n,styles}/**/*.test.ts'],
+ include: [
+ 'src/{lib,i18n,styles,scripts}/**/*.test.ts',
+ 'src/pages/**/_*.test.ts',
+ 'src/*.test.ts',
+ ],
},
},
{
diff --git a/worker/verify.test.ts b/worker/verify.test.ts
index f661342..153b33a 100644
--- a/worker/verify.test.ts
+++ b/worker/verify.test.ts
@@ -219,4 +219,26 @@ describe('the Worker entry', () => {
expect(api.status).toBe(503);
expect(assets).toHaveBeenCalledTimes(1);
});
+
+ it('hands the handler the real fetch, clock and logger', async () => {
+ const siteverify = vi.fn(async (input: RequestInfo | URL) => {
+ expect(String(input)).toBe(SITEVERIFY);
+ return Response.json({ ...PASSED, challenge_ts: new Date().toISOString() });
+ });
+ vi.stubGlobal('fetch', siteverify);
+ const log = vi.spyOn(console, 'log').mockImplementation(() => {});
+ try {
+ const env: Env = {
+ ASSETS: { fetch: async () => new Response('page') },
+ TURNSTILE_SECRET: SECRET,
+ };
+ const res = await worker.fetch(request(), env);
+ expect(res.status).toBe(200);
+ expect(siteverify).toHaveBeenCalledTimes(1);
+ expect(JSON.parse(String(log.mock.calls[0]?.[0]))).toMatchObject({ outcome: 'ok' });
+ } finally {
+ vi.unstubAllGlobals();
+ log.mockRestore();
+ }
+ });
});