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

doc: fix Incorrect order in util.parseArgs history #45726

Closed
wants to merge 2 commits into from

Conversation

bleakprestiger
Copy link

No description provided.

fix incorrect order in util.parseArgs history in the util.md

Fixed ordering in the versioning history for the util.parseArgs function in the util.md.

Fixes: -nodejs#45670
…er_in_util.parseArgs_history

doc: fix Incorrect order in util.parseArgs history
@nodejs-github-bot nodejs-github-bot added doc Issues and PRs related to the documentations. util Issues and PRs related to the built-in util module. labels Dec 3, 2022
@@ -1380,15 +1380,15 @@ added:
- v18.3.0
- v16.17.0
changes:
- version: v18.11.0
Copy link
Member

Choose a reason for hiding this comment

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

This change does not seem correct. We put the most recent change first.

Copy link
Member

Choose a reason for hiding this comment

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

The original issue is the result of the sorting done here

meta.changes.sort((a, b) => versionSort(a.version, b.version));

The versions in the meta.changes array are

['v18.11.0', ['v18.7.0', 'v16.17.0'], 'v18.3.0']

and versionSort() uses the min version ('v16.17.0'), so the array is sorted as follows:

['v18.11.0', 'v18.3.0', ['v18.7.0', 'v16.17.0']]

@lpinca
Copy link
Member

lpinca commented Dec 4, 2022

Superseded by #45728. I'm closing this. Thank you anyway.

@lpinca lpinca closed this Dec 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc Issues and PRs related to the documentations. util Issues and PRs related to the built-in util module.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants