fix/correctness-types-cleanup #2
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/correctness-types-cleanup"
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?
No behavior change (46 tests still pass); net -108 lines of source. - Remove lazyAsync(): it never invoked its factory, never set its initialized flag, and unconditionally threw — it could not work. - Remove the abandoned circular-detection scaffolding that was never wired up: Resolver.{getOrCreateProxy,beginResolution,endResolution,isResolving, setPendingInstance,getPendingInstance,clearPendingInstance, getResolutionPath} and the resolutionStack/pendingInstances fields. The container detects cycles via its own in-progress set + lazy proxies. - Remove the no-op `detectCircularDependencies` container option (stored but never read) and the `CircularDependencyError` class (exported but never thrown), plus their README references. Proxy-based circular resolution is unaffected. - Drop unused imports across resolver/async/container/decorators/registry. - Enable `noUnusedLocals` on the source build config so dead locals/imports (the lazyAsync class of bug) fail the build; left off for tests, whose fixtures intentionally declare unused @inject parameter properties. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>