Skip to content
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

[regression] Don't validate file.comments in @babel/types #11752

Merged
merged 3 commits into from Jun 29, 2020

Conversation

nicolo-ribaudo
Copy link
Member

@nicolo-ribaudo nicolo-ribaudo commented Jun 27, 2020

Q                       A
Fixed Issues? Fixes #11687 (comment), jestjs/jest#10208
Patch: Bug Fix? Yes
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

In #11687 we introduced a new valid check, but it breaks Jest. Let's defer it to Babel 8.

@nicolo-ribaudo nicolo-ribaudo added PR: Bug Fix 🐛 A type of pull request used for our changelog categories i: regression labels Jun 27, 2020
@codesandbox-ci
Copy link

codesandbox-ci bot commented Jun 27, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 0e34189:

Sandbox Source
nameless-glitter-3401b Configuration
eager-rgb-oi1og Configuration

@babel-bot
Copy link
Collaborator

babel-bot commented Jun 27, 2020

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/24769/

validate: assertEach(assertNodeType("Comment")),
validate: !process.env.BABEL_TYPES_8_BREAKING
? Object.assign(() => {}, { each: { type: "Comment" } })
: assertEach(assertNodeType("Comment")),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one thing, I noticed, when looking into referred issue:

assertNodeType("Comment") results in correct typescript types, but actual check is not correct instead it should be assertNodeType("CommentBlock", "CommentLine")

[skip ci]

Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
@nicolo-ribaudo nicolo-ribaudo merged commit 5743ad3 into babel:main Jun 29, 2020
@nicolo-ribaudo nicolo-ribaudo deleted the file-comments-regression branch June 29, 2020 21:23
@github-actions github-actions bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Sep 29, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
i: regression outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: Bug Fix 🐛 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants