@w5s/conventional-changelog 1.0.10 → 1.0.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/lib/transform.js CHANGED
@@ -54,6 +54,7 @@ function createTransform(config) {
54
54
  if (url != null) {
55
55
  const issueURL = `${url}/issues/`;
56
56
  // Issue URLs.
57
+ // eslint-disable-next-line unicorn/prefer-string-replace-all
57
58
  returnValue = returnValue.replace(/#(\d+)/g, (_, issue) => {
58
59
  issues.add(issue);
59
60
  return `[#${issue}](${issueURL}${issue})`;
@@ -61,7 +62,7 @@ function createTransform(config) {
61
62
  }
62
63
  if (host != null) {
63
64
  // User URLs.
64
- // eslint-disable-next-line unicorn/no-unsafe-regex
65
+ // eslint-disable-next-line unicorn/no-unsafe-regex, unicorn/prefer-string-replace-all
65
66
  returnValue = returnValue.replace(/\B@([\da-z](?:-?[\d/a-z]){0,38})/g, (_, username) => username.includes('/') ? `@${username}` : `[@${username}](${host}/${username})`);
66
67
  }
67
68
  return returnValue;
@@ -22,6 +22,7 @@ exports.writerOpts = {
22
22
  noteGroupsSort: 'title',
23
23
  mainTemplate: template,
24
24
  headerPartial: header,
25
+ // eslint-disable-next-line unicorn/prefer-string-replace-all
25
26
  commitPartial: commit.replace(/{{gitUserInfo}}/g, author),
26
27
  footerPartial: footer,
27
28
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@w5s/conventional-changelog",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "Conventional changelog plugin for @w5s",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/w5s/project-config/blob/main/packages/conventional-changelog#readme",
@@ -63,5 +63,5 @@
63
63
  "publishConfig": {
64
64
  "access": "public"
65
65
  },
66
- "gitHead": "5913801bce7442cfeb53292901eb5ea3479bb878"
66
+ "gitHead": "128fbd2cdc468360ea0c0834401ea99780e5c622"
67
67
  }
package/src/transform.ts CHANGED
@@ -81,6 +81,7 @@ export function createTransform(config: TransformConfig): WriterOptions.Transfor
81
81
  if (url != null) {
82
82
  const issueURL = `${url}/issues/`;
83
83
  // Issue URLs.
84
+ // eslint-disable-next-line unicorn/prefer-string-replace-all
84
85
  returnValue = returnValue.replace(/#(\d+)/g, (_, issue: string) => {
85
86
  issues.add(issue);
86
87
 
@@ -89,7 +90,7 @@ export function createTransform(config: TransformConfig): WriterOptions.Transfor
89
90
  }
90
91
  if (host != null) {
91
92
  // User URLs.
92
- // eslint-disable-next-line unicorn/no-unsafe-regex
93
+ // eslint-disable-next-line unicorn/no-unsafe-regex, unicorn/prefer-string-replace-all
93
94
  returnValue = returnValue.replace(/\B@([\da-z](?:-?[\d/a-z]){0,38})/g, (_, username: string) =>
94
95
  username.includes('/') ? `@${username}` : `[@${username}](${host}/${username})`
95
96
  );
@@ -26,6 +26,7 @@ export const writerOpts: WriterOptions = {
26
26
  noteGroupsSort: 'title',
27
27
  mainTemplate: template,
28
28
  headerPartial: header,
29
+ // eslint-disable-next-line unicorn/prefer-string-replace-all
29
30
  commitPartial: commit.replace(/{{gitUserInfo}}/g, author),
30
31
  footerPartial: footer,
31
32
  };