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

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
---
# bf-xcqu
title: Apply pending Renovate updates and release 0.4.0
status: completed
type: task
priority: normal
created_at: 2026-11-05T14:45:57Z
updated_at: 2026-11-05T15:27:37Z
---

Apply every open item on the Renovate dependency dashboard (#44), run the full gate and E2E, with the 0.4.0 changelog entry. Merging and tagging v0.4.0 follow the PR.

## Non-major

- [x] @tanstack/react-router 1.170.46, @tanstack/react-query 5.105.0
- [x] hono 4.13.14, tsx 4.23.15, zod 4.6.7, marked 18.1.2 (graphql 17.1.0 held: inside 7-day release age)
- [x] react / react-dom 19.3.1
- [x] dev dependencies (non-major) group
- [x] github actions group (setup-node, upload-artifact, codecov, codeql, pnpm/action-setup)
- [x] golang 1.27 docker tag
- [x] pnpm 11.28.9 (superseded by pnpm 12)
- [x] golang: 1.27.3 rather than the dashboard 1.27.2, which carries HIGH CVE-2026-111943 that 1.26.10 already fixed
- [x] zizmor 1.32.0 (held: inside 7-day release age)

## Major

- [x] @types/node v26
- [x] eslint-plugin-unicorn v79
- [x] typescript v7 (held at 6.0.3: typescript-eslint 8.72.1 still throws under TS 7)
- [x] node v26 (.nvmrc, engines, both Dockerfile stages, README, CONTRIBUTING; corepack installed from npm)
- [x] pnpm v12
- [x] vitest / @vitest/coverage-v8 v5
- [x] chokidar v6
- [x] jsdom v31 (held: published today, inside 7-day release age)

## Verification

- [x] Full CI gate locally
- [x] E2E (60/60)
- [x] docker build, Trivy HIGH/CRITICAL clean, read-only container smoke test
- [x] CHANGELOG 0.4.0 entry

## Summary of Changes

- Every dashboard update applied at the newest version at least 7 days old (Renovate minimumReleaseAge), locked with `pnpm add <pkg>@<exact>`, then written back as `^` ranges. Held: graphql 17.1.0, jsdom 31.0.0, zizmor 1.32.0 (inside the 7-day window; user chose to hold) and TypeScript 7 (typescript-eslint 8.72.1 still caps at <6.1.0 and throws at import; tsc 7 itself typechecks clean).
- Node 26 floor moved in .nvmrc, engines, both Dockerfile stages, README, CONTRIBUTING. Node 25+ ships no corepack, so the image installs corepack (ARG COREPACK_VERSION, tracked by a new Renovate regex manager).
- pnpm 12 is a native binary; corepack fetched it into the noexec /home/node/.cache tmpfs at first start and the container failed with EACCES. pnpm is now installed into the image at build (COREPACK_HOME=/usr/local/share/corepack, `corepack install && pnpm --version`). Verified: boots read-only, with and without the cache tmpfs, as uid 1234, and with --network none; nothing is written to /home/node/.cache, so the tmpfs was dropped from docker-compose.yml and the docs.
- Go 1.27.3 instead of the dashboard 1.27.2: 1.27.2 has HIGH CVE-2026-111943 (crypto/x509), fixed in 1.26.10 and 1.27.3; Trivy clean on 1.27.3.
- knip 6.43 fallout: RelationOrigin un-exported (only used in its file); redundant e2e/fixtures/serve.mjs entry removed.
- Gate: format, lint, typecheck, test:coverage (715 tests), knip, spell, codegen:check, check:pins, audit all pass on Node 26; E2E 60/60.

### Follow-up candidate

BeansWatcher attaches no `error` listener to chokidar. Both v5 and v6 emit `error` for non-ENOENT failures (e.g. EACCES on a .beans dir), which would throw. Pre-existing; not changed here.
42 changes: 21 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ jobs:
with:
persist-credentials: false

- uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10
- uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0

- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version-file: .nvmrc
cache: pnpm
Expand All @@ -61,9 +61,9 @@ jobs:
with:
persist-credentials: false

- uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10
- uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0

- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version-file: .nvmrc
cache: pnpm
Expand All @@ -83,9 +83,9 @@ jobs:
with:
persist-credentials: false

- uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10
- uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0

- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version-file: .nvmrc
cache: pnpm
Expand All @@ -105,9 +105,9 @@ jobs:
with:
persist-credentials: false

- uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10
- uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0

- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version-file: .nvmrc
cache: pnpm
Expand Down Expand Up @@ -151,7 +151,7 @@ jobs:
# keep coverage flags scoped correctly per package.
- name: Upload coverage to Codecov (shared)
if: always()
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./packages/shared/coverage/lcov.info
Expand All @@ -160,7 +160,7 @@ jobs:

- name: Upload coverage to Codecov (server)
if: always()
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./apps/server/coverage/lcov.info
Expand All @@ -169,7 +169,7 @@ jobs:

- name: Upload coverage to Codecov (web)
if: always()
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./apps/web/coverage/lcov.info
Expand Down Expand Up @@ -202,7 +202,7 @@ jobs:

- name: Upload coverage report
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: coverage-report
path: "**/coverage/"
Expand All @@ -218,9 +218,9 @@ jobs:
with:
persist-credentials: false

- uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10
- uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0

- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version-file: .nvmrc
cache: pnpm
Expand Down Expand Up @@ -268,7 +268,7 @@ jobs:

- name: Upload Playwright report
if: failure()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: playwright-report
path: apps/web/playwright-report/
Expand All @@ -287,9 +287,9 @@ jobs:
with:
persist-credentials: false

- uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10
- uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0

- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version-file: .nvmrc
cache: pnpm
Expand All @@ -309,9 +309,9 @@ jobs:
with:
persist-credentials: false

- uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10
- uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0

- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version-file: .nvmrc
cache: pnpm
Expand Down Expand Up @@ -421,14 +421,14 @@ jobs:
# A fork pull request's token cannot write to code scanning.
- name: Upload zizmor results
if: ${{ !cancelled() && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }}
uses: github/codeql-action/upload-sarif@5595ccaf912efad79be6eef63a5619ff05969be3 # v4.37.6
uses: github/codeql-action/upload-sarif@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1
with:
sarif_file: sarif/zizmor.sarif
category: zizmor

- name: Upload gitleaks results
if: ${{ !cancelled() && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }}
uses: github/codeql-action/upload-sarif@5595ccaf912efad79be6eef63a5619ff05969be3 # v4.37.6
uses: github/codeql-action/upload-sarif@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1
with:
sarif_file: sarif/gitleaks.sarif
category: gitleaks
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ jobs:
persist-credentials: false

- name: Initialize CodeQL
uses: github/codeql-action/init@5595ccaf912efad79be6eef63a5619ff05969be3 # v4.37.6
uses: github/codeql-action/init@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1
with:
languages: ${{ matrix.language }}
build-mode: none
queries: security-and-quality

- name: Analyze
uses: github/codeql-action/analyze@5595ccaf912efad79be6eef63a5619ff05969be3 # v4.37.6
uses: github/codeql-action/analyze@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1
with:
category: ${{ matrix.category }}
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
24
26
29 changes: 29 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,34 @@ All notable changes to this project are documented here. The format is based on
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres
to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.4.0] - 2026-11-05

