@modern-js/plugin-changeset 2.27.0 → 2.29.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/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @modern-js/plugin-changeset
2
2
 
3
+ ## 2.29.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [e6b5355]
8
+ - Updated dependencies [93db783]
9
+ - Updated dependencies [cba7675]
10
+ - Updated dependencies [99052ea]
11
+ - Updated dependencies [1d71d2e]
12
+ - @modern-js/utils@2.29.0
13
+ - @modern-js/plugin-i18n@2.29.0
14
+
15
+ ## 2.28.0
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies [00b58a7]
20
+ - @modern-js/utils@2.28.0
21
+ - @modern-js/plugin-i18n@2.28.0
22
+
3
23
  ## 2.27.0
4
24
 
5
25
  ### Patch Changes
@@ -115,7 +115,8 @@ async function getReleaseInfo(commit, commitObj, repo, authToken) {
115
115
  return commitObj;
116
116
  }
117
117
  function getReleaseNoteLine(commit, customReleaseNoteFunction, lang = "en") {
118
- if (customReleaseNoteFunction === null || customReleaseNoteFunction === void 0 ? void 0 : customReleaseNoteFunction.getReleaseNoteLine) {
118
+ var _customReleaseNoteFunction;
119
+ if ((_customReleaseNoteFunction = customReleaseNoteFunction) === null || _customReleaseNoteFunction === void 0 ? void 0 : _customReleaseNoteFunction.getReleaseNoteLine) {
119
120
  return customReleaseNoteFunction.getReleaseNoteLine(commit, lang);
120
121
  }
121
122
  const { repository, pullRequestId, summary, summary_zh, author } = commit;
@@ -177,6 +178,7 @@ async function genReleaseNote(options) {
177
178
  }
178
179
  };
179
180
  for (const changeset of changesets) {
181
+ var _customReleaseNoteFunction;
180
182
  const { stdout } = await (0, _utils.execa)("git", [
181
183
  "log",
182
184
  "--pretty=format:%h--%s--%ae",
@@ -192,7 +194,7 @@ async function genReleaseNote(options) {
192
194
  summary: firstLine,
193
195
  summary_zh: futureLines.filter((l) => Boolean(l)).join("\n")
194
196
  };
195
- if (customReleaseNoteFunction === null || customReleaseNoteFunction === void 0 ? void 0 : customReleaseNoteFunction.getReleaseInfo) {
197
+ if ((_customReleaseNoteFunction = customReleaseNoteFunction) === null || _customReleaseNoteFunction === void 0 ? void 0 : _customReleaseNoteFunction.getReleaseInfo) {
196
198
  commitObj = await customReleaseNoteFunction.getReleaseInfo(stdout, commitObj);
197
199
  } else {
198
200
  commitObj = await getReleaseInfo(stdout, commitObj, repository, options.authToken);
@@ -74,7 +74,8 @@ export async function getReleaseInfo(commit, commitObj, repo, authToken) {
74
74
  return commitObj;
75
75
  }
76
76
  export function getReleaseNoteLine(commit, customReleaseNoteFunction, lang = "en") {
77
- if (customReleaseNoteFunction === null || customReleaseNoteFunction === void 0 ? void 0 : customReleaseNoteFunction.getReleaseNoteLine) {
77
+ var _customReleaseNoteFunction;
78
+ if ((_customReleaseNoteFunction = customReleaseNoteFunction) === null || _customReleaseNoteFunction === void 0 ? void 0 : _customReleaseNoteFunction.getReleaseNoteLine) {
78
79
  return customReleaseNoteFunction.getReleaseNoteLine(commit, lang);
79
80
  }
80
81
  const { repository, pullRequestId, summary, summary_zh, author } = commit;
@@ -136,6 +137,7 @@ export async function genReleaseNote(options) {
136
137
  }
137
138
  };
138
139
  for (const changeset of changesets) {
140
+ var _customReleaseNoteFunction;
139
141
  const { stdout } = await execa("git", [
140
142
  "log",
141
143
  "--pretty=format:%h--%s--%ae",
@@ -151,7 +153,7 @@ export async function genReleaseNote(options) {
151
153
  summary: firstLine,
152
154
  summary_zh: futureLines.filter((l) => Boolean(l)).join("\n")
153
155
  };
154
- if (customReleaseNoteFunction === null || customReleaseNoteFunction === void 0 ? void 0 : customReleaseNoteFunction.getReleaseInfo) {
156
+ if ((_customReleaseNoteFunction = customReleaseNoteFunction) === null || _customReleaseNoteFunction === void 0 ? void 0 : _customReleaseNoteFunction.getReleaseInfo) {
155
157
  commitObj = await customReleaseNoteFunction.getReleaseInfo(stdout, commitObj);
156
158
  } else {
157
159
  commitObj = await getReleaseInfo(stdout, commitObj, repository, options.authToken);
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.27.0",
18
+ "version": "2.29.0",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "types": "./dist/types/index.d.ts",
21
21
  "main": "./dist/cjs/index.js",
@@ -52,17 +52,17 @@
52
52
  "resolve-from": "^5.0.0",
53
53
  "axios": "^1.2.1",
54
54
  "@swc/helpers": "0.5.1",
55
- "@modern-js/plugin-i18n": "2.27.0",
56
- "@modern-js/utils": "2.27.0"
55
+ "@modern-js/plugin-i18n": "2.29.0",
56
+ "@modern-js/utils": "2.29.0"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@types/jest": "^29",
60
60
  "@types/node": "^14",
61
61
  "typescript": "^5",
62
62
  "jest": "^29",
63
- "@modern-js/core": "2.27.0",
64
- "@scripts/jest-config": "2.27.0",
65
- "@scripts/build": "2.27.0"
63
+ "@modern-js/core": "2.29.0",
64
+ "@scripts/build": "2.29.0",
65
+ "@scripts/jest-config": "2.29.0"
66
66
  },
67
67
  "sideEffects": false,
68
68
  "publishConfig": {