@vc-shell/release-config 2.0.0-alpha.5 → 2.0.0-alpha.6
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.
|
@@ -115,7 +115,7 @@ function ut() {
|
|
|
115
115
|
});
|
|
116
116
|
return t.status === 0 && t.stdout ? t.stdout.toString().trim() : null;
|
|
117
117
|
}
|
|
118
|
-
const
|
|
118
|
+
const k = /^#{1,2}\s+(?:\[)?(\d[\da-z.-]*)(?:\])?/i, j = /\*\*Note:\*\*\s+Version bump only[^\n]*/gi;
|
|
119
119
|
function T(t) {
|
|
120
120
|
let e = t;
|
|
121
121
|
return e = e.replace(/^# CHANGELOG\s*\n/gm, ""), e = e.replace(/^# Change Log\s*\n/gm, ""), e = e.replace(
|
|
@@ -220,7 +220,7 @@ function I(t) {
|
|
|
220
220
|
y(u) && !y(c) && (r[a] = n), n = null;
|
|
221
221
|
};
|
|
222
222
|
for (const c of e) {
|
|
223
|
-
const a = c.match(
|
|
223
|
+
const a = c.match(k);
|
|
224
224
|
if (a) {
|
|
225
225
|
s(), n = { version: a[1], lines: [c] };
|
|
226
226
|
continue;
|
|
@@ -232,7 +232,7 @@ function I(t) {
|
|
|
232
232
|
}
|
|
233
233
|
function B(t, e, o) {
|
|
234
234
|
const r = e.replace(/\./g, "\\."), i = new RegExp(
|
|
235
|
-
`(^#{1,2}\\s+\\[?${r}\\]?[^\\n]*\\n)([\\s\\S]*?)(?=^#{1,2}\\s+\\[?\\d[\\da-z.-]*\\]
|
|
235
|
+
`(^#{1,2}\\s+\\[?${r}\\]?[^\\n]*\\n)([\\s\\S]*?)(?=^#{1,2}\\s+\\[?\\d[\\da-z.-]*\\]?|(?![\\s\\S]))`,
|
|
236
236
|
"m"
|
|
237
237
|
);
|
|
238
238
|
return t.replace(i, (n, s, c) => y(c) ? `${s}
|
|
@@ -245,18 +245,18 @@ function P(t) {
|
|
|
245
245
|
`);
|
|
246
246
|
let i = null, n = [];
|
|
247
247
|
for (const s of r) {
|
|
248
|
-
const c = s.match(
|
|
248
|
+
const c = s.match(k);
|
|
249
249
|
c ? (H(e, i, n), i = c[1], n = [], o[i] || (o[i] = s.replace(/^#{1,2}\s+/, ""))) : i && s.trim() !== "" && !s.startsWith("# CHANGELOG") && !s.startsWith("# Change Log") && !s.startsWith("All notable changes") && !s.startsWith("See [Conventional Commits]") && n.push(s);
|
|
250
250
|
}
|
|
251
251
|
return H(e, i, n), { versionContent: e, versionHeaders: o };
|
|
252
252
|
}
|
|
253
253
|
function F(t, e) {
|
|
254
254
|
return [...t].sort((o, r) => {
|
|
255
|
-
const i =
|
|
255
|
+
const i = S(e?.[o]), n = S(e?.[r]);
|
|
256
256
|
return i !== null && n !== null && i !== n ? n - i : v(o) && v(r) ? R(o, r) : r.localeCompare(o);
|
|
257
257
|
});
|
|
258
258
|
}
|
|
259
|
-
function
|
|
259
|
+
function S(t) {
|
|
260
260
|
if (!t) return null;
|
|
261
261
|
const e = t.match(/\((\d{4}-\d{2}-\d{2})\)\s*$/);
|
|
262
262
|
if (!e) return null;
|
package/dist/release-config.js
CHANGED
|
@@ -6,8 +6,8 @@ import { argv as E } from "node:process";
|
|
|
6
6
|
import n from "chalk";
|
|
7
7
|
import { sync as h } from "cross-spawn";
|
|
8
8
|
import y from "prompts";
|
|
9
|
-
import { f as O, e as D, a as H, s as L, g as S, b as I, c as j, d as G, r as U, p as _ } from "./generate-changelogs-
|
|
10
|
-
import { h as ge } from "./generate-changelogs-
|
|
9
|
+
import { f as O, e as D, a as H, s as L, g as S, b as I, c as j, d as G, r as U, p as _ } from "./generate-changelogs-CQSqsD4f.js";
|
|
10
|
+
import { h as ge } from "./generate-changelogs-CQSqsD4f.js";
|
|
11
11
|
const c = $(E.slice(2));
|
|
12
12
|
c.dry;
|
|
13
13
|
function w(t) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"changelog.d.ts","sourceRoot":"","sources":["../../src/changelog.ts"],"names":[],"mappings":"AAIA,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AAM,EACf,gBAAgB,SAAM,EACtB,MAAM,UAAQ,GACb,IAAI,CAoCN;AA0JD;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,MAAM,EAAE,EAClB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GACtC,MAAM,EAAE,CAcV;AAcD;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAQ,GAAG,IAAI,CAkFzF;AA4ED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,aAAa,EAAE,EACzB,SAAS,EAAE,MAAM,EACjB,MAAM,UAAQ,GACb,IAAI,CAqDN;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,aAAa,EAAE,EAAE,MAAM,UAAQ,GAAG,IAAI,CA6EpF;AAID;;;;;;;;GAQG;AACH,wBAAgB,2BAA2B,CACzC,QAAQ,EAAE,aAAa,EAAE,EACzB,SAAS,EAAE,MAAM,EACjB,MAAM,UAAQ,GACb,IAAI,CAsEN;AAID;;;;;;;;;;;GAWG;AACH,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,aAAa,EAAE,EACzB,SAAS,EAAE,MAAM,EACjB,MAAM,UAAQ,GACb,IAAI,CAmFN"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vc-shell/release-config",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/release-config.js",
|
|
6
6
|
"types": "./dist/src/index.d.ts",
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"access": "public",
|
|
35
35
|
"registry": "https://registry.npmjs.org/"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "9196b2c232094d8d7750963718777096c0cc9864"
|
|
38
38
|
}
|