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

Prune and upgrade npm package dependencies #1265

Merged

Conversation

peterbom
Copy link
Collaborator

@peterbom peterbom commented Apr 2, 2024

Updates dependencies to the latest versions, prior to enabling Dependabot to do this for us.

Change summary:

  • Unused dependencies have been removed
  • @types packages have been removed where packages publish their own types
  • Node version is updated (to prevent issues where more recent packages require later node versions)
  • TypeScript (and associated build/lint tools) are updated to latest versions
  • Some missing dependencies have been added (glob and request)
  • Additions to tsconfig.json to prevent TypeScript analysing the node_modules directory and enable the recommended esModuleInterop setting)
  • Dependency updates and fixes for breaking changes

This builds, runs and passes automated tests, but it's probably worth doing some further manual testing.

@peterbom peterbom requested a review from Tatsinnit April 2, 2024 02:30
Signed-off-by: Peter Bomber <peter.bomber@microsoft.com>
Signed-off-by: Peter Bomber <peter.bomber@microsoft.com>
Signed-off-by: Peter Bomber <peter.bomber@microsoft.com>
Signed-off-by: Peter Bomber <peter.bomber@microsoft.com>
Signed-off-by: Peter Bomber <peter.bomber@microsoft.com>
Signed-off-by: Peter Bomber <peter.bomber@microsoft.com>
Signed-off-by: Peter Bomber <peter.bomber@microsoft.com>
Signed-off-by: Peter Bomber <peter.bomber@microsoft.com>
Signed-off-by: Peter Bomber <peter.bomber@microsoft.com>
Signed-off-by: Peter Bomber <peter.bomber@microsoft.com>
@Tatsinnit Tatsinnit added the dependencies Pull requests that update a dependency file label Apr 2, 2024
@@ -17,7 +17,9 @@
"noImplicitAny": true,
"strictFunctionTypes": true,
"strictNullChecks": true,
"noImplicitThis": true
"noImplicitThis": true,
"esModuleInterop": true,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Setting esModuleInterop to true is recommended and required for compatibility with later versions of the K8s client library.

"noImplicitThis": true
"noImplicitThis": true,
"esModuleInterop": true,
"skipLibCheck": true
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Without setting this, we end up with type errors in the K8s client, the glob types, and shelljs.

Copy link
Collaborator

@Tatsinnit Tatsinnit left a comment

Choose a reason for hiding this comment

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

Thanks for this. Looks good to me, I gave a quick test for the vsix shared, and seems alright and things work normal. ☕️🙏

For anyone keen here is the vsix to test if any wider community folks what to chip in. Thanks

vscode-kubernetes-tools-1.3.16-20240402-01.vsix.zip

@Tatsinnit Tatsinnit merged commit 9b0d806 into vscode-kubernetes-tools:master Apr 20, 2024
4 checks passed
Moazzem-Hossain-pixel

This comment was marked as off-topic.

Moazzem-Hossain-pixel

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants