Skip to content

build(deps-dev): bump web frontend dependencies to latest#1128

Merged
yansongda merged 3 commits intodependabot/npm_and_yarn/web/vite-7.1.11from
copilot/sub-pr-1117
Mar 20, 2026
Merged

build(deps-dev): bump web frontend dependencies to latest#1128
yansongda merged 3 commits intodependabot/npm_and_yarn/web/vite-7.1.11from
copilot/sub-pr-1117

Conversation

Copy link
Contributor

Copilot AI commented Mar 20, 2026

  • Update @types/node from ^24.5.2 to ^25.5.0
  • Update sass from ^1.92.1 to ^1.98.0
  • Update vite from ^7.1.11 to ^8.0.1
  • Update vue from ^3.5.21 to ^3.5.30
  • Update pnpm-lock.yaml accordingly
  • Add web/.node-version (Node 20) to fix Cloudflare Pages build — vite 8.x uses rolldown which requires node:util.styleText, available only in Node.js ≥ 20.12.0
  • Add engines field in package.json to document the Node.js requirement

⌨️ Start Copilot coding agent tasks without leaving your editor — available in VS Code, Visual Studio, JetBrains IDEs and Eclipse.

Co-authored-by: yansongda <11869114+yansongda@users.noreply.github.com>
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Mar 20, 2026

Deploying pay with  Cloudflare Pages  Cloudflare Pages

Latest commit: d5908bf
Status: ✅  Deploy successful!
Preview URL: https://ad231258.pay-1bj.pages.dev
Branch Preview URL: https://copilot-sub-pr-1117.pay-1bj.pages.dev

View logs

Copilot AI changed the title [WIP] Update vite from 7.1.6 to 7.1.11 build(deps-dev): bump web frontend dependencies to latest Mar 20, 2026
Copilot AI requested a review from yansongda March 20, 2026 08:19
@codecov
Copy link

codecov bot commented Mar 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (dependabot/npm_and_yarn/web/vite-7.1.11@6cda31f). Learn more about missing BASE report.

Additional details and impacted files
@@                            Coverage Diff                             @@
##             dependabot/npm_and_yarn/web/vite-7.1.11    #1128   +/-   ##
==========================================================================
  Coverage                                           ?   97.59%           
  Complexity                                         ?     1080           
==========================================================================
  Files                                              ?      385           
  Lines                                              ?     7013           
  Branches                                           ?        0           
==========================================================================
  Hits                                               ?     6844           
  Misses                                             ?      169           
  Partials                                           ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@yansongda
Copy link
Owner

@copilot 似乎 cloudflare pages build 失败了,请帮忙解决一下。

日志如下:

2026-03-20T08:17:45.354391Z	Cloning repository...
2026-03-20T08:17:46.465682Z	From https://github.com/yansongda/pay
2026-03-20T08:17:46.465954Z	 * branch            08d216f11465913e045edbae10ab1a114ef42ebf -> FETCH_HEAD
2026-03-20T08:17:46.466025Z	
2026-03-20T08:17:46.527671Z	HEAD is now at 08d216f build(deps-dev): update all web frontend dependencies to latest versions
2026-03-20T08:17:46.527887Z	
2026-03-20T08:17:46.562179Z	
2026-03-20T08:17:46.562465Z	Using v2 root directory strategy
2026-03-20T08:17:46.575228Z	Success: Finished cloning repository files
2026-03-20T08:17:48.48378Z	Checking for configuration in a Wrangler configuration file (BETA)
2026-03-20T08:17:48.484158Z	
2026-03-20T08:17:49.572505Z	No Wrangler configuration file found. Continuing.
2026-03-20T08:17:50.351362Z	Preparing yarn@3.6.3 for immediate activation...
2026-03-20T08:17:50.512664Z	Preparing pnpm@8.7.1 for immediate activation...
2026-03-20T08:17:50.624781Z	Detected the following tools from environment: pnpm@8.7.1, nodejs@18.17.1
2026-03-20T08:17:50.792192Z	! Corepack is about to download https://registry.npmjs.org/pnpm/-/pnpm-10.12.1.tgz
2026-03-20T08:17:51.792941Z	Installing project dependencies: pnpm install
2026-03-20T08:17:52.336707Z	Lockfile is up to date, resolution step is skipped
2026-03-20T08:17:52.373268Z	Progress: resolved 1, reused 0, downloaded 0, added 0
2026-03-20T08:17:52.392658Z	Packages: +166
2026-03-20T08:17:52.392777Z	++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2026-03-20T08:17:53.374726Z	Progress: resolved 166, reused 0, downloaded 103, added 102
2026-03-20T08:17:54.202256Z	Progress: resolved 166, reused 0, downloaded 166, added 166, done
2026-03-20T08:17:54.30341Z	
2026-03-20T08:17:54.30363Z	devDependencies:
2026-03-20T08:17:54.303684Z	+ @types/node 25.5.0
2026-03-20T08:17:54.30372Z	+ fast-glob 3.3.3
2026-03-20T08:17:54.303749Z	+ sass 1.98.0
2026-03-20T08:17:54.303777Z	+ vite 8.0.1
2026-03-20T08:17:54.303804Z	+ vitepress 1.6.4
2026-03-20T08:17:54.30383Z	+ vue 3.5.30
2026-03-20T08:17:54.303856Z	
2026-03-20T08:17:54.303909Z	╭ Warning ─────────────────────────────────────────────────────────────────────╮
2026-03-20T08:17:54.303958Z	│                                                                              │
2026-03-20T08:17:54.303991Z	│   Ignored build scripts: @parcel/watcher, esbuild.                           │
2026-03-20T08:17:54.304019Z	│   Run "pnpm approve-builds" to pick which dependencies should be allowed     │
2026-03-20T08:17:54.304051Z	│   to run scripts.                                                            │
2026-03-20T08:17:54.304591Z	│                                                                              │
2026-03-20T08:17:54.304671Z	╰──────────────────────────────────────────────────────────────────────────────╯
2026-03-20T08:17:54.304723Z	
2026-03-20T08:17:54.319215Z	Done in 2.3s using pnpm v10.12.1
2026-03-20T08:17:54.346397Z	Executing user command: pnpm web:build
2026-03-20T08:17:54.768632Z	
2026-03-20T08:17:54.768862Z	> @ web:build /opt/buildhome/repo/web
2026-03-20T08:17:54.769047Z	> vitepress build
2026-03-20T08:17:54.769124Z	
2026-03-20T08:17:55.123742Z	
2026-03-20T08:17:55.125187Z	  �[32m�[1mvitepress�[22m v1.6.4�[39m
2026-03-20T08:17:55.125455Z	
2026-03-20T08:17:55.129014Z	- building client + server bundles...
2026-03-20T08:17:55.245145Z	�[31mfailed to load config from /opt/buildhome/repo/web/vite.config.ts�[39m
2026-03-20T08:17:55.245343Z	�[31m✖�[0m building client + server bundles...
2026-03-20T08:17:55.245894Z	�[31mbuild error:�[39m
2026-03-20T08:17:55.246244Z	The requested module 'node:util' does not provide an export named 'styleText'
2026-03-20T08:17:55.246346Z	file:///opt/buildhome/repo/web/node_modules/.pnpm/rolldown@1.0.0-rc.10/node_modules/rolldown/dist/shared/rolldown-build-yQC7KN8K.mjs:9
2026-03-20T08:17:55.246407Z	import { formatWithOptions, styleText } from "node:util";
2026-03-20T08:17:55.246538Z	                            ^^^^^^^^^
2026-03-20T08:17:55.246607Z	SyntaxError: The requested module 'node:util' does not provide an export named 'styleText'
2026-03-20T08:17:55.246662Z	    at ModuleJob._instantiate (node:internal/modules/esm/module_job:124:21)
2026-03-20T08:17:55.24672Z	    at async ModuleJob.run (node:internal/modules/esm/module_job:190:5)
2026-03-20T08:17:55.274724Z	 ELIFECYCLE  Command failed with exit code 1.
2026-03-20T08:17:55.306781Z	Failed: Error while executing user command. Exited with error code: 1
2026-03-20T08:17:55.31217Z	Failed: build command exited with code: 1
2026-03-20T08:17:56.472308Z	Failed: error occurred while running build command

Co-authored-by: yansongda <11869114+yansongda@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Mar 20, 2026

@copilot 似乎 cloudflare pages build 失败了,请帮忙解决一下。

日志如下:
...

已在 commit d5908bf 中修复。

根本原因:vite 8.x 内部依赖 rolldown,而 rolldown 使用了 node:utilstyleText API,该 API 仅在 Node.js ≥ 20.12.0 中可用,但 Cloudflare Pages 默认使用 Node.js 18.17.1。

修复方案:在 web/ 目录下添加了 .node-version 文件(内容为 20),Cloudflare Pages 会读取此文件并自动切换到 Node.js 20。同时在 package.jsonengines 字段中也注明了 Node.js 版本要求。

@yansongda yansongda marked this pull request as ready for review March 20, 2026 08:28
Copilot AI review requested due to automatic review settings March 20, 2026 08:29
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the web/ frontend toolchain dependencies (Vite/Vue/Sass/Node typings) and documents the Node.js runtime requirement needed for Cloudflare Pages builds.

Changes:

  • Bump dev dependencies: vite to 8.0.1, vue to 3.5.30, sass to 1.98.0, and @types/node to 25.5.0.
  • Regenerate pnpm-lock.yaml to reflect the upgraded dependency graph (including new rolldown/lightningcss transitive deps).
  • Add Node runtime documentation via web/.node-version and package.json#engines.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.

File Description
web/pnpm-lock.yaml Updates lockfile for the new Vite/Vue/Sass/@types/node versions and resulting transitive dependency changes.
web/package.json Bumps devDependencies and adds a Node.js engines requirement.
web/.node-version Adds a Node version hint for builds (Cloudflare Pages / local tooling).
Files not reviewed (1)
  • web/pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

"vue": "^3.5.30"
},
"engines": {
"node": ">=20.12.0"
Copy link

Copilot AI Mar 20, 2026

Choose a reason for hiding this comment

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

The Node.js engine range (>=20.12.0) does not satisfy Vite 8's declared requirement in the lockfile (node: ^20.19.0 || >=22.12.0). This can cause pnpm to warn/fail installs or Cloudflare Pages builds when it picks a 20.12–20.18 runtime. Update the engines.node constraint to match Vite/Rolldown's minimum (e.g., >=20.19.0 or the same ^20.19.0 || >=22.12.0).

Suggested change
"node": ">=20.12.0"
"node": "^20.19.0 || >=22.12.0"

Copilot uses AI. Check for mistakes.
@@ -0,0 +1 @@
20
Copy link

Copilot AI Mar 20, 2026

Choose a reason for hiding this comment

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

This file pins Node to major version "20", which may resolve to a 20.x version below Vite 8's required minimum (20.19.0). To avoid CI/Cloudflare picking an incompatible 20.x release, pin an explicit version (e.g., 20.19.0+) that satisfies the dependency engines range.

Suggested change
20
20.19.0

Copilot uses AI. Check for mistakes.
@yansongda yansongda merged commit 12f1752 into dependabot/npm_and_yarn/web/vite-7.1.11 Mar 20, 2026
24 of 25 checks passed
@yansongda yansongda deleted the copilot/sub-pr-1117 branch March 20, 2026 08:32
yansongda added a commit that referenced this pull request Mar 20, 2026
* build(deps-dev): bump vite from 7.1.6 to 7.1.11 in /web

Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 7.1.6 to 7.1.11.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v7.1.11/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 7.1.11
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

* build(deps-dev): bump web frontend dependencies to latest (#1128)

* Initial plan

* build(deps-dev): update all web frontend dependencies to latest versions

Co-authored-by: yansongda <11869114+yansongda@users.noreply.github.com>

* fix: add .node-version to require Node 20 for vite 8.x compatibility

Co-authored-by: yansongda <11869114+yansongda@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: yansongda <11869114+yansongda@users.noreply.github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: yansongda <11869114+yansongda@users.noreply.github.com>
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.

3 participants