-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
[Bug]: Deprecated dependencies: babel-plugin-istanbul pulls in [email protected] and [email protected] via test-exclude #15777
Description
Version
v30.0.5
Steps to reproduce
1. Create a new project:
```bash
mkdir jest-deprecated-test && cd jest-deprecated-test
npm init -y
-
Install Jest (v30.0.5) and ts-jest (optional):
npm install [email protected] [email protected]
-
Observe the following warnings during installation:
npm WARN deprecated [email protected]: Glob versions prior to v9 are no longer supported npm WARN deprecated [email protected]: This module is not supported, and leaks memory...
-
Run:
npm ls inflight glob
-
Output shows the deprecated dependency chain:
Expected behavior
Jest should avoid including deprecated dependencies such as [email protected]
and [email protected]
.
Updating babel-plugin-istanbul
to use a newer test-exclude
(which depends on glob@9+
) would resolve this, removing the deprecated and unsupported packages from the dependency tree.
Actual behavior
Installing [email protected]
results in deprecated dependencies being installed:
[email protected]
(deprecated)[email protected]
(deprecated, leaks memory)
These come from the following chain:
@jest/transform → babel-plugin-istanbul → test-exclude\@6.0.0 → glob\@7.2.3 → inflight\@1.0.6
This causes warning messages during npm install
and could raise issues in automated environments (CI, audits, etc).
Additional context
Eliminating deprecated packages improves security, stability, and audit cleanliness. inflight
in particular is known to leak memory and has been archived.
Modernizing these dependencies will enhance trust and reduce noise in Jest installations.
Environment
- Node.js version: v22.18.0
- npm version: 11.5.2
- Jest version: 30.0.5
- OS: Windows 11