patch-package icon indicating copy to clipboard operation
patch-package copied to clipboard

deprecated rimraf version v2

Open Lionhunt3r opened this issue 5 months ago • 6 comments

When doing npm install with patch-package we get this error:

Image

Following the dependency we see this:

Image

Can you upgrade this package to a non deprecated version?

Lionhunt3r avatar Jul 16 '25 07:07 Lionhunt3r

It was moved to the devDependencies (#517) but no new version has been released since. It was also mentioned in #537 before this

dopenguin avatar Aug 04 '25 12:08 dopenguin

It worse than this. [email protected] pulls in [email protected] which pulls in [email protected] which causes all these warnings to be printed on npm install:

npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
% npm why inflight
[email protected]
node_modules/inflight
  inflight@"^1.0.4" from [email protected]
  node_modules/glob
    glob@"^7.1.3" from [email protected]
    node_modules/rimraf
      rimraf@"^2.6.3" from [email protected]
      node_modules/patch-package
        patch-package@"8.0.0" from the root project

samal-rasmussen avatar Aug 13 '25 09:08 samal-rasmussen

Both [email protected] and [email protected] are deprecated, and they are causing a memory leak.

chandu4067 avatar Aug 19 '25 05:08 chandu4067

We're having the same issues. Would be nice to update/remove these dependencies. We're getting them from style-dictionary which installs patch-package.

matt-bainton-mgb avatar Aug 20 '25 10:08 matt-bainton-mgb

Same here

doberkofler avatar Aug 27 '25 05:08 doberkofler

any updates?

Lionhunt3r avatar Sep 25 '25 09:09 Lionhunt3r

There's been a new version (v8.0.1) on npm which includes the change for rimraf. So this issue seems to be resolved, @Lionhunt3r 😊

dopenguin avatar Dec 11 '25 16:12 dopenguin