diff --git a/CHANGELOG.md b/CHANGELOG.md index 887f2f4..5e6aaa6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ All notable changes to this project will be documented in this file. +## [1.5.1] - 2026-07-10 + +### Fixed + +- **Add `esbuild` as a direct dependency** — Vite 8 no longer bundles esbuild (it became a peer dependency of Vite). nextcov uses `transformWithEsbuild` to compile TypeScript/TSX for zero-coverage generation, so esbuild must be present. Adding it as an explicit dependency ensures it is installed automatically alongside nextcov without requiring users to install it manually. + ## [1.5.0] - 2026-07-04 ### Changed diff --git a/README.md b/README.md index 5d99c77..ab71fbb 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,7 @@ npm install nextcov --save-dev ## Requirements -- Node.js >= 20 +- Node.js >= 22 - Next.js 14+ or Vite 5+ - Playwright 1.40+ @@ -82,6 +82,8 @@ npm install nextcov --save-dev npm install @playwright/test --save-dev ``` +> **Note:** `esbuild` is included as a direct dependency of nextcov (required since Vite 8 no longer bundles it). It will be installed automatically — no manual installation needed. + ## Quick Setup with `nextcov init` The fastest way to get started is with the `init` command: diff --git a/package-lock.json b/package-lock.json index 02f84eb..bad39a8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "nextcov", - "version": "1.4.3", + "version": "1.5.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "nextcov", - "version": "1.4.3", + "version": "1.5.1", "license": "MIT", "dependencies": { "@babel/parser": "^7.24.0", @@ -17,6 +17,7 @@ "ast-v8-to-istanbul": "^1.0.4", "chalk": "^4.1.2", "convert-source-map": "^2.0.0", + "esbuild": ">=0.21.0", "glob": "^11.1.0", "istanbul-lib-coverage": "^3.2.0", "istanbul-lib-report": "^3.0.1", @@ -2738,7 +2739,6 @@ "version": "0.27.2", "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.2.tgz", "integrity": "sha512-HyNQImnsOC7X9PMNaCIeAm4ISCQXs5a5YasTXVliKv4uuBo1dKrG0A+uQS8M5eXjVMnLg3WgXaKvprHlFJQffw==", - "devOptional": true, "hasInstallScript": true, "license": "MIT", "bin": { diff --git a/package.json b/package.json index 73bc844..dc9f5ed 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nextcov", - "version": "1.5.0", + "version": "1.5.1", "description": "Collect test coverage for Playwright E2E tests in Next.js applications", "author": "Steve Zhang", "license": "MIT", @@ -63,6 +63,7 @@ "ast-v8-to-istanbul": "^1.0.4", "chalk": "^4.1.2", "convert-source-map": "^2.0.0", + "esbuild": ">=0.21.0", "glob": "^11.1.0", "istanbul-lib-coverage": "^3.2.0", "istanbul-lib-report": "^3.0.1",