-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Unable to publish due to baseline difference in .d.ts
emit
#39129
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
Comments
@rbuckton is this an intended outcome of the node factory work? Should we LKG and accept the difference? |
It could be. Odd though that this didn't show up in the API tests before now. |
Iirc, the API tests are consistently captured with the |
I'm not entirely certain why this changed. |
It's very likely the parenthesizer was never being invoked before, as those return type nodes are normally just copied from the source (since it's an interface) |
@weswigham if it was copied from source then it should be copied from source now as well? |
It should be! The parenthesizer in the factory may have had other ideas when the |
Ah, I discovered the difference, and accepting the change should be fine. In 3.9 we called TypeScript/src/compiler/transformers/declarations.ts Lines 864 to 868 in 986e9dd
And TypeScript/src/compiler/factory.ts Lines 1274 to 1286 in 986e9dd
NOTE: It's not the call to TypeScript/src/compiler/factory.ts Line 1276 in 986e9dd
By returning a new One of the node factory changes was to move the TypeScript/src/compiler/factory/nodeFactory.ts Lines 1626 to 1632 in fe33e61
In the updated parenthesizer rules, we use TypeScript/src/compiler/factory/parenthesizerRules.ts Lines 398 to 402 in fe33e61
This results in us just reusing the original node since there are no changes in the type reference. |
I just pushed up #39173 which runs LKG and accepts the new API baselines. |
We seem to be hitting some sort of issue with parenthesization on
.d.ts
files. This has been blocking nightly publishes, and will block any sort of beta publish next week.https://typescript.visualstudio.com/TypeScript/_build/results?buildId=76918&view=logs&j=fd490c07-0b22-5182-fac9-6d67fe1e939b&t=00933dce-c782-5c03-4a85-76379ccfa50a&l=139
The text was updated successfully, but these errors were encountered: