mirror of
https://github.com/hanzoai/turborepo.git
synced 2026-10-30 19:44:51 +00:00
## Summary - Upgrades `jest` from `29.7.0` to `30.2.0` across all workspace packages and examples to eliminate the `[email protected]` ReDoS vulnerability (TURBO-5238) - Upgrades `@jest/globals`, `jest-mock`, `@jest/types`, and `jest-environment-jsdom` to matching v30 releases - `[email protected]` is retained as-is since it already declares `jest@^30.0.0` in its peerDependencies ### Why not a patch or override? The vulnerable `[email protected]` was pulled in transitively through jest's dependency chain (`jest > @jest/core > ... > [email protected] > [email protected] > [email protected]`). Jest 30 dropped its own internal `glob` usage, and `pnpm update brace-expansion` bumped the remaining transitive resolution from `1.1.11` to `1.1.12` (the patched version). ### Verification - `pnpm why brace-expansion -r` confirms no `1.1.11` remains in the lockfile - Tests pass across multiple packages (`eslint-plugin-turbo`: 109 tests, `turbo-ignore`: 74 tests, `create-turbo`: 22 tests) Ref: TURBO-5238
43 lines
1.1 KiB
JSON
43 lines
1.1 KiB
JSON
{
|
|
"name": "api",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"clean": "rm -rf dist",
|
|
"dev": "nodemon --exec \"node -r esbuild-register ./src/index.ts\" -e .ts",
|
|
"lint": "tsc --noEmit && eslint \"src/**/*.ts*\" --max-warnings 0",
|
|
"start": "node -r esbuild-register ./src/index.ts",
|
|
"test": "jest --detectOpenHandles"
|
|
},
|
|
"jest": {
|
|
"preset": "@repo/jest-presets/node"
|
|
},
|
|
"dependencies": {
|
|
"@repo/logger": "*",
|
|
"body-parser": "^1.20.2",
|
|
"cors": "^2.8.5",
|
|
"express": "^4.18.3",
|
|
"morgan": "^1.10.0"
|
|
},
|
|
"devDependencies": {
|
|
"@jest/globals": "^30.2.0",
|
|
"@repo/eslint-config": "*",
|
|
"@repo/jest-presets": "*",
|
|
"@repo/typescript-config": "*",
|
|
"@types/body-parser": "^1.19.5",
|
|
"@types/cors": "^2.8.17",
|
|
"@types/express": "^4.17.21",
|
|
"@types/morgan": "^1.9.9",
|
|
"@types/node": "^20.11.24",
|
|
"@types/supertest": "^6.0.2",
|
|
"esbuild": "^0.20.1",
|
|
"esbuild-register": "^3.5.0",
|
|
"eslint": "^8.57.0",
|
|
"jest": "^30.2.0",
|
|
"nodemon": "^3.1.0",
|
|
"supertest": "^6.3.3",
|
|
"typescript": "5.5.4"
|
|
}
|
|
}
|