Moves the image and the toolchain to Node 26 and applies the pending dependency
updates. The Docker image needs nothing new; running from source now needs
Node 26.

### Changed

- The image runs on Node 26, and the bundled `beans` binary is built with Go
1.27.3. Node 25 stopped shipping corepack, so the image installs it from npm.
- pnpm is now installed into the image at build time instead of being
downloaded on the container's first start. pnpm 12 is a native binary, and
Docker mounts tmpfs `noexec`, so the old approach could no longer run it. The
container now boots without network access, and `docker-compose.yml` drops
the `/home/node/.cache` tmpfs, which nothing writes to any more. A compose
file that still has it keeps working.
- The runtime dependencies move to React 19.3, TanStack Router 1.170.46,
TanStack Query 5.105, hono 4.13.14, zod 4.6.7, tsx 4.23.15, marked 18.1.2 and
chokidar 6, which now drives the `.beans` watcher behind live updates.
- The toolchain moves to pnpm 12, Vitest 5, Playwright 1.64 and
eslint-plugin-unicorn 79. TypeScript stays at 6, because typescript-eslint
still cannot load under 7.

### Upgrading

- Running from source needs Node 26 (see `.nvmrc`). pnpm 12 comes through
`packageManager`, with nothing to install by hand.

## [0.3.1] - 2026-11-04

