Repository navigation
chore: Update the toolchain and dependencies, and move to cn - #155
Conversation
The compiler emits the same memo slots for the inlined loop, so the manual hook only restated what it already does. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
React coordinates the capture, so the feature guard and the flushSync around the state update both go. The reduced-motion path now skips the transition rather than animating at zero duration. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qe4qPEEZguMBNMhaU8ecs6
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qe4qPEEZguMBNMhaU8ecs6
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qe4qPEEZguMBNMhaU8ecs6
Workerd cannot read the host-side cache that vitest 5 enables by default. Scoped to the worker project so dist and source keep the cache. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qe4qPEEZguMBNMhaU8ecs6
It matched third-party code, not a tw() marker. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qe4qPEEZguMBNMhaU8ecs6
Reads each literal tw() argument from src and checks the bundle holds it bare, never as a call. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qe4qPEEZguMBNMhaU8ecs6
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qe4qPEEZguMBNMhaU8ecs6
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qe4qPEEZguMBNMhaU8ecs6
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qe4qPEEZguMBNMhaU8ecs6
cn/vite compiles the merge tables into the ignored cn-tables.gen.ts; pnpm generate writes it from the same options before lint and tests. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qe4qPEEZguMBNMhaU8ecs6
Reads each tw() use from src under stripTw's import rule and checks the bundle holds every list bare. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qe4qPEEZguMBNMhaU8ecs6
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qe4qPEEZguMBNMhaU8ecs6
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
🚀 Deploying Preview to Cloudflare 🚀Preview URL: https://feat-not-found-view-transition-website.eve0415.workers.dev (commit bbde8dc)This URL reflects your latest Preview deploymentPreview Deployments by commit
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f6186ecbe5
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| {/* Triggers the capture; `none` keeps the container itself out of | ||
| it, so only the named children below animate, as they did under | ||
| the hand-rolled `document.startViewTransition`. */} | ||
| <ViewTransition default='none'> |
There was a problem hiding this comment.
Enable the update trigger on this ViewTransition
When a non-reduced-motion search completes, startTransition(apply) relies on this boundary to start the browser capture, but React defines default='none' as disabling every trigger that is not explicitly configured. Because no update prop is provided and this is the only React ViewTransition boundary, document.startViewTransition is not activated; the manually named result line and chips therefore pop in instead of running the existing transition animations.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
🔵 Needs a closer look
It combines a wide runtime/compatibility‑date/dependency bump (including a Durable Object eviction flag change and a library migration) whose correctness depends on running the full build/test/e2e gate, which cannot be verified here.
0 open findings
What changed in this PR
This PR is a broad, meticulously‑documented maintenance update for the eve0415.net personal site. It bumps the Node.js/pnpm runtime, compatibility date, dependencies and CI workflows, and migrates the cn class‑merge helper from clsx + tailwind-merge to the cn package (whose cn/vite plugin compiles merge tables into a gitignored src/lib/cn-tables.gen.ts). It also folds in two pre‑existing branch refactors: the 404 search result now uses React 19's <ViewTransition> instead of a hand‑rolled document.startViewTransition + flushSync, and a now‑unnecessary useMemo in the star field is removed.
Changes:
- Toolchain/deps: Node 24.21.0, pnpm 12.11.2,
compatibility_date2026‑10‑06,ubuntu-26.04-arm, pinned dependency bumps, and@cloudflare/vitest-pluginmoved from apkg.pr.newpreview to the npm release (removing workspace overrides). cnmigration: newcn-tables.config.ts,pnpm generateand CI now build the cn tables before lint; the generated file is excluded from gitignore/lint/fmt/coverage.- Refactors + test rework: 404
<ViewTransition>conversion, star‑fielduseMemoremoval, and a rewrittentw-markers.test.tsthat walks realtw()imports/calls via the oxc AST instead of the obsolete identity‑binding assertion.
| File | Description |
|---|---|
| wrangler.json | Advances compatibility_date to 2026‑10‑06. |
| vitest.config.ts | Disables fsModuleCache for workerd; excludes cn-tables.gen.ts from coverage. |
| vite.config.ts | Adds the cn/vite plugin and imports cnOptions. |
| tsconfig.json | Adds cn-tables.config.ts to the include list. |
| cn-tables.config.ts | New cn build options + a runnable import.meta.main generator. |
| src/lib/cn.ts | Replaces clsx+tailwind-merge with createCn(tables). |
| src/lib/cn.test.ts | Switches ClassValue import to cn; adds CSS‑var/size cases. |
| test/dist/tw-markers.test.ts | Rewrites marker checks around real imports/calls + bundle verdicts. |
| test/source/{strip-tw,plugin-harness}.ts | Comment/count updates only. |
| src/routes/.../not-found/index.tsx | Converts to React <ViewTransition> + startTransition. |
| src/routes/.../sky/star-field.tsx | Removes the compensating useMemo. |
| src/routes/.../site-header.tsx, comet-link.tsx, home/hero.tsx | Tailwind class canonicalizations (scrollbar-none, animate-[…], calc spacing). |
| package.json, pnpm-workspace.yaml, .node-version | Dependency/runtime pins; removes preview overrides. |
| oxlint.config.ts, oxfmt.config.ts, .gitignore | Ignore the generated cn tables file. |
| .github/workflows/{ci,update}.yaml | pnpm generate, action pin bumps, runner image bump. |
| .devcontainer/* | Image and feature version bumps. |
| AGENTS.md | Documentation/count updates for the cn switch and toolchain. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c55db8168a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| "placement": { | ||
| "mode": "smart" | ||
| }, |
There was a problem hiding this comment.
Keep the explicit empty Cron trigger list
When pnpm deploy targets an environment that still has the former hourly and weekly schedules—for example, one upgraded directly from the pre-rebuild release—omitting triggers will not remove them. Cloudflare specifies that undefined triggers or crons leaves deployed triggers in place, while disabling them requires crons: []; those schedules would therefore continue invoking a Worker whose src/server.ts no longer exports a scheduled handler. Restore the explicit empty trigger list removed after this block. Cloudflare Cron Trigger documentation
Useful? React with 👍 / 👎.
| "version_metadata": { | ||
| "binding": "CF_VERSION_METADATA" | ||
| }, | ||
| "previews": {} |
There was a problem hiding this comment.
Configure the email binding for Worker Previews
When Workers Builds runs wrangler preview for a non-production branch, this empty block does not inherit the top-level bindings; Cloudflare explicitly requires preview bindings to be declared under previews. Consequently, even after the preview's Turnstile and address secrets are configured, CONTACT_EMAIL remains absent, so a valid contact submission reaches env.CONTACT_EMAIL.send() in send-contact.ts, throws, and is returned as send-failed. Add a preview send_email binding and the corresponding preview settings, or avoid enabling a preview flow whose contact form cannot work. Cloudflare Worker Preview configuration
Useful? React with 👍 / 👎.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qe4qPEEZguMBNMhaU8ecs6
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qe4qPEEZguMBNMhaU8ecs6
Vite's native config loader rejects extensionless relative imports. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qe4qPEEZguMBNMhaU8ecs6
A Preview only gets the Durable Object bindings declared under previews. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qe4qPEEZguMBNMhaU8ecs6
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qe4qPEEZguMBNMhaU8ecs6
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qe4qPEEZguMBNMhaU8ecs6
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qe4qPEEZguMBNMhaU8ecs6
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qe4qPEEZguMBNMhaU8ecs6
Node.js compatibility is on by default from compatibility date 2026-08-04. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qe4qPEEZguMBNMhaU8ecs6
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qe4qPEEZguMBNMhaU8ecs6
Updates the runtime, toolchain, dependencies, compatibility date and workflows, and replaces
clsx+tailwind-mergewithcn. It also carries two refactors already on this branch: the 404 search result driven by<ViewTransition>, and auseMemoin the sky that React Compiler already covers.Changes
@cloudflare/vitest-pluginmoves from thepkg.pr.newpreview build to the npm release, so the workspace overrides are gone.compatibility_datemoves to 2026-10-06. The two flags that flip in that window,spec_compliant_dispatch_exceptionsanddurable_object_io_tasks_prevent_eviction, touch nothing in the Worker's server code.workervitest project disables vitest's file module cache, which workerd cannot read. It can go once [vitest-plugin] Fix filesystem module caching cloudflare/workers-sdk#16163 ships.pnpm/setupv3.1.1,upload-artifactv7.0.2,ubuntu-26.04-arm, and the obsoleteupdate-pnpm: next-12input dropped.cn: thecn/viteplugin compiles the merge tables intosrc/lib/cn-tables.gen.ts, which is gitignored.pnpm generatewrites the same file fromcn-tables.config.ts, and CI and the update workflow run it before lint.pnpm generatenow typesEnvfrom.dev.vars.exampleeverywhere.tw()marker tests: the identity-binding assertion only ever matched@tanstack/react-store'suseSelectordefault, and it was already failing onmain. Its replacement checks everytw()call and baretwreference insrcunderstripTw's import rule, and requires each marked list to ship as a bare string.For review
classattributes are identical before and after thecnswitch.ubuntu-26.04-armis exercised for the first time by this PR's own CI run.🤖 Generated with Claude Code
https://claude.ai/code/session_01Qe4qPEEZguMBNMhaU8ecs6