Skip to content

Commit

Permalink
fix(docs-page): mapVersionList sorts Semver desc (#398)
Browse files Browse the repository at this point in the history
* fix(docs-page): mapVersionList sorts desc

* chore: changeset
  • Loading branch information
thiskevinwang committed Oct 18, 2021
1 parent 752b7c7 commit 9d70e6b
Show file tree
Hide file tree
Showing 5 changed files with 152 additions and 47 deletions.
5 changes: 5 additions & 0 deletions .changeset/eleven-beans-sing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hashicorp/react-docs-page': patch
---

This fixes docs-page to sort versions my descending semver
116 changes: 81 additions & 35 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions packages/docs-page/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"js-yaml": "^4.1.0",
"line-reader": "^0.4.0",
"moize": "^6.0.3",
"readdirp": "^3.6.0"
"readdirp": "^3.6.0",
"semver": "^7.3.5"
},
"license": "MPL-2.0",
"peerDependencies": {
Expand All @@ -32,6 +33,7 @@
"access": "public"
},
"devDependencies": {
"@types/mdx-js__react": "^1.5.4"
"@types/mdx-js__react": "^1.5.4",
"@types/semver": "^7.3.8"
}
}

1 comment on commit 9d70e6b

@vercel
Copy link

@vercel vercel bot commented on 9d70e6b Oct 18, 2021

Choose a reason for hiding this comment

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

Please sign in to comment.