Skip to content

refactor: improve npm package code#171

Merged
ocombe merged 1 commit intomasterfrom
fix/npm-package-fixes
Oct 27, 2025
Merged

refactor: improve npm package code#171
ocombe merged 1 commit intomasterfrom
fix/npm-package-fixes

Conversation

@ocombe
Copy link
Contributor

@ocombe ocombe commented Oct 24, 2025

  • Update Node.js version from 20 to 22 in CI
  • Update pnpm version from 8 to 10 in CI
  • Replace node-fetch with built-in fetch API
  • Prefix all Node.js core modules with 'node:' protocol
  • Extract platform/arch checks into isPlatform() utility function
  • Use parseArgs() for CLI argument parsing
  • Extract localhost validation into isLocalhost() function
  • Remove node-fetch dependency from package.json

@ocombe ocombe force-pushed the fix/npm-package-fixes branch from ef6ffba to 00fcb0b Compare October 24, 2025 12:38
Copy link
Collaborator

@rtimush rtimush left a comment

Choose a reason for hiding this comment

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

Looks good to me, but let's wait for @cx-shahar-kazaz'r review as well.

@ocombe ocombe force-pushed the fix/npm-package-fixes branch 2 times, most recently from c3213d9 to 44b9a52 Compare October 24, 2025 12:56
- Update Node.js version from 20 to 22 in CI
- Update pnpm version from 8 to 10 in CI
- Replace node-fetch with built-in fetch API
- Prefix all Node.js core modules with 'node:' protocol
- Extract platform/arch checks into isPlatform() utility function
- Use parseArgs() for CLI argument parsing
- Extract localhost validation into isLocalhost() function
- Remove node-fetch dependency from package.json
@ocombe ocombe force-pushed the fix/npm-package-fixes branch from 44b9a52 to 7d83661 Compare October 27, 2025 08:29
@ocombe ocombe merged commit e45b641 into master Oct 27, 2025
20 checks passed
@ocombe ocombe deleted the fix/npm-package-fixes branch October 27, 2025 15:39
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.

3 participants