-
Notifications
You must be signed in to change notification settings - Fork 608
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
[api-extractor] auto add .api.md
#4842
Comments
The filename was always intended to be something like The change in behavior was likely introduced by @Josmithr's recent work in PR #4621 to support the new rushstack/apps/api-extractor/src/api/IConfigFile.ts Lines 91 to 106 in 0e14ced
Related code changes: rushstack/apps/api-extractor/src/api/ExtractorConfig.ts Lines 934 to 949 in 0e14ced
We could try to detect and support @0618 is there a reason why you don't just use the normal naming convention? In a monorepo, there can be hundreds of libraries, so it's fairly important for the package name to be included in the filename. |
@octogonz We're nesting each
You're saying that it was "not enforced convention" which sounds more like advisory than something enforced. We opted out and now new version that always appends extension breaks us. |
This PR clarifies the documentation: #4846 |
If we allow Of course API Extractor could have provided separate settings for each variant report filename, but @Josmithr and I both thought that design would be awkward to configure. Also, standardizing the file extensions makes the reports easier to distinguish.
The docs say: "The file extension should be There's even a diagram: 😄
Therefore, it's kind of a weak case that we have an obligation to allow other file extensions, just because it didn't fail with an error. From a software design perspective, flexibility is a price, not a benefit. That price is worth paying when it enables us to solve new kinds of problems. But flexibility always makes it harder to support other requirements such as |
Per https://www.ietf.org/rfc/rfc2119.txt
I understand the value added in the flows you described. But, we're not using them at all, our interaction with extractor ends at report generation where we desire constant name of the report in our current setup. Therefore all the benefits you're describing don't matter much for our usage pattern. |
+1 on what @sobolk is saying. FluentUI is affected as well. from API POV it is a breaking change in non breaking semver bump. can this be resolved in non breaking way? ty |
After version 7.40.1, started to generate new report files with
.api.md
.Summary
In my config, I have
"reportFileName": "API.md",
, so it used to generateAPI.md
for me.However, with the new version, it ignores the old
API.md
, but started generates aAPI.md.api.md
instead.Repro steps
"reportFileName": "API.md",
Expected result:
Old version generates
API.md
Actual result:
New version generates
API.md.api.md
Details
It might related to #4621
The new minor version upgrade should not contain any breaking change.
Standard questions
Please answer these questions to help us investigate your issue more quickly:
@microsoft/api-extractor
version?7.40.1
~5.2.0
node -v
)?v20.11.1
The text was updated successfully, but these errors were encountered: