mirror of
https://github.com/ersinkoc/environment-detector.git
synced 2026-04-27 06:15:58 +03:00
[PR #1] [MERGED] Find and fix all verifiable bugs in repository #1
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/environment-detector#1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ersinkoc/environment-detector/pull/1
Author: @ersinkoc
Created: 11/5/2025
Status: ✅ Merged
Merged: 11/5/2025
Merged by: @ersinkoc
Base:
main← Head:claude/find-and-fix-all-bugs-011CUpqNoeDkqQqY3nkGFfmG📝 Commits (1)
949bbbafix: resolve 6 critical bugs found in comprehensive codebase audit📊 Changes
10 files changed (+552 additions, -27 deletions)
View changed files
📝
cli/index.ts(+28 -6)📝
package-lock.json(+1 -1)📝
src/detectors/cloud.ts(+6 -2)📝
src/index.ts(+27 -3)📝
src/plugins/manager.ts(+5 -3)📝
src/types/plugin.ts(+3 -3)➕
tests/unit/bug-fixes.test.ts(+259 -0)➕
tests/unit/cli-bug-fixes.test.ts(+212 -0)📝
tests/unit/index.test.ts(+5 -3)📝
tests/unit/plugins/manager.test.ts(+6 -6)📄 Description
This commit addresses all verifiable bugs discovered during a systematic code review of the environment-detector codebase.
BUGS FIXED:
Plugin Manager async handling (src/plugins/manager.ts)
CLI argument validation (cli/index.ts)
CLI version path resolution (cli/index.ts)
Async mode handling in convenience getters (src/index.ts)
Cache singleton interference (src/index.ts)
Cloud detector TypeError (src/detectors/cloud.ts)
TESTING:
Test files:
Impact: High-priority fixes improving stability, type safety, and preventing runtime errors in production environments.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.