Skip to content

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-botnodejs-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
- 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

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

@lpincalpinca closed this Dec 4, 2022
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docIssues and PRs related to the documentations.utilIssues and PRs related to the built-in util module.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@bleakprestiger@lpinca@nodejs-github-bot