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

Remove table output #7401

Merged
merged 3 commits into from
Apr 22, 2024
Merged

Remove table output #7401

merged 3 commits into from
Apr 22, 2024

Conversation

wraithgar
Copy link
Member

@wraithgar wraithgar commented Apr 22, 2024

This removes almost all table output from npm. Table output is
discouraged for clis because it is not very accessible.

npm outdated still has it, but that will likely take a little more
design/time to iron out.

npm search still has it, and the summary of a tarball still has it. Those are next to be removed.

There is a deps commit here moving cli-table3 to devDependencies
since we now only use it for ./scripts/publish.js

  • deps: move cli-table3 to devDependencies
  • fix: Remove table output from many commands

We only need it for `scripts/publish.js`
@wraithgar wraithgar requested a review from a team as a code owner April 22, 2024 14:07
@wraithgar
Copy link
Member Author

wraithgar commented Apr 22, 2024

The docs pages for these commands need to be updated still.

Done

This removes table output from `hook`, `profile`, `doctor`, `org`, and `token`.
It also removes table output from the `--long` or `--dry-run` output of
install commands.

Table output is discouraged in a cli for accessibility reasons.

The tests for `token` were also rewritten because they did not actually
test the behavior of npm with the registry.

`this.config` was also removed from `token`.  npm-registry-fetch pulls
all this from flatOptions already.
@wraithgar wraithgar merged commit dfa4cab into latest Apr 22, 2024
39 checks passed
@wraithgar wraithgar deleted the gar/no-tables branch April 22, 2024 21:02
@github-actions github-actions bot mentioned this pull request Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants