Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Oclif using deprecated transient dependencies and showing npm WARN #1294

Closed
skosijer opened this issue Feb 14, 2024 · 1 comment · Fixed by #1321
Closed

Oclif using deprecated transient dependencies and showing npm WARN #1294

skosijer opened this issue Feb 14, 2024 · 1 comment · Fixed by #1321
Labels
enhancement New feature or request

Comments

@skosijer
Copy link

Do you want to request a feature or report a bug?

bug

What is the current behavior?

Using the latest oclif version 4.4.11 there are some deprecated transient dependencies that will show warning messages during running npm install of the package.

Steps to reproduce:

  1. try installing any published CLI library based on oclif 4.4.11
  2. the npm i will output the following deprecated dependency warnings:
npm WARN deprecated debuglog@1.0.1: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm WARN deprecated readdir-scoped-modules@1.1.0: This functionality has been moved to @npmcli/fs
npm WARN deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs
npm WARN deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs
npm WARN deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs

These dependencies originate from oclif 4.4.11:

debuglog@1.0.1

└─┬ oclif@4.4.11
  └─┬ yeoman-environment@3.19.3
    └─┬ @npmcli/arborist@4.3.1
      └─┬ readdir-scoped-modules@1.1.0
        └── debuglog@1.0.1

readdir-scoped-modules@1.1.0

└─┬ oclif@4.4.11
  └─┬ yeoman-environment@3.19.3
    └─┬ @npmcli/arborist@4.3.1
      └── readdir-scoped-modules@1.1.0

@npmcli/move-file@1.1.2

└─┬ oclif@4.4.11
  └─┬ yeoman-environment@3.19.3
    └─┬ @npmcli/arborist@4.3.1
      ├── @npmcli/move-file@1.1.2
      └─┬ cacache@15.3.0
        └── @npmcli/move-file@1.1.2 deduped

So the main issue is that any CLI npm package based on the Oclif framework using this version will show these warnings during install, which is a pretty bad impression for anyone using the CLI package.

What is the expected behavior?

The expected behaviour is that there are no deprecated transient dependencies showing as npm WARN when installing the package.

Please mention your oclif and OS version.

Oclif version is 4.4.11
OS version is macOS Sonoma 14.0

@mdonnalley mdonnalley added the enhancement New feature or request label Feb 14, 2024
Copy link

git2gus bot commented Feb 14, 2024

This issue has been linked to a new work item: W-15044742

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants