@soybeanjs/changelog 0.3.17 → 0.3.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -2002,7 +2002,7 @@ var VERSION_WITH_RELEASE = /release\sv\d+\.\d+\.\d+(-(beta|alpha)\.\d+)?/;
2002
2002
 
2003
2003
  // src/git.ts
2004
2004
  async function getTotalGitTags() {
2005
- const tagStr = await execCommand("git", ["--no-pager", "tag", "-l", "--sort=creatordate"]);
2005
+ const tagStr = await execCommand("git", ["--no-pager", "tag", "-l", "--sort=v:refname"]);
2006
2006
  const tags = tagStr.split("\n");
2007
2007
  return tags.filter((tag) => VERSION_REG.test(tag));
2008
2008
  }
package/dist/index.js CHANGED
@@ -66,7 +66,7 @@ var VERSION_WITH_RELEASE = /release\sv\d+\.\d+\.\d+(-(beta|alpha)\.\d+)?/;
66
66
 
67
67
  // src/git.ts
68
68
  async function getTotalGitTags() {
69
- const tagStr = await execCommand("git", ["--no-pager", "tag", "-l", "--sort=creatordate"]);
69
+ const tagStr = await execCommand("git", ["--no-pager", "tag", "-l", "--sort=v:refname"]);
70
70
  const tags = tagStr.split("\n");
71
71
  return tags.filter((tag) => VERSION_REG.test(tag));
72
72
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@soybeanjs/changelog",
3
3
  "type": "module",
4
- "version": "0.3.17",
4
+ "version": "0.3.18",
5
5
  "description": "generate changelog form git tags and commits for github",
6
6
  "author": {
7
7
  "name": "Soybean",