@visualon/gitea-releaser 1.0.4 → 1.1.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visualon/gitea-releaser",
3
- "version": "1.0.4",
3
+ "version": "1.1.0",
4
4
  "keywords": [
5
5
  "gitea",
6
6
  "forgejo",
@@ -27,22 +27,21 @@
27
27
  "src"
28
28
  ],
29
29
  "dependencies": {
30
- "clipanion": "4.0.0-rc.3",
31
- "conventional-changelog-conventionalcommits": "7.0.2",
32
- "conventional-changelog-core": "7.0.0"
30
+ "clipanion": "4.0.0-rc.4",
31
+ "conventional-changelog-conventionalcommits": "8.0.0",
32
+ "conventional-changelog-core": "8.0.0"
33
33
  },
34
34
  "devDependencies": {
35
- "@types/conventional-changelog-core": "4.2.7",
36
- "husky": "8.0.3",
37
- "lint-staged": "15.2.0",
38
- "markdownlint-cli2": "0.12.1",
39
- "prettier": "3.1.1",
40
- "prettier-plugin-packagejson": "2.4.9"
35
+ "@types/conventional-changelog-core": "4.2.8",
36
+ "husky": "9.1.7",
37
+ "lint-staged": "15.2.10",
38
+ "markdownlint-cli2": "0.15.0",
39
+ "prettier": "3.4.1",
40
+ "prettier-plugin-packagejson": "2.5.6"
41
41
  },
42
- "packageManager": "pnpm@8.14.3",
43
42
  "engines": {
44
- "node": "^18.12.0 || >=20.0.0",
45
- "pnpm": "^8.0.0"
43
+ "node": "^20.18.0 || ^22.11.0",
44
+ "pnpm": "^9.0.0"
46
45
  },
47
46
  "scripts": {
48
47
  "lint:prettier": "prettier --cache --check --ignore-unknown .",
@@ -56,17 +56,16 @@ export const config = conventionalChangelogPreset({
56
56
 
57
57
  /**
58
58
  *
59
- * @param {string} version
60
- * @param {boolean} onTag
59
+ * @param {boolean|undefined} onTag
61
60
  * @returns
62
61
  */
63
- export function getChangelog(version, onTag) {
62
+ export function getChangelog(onTag = false) {
64
63
  return conventionalChangelogCore(
65
64
  {
66
65
  config,
67
66
  releaseCount: onTag ? 2 : 1,
68
67
  },
69
- { version, linkCompare: false },
68
+ undefined,
70
69
  undefined,
71
70
  undefined,
72
71
  { headerPartial: '' },
package/src/index.js CHANGED
@@ -50,7 +50,7 @@ class GiteaReleaseCommand extends Command {
50
50
  return 1;
51
51
  }
52
52
 
53
- const stream = getChangelog(tag, true).setEncoding('utf8');
53
+ const stream = getChangelog(true).setEncoding('utf8');
54
54
  const changes = (await stream.toArray()).join('');
55
55
 
56
56
  this.context.stdout.write(`Creating release ${tag}.\n`);