Skip to content

[RUN-0000] Remove unused js-yaml dependency from rundeck-cli - #173

Merged
Jesus-Osuna-M merged 1 commit into
mainfrom
remove-unused-js-yaml
Sep 25, 2026
Merged

Jesus-Osuna-M merged 1 commit into
mainfrom
remove-unused-js-yaml

Conversation

@Jesus-Osuna-M

Copy link
Copy Markdown
Contributor

Summary

Removes js-yaml and @types/js-yaml from docker/client/rundeck-cli. Both are unused.

Follow-up to the Copilot review on #169, which flagged the dependency as dead while Renovate was bumping its locked version.

Why

  • The QA CLI parses YAML exclusively with the yaml package (v2) — src/lib/util.ts, src/commands/loadProject.ts, src/commands/addUsers.ts, src/commands/updateProjectsProperties.ts. There is no js-yaml import anywhere in src/ or bin/.
  • @types/js-yaml was pinned at ^4.0.0 while js-yaml was at ^5.0.0, so the types did not even correspond to the installed version — leftover from the migration to yaml.
  • No other package in the lock declares a dependency on js-yaml, so it also drops its only transitive dependency, argparse.

Verification

  • npm install --package-lock-only regenerates the lock with zero js-yaml references and no other changes.
  • npm ci + tsc --noEmit on the resulting tree: 0 errors in src/. (The remaining errors are pre-existing and unrelated — TypeScript 3.8 cannot parse the undici-types declarations shipped with @types/node 24.)

Note

This supersedes #169 — that PR only bumps the locked version of the package being removed here, so it can be closed.

Scope is limited to the QA client under docker/; the published plugin artifact is unaffected.

🤖 Generated with Claude Code

The QA CLI parses YAML exclusively with the `yaml` package (v2); there
is no import of `js-yaml` anywhere in src/ or bin/. The `@types/js-yaml`
entry was pinned at ^4.0.0 while `js-yaml` was at ^5.0.0, so the types
did not even match the installed version.

Nothing else in the tree depends on `js-yaml`, so the lock drops it
along with its only transitive dependency, `argparse`.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@Jesus-Osuna-M
Jesus-Osuna-M requested review from a team and a lite review from Copilot September 25, 2026 17:48

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The scoped dependency cleanup has no unresolved review comments.

Review effort: Lite
Findings: None

What changed in this PR

Removes unused js-yaml dependencies from the Rundeck QA CLI while retaining YAML parsing through yaml.

Changes:

  • Removes js-yaml and @types/js-yaml.
  • Cleans lockfile entries, including unused argparse.
File Description
docker/​client/​rundeck-cli/​package.json Removes unused dependencies.
docker/​client/​rundeck-cli/​package-lock.json Removes corresponding locked packages.
Files not reviewed (1)
  • docker/client/rundeck-cli/package-lock.json: Generated file

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@Jesus-Osuna-M
Jesus-Osuna-M merged commit 08f4a18 into main Sep 25, 2026
2 of 3 checks passed
@Jesus-Osuna-M
Jesus-Osuna-M deleted the remove-unused-js-yaml branch September 25, 2026 17:52
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.

3 participants