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

Refactor: Bring everything up to speed with new deps and node 20 #80

Open
wants to merge 2 commits into
base: dep-bumps
Choose a base branch
from

Conversation

neutronth
Copy link

Refactor: Bring everything up to speed with new deps and node 20

  • Based on works of John McBride (@jpmcb)
  • Update dependencies:
    • Bump:
      • @typescript-eslint/eslint-plugin: ^6.7.0
      • @typescript-eslint/parser: ^6.7.0
      • eslint: ^8.49.0
      • typescript: ^5.2.2
    • Add:
      • eslint-import-resolver-typescript: ^3.6.0
        Required for eslint to work with typescript import resolver
      • msw: ^1.3.1
        Introduced to replace nock
    • Replace deprecated:
      • Replace @zeit/ncc with @vercel/ncc, upstream suggestion
        Build error: digital envelope routines::unsupported
    • Drop:
      • nock due to the issue [1] related to the fetch experimental
        feature of nodejs
  • Refactor code:
    • TypeScript compile errors
    • ESLint errors and warnings
    • Tests reimplement GitHub API responses mockup using msw/node instead
      of nock
  • Declare the action runs using node20

[1] nock/nock#2397

* Based on works of John McBride (@jpmcb)
* Update dependencies:
  + Bump:
    + @typescript-eslint/eslint-plugin: ^6.7.0
    + @typescript-eslint/parser: ^6.7.0
    + eslint: ^8.49.0
    + typescript: ^5.2.2
  + Add:
    + eslint-import-resolver-typescript: ^3.6.0
      Required for eslint to work with typescript import resolver
    + msw: ^1.3.1
      Introduced to replace nock
  + Replace deprecated:
    + Replace @zeit/ncc with @vercel/ncc, upstream suggestion
      Build error: digital envelope routines::unsupported
  + Drop:
    + nock due to the issue [1] related to the fetch experimental
      feature of nodejs
* Refactor code:
  + TypeScript compile errors
  + ESLint errors and warnings
  + Tests reimplement GitHub API responses mockup using msw/node instead
    of nock
* Declare the action runs using node20

---
[1] nock/nock#2397

Signed-off-by: Neutron Soutmun <neutron.s@linecorp.com>
Signed-off-by: Neutron Soutmun <neutron.s@linecorp.com>
Copy link
Owner

@jpmcb jpmcb left a comment

Choose a reason for hiding this comment

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

Wow. Excellent work: on quick preliminary review, this looks great. This will take me some time to go over and approve, but looks like all tests pass.

Bummer that nock won't work for our use cases but msw looks like a suitable replacement.

@jpmcb
Copy link
Owner

jpmcb commented Sep 17, 2023

Closes #73
Closes #79

@ArangoGutierrez
Copy link

Any updates on this effort? I am interested in this action

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

Successfully merging this pull request may close these issues.

None yet

3 participants