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

v16 regression: parsed GraphQL comments has invalid (negative) token.column #3353

Closed
wants to merge 1 commit into from

Conversation

dotansimha
Copy link
Member

@dotansimha dotansimha commented Nov 1, 2021

While working on graphql-eslint (dimaMachina/graphql-eslint#724) and upgrading it to v16, we noticed that parsed comments has negative values in startToken.column. v15 was working fine.

Managed to add a failing test to ensure all columns are positive. I think it happens only when there are GraphQL comments at the beginning of the document.

@IvanGoncharov @saihaj thoughts?

the test case I added isn't ideal, it just tries to confirm the existence of the bug, and not the correctness of the positions

@IvanGoncharov
Copy link
Member

@dotansimha Thanks for the test case. I will take a look.

@IvanGoncharov
Copy link
Member

@dotansimha Fixed in https://github.com/graphql/graphql-js/releases/tag/v16.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants