Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

salmanmkc
Copy link
Contributor

Doing an upgrade for node 24, node 24 is stricter with types so need to add a type for achitecture

Description:
Describe your changes.

Related issue:
Add link to the related issue.

Check list:

  • Mark if documentation changes are required.
  • Mark if tests were added or updated to cover the changes.

Doing an upgrade for node 24, node 24 is stricter with types so need to add a type for achitecture
@salmanmkc salmanmkc marked this pull request as ready for review August 8, 2025 06:31
@Copilot Copilot AI review requested due to automatic review settings August 8, 2025 06:31
@salmanmkc salmanmkc requested a review from a team as a code owner August 8, 2025 06:31
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR upgrades the project to Node.js 24, which enforces stricter type checking requirements. The main change introduces a new Architecture type to satisfy Node 24's stricter typing for architecture parameters.

  • Adds a new Architecture type as a string alias to match @actions/tool-cache expectations
  • Updates all architecture-related function parameters and variables to use the new type
  • Sets minimum Node.js engine requirement to 24.0.0

Reviewed Changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/types.ts Introduces new Architecture type definition
src/system.ts Updates getArch function parameter to use Architecture type
src/main.ts Adds type casting for architecture inputs to Architecture type
src/installer.ts Updates all architecture parameters across multiple functions to use Architecture type
package.json Sets Node.js engine requirement to >=24.0.0

priyagupta108
priyagupta108 previously approved these changes Aug 20, 2025
aparnajyothi-y
aparnajyothi-y previously approved these changes Aug 20, 2025
@priyagupta108 priyagupta108 dismissed stale reviews from aparnajyothi-y and themself via ad6b4cb August 26, 2025 08:39
priyagupta108
priyagupta108 previously approved these changes Aug 26, 2025
aparnajyothi-y
aparnajyothi-y previously approved these changes Aug 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants