Skip to content

Conversation

@spc-28
Copy link
Contributor

@spc-28 spc-28 commented Dec 18, 2025

Description
This PR updates key dependencies across the CLI to improve compatibility with the latest tooling

Key Changes:

Upgraded ESLint to v9 and migrated to the new flat config format

Updated core AsyncAPI packages, including a major upgrade to the generator

Upgraded testing libraries with necessary compatibility adjustments

Updated TypeScript and build-related tools to their latest stable versions

Related issue(s)
Issue: #1836

@changeset-bot
Copy link

changeset-bot bot commented Dec 18, 2025

⚠️ No Changeset found

Latest commit: 22b0c5b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@spc-28
Copy link
Contributor Author

spc-28 commented Dec 18, 2025

Hey @Shurtu-gal,
Please take a look at the PR and let me know if any changes are required. Happy to update it accordingly.

@Shurtu-gal
Copy link
Collaborator

Tests are failing right now.

@spc-28 spc-28 force-pushed the deps/update-dependencies branch 3 times, most recently from b6f0cd5 to 9da31e3 Compare December 18, 2025 09:17
@spc-28 spc-28 force-pushed the deps/update-dependencies branch from 9da31e3 to 24db2f1 Compare December 18, 2025 09:49
@spc-28
Copy link
Contributor Author

spc-28 commented Dec 18, 2025

I have made the changes, and the tests are passing

@spc-28
Copy link
Contributor Author

spc-28 commented Dec 18, 2025

@Shurtu-gal please have a look and let me know if any changes are required

package.json Outdated
"@asyncapi/diff": "^0.5.0",
"@asyncapi/generator": "^3.0.1",
"@asyncapi/modelina-cli": "^5.3.5",
"@asyncapi/generator-helpers": "^1.0.1",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why generator-helpers has been added?

"@oclif/core": "^4.2.9",
"@oclif/plugin-autocomplete": "^3.2.26",
"@clack/prompts": "^0.11.0",
"@oclif/core": "^4.8.0",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does this have any breaking changes?

I know it shouldn't have as it is minor version upgrade but still 🤷🏻

"config": "^4.0.0",
"body-parser": "^2.2.1",
"chalk": "^4.1.2",
"chokidar": "^4.0.3",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same for this any breaking changes?

"config": "^4.1.1",
"cors": "^2.8.5",
"express": "^4.17.1",
"express": "^5.2.1",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you run server-api once and test stuff out to see nothing is breaking?

package.json Outdated
Comment on lines 62 to 63
"@commitlint/cli": "^20.2.0",
"@commitlint/config-conventional": "^20.2.0",
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think these are used anumore. Could you check once?

package.json Outdated
Comment on lines 102 to 103
"@npmcli/package-json": "^7.0.4",
"@npmcli/fs": "^5.0.0",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why these have been added?

"nodemon": "^3.1.11",
"nyc": "^17.1.0",
"puppeteer": "^24.33.0",
"rimraf": "^6.1.2",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Any breaking changes we need to be aware of?

package.json Outdated
"simple-git": "^3.16.0",
"mocha": "^11.7.5",
"nodemon": "^3.1.11",
"nyc": "^17.1.0",
Copy link
Collaborator

Choose a reason for hiding this comment

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

For this we can probably replace this with c8 and remove glob.

Reference: #1929 (comment)

Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you remove the older eslint config?

@github-project-automation github-project-automation bot moved this from To Triage to Backlog in CLI - Kanban Dec 19, 2025
@spc-28 spc-28 force-pushed the deps/update-dependencies branch from cc88960 to b00e270 Compare December 19, 2025 18:16
@spc-28
Copy link
Contributor Author

spc-28 commented Dec 19, 2025

@Shurtu-gal I’ve made the changes based on the provided comments. Please let me know if any further updates are required

@spc-28
Copy link
Contributor Author

spc-28 commented Dec 19, 2025

Also while working on this, I noticed that many newer dependency versions are ESM only, whereas our repository currently uses CommonJS. It may be helpful to keep ESM compatibility in mind for future updates to keep the codebase future proof

Copy link
Collaborator

Choose a reason for hiding this comment

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

Why this change is needed?

@spc-28 spc-28 requested a review from Shurtu-gal December 22, 2025 09:34
@sarthakNITT
Copy link
Contributor

@spc-28 I’ve analyzed the issue and the current PR. To keep the scope smaller and reduce unrelated changes, I think this can be addressed with fewer targeted updates instead of modifying multiple areas.

  • Updated rimraf, unzipper, mocha, and @stoplight/spectral-cli to their latest versions to fix direct deprecation warnings.
  • Migrated test coverage from nyc (which relied on deprecated glob/rimraf) to c8.
    Remaining deprecation warnings during install are transitive dependencies from @asyncapi/generator and @asyncapi/modelina-cli. These packages need to be updated in their respective repositories to fully resolve the warnings.

@spc-28
Copy link
Contributor Author

spc-28 commented Dec 22, 2025

Hey @sarthakNITT,
I’ve included the changes you mentioned. In addition, the other updates are minor and were done mainly to keep the dependencies up to date, as we were already updating some packages under this issue

@spc-28
Copy link
Contributor Author

spc-28 commented Dec 22, 2025

Also while working on this, I noticed that many newer dependency versions are ESM only, whereas our repository currently uses CommonJS. It may be helpful to keep ESM compatibility in mind for future updates to keep the codebase future proof

Any thoughts on this ? @Shurtu-gal

@spc-28
Copy link
Contributor Author

spc-28 commented Dec 22, 2025

FYI
@Shurtu-gal I’ve added two more commits to include a safety check in help.controller.ts following the Express v5 update, as I felt it would be better. I’ve also tested and verified all /help routes, everything is working as expected. Additionally, the PR has been merged with the latest master branch

@spc-28 spc-28 force-pushed the deps/update-dependencies branch from 113fa96 to 22b0c5b Compare December 22, 2025 13:01
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

3 participants