-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
api: remove the version parameter of getSupportInfo #7620
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
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. |
src/main/support.js
Outdated
| // 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we remove this parameter, and wrap in the export?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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✨