Why is @forge/cli still relying on deprecated dependencies?

Hi Atlassian Team and fellow developers,

I recently installed @forge/cli globally using npm install -g @forge/cli and noticed a long list of deprecation warnings. Some of the dependencies used in the CLI have been deprecated for several years — including inflight, gar, lodash.pick, npmlog, and more.

Here’s a snippet of the installation log:

> npm install -g @forge/cli

npm warn deprecated inflight@1.0.6: 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 gar@1.0.4: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm warn deprecated lodash.pick@4.4.0: This package is deprecated. Use destructuring assignment syntax instead.
npm warn deprecated lodash.isequal@4.5.0: This package is deprecated. Use require('node:util').isDeepStrictEqual instead.
npm warn deprecated npmlog@4.1.2: This package is no longer supported.
npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm warn deprecated glob@8.1.0: Glob versions prior to v9 are no longer supported
npm warn deprecated are-we-there-yet@1.1.7: This package is no longer supported.
npm warn deprecated gauge@2.7.4: This package is no longer supported.
npm warn deprecated memfs@3.6.0: this will be v4

changed 892 packages in 2m

Given that some of these packages were deprecated nearly a decade ago, I’m curious why the @forge/cli is still depending on them. Is there a migration plan or update scheduled to remove these deprecated packages?

Maintaining such outdated dependencies could pose security, performance, and reliability risks — especially for teams using Forge in production environments.

Looking forward to hearing from the Atlassian team or anyone maintaining the CLI. Thank you!

3 Likes

Hi @SanjayKumarSah, the team released a new version of the Forge CLI today. https://developer.atlassian.com/platform/forge/changelog/#CHANGE-2624

This version addressed a key blocker preventing us from upgrading/removing these dependancies. We have now updated the minimum compatible Node.js version for the Forge CLI to 20.0.0. Our current plan is to address the remaining warnings as part of the next Forge CLI scheduled in 2 weeks.

2 Likes