@soybeanjs/changelog 0.3.10 → 0.3.12

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
@@ -2293,7 +2293,7 @@ async function createOptions(options) {
2293
2293
  const isFromPrerelease = isPrerelease(opts.from);
2294
2294
  if (!isPrerelease(newVersion) && isFromPrerelease) {
2295
2295
  const allReleaseTags = opts.tags.filter((tag) => !isPrerelease(tag));
2296
- opts.from = allReleaseTags[allReleaseTags.length - 2];
2296
+ opts.from = allReleaseTags[allReleaseTags.length - 1];
2297
2297
  }
2298
2298
  return opts;
2299
2299
  }
@@ -2494,7 +2494,8 @@ ${md}
2494
2494
  async function getChangelogMarkdown(options, showTitle = true) {
2495
2495
  const opts = await createOptions(options);
2496
2496
  const gitCommits = await getGitCommits(opts.from, opts.to);
2497
- const { commits, contributors } = await getGitCommitsAndResolvedAuthors(gitCommits, opts.github);
2497
+ const resolvedLogins = /* @__PURE__ */ new Map();
2498
+ const { commits, contributors } = await getGitCommitsAndResolvedAuthors(gitCommits, opts.github, resolvedLogins);
2498
2499
  const markdown = generateMarkdown({ commits, options: opts, showTitle, contributors });
2499
2500
  return {
2500
2501
  markdown,
package/dist/index.js CHANGED
@@ -357,7 +357,7 @@ async function createOptions(options) {
357
357
  const isFromPrerelease = isPrerelease(opts.from);
358
358
  if (!isPrerelease(newVersion) && isFromPrerelease) {
359
359
  const allReleaseTags = opts.tags.filter((tag) => !isPrerelease(tag));
360
- opts.from = allReleaseTags[allReleaseTags.length - 2];
360
+ opts.from = allReleaseTags[allReleaseTags.length - 1];
361
361
  }
362
362
  return opts;
363
363
  }
@@ -557,7 +557,8 @@ ${md}
557
557
  async function getChangelogMarkdown(options, showTitle = true) {
558
558
  const opts = await createOptions(options);
559
559
  const gitCommits = await getGitCommits(opts.from, opts.to);
560
- const { commits, contributors } = await getGitCommitsAndResolvedAuthors(gitCommits, opts.github);
560
+ const resolvedLogins = /* @__PURE__ */ new Map();
561
+ const { commits, contributors } = await getGitCommitsAndResolvedAuthors(gitCommits, opts.github, resolvedLogins);
561
562
  const markdown = generateMarkdown({ commits, options: opts, showTitle, contributors });
562
563
  return {
563
564
  markdown,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@soybeanjs/changelog",
3
3
  "type": "module",
4
- "version": "0.3.10",
4
+ "version": "0.3.12",
5
5
  "packageManager": "pnpm@8.14.1",
6
6
  "description": "generate changelog form git tags and commits for github",
7
7
  "author": {
@@ -38,7 +38,7 @@
38
38
  "node": ">=14"
39
39
  },
40
40
  "dependencies": {
41
- "@soybeanjs/eslint-config": "^1.1.5",
41
+ "@soybeanjs/eslint-config": "^1.1.7",
42
42
  "cli-progress": "3.12.0",
43
43
  "convert-gitmoji": "0.1.3",
44
44
  "dayjs": "1.11.10",
@@ -46,9 +46,9 @@
46
46
  "ofetch": "1.3.3"
47
47
  },
48
48
  "devDependencies": {
49
- "@soybeanjs/cli": "1.0.2-beta.0",
49
+ "@soybeanjs/cli": "1.0.2",
50
50
  "@types/cli-progress": "3.11.5",
51
- "@types/node": "20.11.0",
51
+ "@types/node": "20.11.5",
52
52
  "eslint": "8.56.0",
53
53
  "lint-staged": "15.2.0",
54
54
  "simple-git-hooks": "2.9.0",