Closed fengmk2 closed 1 month ago
The recent updates involve enhancing the PackageVersionFileService
to better handle package version checks, including support for wildcard (*
) versions. Additionally, a bugfix in listFiles.test.ts
ensures compatibility with release candidate (rc) versions, improving the reliability and accuracy of package version validations.
Files/Groups | Change Summary |
---|---|
app/core/service/PackageVersionFileService.ts |
Updated the logic for checking package versions to include wildcard (* ) versions and improved the condition checks for package configuration. |
test/port/controller/PackageVersionFileController/listFiles.test.ts |
Implemented a bugfix to support rc versions, including setting configuration flags, creating packages with specific versions and descriptions, making HTTP requests with different versions, and asserting responses. |
sequenceDiagram
participant Client
participant PackageVersionFileController
participant PackageVersionFileService
participant PackageRegistry
Client->>PackageVersionFileController: Request for package files
PackageVersionFileController->>PackageVersionFileService: Check package version
PackageVersionFileService->>PackageRegistry: Fetch package configuration
PackageRegistry-->>PackageVersionFileService: Return package configuration
PackageVersionFileService-->>PackageVersionFileController: Return version check result
PackageVersionFileController-->>Client: Respond with package files or error
Objective | Addressed | Explanation |
---|---|---|
Ensure the rule for package version checking includes wildcard (* ) support (#63) |
โ | |
Fix the bug to support rc versions in package version checks (#63) | โ |
In code we trust, with versions so grand,
Wildcards and rc, now perfectly planned.
Packages flow, like rivers so free,
Bugs fixed and tested, for all to see.
A rabbit's delight, in lines of code,
Enhancing the path, on which we all rode.
๐๐โจ
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 96.82%. Comparing base (
96648fd
) to head (7bd72a4
). Report is 1 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
ๅญฆไน ไบ semver ็ไธไธชๆฐ็ฅ่ฏ็นใ
Learned a semver of new things to know.
closes https://github.com/cnpm/unpkg-white-list/issues/63
Summary by CodeRabbit
*
) versions, ensuring better compatibility and flexibility.