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

feat(ast-spec): bring Node objects in line with ESTree #3771

Merged
merged 1 commit into from
Sep 22, 2021

Conversation

MichaelDeBoey
Copy link
Contributor

@MichaelDeBoey MichaelDeBoey commented Aug 21, 2021

@typescript-eslint
Copy link
Contributor

Thanks for the PR, @MichaelDeBoey!

typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community.

The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately.

Thanks again!


🙏 Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently on https://opencollective.com/typescript-eslint. As a thank you, your profile/company logo will be added to our main README which receives thousands of unique visitors per day.

@MichaelDeBoey MichaelDeBoey force-pushed the patch-24 branch 2 times, most recently from 166c9da to bd887d5 Compare August 21, 2021 18:55
@bradzacher bradzacher added bug Something isn't working breaking change This change will require a new major version to be released labels Sep 3, 2021
@bradzacher bradzacher added this to the 5.0.0 milestone Sep 3, 2021
@MichaelDeBoey
Copy link
Contributor Author

@bradzacher The PR as it is right now isn't a breaking change, as we still expose LineAndColumnData.

Was planning on doing a follow-up PR to the v5 branch with removing it, but if you want, I'm happy to rebase this branch onto v5 and make it a breaking change from the start.

@bradzacher bradzacher added awaiting response Issues waiting for a reply from the OP or another party and removed breaking change This change will require a new major version to be released labels Sep 20, 2021
@codecov
Copy link

codecov bot commented Sep 20, 2021

Codecov Report

Merging #3771 (8f540b7) into v5 (cbbf22a) will decrease coverage by 0.70%.
The diff coverage is 100.00%.

❗ Current head 8f540b7 differs from pull request most recent head 275eb0b. Consider uploading reports for the commit 275eb0b to get more accurate results

@@            Coverage Diff             @@
##               v5    #3771      +/-   ##
==========================================
- Coverage   93.40%   92.70%   -0.71%     
==========================================
  Files         151      331     +180     
  Lines        8084    11640    +3556     
  Branches     2563     3291     +728     
==========================================
+ Hits         7551    10791    +3240     
- Misses        181      371     +190     
- Partials      352      478     +126     
Flag Coverage Δ
unittest 92.70% <100.00%> (-0.71%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...gin-internal/src/rules/no-poorly-typed-ts-props.ts 88.88% <ø> (ø)
...ges/eslint-plugin/src/rules/no-inferrable-types.ts 93.33% <ø> (ø)
...nt-plugin/src/rules/no-unused-vars-experimental.ts 91.39% <ø> (ø)
...ges/scope-manager/src/definition/DefinitionType.ts 100.00% <ø> (ø)
...plugin-internal/src/rules/prefer-ast-types-enum.ts 91.30% <100.00%> (ø)
...plugin/src/rules/explicit-module-boundary-types.ts 89.47% <100.00%> (ø)
...ages/eslint-plugin/src/rules/no-require-imports.ts 100.00% <100.00%> (ø)
packages/eslint-plugin/src/rules/no-shadow.ts 77.34% <100.00%> (+0.73%) ⬆️
packages/eslint-plugin/src/rules/no-type-alias.ts 100.00% <100.00%> (ø)
...es/eslint-plugin/src/rules/no-use-before-define.ts 91.20% <100.00%> (+0.09%) ⬆️
... and 293 more

@bradzacher bradzacher removed the awaiting response Issues waiting for a reply from the OP or another party label Sep 21, 2021
@bradzacher
Copy link
Member

let's just target this at v5 and avoid the interim migration step.
i'm happy to merge this in.

@bradzacher bradzacher added breaking change This change will require a new major version to be released awaiting response Issues waiting for a reply from the OP or another party labels Sep 21, 2021
@MichaelDeBoey
Copy link
Contributor Author

@bradzacher Do I remove the LineAndColumnData type then?

@bradzacher
Copy link
Member

Yup! Remove it and rebase on the v5 branch

@MichaelDeBoey
Copy link
Contributor Author

@bradzacher It should be good to go now 🙂

@bradzacher bradzacher removed the awaiting response Issues waiting for a reply from the OP or another party label Sep 22, 2021
@bradzacher bradzacher added the awaiting response Issues waiting for a reply from the OP or another party label Sep 22, 2021
BREAKING CHANGE: `LineAndColumnData` is renamed to `Position`
@bradzacher bradzacher removed the awaiting response Issues waiting for a reply from the OP or another party label Sep 22, 2021
Copy link
Member

@bradzacher bradzacher left a comment

Choose a reason for hiding this comment

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

thanks!

@bradzacher bradzacher changed the title fix(ast-spec): bring Node objects in line with ESTree feat(ast-spec): bring Node objects in line with ESTree Sep 22, 2021
@bradzacher bradzacher merged commit f893d1b into typescript-eslint:v5 Sep 22, 2021
@MichaelDeBoey MichaelDeBoey deleted the patch-24 branch September 22, 2021 17:57
This was referenced Oct 12, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
breaking change This change will require a new major version to be released bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants