cli icon indicating copy to clipboard operation
cli copied to clipboard

Remove generator v1 and v2 and switch to v3

Open derberg opened this issue 1 month ago • 2 comments

This PR in generator release new v3 of Generator.

CLI already supports Generator v1 and v2

  • Command https://github.com/asyncapi/cli/blob/master/src/apps/cli/commands/generate/client.ts uses only v2
  • Command https://github.com/asyncapi/cli/blob/master/src/apps/cli/commands/generate/fromTemplate.ts users dedicated service that integrates v1 and v2. By default v1 is used, and v2 is used if flag is passed.

State:

  • v1 is old, no need to keep it.
  • imho v2 can be removed as well because nunjucks was deprecated over a year ago, people had a lot of time to migrate

My proposal is to switch to generator v3, remove v1 and v2 and release CLI Major.

WDYT? I can work on PR for that

derberg avatar Nov 22 '25 20:11 derberg

cc @Souvikns @Amzani @Shurtu-gal @AayushSaini101

as I wrote, I can work on a PR

derberg avatar Dec 04 '25 15:12 derberg

I agree with this. Maintaining two versions was a headache.

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