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

feat: update oclif to v4 #1546

Merged
merged 3 commits into from
Oct 18, 2024
Merged

Conversation

Souvikns
Copy link
Member

@Souvikns Souvikns commented Oct 16, 2024

In this PR I am

  • Update oclif from v3 to v4.
  • Remove all the ux libraries that is now not supported by oclifv4
  • Remove dependencies we are not using anymore.

npm-check output we have a lot of dependencies that are not being used right now. In this PR I am going to remove all of this, I also see that we are using multiple cli ux library, will be using one library for it.


@asyncapi/generator                MAJOR UP  Major update available. https://github.com/asyncapi/generator
                                             npm install @asyncapi/[email protected] --save to go from 1.17.25 to 2.4.1

@asyncapi/modelina                 NOTUSED?  Still using @asyncapi/modelina?
                                             Depcheck did not find code similar to require('@asyncapi/modelina') or import from '@asyncapi/modelina'.
                                             Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
                                             Use rc file options to remove unused check, but still monitor for outdated version:
                                                 .npmcheckrc {"depcheck": {"ignoreMatches": ["@asyncapi/modelina"]}}
                                             Use --skip-unused to skip this check.
                                             To remove this package: npm uninstall @asyncapi/modelina --save

@asyncapi/studio                   NEW VER!  NonSemver update available. https://github.com/asyncapi/studio
                                             npm install @asyncapi/[email protected] --save to go from 0.20.0 to 0.22.1

@oclif/core                        MAJOR UP  Major update available. https://github.com/oclif/core
                                             npm install @oclif/[email protected] --save to go from 3.27.0 to 4.0.28

@oclif/errors                      NOTUSED?  Still using @oclif/errors?
                                             Depcheck did not find code similar to require('@oclif/errors') or import from '@oclif/errors'.
                                             Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
                                             Use rc file options to remove unused check, but still monitor for outdated version:
                                                 .npmcheckrc {"depcheck": {"ignoreMatches": ["@oclif/errors"]}}
                                             Use --skip-unused to skip this check.
                                             To remove this package: npm uninstall @oclif/errors --save

@oclif/plugin-not-found            MAJOR UP  Major update available. https://github.com/oclif/plugin-not-found
                                             npm install @oclif/[email protected] --save to go from 2.4.3 to 3.2.22
                                   NOTUSED?  Still using @oclif/plugin-not-found?
                                             Depcheck did not find code similar to require('@oclif/plugin-not-found') or import from '@oclif/plugin-not-found'.
                                             Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
                                             Use rc file options to remove unused check, but still monitor for outdated version:
                                                 .npmcheckrc {"depcheck": {"ignoreMatches": ["@oclif/plugin-not-found"]}}
                                             Use --skip-unused to skip this check.
                                             To remove this package: npm uninstall @oclif/plugin-not-found --save

@smoya/multi-parser                NOTUSED?  Still using @smoya/multi-parser?
                                             Depcheck did not find code similar to require('@smoya/multi-parser') or import from '@smoya/multi-parser'.
                                             Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
                                             Use rc file options to remove unused check, but still monitor for outdated version:
                                                 .npmcheckrc {"depcheck": {"ignoreMatches": ["@smoya/multi-parser"]}}
                                             Use --skip-unused to skip this check.
                                             To remove this package: npm uninstall @smoya/multi-parser --save

@stoplight/spectral-cli            MINOR UP  Minor update available. https://github.com/stoplightio/spectral
                                             npm install @stoplight/[email protected] --save to go from 6.9.0 to 6.13.1

ajv                                NOTUSED?  Still using ajv?
                                             Depcheck did not find code similar to require('ajv') or import from 'ajv'.
                                             Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
                                             Use rc file options to remove unused check, but still monitor for outdated version:
                                                 .npmcheckrc {"depcheck": {"ignoreMatches": ["ajv"]}}
                                             Use --skip-unused to skip this check.
                                             To remove this package: npm uninstall ajv --save

chalk                              MAJOR UP  Major update available. https://github.com/chalk/chalk#readme
                                             npm install [email protected] --save to go from 4.1.2 to 5.3.0

chokidar                           MAJOR UP  Major update available. https://github.com/paulmillr/chokidar
                                             npm install [email protected] --save to go from 3.5.3 to 4.0.1

fs-extra                           UPDATE!   Your local install is out of date. https://github.com/jprichardson/node-fs-extra
                                             npm install [email protected] --save to go from 11.1.1 to 11.2.0

indent-string                      MAJOR UP  Major update available. https://github.com/sindresorhus/indent-string#readme
                                             npm install [email protected] --save to go from 4.0.0 to 5.0.0
                                   NOTUSED?  Still using indent-string?
                                             Depcheck did not find code similar to require('indent-string') or import from 'indent-string'.
                                             Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
                                             Use rc file options to remove unused check, but still monitor for outdated version:
                                                 .npmcheckrc {"depcheck": {"ignoreMatches": ["indent-string"]}}
                                             Use --skip-unused to skip this check.
                                             To remove this package: npm uninstall indent-string --save

inquirer                           MAJOR UP  Major update available. https://github.com/SBoudrias/Inquirer.js/blob/main/packages/inquirer/README.md
                                             npm install [email protected] --save to go from 8.2.6 to 12.0.0

lodash.template                    NOTUSED?  Still using lodash.template?
                                             Depcheck did not find code similar to require('lodash.template') or import from 'lodash.template'.
                                             Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
                                             Use rc file options to remove unused check, but still monitor for outdated version:
                                                 .npmcheckrc {"depcheck": {"ignoreMatches": ["lodash.template"]}}
                                             Use --skip-unused to skip this check.
                                             To remove this package: npm uninstall lodash.template --save

node-fetch                         MAJOR UP  Major update available. https://github.com/node-fetch/node-fetch
                                             npm install [email protected] --save to go from 2.7.0 to 3.3.2

oclif                              UPDATE!   Your local install is out of date. https://github.com/oclif/oclif
                                             npm install [email protected] --save to go from 4.5.0 to 4.15.8

open                               MAJOR UP  Major update available. https://github.com/sindresorhus/open#readme
                                             npm install [email protected] --save to go from 8.4.2 to 10.1.0

picocolors                         UPDATE!   Your local install is out of date. https://github.com/alexeyraspopov/picocolors#readme
                                             npm install [email protected] --save to go from 1.0.0 to 1.1.0

reflect-metadata                   NEW VER!  NonSemver update available. http://rbuckton.github.io/reflect-metadata
                                             npm install [email protected] --save to go from 0.1.13 to 0.2.2
                                   NOTUSED?  Still using reflect-metadata?
                                             Depcheck did not find code similar to require('reflect-metadata') or import from 'reflect-metadata'.
                                             Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
                                             Use rc file options to remove unused check, but still monitor for outdated version:
                                                 .npmcheckrc {"depcheck": {"ignoreMatches": ["reflect-metadata"]}}
                                             Use --skip-unused to skip this check.
                                             To remove this package: npm uninstall reflect-metadata --save

request                            NOTUSED?  Still using request?
                                             Depcheck did not find code similar to require('request') or import from 'request'.
                                             Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
                                             Use rc file options to remove unused check, but still monitor for outdated version:
                                                 .npmcheckrc {"depcheck": {"ignoreMatches": ["request"]}}
                                             Use --skip-unused to skip this check.
                                             To remove this package: npm uninstall request --save

strip-ansi                         MAJOR UP  Major update available. https://github.com/chalk/strip-ansi#readme
                                             npm install [email protected] --save to go from 6.0.1 to 7.1.0
                                   NOTUSED?  Still using strip-ansi?
                                             Depcheck did not find code similar to require('strip-ansi') or import from 'strip-ansi'.
                                             Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
                                             Use rc file options to remove unused check, but still monitor for outdated version:
                                                 .npmcheckrc {"depcheck": {"ignoreMatches": ["strip-ansi"]}}
                                             Use --skip-unused to skip this check.
                                             To remove this package: npm uninstall strip-ansi --save

unzipper                           NEW VER!  NonSemver update available. https://github.com/ZJONSSON/node-unzipper#readme
                                             npm install [email protected] --save to go from 0.10.14 to 0.12.3

uuid                               MAJOR UP  Major update available. https://github.com/uuidjs/uuid#readme
                                             npm install [email protected] --save to go from 9.0.1 to 10.0.0

wrap-ansi                          NOTUSED?  Still using wrap-ansi?
                                             Depcheck did not find code similar to require('wrap-ansi') or import from 'wrap-ansi'.
                                             Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
                                             Use rc file options to remove unused check, but still monitor for outdated version:
                                                 .npmcheckrc {"depcheck": {"ignoreMatches": ["wrap-ansi"]}}
                                             Use --skip-unused to skip this check.
                                             To remove this package: npm uninstall wrap-ansi --save

ws                                 UPDATE!   Your local install is out of date. https://github.com/websockets/ws
                                             npm install [email protected] --save to go from 8.17.1 to 8.18.0

@babel/core                        UPDATE!   Your local install is out of date. https://babel.dev/docs/en/next/babel-core
                                             npm install @babel/[email protected] --save-dev to go from 7.23.3 to 7.25.8
                                   NOTUSED?  Still using @babel/core?
                                             Depcheck did not find code similar to require('@babel/core') or import from '@babel/core'.
                                             Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
                                             Use rc file options to remove unused check, but still monitor for outdated version:
                                                 .npmcheckrc {"depcheck": {"ignoreMatches": ["@babel/core"]}}
                                             Use --skip-unused to skip this check.
                                             To remove this package: npm uninstall @babel/core --save-dev

@oclif/test                        MAJOR UP  Major update available. https://github.com/oclif/test
                                             npm install @oclif/[email protected] --save-dev to go from 2.5.6 to 4.0.9

@swc/core                          UPDATE!   Your local install is out of date. https://swc.rs
                                             npm install @swc/[email protected] --save-dev to go from 1.3.99 to 1.7.35

@types/chai                        MAJOR UP  Major update available. https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chai
                                             npm install @types/[email protected] --save-dev to go from 4.3.11 to 5.0.0

@types/fast-levenshtein            NEW VER!  NonSemver update available. https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/fast-levenshtein
                                             npm install @types/[email protected] --save-dev to go from 0.0.2 to 0.0.4

@types/inquirer                    MAJOR UP  Major update available. https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/inquirer
                                             npm install @types/[email protected] --save-dev to go from 8.2.10 to 9.0.7

@types/mocha                       UPDATE!   Your local install is out of date. https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mocha
                                             npm install @types/[email protected] --save-dev to go from 10.0.6 to 10.0.9

@types/node                        MAJOR UP  Major update available. https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node
                                             npm install @types/[email protected] --save-dev to go from 10.17.60 to 22.7.5

@types/node-fetch                  UPDATE!   Your local install is out of date. https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-fetch
                                             npm install @types/[email protected] --save-dev to go from 2.6.9 to 2.6.11

@types/rimraf                      MAJOR UP  Major update available.
                                             npm install @types/[email protected] --save-dev to go from 3.0.2 to 4.0.5

@types/uuid                        MAJOR UP  Major update available. https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/uuid
                                             npm install @types/[email protected] --save-dev to go from 9.0.8 to 10.0.0

@types/ws                          UPDATE!   Your local install is out of date. https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ws
                                             npm install @types/[email protected] --save-dev to go from 8.5.10 to 8.5.12

@typescript-eslint/eslint-plugin   MAJOR UP  Major update available. https://typescript-eslint.io/packages/eslint-plugin
                                             npm install @typescript-eslint/[email protected] --save-dev to go from 5.62.0 to 8.9.0

@typescript-eslint/parser          MAJOR UP  Major update available. https://typescript-eslint.io/packages/parser
                                             npm install @typescript-eslint/[email protected] --save-dev to go from 5.62.0 to 8.9.0

acorn                              UPDATE!   Your local install is out of date. https://github.com/acornjs/acorn
                                             npm install [email protected] --save-dev to go from 8.11.2 to 8.12.1
                                   NOTUSED?  Still using acorn?
                                             Depcheck did not find code similar to require('acorn') or import from 'acorn'.
                                             Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
                                             Use rc file options to remove unused check, but still monitor for outdated version:
                                                 .npmcheckrc {"depcheck": {"ignoreMatches": ["acorn"]}}
                                             Use --skip-unused to skip this check.
                                             To remove this package: npm uninstall acorn --save-dev

chai                               MAJOR UP  Major update available. http://chaijs.com
                                             npm install [email protected] --save-dev to go from 4.3.10 to 5.1.1
                                   NOTUSED?  Still using chai?
                                             Depcheck did not find code similar to require('chai') or import from 'chai'.
                                             Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
                                             Use rc file options to remove unused check, but still monitor for outdated version:
                                                 .npmcheckrc {"depcheck": {"ignoreMatches": ["chai"]}}
                                             Use --skip-unused to skip this check.
                                             To remove this package: npm uninstall chai --save-dev

eslint                             MAJOR UP  Major update available. https://eslint.org
                                             npm install [email protected] --save-dev to go from 8.54.0 to 9.12.0

eslint-config-oclif                MAJOR UP  Major update available. https://github.com/oclif/eslint-config-oclif
                                             npm install [email protected] --save-dev to go from 4.0.0 to 5.2.1
                                   NOTUSED?  Still using eslint-config-oclif?
                                             Depcheck did not find code similar to require('eslint-config-oclif') or import from 'eslint-config-oclif'.
                                             Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
                                             Use rc file options to remove unused check, but still monitor for outdated version:
                                                 .npmcheckrc {"depcheck": {"ignoreMatches": ["eslint-config-oclif"]}}
                                             Use --skip-unused to skip this check.
                                             To remove this package: npm uninstall eslint-config-oclif --save-dev

eslint-config-oclif-typescript     MAJOR UP  Major update available. https://github.com/oclif/eslint-config-oclif-typescript
                                             npm install [email protected] --save-dev to go from 1.0.3 to 3.1.12
                                   NOTUSED?  Still using eslint-config-oclif-typescript?
                                             Depcheck did not find code similar to require('eslint-config-oclif-typescript') or import from 'eslint-config-oclif-typescript'.
                                             Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
                                             Use rc file options to remove unused check, but still monitor for outdated version:
                                                 .npmcheckrc {"depcheck": {"ignoreMatches": ["eslint-config-oclif-typescript"]}}
                                             Use --skip-unused to skip this check.
                                             To remove this package: npm uninstall eslint-config-oclif-typescript --save-dev

eslint-plugin-github               MAJOR UP  Major update available. https://github.com/github/eslint-plugin-github#readme
                                             npm install [email protected] --save-dev to go from 4.10.1 to 5.0.2

eslint-plugin-security             MAJOR UP  Major update available. https://github.com/eslint-community/eslint-plugin-security#readme
                                             npm install [email protected] --save-dev to go from 1.7.1 to 3.0.1

eslint-plugin-sonarjs              MAJOR UP  Major update available. https://github.com/SonarSource/SonarJS#readme
                                             npm install [email protected] --save-dev to go from 0.15.0 to 2.0.3

globby                             MAJOR UP  Major update available. https://github.com/sindresorhus/globby#readme
                                             npm install [email protected] --save-dev to go from 10.0.2 to 14.0.2
                                   NOTUSED?  Still using globby?
                                             Depcheck did not find code similar to require('globby') or import from 'globby'.
                                             Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
                                             Use rc file options to remove unused check, but still monitor for outdated version:
                                                 .npmcheckrc {"depcheck": {"ignoreMatches": ["globby"]}}
                                             Use --skip-unused to skip this check.
                                             To remove this package: npm uninstall globby --save-dev

mocha                              UPDATE!   Your local install is out of date. https://mochajs.org/
                                             npm install [email protected] --save-dev to go from 10.2.0 to 10.7.3

nyc                                MAJOR UP  Major update available. https://istanbul.js.org/
                                             npm install [email protected] --save-dev to go from 15.1.0 to 17.1.0

react                              MAJOR UP  Major update available. https://reactjs.org/
                                             npm install [email protected] --save-dev to go from 16.14.0 to 18.3.1
                                   NOTUSED?  Still using react?
                                             Depcheck did not find code similar to require('react') or import from 'react'.
                                             Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
                                             Use rc file options to remove unused check, but still monitor for outdated version:
                                                 .npmcheckrc {"depcheck": {"ignoreMatches": ["react"]}}
                                             Use --skip-unused to skip this check.
                                             To remove this package: npm uninstall react --save-dev

react-dom                          MAJOR UP  Major update available. https://reactjs.org/
                                             npm install [email protected] --save-dev to go from 16.14.0 to 18.3.1
                                   NOTUSED?  Still using react-dom?
                                             Depcheck did not find code similar to require('react-dom') or import from 'react-dom'.
                                             Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
                                             Use rc file options to remove unused check, but still monitor for outdated version:
                                                 .npmcheckrc {"depcheck": {"ignoreMatches": ["react-dom"]}}
                                             Use --skip-unused to skip this check.
                                             To remove this package: npm uninstall react-dom --save-dev

rimraf                             MAJOR UP  Major update available. https://github.com/isaacs/rimraf#readme
                                             npm install [email protected] --save-dev to go from 3.0.2 to 6.0.1

simple-git                         UPDATE!   Your local install is out of date. https://github.com/steveukx/git-js#readme
                                             npm install [email protected] --save-dev to go from 3.21.0 to 3.27.0

ts-node                            UPDATE!   Your local install is out of date. https://typestrong.org/ts-node
                                             npm install [email protected] --save-dev to go from 10.9.1 to 10.9.2

tslib                              UPDATE!   Your local install is out of date. https://www.typescriptlang.org/
                                             npm install [email protected] --save-dev to go from 2.6.2 to 2.7.0
                                   NOTUSED?  Still using tslib?
                                             Depcheck did not find code similar to require('tslib') or import from 'tslib'.
                                             Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
                                             Use rc file options to remove unused check, but still monitor for outdated version:
                                                 .npmcheckrc {"depcheck": {"ignoreMatches": ["tslib"]}}
                                             Use --skip-unused to skip this check.
                                             To remove this package: npm uninstall tslib --save-dev

typescript                         MAJOR UP  Major update available. https://www.typescriptlang.org/
                                             npm install [email protected] --save-dev to go from 4.6.4 to 5.6.3

@jest/types                        PKG ERR!  Not in the package.json. Found in: /jest.config.ts
                                   MAJOR UP  Major update available. https://github.com/jestjs/jest#readme
                                             npm install @jest/[email protected] --save to go from 27.5.1 to 29.6.3

@stoplight/spectral-core           PKG ERR!  Not in the package.json. Found in: /src/core/parser.ts
                                   MINOR UP  Minor update available. https://github.com/stoplightio/spectral
                                             npm install @stoplight/[email protected] --save to go from 1.18.3 to 1.19.1

@stoplight/spectral-formatters     PKG ERR!  Not in the package.json. Found in: /src/core/parser.ts
                                   MINOR UP  Minor update available. https://github.com/stoplightio/spectral
                                             npm install @stoplight/[email protected] --save to go from 1.3.0 to 1.4.0

@asyncapi/specs                    PKG ERR!  Not in the package.json. Found in: /src/commands/convert.ts

jsonfile                           PKG ERR!  Not in the package.json. Found in: /src/commands/new/template.ts

Use npm-check -u for interactive update.


Related issue(s)

Fixes #1520

@Souvikns Souvikns marked this pull request as ready for review October 17, 2024 09:20
Copy link

@Shurtu-gal Shurtu-gal merged commit 9e7c5e6 into asyncapi:master Oct 18, 2024
27 checks passed
@asyncapi-bot asyncapi-bot added the bounty AsyncAPI Bounty program related label label Oct 19, 2024
@aeworxet
Copy link
Contributor

@asyncapi/bounty_team

Souvikns added a commit to Souvikns/cli that referenced this pull request Oct 22, 2024
* chore: update package-lock.json

* fix: add package-lock.json (asyncapi#1542)

* chore: migrate github-action to cli (asyncapi#1487)

* New Github action added for cli

* Added new files in the github-action

* removed monorepo style for github action

* Updated github action with Dockerfile changes

* added command to pack cli for linux, docker build command

* added test-workflow for github-action

* chore: fix docker context

* chore: change docker context

* fix: dockerfile

* changed dockerfile

* fix: dockerfile

* Converted Dockerfile into multi stages

* added github-action folder

* added assets folder to github action image

* deleted act file script

* removed asyncapi.yaml file from .gitignore

* corrected output file for workflow

* updated Dockerfile

* added bundle file

* changed bundle files

* Updated README

* updated output bundle directory

---------

Co-authored-by: asyncapi-bot <[email protected]>
Co-authored-by: Ashish Padhy <[email protected]>

* feat: update oclif to v4 (asyncapi#1546)

* feat: update oclif to v4

* chore: removed unused dependencies

* Update myhook.ts

* chore: update package-lock.json version (asyncapi#1550)

* fix: add description for the start command in AsyncAPI CLI (asyncapi#1534) (asyncapi#1537)


Co-authored-by: Ashish Padhy <[email protected]>

* chore(release): v2.7.1 (asyncapi#1551)

* fix: update npm to latest for windows (asyncapi#1553)

* chore(release): v2.7.2 (asyncapi#1554)

* Update upload-release-assets.yml

---------

Co-authored-by: root <root@LAPTOP-K7PL9FIU>
Co-authored-by: Ashish Padhy <[email protected]>
Co-authored-by: Akshat Nema <[email protected]>
Co-authored-by: asyncapi-bot <[email protected]>
Co-authored-by: Taufiq Hassan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bounty AsyncAPI Bounty program related label
Projects
Status: Completed
Status: Done
Development

Successfully merging this pull request may close these issues.

[FEATURE] Migrate to @oclif/core v4
4 participants