Clears the advisories that had accumulated against the image since 0.3.0: in
Expand Down Expand Up @@ -433,6 +461,7 @@ local-first, Markdown-backed issue tracker.
subprocess timeout. Host filesystem paths are no longer exposed by
`GET /api/projects`. See [`docs/SECURITY.md`](docs/SECURITY.md).

[0.4.0]: https://github.com/ThePrismSystem/beans-web/releases/tag/v0.4.0
[0.3.1]: https://github.com/ThePrismSystem/beans-web/releases/tag/v0.3.1
[0.3.0]: https://github.com/ThePrismSystem/beans-web/releases/tag/v0.3.0
[0.2.1]: https://github.com/ThePrismSystem/beans-web/releases/tag/v0.2.1
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Prerequisites

Node.js 24+, pnpm, and the `beans` CLI on your `PATH`. See the [README](README.md#prerequisites).
Node.js 26+, pnpm, and the `beans` CLI on your `PATH`. See the [README](README.md#prerequisites).

```bash
pnpm install
Expand Down
33 changes: 24 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,19 @@
# package is consumed as raw TS), so the runtime image keeps the source +
# node_modules rather than a compiled JS bundle.

# Node 25 stopped bundling corepack, so both Node stages install it from npm.
# Declared before the first FROM so the two stages share one pin.
ARG COREPACK_VERSION=0.36.0

# ---------------------------------------------------------------------------
# Stage 1 — build the `beans` CLI. CGO is disabled so the result is a static
# binary that runs on any glibc/musl base without extra shared libraries.
# ---------------------------------------------------------------------------
# The Go patch version is pinned explicitly, not floated as "1.26-bookworm":
# The Go patch version is pinned explicitly, not floated as "1.27-bookworm":
# a newer patch can fix stdlib CVEs that the image-scan job's gobinary scan
# would otherwise catch drifting. CI derives its toolchain from this line (see
# .github/workflows/ci.yml) so both sides compile beans with the identical Go.
FROM golang:1.26.10-bookworm AS beans-builder
FROM golang:1.27.3-bookworm AS beans-builder
# Keep in sync with the pin in .github/workflows/ci.yml — the image must ship
# the binary CI tested against.
ARG BEANS_VERSION=v0.4.2
Expand All @@ -37,9 +41,10 @@ RUN cp "$(go env GOMODCACHE)"/github.com/hmans/beans@*/LICENSE /beans-LICENSE
# ---------------------------------------------------------------------------
# Stage 2 — install workspace deps and build the web SPA.
# ---------------------------------------------------------------------------
FROM node:24-bookworm-slim AS app-builder
FROM node:26-bookworm-slim AS app-builder
ARG COREPACK_VERSION
ENV PNPM_HOME=/pnpm PATH=/pnpm:$PATH
RUN corepack enable
RUN npm install -g "corepack@${COREPACK_VERSION}" && npm cache clean --force && corepack enable
WORKDIR /app

# Install with only the manifests first so the dependency layer caches well.
Expand All @@ -57,8 +62,13 @@ RUN pnpm --filter @beans-web/web build
# Stage 3 — runtime. Debian (glibc) base to match the Node ecosystem; the
# beans binary is static so it runs here regardless.
# ---------------------------------------------------------------------------
FROM node:24-bookworm-slim AS runtime
RUN corepack enable
FROM node:26-bookworm-slim AS runtime
ARG COREPACK_VERSION
# pnpm 12 is a native executable, and Docker mounts tmpfs noexec, so corepack
# can no longer fetch pnpm into a tmpfs cache on first run and start it from
# there. pnpm is installed into the image instead (see below).
ENV COREPACK_HOME=/usr/local/share/corepack
RUN npm install -g "corepack@${COREPACK_VERSION}" && npm cache clean --force && corepack enable

# The app runs pnpm through corepack and never invokes npm, but the base image's
# bundled npm still ships its own dependency tree — and its CVEs — into the scan
Expand All @@ -73,6 +83,12 @@ COPY --from=beans-builder /beans-LICENSE /usr/local/share/licenses/beans/LICENSE
# The app: source + node_modules (incl. tsx) + built web dist.
COPY --from=app-builder /app ./

# Install the pnpm that package.json's packageManager pins into COREPACK_HOME,
# readable by whatever uid compose runs the container as. `corepack install`
# stores only the package; its first run downloads the native binary beside
# it, so that run happens here rather than in a read-only container.
RUN corepack install && pnpm --version && chmod -R a+rX "$COREPACK_HOME"

ENV NODE_ENV=production \
HOST=0.0.0.0 \
PORT=4780 \
Expand All @@ -96,9 +112,8 @@ HEALTHCHECK --interval=30s --timeout=5s --start-period=20s --retries=3 \
# owner differs.
#
# Docker leaves HOME=/ for a numeric uid with no /etc/passwd entry (the case
# for any uid compose substitutes via `user:`), and corepack needs a writable
# HOME to place its cache. Pin it to the `node` user's home so the tmpfs at
# /home/node/.cache is actually the path corepack writes to.
# for any uid compose substitutes via `user:`). Pin it to the `node` user's
# home so every uid resolves the same paths.
ENV HOME=/home/node
USER node

Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![CI](https://github.com/ThePrismSystem/beans-web/actions/workflows/ci.yml/badge.svg)](https://github.com/ThePrismSystem/beans-web/actions/workflows/ci.yml)
[![codecov](https://codecov.io/gh/ThePrismSystem/beans-web/graph/badge.svg?token=N7I7FNHSIO)](https://codecov.io/gh/ThePrismSystem/beans-web)
[![TypeScript: strict](https://img.shields.io/badge/TypeScript-strict-3178c6?logo=typescript&logoColor=white)](tsconfig.base.json)
[![Node](https://img.shields.io/badge/node-%3E%3D24-339933?logo=node.js&logoColor=white)](.nvmrc)
[![Node](https://img.shields.io/badge/node-%3E%3D26-339933?logo=node.js&logoColor=white)](.nvmrc)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue)](LICENSE)

A web UI for [`beans`](https://github.com/hmans/beans), the local-first, Markdown-backed issue
Expand Down Expand Up @@ -52,9 +52,9 @@ See [`docs/ARCHITECTURE.md`](docs/ARCHITECTURE.md) for how the pieces fit togeth

## Prerequisites

- **Node.js 24+** (see `.nvmrc`)
- **Node.js 26+** (see `.nvmrc`)
- **pnpm** (see [pnpm.io/installation](https://pnpm.io/installation); this repo was built against
pnpm 11)
pnpm 12)
- The **`beans`** CLI binary on your `PATH`. Install it with:

```bash
Expand Down Expand Up @@ -248,9 +248,9 @@ whose immediate subfolders contain a `.beans.yml`.
Two things to know about the image. It ships source plus `node_modules` rather
than a compiled bundle, because the server runs through `tsx`, which makes it
larger than a typical Node image. And the shipped `docker-compose.yml` sets
`read_only: true` unconditionally, with tmpfs mounts for both `/tmp` and
`/home/node/.cache` — the latter is where corepack writes the pinned pnpm
version on first run, and the container fails to boot without it.
`read_only: true` unconditionally, with a tmpfs mount for `/tmp`. pnpm is
installed into the image at build time, so the container downloads nothing
when it starts.

## Quality checks

Expand Down
Loading
Loading