api: remove the version parameter of getSupportInfo#7620
api: remove the version parameter of getSupportInfo#7620thorn0 merged 7 commits intoprettier:nextfrom
Conversation
|
We may want switch those support infos to JSON scheme some day. |
|
@fisker Would we need that |
|
I agree that we don't need it. I mean after removing this, support info is just some property validate info, we can use ajv to validate. |
| // we need to treat it as the normal one so as to test new features. | ||
| version = currentVersion.split("-", 1)[0]; | ||
| function getSupportInfo( | ||
| _, |
There was a problem hiding this comment.
Can we remove this parameter, and wrap in the export?
There was a problem hiding this comment.
That would break type inference and overall I think the code is cleaner (less confusing) the way it is now.
There was a problem hiding this comment.
Nevertheless, I did something with this. (I don't like it though. Adding types to that will be difficult.)
7f1c664 to
e5b5721
Compare
sosukesuzuki
left a comment
There was a problem hiding this comment.
Good job! We should fix the type definition after release.
7ed4098 to
a068ed6
Compare
|
Merging this to move forward with other changes. |
closes #7615
docs/directory)changelog_unreleased/*/pr-XXXX.mdfile followingchangelog_unreleased/TEMPLATE.md.✨Try the playground for this PR✨