Conversation
There was a problem hiding this comment.
Pull request overview
This PR refactors the codebase to leverage Node.js native TypeScript type stripping capabilities, eliminating the need for separate build tools. The changes modernize the development workflow and dependencies while maintaining the same API surface.
Key changes:
- Migrated from
@myunisoft/httpieto nativeundicifor HTTP requests - Split monolithic
src/index.tsinto separate files for better organization (api.tsandgithub.types.ts) - Updated TypeScript configuration to use
@openally/config.typescript/esm-ts-nextfor native type stripping support - Simplified build and test scripts to use native Node.js capabilities (
node --test)
Reviewed changes
Copilot reviewed 8 out of 9 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| tsconfig.json | Updated TypeScript configuration to extend ESM-TS-Next config for native type stripping |
| test/fetch.spec.ts | Changed import extension from .js to .ts to support native type stripping |
| src/index.ts | Refactored to re-export from modularized files instead of containing all logic |
| src/github.types.ts | New file containing exported TypeScript interfaces for GitHub API types |
| src/api.ts | New file containing main API logic with migrated HTTP client from httpie to undici |
| package.json | Updated dependencies, removed build tools (tsx, rimraf, glob), simplified scripts, added exact version constraints |
| .npmrc | Added ignore-scripts and save-exact configuration flags |
| .github/workflows/node.js.yml | Updated Node.js version to 24.x and added --ignore-scripts flag to install command |
| .github/dependabot.yml | Added cooldown configuration with 5-day default for both npm and GitHub Actions updates |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
PierreDemailly
approved these changes
Dec 18, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.