Skip to content

chore: update dependencies to latest versions#183

Merged
coji merged 13 commits intomainfrom
chore/update-deps
Mar 30, 2026
Merged

chore: update dependencies to latest versions#183
coji merged 13 commits intomainfrom
chore/update-deps

Conversation

@coji
Copy link
Copy Markdown
Owner

@coji coji commented Mar 30, 2026

Summary

  • Update all dependencies across the monorepo to their latest versions
  • Run biome migrate --write to update biome schema versions (2.4.7 → 2.4.9)
  • TypeScript stays at 5.9.3 — tsup and react-router do not yet support TypeScript 6
  • Update Node.js to 24 LTS, PostgreSQL to 17 in CI and Dockerfile
  • Simplify example Dockerfile for standalone use with pnpm deploy
  • Add .npmrc with inject-workspace-packages=true
  • Add READMEs to all examples with standalone usage instructions
  • Rename example directories for consistency with documentation

Notable dependency updates

Package From To
@biomejs/biome 2.4.7 2.4.9
better-sqlite3 12.6.2 12.8.0
kysely 0.28.12 0.28.14
vitest 4.1.0 4.1.2
vite 8.0.0 8.0.3
turbo 2.8.14 2.8.21
react-router 7.13.1 7.13.2
tailwindcss 4.2.1 4.2.2
@libsql/client 0.17.0 0.17.2
@types/pg 8.18.0 8.20.0
satori 0.25.0 0.26.0

Infrastructure updates

Item From To
CI Node.js 22 24 (LTS)
Dockerfile node 20-alpine 24-alpine
CI PostgreSQL 16-alpine 17-alpine

Example directory renames

Before After
fullstack-react-router fullstack
server-node server-libsql
server-node-postgres server-postgres
spa-vite-react spa-vite

Updated all references in website docs, skills, .vercelignore, and stale-name detection.

Dockerfile improvements

  • Simplified for standalone use — users can copy the example and build directly
  • Runs as non-root node user
  • Uses npm install -g pnpm instead of corepack (removed in Node.js 25+)

Test plan

  • pnpm validate passes locally (format, lint, typecheck, 244 tests)
  • Docker build succeeds and container starts (HTTP 200)
  • No stale references to old example directory names
  • CI passes with Node.js 24 and PostgreSQL 17

🤖 Generated with Claude Code

Update all dependencies across the monorepo. TypeScript stays at 5.9.3
as tsup and react-router do not yet support TypeScript 6.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 30, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

2 Skipped Deployments
Project Deployment Actions Updated (UTC)
durably-demo Ignored Ignored Preview Mar 30, 2026 2:53am
durably-demo-vercel-turso Ignored Ignored Preview Mar 30, 2026 2:53am

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Mar 30, 2026

Warning

Rate limit exceeded

@coji has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 18 minutes and 42 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 18 minutes and 42 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 97bbe1fe-7051-4981-a017-6f666403e0f9

📥 Commits

Reviewing files that changed from the base of the PR and between aa0363a and 9e6f12a.

⛔ Files ignored due to path filters (2)
  • examples/fullstack/public/favicon.ico is excluded by !**/*.ico
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (84)
  • .claude/skills/doc-check/SKILL.md
  • .claude/skills/doc-check/scripts/find-stale.sh
  • .claude/skills/release-check/SKILL.md
  • .npmrc
  • examples/fullstack-react-router/Dockerfile
  • examples/fullstack-react-router/README.md
  • examples/fullstack-vercel-turso/.vercelignore
  • examples/fullstack/.dockerignore
  • examples/fullstack/.gitignore
  • examples/fullstack/Dockerfile
  • examples/fullstack/README.md
  • examples/fullstack/app/app.css
  • examples/fullstack/app/jobs/data-sync.ts
  • examples/fullstack/app/jobs/import-csv.ts
  • examples/fullstack/app/jobs/index.ts
  • examples/fullstack/app/jobs/process-image.ts
  • examples/fullstack/app/lib/database.server.ts
  • examples/fullstack/app/lib/durably.server.ts
  • examples/fullstack/app/lib/durably.ts
  • examples/fullstack/app/root.tsx
  • examples/fullstack/app/routes.ts
  • examples/fullstack/app/routes/_index.tsx
  • examples/fullstack/app/routes/_index/dashboard.tsx
  • examples/fullstack/app/routes/_index/data-sync-form.tsx
  • examples/fullstack/app/routes/_index/data-sync-progress.tsx
  • examples/fullstack/app/routes/_index/image-processing-form.tsx
  • examples/fullstack/app/routes/_index/image-processing-progress.tsx
  • examples/fullstack/app/routes/_index/run-progress.tsx
  • examples/fullstack/app/routes/api.durably.$.ts
  • examples/fullstack/biome.json
  • examples/fullstack/package.json
  • examples/fullstack/prettier.config.js
  • examples/fullstack/react-router.config.ts
  • examples/fullstack/tsconfig.json
  • examples/fullstack/vite.config.ts
  • examples/server-libsql/.gitignore
  • examples/server-libsql/README.md
  • examples/server-libsql/basic.ts
  • examples/server-libsql/biome.json
  • examples/server-libsql/jobs/index.ts
  • examples/server-libsql/jobs/process-image.ts
  • examples/server-libsql/lib/database.ts
  • examples/server-libsql/lib/durably.ts
  • examples/server-libsql/package.json
  • examples/server-libsql/prettier.config.js
  • examples/server-libsql/tsconfig.json
  • examples/server-postgres/README.md
  • examples/server-postgres/basic.ts
  • examples/server-postgres/biome.json
  • examples/server-postgres/jobs/index.ts
  • examples/server-postgres/jobs/process-image.ts
  • examples/server-postgres/lib/database.ts
  • examples/server-postgres/lib/durably.ts
  • examples/server-postgres/package.json
  • examples/server-postgres/prettier.config.js
  • examples/server-postgres/tsconfig.json
  • examples/spa-vite/.gitignore
  • examples/spa-vite/README.md
  • examples/spa-vite/biome.json
  • examples/spa-vite/index.html
  • examples/spa-vite/package.json
  • examples/spa-vite/prettier.config.js
  • examples/spa-vite/src/App.tsx
  • examples/spa-vite/src/app.css
  • examples/spa-vite/src/components/dashboard.tsx
  • examples/spa-vite/src/components/data-sync-form.tsx
  • examples/spa-vite/src/components/data-sync-progress.tsx
  • examples/spa-vite/src/components/image-processing-form.tsx
  • examples/spa-vite/src/components/image-processing-progress.tsx
  • examples/spa-vite/src/components/index.ts
  • examples/spa-vite/src/components/run-progress.tsx
  • examples/spa-vite/src/jobs/data-sync.ts
  • examples/spa-vite/src/jobs/index.ts
  • examples/spa-vite/src/jobs/process-image.ts
  • examples/spa-vite/src/lib/database.ts
  • examples/spa-vite/src/lib/durably.ts
  • examples/spa-vite/src/main.tsx
  • examples/spa-vite/tsconfig.json
  • examples/spa-vite/vercel.json
  • examples/spa-vite/vite.config.ts
  • turbo.json
  • website/guide/fullstack-mode.md
  • website/guide/server-mode.md
  • website/guide/spa-mode.md
📝 Walkthrough

Walkthrough

複数の例とパッケージで依存関係とビルド基盤のバージョンを一括更新しました。Biome $schema を 2.4.7 → 2.4.9 に更新し、各種 package.json、GitHub Actions の Node バージョン、および一部 Dockerfile を上げています。

Changes

Cohort / File(s) Summary
Biome スキーマ更新
biome.json, examples/*/biome.json
$schema の参照を https://biomejs.dev/schemas/2.4.7/schema.json.../2.4.9/schema.json に更新
React Router 更新
examples/fullstack-react-router/package.json, examples/spa-react-router/package.json, examples/fullstack-vercel-turso/package.json
@react-router/node, @react-router/serve, @react-router/dev, react-router を 7.13.1 → 7.13.2 に更新
Tailwind / Vite 更新
examples/.../package.json (fullstack-react-router, fullstack-vercel-turso, spa-react-router, spa-vite-react)
@tailwindcss/vite, tailwindcss を 4.2.1 → 4.2.2、vite を 8.0.0 → 8.0.3 に更新
データベース関連依存更新
examples/server-node-postgres/package.json, examples/server-node/package.json, packages/durably/package.json
kysely, pg, @types/pg, better-sqlite3 等のバージョンをパッチ/マイナーで更新
汎用開発依存関係更新
package.json, packages/durably-react/package.json, packages/durably/package.json, website/package.json
@biomejs/biome を ^2.4.7 → ^2.4.9、Vitest/ツール類(turbo, lefthook, satori 等)をパッチ/マイナーで更新
CI / ワークフロー更新
.github/workflows/ci.yml, .github/workflows/docs.yml
GitHub Actions の Node を v22 → v24 に更新。CI の PostgreSQL コンテナを postgres:16-alpinepostgres:17-alpine に更新
Docker ビルド更新
examples/fullstack-react-router/Dockerfile, examples/fullstack-react-router/Dockerfile.dockerignore
Dockerfile を monorepo + pnpm ワークフロー(Node 24 ベース)へ置換、ビルド/デプロイ手順を pnpm に切替。新しい .dockerignore を追加

