Skip to content
This repository was archived by the owner on Feb 20, 2026. It is now read-only.

chore/refactor-structure#11

Merged
donfear merged 5 commits intomainfrom
chore/refactor-structure
Jan 27, 2026
Merged

chore/refactor-structure#11
donfear merged 5 commits intomainfrom
chore/refactor-structure

Conversation

@donfear
Copy link
Owner

@donfear donfear commented Jan 26, 2026

No description provided.

Split large files into focused modules under core/, services/, and utils/ directories.
Moved PnpmUpgradeInteractive class to core/upgrade-runner.ts, extracted npm registry
logic to services/npm-registry.ts, and separated UI rendering into dedicated modules.
Updated all import paths to reflect new structure.
Replace npm registry with jsDelivr CDN for fetching package version data,
implementing caching and concurrent request optimization. The new service
fetches @latest and @major versions simultaneously, falling back to npm
registry when packages are unavailable on CDN. This reduces network latency
and improves overall package detection performance.
Replace synchronous file reading with async operations to read multiple
package.json files in parallel. This improves performance when processing
projects with many package.json files by utilizing concurrent I/O operations.
Replace native fetch and p-limit with undici's connection pooling for
improved HTTP request performance. The new implementation uses persistent
connection pools with keep-alive and pipelining, reducing connection
overhead and improving throughput for concurrent registry requests.
@donfear donfear merged commit 00fcf2c into main Jan 27, 2026
0 of 3 checks passed
@donfear donfear deleted the chore/refactor-structure branch January 27, 2026 12:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant