-
-
Notifications
You must be signed in to change notification settings - Fork 374
fix(managers): correct manifest shared configuration #3219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🦋 Changeset detectedLatest commit: c949342 The changes in this PR will be included in the next version bump. This PR includes changesets to release 27 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
✅ Deploy Preview for module-federation-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Summary
The pull request focuses on resolving issues with the manifest shared configuration across several modules in the managers package of the module-federation/core project. The key changes include:
- Correcting the manifest shared configuration in the
ContainerManager,PKGJsonManager,RemoteManager, andSharedManagerclasses. - Enabling the
noImplicitAnyTypeScript compiler option to improve type safety and maintainability. - Adding test cases for the
sharedManager.normalizedOptionsfunctionality to ensure the correctness of the shared configuration transformation.
These modifications aim to improve the reliability and maintainability of the affected modules by addressing configuration-related issues and enhancing the overall codebase quality.
File Summaries
| File | Summary |
|---|---|
| packages/managers/src/ContainerManager.ts | The code changes in this pull request focus on correcting the manifest shared configuration, enabling the noImplicitAny TypeScript option, and adding a test for the sharedManager.normalizedOptions functionality. These modifications aim to improve the reliability and maintainability of the ContainerManager class in the module-federation/core project. |
| packages/managers/src/PKGJsonManager.ts | The code changes introduce a fix to the PKGJsonManager module by correcting the manifest shared configuration, enabling noImplicitAny: true, and adding a test for the sharedManager.normalizedOptions. The primary purpose of these modifications is to improve the reliability and maintainability of the module's functionality. |
| packages/managers/src/RemoteManager.ts | The code changes introduce a bug fix to the RemoteManager class. The primary modifications include correcting the dtsRemotes getter to handle the normalizedOptions property correctly, enabling the noImplicitAny TypeScript compiler option, and adding a test for the sharedManager.normalizedOptions functionality. |
| packages/managers/src/SharedManager.ts | The code changes introduce a fix to the SharedManager class in the managers package. The primary modifications include: |
- Correcting the manifest shared configuration by transforming the shared configuration options using the
transformSharedConfigmethod. - Enabling the
noImplicitAnyTypeScript compiler option to improve type safety. - Adding a test case for the
sharedManager.normalizedOptionsfunctionality to ensure the correctness of the shared configuration transformation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Incremental Review
Comments posted: 11
Configuration
Squadron Mode: essential
Commits Reviewed
168ce962b2940d15a8d6d415c6bb1b626c1cee5a...c949342e56a586abf4e8bbedf04e8f8082113f84
Files Reviewed
- packages/managers/src/ContainerManager.ts
- packages/managers/src/PKGJsonManager.ts
- packages/managers/src/RemoteManager.ts
- packages/managers/src/SharedManager.ts
Files Ignored
These files were ignored due to the filter in the squadron.yaml file.
- .changeset/tough-yaks-lay.md
- packages/managers/tests/SharedManager.spec.ts
- packages/managers/tests/snapshots/SharedManager.spec.ts.snap
- packages/managers/tsconfig.json
|
Amazing! |
Description
noImplicitAny: trueRelated Issue
#3101
Types of changes
Checklist