Repository navigation
release: v2.5.2 - #56
Merged
Merged
Conversation
- Add originalAnalysis parameter to processModuleForAPI call in buildCategoryStructure - Ensures proper namespace creation for modules with default+named exports in nested folders - Now api.lg.connect.* structure works correctly instead of incorrect api.lg.connect() flattening - Maintains consistency with root-level multi-default processing logic - Fixes bug where nested folders lost proper hasDefault detection, falling back to !!mod.default Resolves multi-default export processing inconsistency between root and nested categories
There was a problem hiding this comment.
Pull Request Overview
This is a hotfix release (v2.5.2) that addresses an issue with handling nested folder multi-default export scenarios. The fix ensures that module analysis data is properly preserved and passed through when processing modules with multiple default exports.
Key Changes:
- Added re-analysis of existing modules to preserve original analysis data
- Updated
processModuleForAPIto receive and utilizeoriginalAnalysisparameter - Added default export declarations to test files
Reviewed Changes
Copilot reviewed 4 out of 6 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| package.json | Version bump from 2.5.1 to 2.5.2 |
| src/lib/helpers/api_builder.mjs | Added re-analysis for existing modules and pass originalAnalysis to processModuleForAPI |
| api_tests/api_tv_test/manufacturer/lg/volume.mjs | Added default export declaration for test case |
| types/api_tests/api_tv_test/manufacturer/lg/volume.d.mts | Added corresponding TypeScript type declaration for default export |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Store analysis data alongside processed modules in defaultExportFiles during first pass - Reuse stored analysis instead of re-analyzing already loaded modules - Remove duplicate analyzeModule() and import operations for existing defaults - Apply optimization to both buildCategoryStructure and buildCategoryDecisions functions - Maintain identical functionality while reducing I/O overhead in multi-default scenarios Eliminates redundant file system access and import operations for nested folder processing
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 4 out of 6 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Shinrai
approved these changes
Oct 27, 2025
Shinrai
added a commit
that referenced
this pull request
Feb 11, 2026
# Release: v2.5.2 - Nested Folder Multi-Default Export Hotfix 🔧 **CRITICAL BUG FIX - NESTED FOLDER MULTI-DEFAULT EXPORT HANDLING** • Fix critical nested folder multi-default export processing inconsistency causing incorrect API flattening • Add missing originalAnalysis parameter to processModuleForAPI call in buildCategoryStructure function • Resolve bug where modules with default+named exports in nested folders lost proper namespace structure • Ensure api.lg.connect.* structure works correctly instead of incorrect api.lg.connect() flattening behavior • Maintain consistency with root-level multi-default processing logic eliminating architectural disparity 🎯 **API STRUCTURE CONSISTENCY RESTORATION** • Achieve complete multi-default export parity between root-level and nested folder processing • Restore proper namespace creation for modules like connect.mjs, disconnect.mjs, key.mjs, power.mjs in nested contexts • Eliminate incorrect function flattening where api.manufacturer.lg.connect() appeared instead of api.manufacturer.lg.connect.* • Fix category-level module processing maintaining architectural consistency across all folder depths 🛡️ **VALIDATION AND TESTING** • Complete pre-commit validation chain execution: test:node → test:unit → build:dist → build:types → test:types • All 10 Node.js test files pass including comprehensive API structure validation • All 88 unit tests pass via Vitest ensuring functional correctness • TypeScript definition validation confirms all 12 package exports maintain compatibility • API structure inspection confirms proper namespace restoration in api_tv_test manufacturer/lg folder **Technical Details**: The fix addresses a gap where buildCategoryStructure function lacked the originalAnalysis parameter needed for accurate hasDefault detection in nested folders, causing fallback to unreliable !!mod.default checks. **Breaking Changes**: None - targeted hotfix maintains full backward compatibility **Performance Impact**: Negligible - single parameter addition with minimal processing overhead **API Compatibility**: Complete preservation with enhanced nested folder multi-default export correctness This hotfix resolves a critical architectural inconsistency in nested folder multi-default export processing, restoring proper namespace structure and ensuring consistent behavior across all folder depths. Co-authored-by: Nate - CLDMV <[email protected]>
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.
🚀 What's Changed
💥 Breaking Changes
No breaking changes
✨ Features
No new features
🐛 Bug Fixes
No bug fixes
🔧 Other Changes
🏷️ Release Information
👥 Contributors