Sequence Diagram(s)

sequenceDiagram
  participant Dev as Developer
  participant Docker as Docker Build
  participant PNPM as pnpm (root workspace)
  participant Builder as Build Artifacts
  participant Image as Final Image
  participant Runtime as react-router-serve

  Dev->>Docker: docker build (monorepo root)
  Docker->>PNPM: pnpm install --frozen-lockfile
  PNPM->>PNPM: pnpm --filter ... build (workspace packages + example)
  PNPM->>Builder: produce /deployed and example build outputs
  Docker->>Image: copy /deployed and example build into image
  Image->>Runtime: run react-router-serve ./build/server/index.js
  Runtime->>Builder: serve runtime artifacts
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Poem

🐇✨ 早朝に跳ねるリビルドの夢
スキーマ揃えて風を通すよ
依存を撫でて軽やかに進む
コンテナもノードも新しい朝
コードの畦でぴょんと祝うよ

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title 'chore: update dependencies to latest versions' clearly and concisely describes the main objective of the pull request, which is updating dependencies across the monorepo.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/update-deps

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

- CI: Node.js 22 → 24, PostgreSQL 16-alpine → 17-alpine
- Dockerfile: node:20-alpine → node:24-alpine
- Docs workflow: Node.js 22 → 24

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
examples/fullstack-react-router/Dockerfile (1)

17-22: ⚠️ Potential issue | 🟠 Major

本番ステージを非 root ユーザーで実行してください。

Line 17-22 は USER 未指定のため root 実行になります。コンテナ侵害時の影響範囲を広げるので、最終ステージで非特権ユーザーへ切り替えるべきです。

🔧 修正案(final stage)
 FROM node:24-alpine
-COPY ./package.json package-lock.json /app/
-COPY --from=production-dependencies-env /app/node_modules /app/node_modules
-COPY --from=build-env /app/build /app/build
 WORKDIR /app
+COPY --chown=node:node ./package.json package-lock.json /app/
+COPY --from=production-dependencies-env --chown=node:node /app/node_modules /app/node_modules
+COPY --from=build-env --chown=node:node /app/build /app/build
+USER node
 CMD ["npm", "run", "start"]
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@examples/fullstack-react-router/Dockerfile` around lines 17 - 22, The final
Dockerfile stage runs as root because no USER is set; update the final stage
(the stage that starts FROM node:24-alpine, sets WORKDIR /app and CMD
["npm","run","start"]) to switch to a non‑root user: create or use a
nonprivileged user (e.g., node), ensure /app ownership is set (chown /app to
that user or create the directory with correct owner), and add a USER <nonroot>
directive before CMD so the container runs with reduced privileges.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Outside diff comments:
In `@examples/fullstack-react-router/Dockerfile`:
- Around line 17-22: The final Dockerfile stage runs as root because no USER is
set; update the final stage (the stage that starts FROM node:24-alpine, sets
WORKDIR /app and CMD ["npm","run","start"]) to switch to a non‑root user: create
or use a nonprivileged user (e.g., node), ensure /app ownership is set (chown
/app to that user or create the directory with correct owner), and add a USER
<nonroot> directive before CMD so the container runs with reduced privileges.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 596332a1-b330-4d4e-998b-6d476d52a909

📥 Commits

Reviewing files that changed from the base of the PR and between 8197625 and 0d8c9e6.

📒 Files selected for processing (3)
  • .github/workflows/ci.yml
  • .github/workflows/docs.yml
  • examples/fullstack-react-router/Dockerfile
✅ Files skipped from review due to trivial changes (1)
  • .github/workflows/docs.yml

coji and others added 2 commits March 30, 2026 10:51
Use the built-in `node` user from node:24-alpine and set file ownership
with --chown so the container runs with reduced privileges.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The previous Dockerfile used npm and referenced package-lock.json which
doesn't exist in this pnpm workspace. Rewrite to use pnpm deploy for
standalone deployment:
- Build from monorepo root with pnpm workspace resolution
- Use `pnpm deploy --legacy --prod` to create isolated standalone package
- Copy build output separately (pnpm deploy copies source, not build artifacts)
- Run as non-root `node` user
- Add Dockerfile.dockerignore for build context

Usage: docker build -f examples/fullstack-react-router/Dockerfile -t durably-fullstack .

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@coji coji force-pushed the chore/update-deps branch from 98bc37a to aa0363a Compare March 30, 2026 02:13
coji and others added 4 commits March 30, 2026 11:16
Add .npmrc with inject-workspace-packages=true so pnpm deploy works
without the --legacy flag. This is the recommended pnpm configuration
for monorepos using pnpm deploy.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Corepack is removed from Node.js 25+. Use npm install -g pnpm instead
for forward compatibility.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Rewrite the example Dockerfile to work as a standalone template that
users can copy to their own projects. Replace the monorepo-aware
multi-stage build with a simple deps → build → production pattern.

Users just need to replace workspace:* with the published version
(e.g. ^0.15.0) in package.json to use this outside the monorepo.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add README.md to server-node, server-node-postgres, and spa-vite-react
examples. Update fullstack-react-router README to be durably-specific
instead of the default React Router template.

Each README includes standalone usage instructions explaining how to
replace workspace:* with published package versions.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Use <latest version> placeholder instead of specific version numbers
to avoid stale docs on every release.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Simpler standalone instructions — just run pnpm add instead of
manually editing package.json with version numbers.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Rename examples to follow a consistent naming convention aligned with
the documentation's mode names (Server/Fullstack/SPA):

- server-node → server-libsql
- server-node-postgres → server-postgres
- fullstack-react-router → fullstack
- spa-vite-react → spa-vite

Update all references in website docs, skills, vercelignore, and
add stale-name checks to find-stale.sh.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
coji and others added 2 commits March 30, 2026 11:48
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Vercel warns that TURSO_DATABASE_URL and TURSO_AUTH_TOKEN are set but
not declared in turbo.json, making them unavailable during builds.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@coji coji merged commit 82e27dc into main Mar 30, 2026
5 checks passed
@coji coji deleted the chore/update-deps branch March 30, 2026 02:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant