cli icon indicating copy to clipboard operation
cli copied to clipboard

Overarching issue for tracking progress

Open Shurtu-gal opened this issue 11 months ago • 10 comments

Currently I am able to see following issues with CLI:

~~1. Release pipeline is not working right now (with trusted publishing): - Also upload of custom assets was not working (should be fixed with the release pipeline fix) https://github.com/asyncapi/cli/issues/1892~~ 2. Need updation of dependencies, especially those with security vulnerabilities. Ref: https://github.com/asyncapi/cli/issues/1836 3. Support for other schemas and languages. Ex: Avro schemas (Need discussion): https://github.com/asyncapi/cli/issues/1813 4. Docker image as well npm package size is too large. It needs to be optimized. Ref: https://github.com/asyncapi/cli/issues/1752, https://github.com/asyncapi/cli/issues/1798 5. Intermittent issues in Windows. Ref: https://github.com/asyncapi/cli/issues/1744, https://github.com/asyncapi/cli/issues/1781, https://github.com/asyncapi/cli/issues/1743 6. Need transfer-issue workflow to work so that issues can be transferred to respective repos. It is being actioned in https://github.com/asyncapi/.github/issues/344. ~~Issues to be transferred:~~ - ~~https://github.com/asyncapi/modelina/issues/2397~~ - ~~https://github.com/asyncapi/modelina/issues/2398~~ - ~~https://github.com/asyncapi/modelina/issues/2399~~ - ~~https://github.com/asyncapi/optimizer/issues/291~~ - ~~https://github.com/asyncapi/modelina/issues/2400~~

Shurtu-gal avatar Dec 17 '25 14:12 Shurtu-gal

@Shurtu-gal I looked on second issue deprecated packages #1836. Regarding #1836, the "nyc" coverage tool is the main source of the "glob@7" and inflight warnings. I propose we replace "nyc" with "c8" (uses native V8 coverage) and upgrade "rimraf" to v6. This would clear up the majority of the deprecation alerts. Is everyone okay with this approach?

sarthakNITT avatar Dec 17 '25 21:12 sarthakNITT

Yes, @sarthakNITT please create a PR for this will test it out accordingly.

Shurtu-gal avatar Dec 18 '25 01:12 Shurtu-gal

@Shurtu-gal okay, I am on to working on it.

sarthakNITT avatar Dec 18 '25 08:12 sarthakNITT

@sarthakNITT I guess a PR is there already. You can help out though by putting forward suggestions and testing that nothing breaks with these upgrades.

I have already informed abt https://github.com/asyncapi/cli/issues/1929#issuecomment-3667326010 in the PR review.

Shurtu-gal avatar Dec 19 '25 04:12 Shurtu-gal

@Shurtu-gal I reviewed the PR and I don’t think we need to add or replace a large number of dependencies. Most deprecation warnings come indirectly from these four packages: rimraf, unzipper, mocha, @stoplight/spectral-cli They pull in deprecated transitive deps (fstream, glob<9, mkdirp<1, rimraf<4, inflight). Updating these four to their latest LTS versions should resolve those warnings automatically.

nyc is a special case, it still depends on older rimraf and glob even in its latest version. Replacing nyc with c8 would be the cleaner solution here.

The remaining deprecated packages are coming from AsyncAPI internal packages (mondelena-cli, generator) because these packages are using older versions of some packages. Those would need to be fixed upstream in their respective repos.

Overall, updating a small set of top-level deps should fix most issues without large-scale dependency changes.

Just a concern that latest versions of those 4 packages ask for node version >=20, so should i go with it or look or latest update compatible with node >=18? Image

sarthakNITT avatar Dec 19 '25 10:12 sarthakNITT

We are also moving to nodejs > 20. So that's not a problem. Updating unrelated dependency is also not a big problem.

Anyway it was a long time coming. Regaring c8 I have already commented on the PR.

Shurtu-gal avatar Dec 19 '25 10:12 Shurtu-gal

Also please comment on the PR about the inputs. That would be better.

Shurtu-gal avatar Dec 19 '25 10:12 Shurtu-gal

@Shurtu-gal raised a pr. Please check it once.

sarthakNITT avatar Dec 19 '25 12:12 sarthakNITT

Hey @Shurtu-gal , Quick sanity check before I start working on anything.

Would it make sense for me to add a small CLI integration test that runs the generator end-to-end using a minimal AsyncAPI file and the baked-in @asyncapi/html-template, just to assert that index.html gets generated?

My thinking was that this could help validate the recent dependency updates and the Node 20 move without touching any CLI logic — just extending existing tests a bit. Not sure if this is useful in the context of this issue, so wanted to ask first. Happy to adjust the idea or drop it if there’s something more helpful I should look at instead.

mishraa-G avatar Dec 27 '25 11:12 mishraa-G

This issue has been automatically marked as stale because it has not had recent activity :sleeping:

It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation.

There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.

Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here.

Thank you for your patience :heart:

github-actions[bot] avatar May 06 '26 00:05 github-actions[bot]