@soybeanjs/changelog 0.3.10 → 0.3.11

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
  }
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
  }
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.11",
5
5
  "packageManager": "pnpm@8.14.1",
6
6
  "description": "generate changelog form git tags and commits for github",
7
7
  "author": {