lerna-clean-changelogs 5.2.3 → 5.2.5
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
|
@@ -3,6 +3,27 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 5.2.5 (2026-09-09)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **lerna-clean-changelogs:** clean CR-only and mixed line endings ([315a319](https://github.com/codsen/codsen/commit/315a31938fa10370172b66e137efe5a9bf70d961))
|
|
11
|
+
- **lerna-clean-changelogs:** preserve asterisk thematic breaks ([f7c6441](https://github.com/codsen/codsen/commit/f7c64414802fd7ca8fc8080488f7bbd231d78bcc))
|
|
12
|
+
- **lerna-clean-changelogs:** preserve headings for retained changes ([ec60169](https://github.com/codsen/codsen/commit/ec60169559dabdcad6bbb5d01e1f69a5b132ce6e))
|
|
13
|
+
- **lerna-clean-changelogs:** preserve literal code during cleanup ([16c1692](https://github.com/codsen/codsen/commit/16c16929ea35bc23301b4f17e916d34c6804a503))
|
|
14
|
+
- **lerna-clean-changelogs:** return valid empty cleanup results ([523cae6](https://github.com/codsen/codsen/commit/523cae68eae043f52a0e070585935f2ece538a65))
|
|
15
|
+
- **lerna-clean-changelogs:** unwrap complete version heading links ([80c20e9](https://github.com/codsen/codsen/commit/80c20e97c665d5eac20227a9d3b051c6ddb86efc))
|
|
16
|
+
|
|
17
|
+
### Performance Improvements
|
|
18
|
+
|
|
19
|
+
- **lerna-clean-changelogs:** collect retained lines in linear time ([2927410](https://github.com/codsen/codsen/commit/29274106f0d6050ba305e13644905b0a7850ea5b))
|
|
20
|
+
|
|
21
|
+
## 5.2.4 (2026-09-06)
|
|
22
|
+
|
|
23
|
+
### Performance Improvements
|
|
24
|
+
|
|
25
|
+
- Recorded a 2.38% higher normalized benchmark score than v5.1.3 (286,484 → 293,301).
|
|
26
|
+
|
|
6
27
|
## 5.2.2 (2026-08-22)
|
|
7
28
|
|
|
8
29
|
### Performance Improvements
|
|
@@ -22,11 +43,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
22
43
|
- add codsen-glob and migrate glob consumers ([5595a2b](https://github.com/codsen/codsen/commit/5595a2b267eaa6cb60072d037aef00b7a28edd42))
|
|
23
44
|
- refresh the tooling and generate with the latest dependencies ([781f802](https://github.com/codsen/codsen/commit/781f802911066a82a4533b0e5a3fcbd742d0dd83))
|
|
24
45
|
|
|
25
|
-
### Reverts
|
|
26
|
-
|
|
27
|
-
- Revert "Merge pull request #128 from codsen/release/npm-32198404552-1" ([5baeeaa](https://github.com/codsen/codsen/commit/5baeeaaa677b86f1eaa6396cadf3aea32b06416e)), closes [#128](https://github.com/codsen/codsen/issues/128)
|
|
28
|
-
- Revert "Merge pull request #127 from codsen/release/npm-32194020886-1" ([5f1e94d](https://github.com/codsen/codsen/commit/5f1e94deef910ce735266b16aeee08a76de7a862)), closes [#127](https://github.com/codsen/codsen/issues/127)
|
|
29
|
-
|
|
30
46
|
## 5.0.8 (2023-04-16)
|
|
31
47
|
|
|
32
48
|
### Bug Fixes
|
|
@@ -52,18 +68,38 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
52
68
|
- export types ([c3e7f82](https://github.com/codsen/codsen/commit/c3e7f82300e53adef3fe2c8b3f79e74fb379d12b))
|
|
53
69
|
- export types ([11b5fb9](https://github.com/codsen/codsen/commit/11b5fb936ce20e0a77c3a09806773e1cd7695c50))
|
|
54
70
|
|
|
71
|
+
## 4.1.3 (2022-07-26)
|
|
72
|
+
|
|
73
|
+
### Performance Improvements
|
|
74
|
+
|
|
75
|
+
- Recorded a 7.91% higher normalized benchmark score than v4.1.2 (419,312 → 452,472).
|
|
76
|
+
|
|
77
|
+
## 4.1.2 (2022-07-05)
|
|
78
|
+
|
|
79
|
+
### Performance Improvements
|
|
80
|
+
|
|
81
|
+
- Recorded a 44.9% higher normalized benchmark score than v4.1.1 (289,382 → 419,312).
|
|
82
|
+
|
|
55
83
|
## 4.1.1 (2022-04-18)
|
|
56
84
|
|
|
57
85
|
### Fixed
|
|
58
86
|
|
|
59
87
|
- tweak types ([97ea400](https://github.com/codsen/codsen/commit/97ea4001c1bb6bf1a9a09d36fa2d1694f2c4d974))
|
|
60
88
|
|
|
89
|
+
### Performance Improvements
|
|
90
|
+
|
|
91
|
+
- Recorded a 2.62% higher normalized benchmark score than v4.1.0 (281,990 → 289,382).
|
|
92
|
+
|
|
61
93
|
## 4.1.0 (2022-04-10)
|
|
62
94
|
|
|
63
95
|
### Features
|
|
64
96
|
|
|
65
97
|
- export defaults ([4bc7c0f](https://github.com/codsen/codsen/commit/4bc7c0fd98f3c2e768df04a8e34b6465d04835d9))
|
|
66
98
|
|
|
99
|
+
### Performance Improvements
|
|
100
|
+
|
|
101
|
+
- Recorded a 29.38% higher normalized benchmark score than v4.0.0 (217,958 → 281,990).
|
|
102
|
+
|
|
67
103
|
## 4.0.0 (2022-01-22)
|
|
68
104
|
|
|
69
105
|
### Fixed
|
|
@@ -74,6 +110,22 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
74
110
|
|
|
75
111
|
- from now, the options should be set as a plain object, ie. { extras: true }
|
|
76
112
|
|
|
113
|
+
### Performance Improvements
|
|
114
|
+
|
|
115
|
+
- Recorded a 6.96% higher normalized benchmark score than v3.0.11 (203,771 → 217,958).
|
|
116
|
+
|
|
117
|
+
## 3.0.9 (2021-12-24)
|
|
118
|
+
|
|
119
|
+
### Performance Improvements
|
|
120
|
+
|
|
121
|
+
- Recorded a 30.44% higher normalized benchmark score than v3.0.8 (306,126 → 399,323).
|
|
122
|
+
|
|
123
|
+
## 3.0.7 (2021-11-30)
|
|
124
|
+
|
|
125
|
+
### Performance Improvements
|
|
126
|
+
|
|
127
|
+
- Recorded a 24.78% higher normalized benchmark score than v3.0.5 (343,186 → 428,230).
|
|
128
|
+
|
|
77
129
|
## 3.0.0 (2021-09-09)
|
|
78
130
|
|
|
79
131
|
### Features
|
package/README.md
CHANGED
|
@@ -21,6 +21,8 @@
|
|
|
21
21
|
<img src="https://img.shields.io/badge/licence-MIT-brightgreen.svg?style=flat-square" alt="MIT Licence">
|
|
22
22
|
</p>
|
|
23
23
|
|
|
24
|
+
**No 3rd party dependencies.** All dependencies, checked recursively, are Codsen packages.
|
|
25
|
+
|
|
24
26
|
## Install
|
|
25
27
|
|
|
26
28
|
This package is [pure ESM](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c). If you're not ready yet, install an older version of this program, 2.1.0 (`npm i lerna-clean-changelogs@2.1.0`).
|
|
@@ -87,7 +89,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
87
89
|
|
|
88
90
|
## Documentation
|
|
89
91
|
|
|
90
|
-
Please [visit codsen.com](https://codsen.com/os/lerna-clean-changelogs/) for a full description of the API.
|
|
92
|
+
Please [visit codsen.com](https://codsen.com/os/lerna-clean-changelogs/) for a full description of the API. For **Changelog**, see [raw md on GitHub](https://github.com/codsen/codsen/blob/main/packages/lerna-clean-changelogs/CHANGELOG.md) or [the website](https://codsen.com/os/lerna-clean-changelogs/changelog).
|
|
91
93
|
|
|
92
94
|
## Contributing
|
|
93
95
|
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name lerna-clean-changelogs
|
|
3
3
|
* @fileoverview Removes frivolous entries from commitizen generated changelogs
|
|
4
|
-
* @version 5.2.
|
|
4
|
+
* @version 5.2.5
|
|
5
5
|
* @author Roy Revelt
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/lerna-clean-changelogs/}
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import{detectEol as
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
import{detectEol as Y,formatDiagnosticValue as ee,isStr as H}from"codsen-utils";var j="5.2.5";var Z=new Set("address article aside base basefont blockquote body caption center col colgroup dd details dialog dir div dl dt fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hr html iframe legend li link main menu menuitem nav noframes ol optgroup option p param search section summary table tbody td tfoot th thead title tr track ul".split(" "));function $(e,t){return t.tabSpaces?" ":e[t.index]}function b(e,t,i=1/0){let n=0;for(;n<i;){if(t.tabSpaces)t.tabSpaces-=1;else if(e[t.index]===" ")t.index+=1;else if(e[t.index]===" ")t.index+=1,t.tabSpaces=3-t.column%4;else break;t.column+=1,n+=1}return n}function S(e,t=1){e.index+=t,e.column+=t}function w(e,t){for(let i=t;i<e.length;i++)if(e[i]!==" "&&e[i]!==" ")return!1;return!0}function F(e){let t=e.length;for(;t&&(e[t-1]===" "||e[t-1]===" ");)t-=1;let i=e[t-1],n=t,s=-1;if(i==="*"||i==="-"||i==="_"){let o=0;for(;n;){let a=e[n-1];if(a===i)o+=1,o===3&&(s=n-1);else if(a!==" "&&a!==" ")break;n-=1}}return{end:t,marker:i,start:n,third:s}}function T(e,t){let i=e[t];if(i!=="`"&&i!=="~")return;let n=t+1;for(;e[n]===i;)n+=1;if(!(n-t<3||i==="`"&&e.indexOf("`",n)!==-1))return{marker:i,length:n-t}}function J(e,t,i){if(b(e,t,3),$(e,t)!==i.marker)return!1;let n=t.index;for(;e[n]===i.marker;)n+=1;return n-t.index>=i.length&&w(e,n)}function C(e,t,i){return e[t]===i.marker&&t>=i.start&&t<=i.third}function L(e,t,i){let n=e[t],s=t;if(n==="#"){for(;e[s]==="#";)s+=1;return s-t<=6&&(s===e.length||e[s]===" "||e[s]===" ")}if(i&&(n==="="||n==="-")){for(;e[s]===n;)s+=1;return w(e,s)}return!1}function D(e,t,i,n){let s={...t};b(e,t,3);let o=t.index,a=$(e,t);if(a==="*"||a==="+"||a==="-"){if(C(e,o,n)){Object.assign(t,s);return}S(t)}else{let h=o;for(;e[h]>="0"&&e[h]<="9"&&h-o<10;)h+=1;if(t.tabSpaces||h===o||h-o>9||e[h]!=="."&&e[h]!==")"||i&&(h-o!==1||a!=="1")){Object.assign(t,s);return}S(t,h-o+1)}let r={...t},m=b(e,t,5),c=w(e,t.index);if(!m&&t.index<e.length||i&&c){Object.assign(t,s);return}return!m||m>4||c?(Object.assign(t,r),b(e,t,1),r.column-s.column+1):t.column-s.column}function A(e,t,i){return i==="raw"?/<\/(?:pre|script|style|textarea)>/i.test(e):i==="comment"?e.indexOf("-->",t)!==-1:i==="instruction"?e.indexOf("?>",t)!==-1:i==="declaration"?e.indexOf(">",t)!==-1:i==="cdata"?e.indexOf("]]>",t)!==-1:w(e,t)}function P(e,t,i){let n=t;for(;;){let s=n;for(;e[n]===" "||e[n]===" ";)n+=1;if(e[n]===">")return w(e,n+1);if(!i&&e[n]==="/"&&e[n+1]===">")return w(e,n+2);if(i||n===s||!/[A-Za-z_:]/.test(e[n]||""))return!1;for(n+=1;/[A-Za-z0-9_.:-]/.test(e[n]||"");)n+=1;let o=n;for(;e[n]===" "||e[n]===" ";)n+=1;if(e[n]!=="="){n=o;continue}for(n+=1;e[n]===" "||e[n]===" ";)n+=1;if(e[n]==='"'||e[n]==="'"){let a=e.indexOf(e[n],n+1);if(a===-1)return!1;n=a+1}else{let a=n;for(;n<e.length&&!/[ \t"'=<>`]/.test(e[n]);)n+=1;if(n===a)return!1}}}function V(e,t,i){if(e[t]!=="<")return;if(e.startsWith("<!--",t))return"comment";if(e.startsWith("<?",t))return"instruction";if(e.startsWith("<![CDATA[",t))return"cdata";if(e[t+1]==="!"&&e[t+2]>="A"&&e[t+2]<="Z")return"declaration";let n=e[t+1]==="/",s=t+(n?2:1);if(!/[A-Za-z]/.test(e[s]||""))return;let o=s+1;for(;/[A-Za-z0-9-]/.test(e[o]||"");)o+=1;let a=e.slice(s,o).toLowerCase(),r=o===e.length||e[o]===" "||e[o]===" "||e[o]===">";if(!n&&r&&(a==="pre"||a==="script"||a==="style"||a==="textarea"))return"raw";if(Z.has(a)&&(r||e[o]==="/"&&e[o+1]===">")||!i&&P(e,o,n))return"blank"}function M(e,t,i){let n={...t};return b(e,n)>=4||n.index===e.length?!1:$(e,n)===">"||!!T(e,n.index)||L(e,n.index,!1)||C(e,n.index,i)||!!V(e,n.index,!0)||D(e,{...t},!1,i)!==void 0}function W(e,t){let i,n=[],s=[],o,a,r=!1,m=!1,c=-1,h=-1,g=!1;function u(l){i||(i=new Set),i.add(l)}for(let l=0;l<e.length;l++){let f=e[l],p=F(f),d={index:0,column:0,tabSpaces:0},y=0,O=0;for(;y<n.length;){let x={...d};if(d.index>=p.end){y=s[O]??n.length,h!==-1&&h<y&&(g=!0),b(f,d);break}if(y===h&&g)break;let k=n[y];if(k.quote){if(b(f,d,3),$(f,d)!==">"){Object.assign(d,x);break}S(d),b(f,d,1),O+=1}else if(b(f,d,k.indent)!==k.indent){Object.assign(d,x);break}y===h&&(h=-1),y+=1}if(y!==n.length){if(r&&d.index<p.end&&!M(f,d,p))continue;n.length=y,s.length=O,h>=y&&(h=-1),o=void 0,a=void 0,r=!1,m=!1,c=-1}if(o){u(l),J(f,d,o)&&(o=void 0);continue}if(a){let x=A(f,d.index,a);(a!=="blank"||!x)&&t?.add(l),x&&(a=void 0);continue}let I={...d},q=b(f,d),z=d.index===f.length;if(m){if(z){c===-1&&(c=l);continue}if(q>=4){if(c!==-1)for(let x=c;x<l;x++)u(x);c=-1,u(l);continue}m=!1,c=-1}for(Object.assign(d,I);;){let x={...d};if(b(f,d,3),$(f,d)===">"){s.push(n.length),n.push({quote:!0,indent:0}),S(d),b(f,d,1),r=!1;continue}if(Object.assign(d,x),r&&L(f,d.index,!0))break;let k=D(f,d,r,p);if(k===void 0)break;n.push({quote:!1,indent:k}),d.index>=p.end&&(h=n.length-1,g=!1),r=!1}let N=b(f,d);if(d.index===f.length){r=!1;continue}if(N>=4){r||(m=!0,u(l));continue}if(o=T(f,d.index),o){u(l),r=!1;continue}if(a=V(f,d.index,r),a){t?.add(l),A(f,d.index,a)&&(a=void 0),r=!1;continue}r=!L(f,d.index,r)&&!C(f,d.index,p)}return i}function B(e,t,i){let n;for(let r=0;r<e.length;r+=1)i?.has(r)||(e[r].startsWith("**Note:** Version bump only")||t&&e[r].toLowerCase().includes("wip"))&&(n||(n=new Set),n.add(r));if(!n)return;let s=[],o=-1,a=()=>{let r=s.pop();o===s.length&&(o=-1);let m=r.retained||!r.affected||r.document;if(m?n.delete(r.index):n.add(r.index),s.length){let c=s[s.length-1];c.affected||=r.affected,c.retained||=m}};for(let r=0;r<e.length;r+=1){let m=!i?.has(r)&&/^ {0,3}(#{1,6})(?:[ \t]+|$)/.exec(e[r]);if(m){let c=m[1].length,h=c<=2&&/^\[?\d+\.\d+\.\d+(?:[-+][^\s\]]+)?(?:[\s\](]|$)/.test(e[r].slice(m[0].length));if(h)for(;o!==-1;)a();for(;s.length&&s[s.length-1].level>=c;)a();h&&(o=s.length),s.push({index:r,level:c,affected:n.has(r),retained:!1,document:r===0&&c===1&&!h})}else if(s.length){let c=s[s.length-1];n.has(r)?c.affected=!0:e[r].trim()&&(c.retained=!0)}}for(;s.length;)a();return n}function v(e){return e>="0"&&e<="9"}function Q(e){return v(e)||e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="-"}function G(e){let t=0;for(let i=0;i<3;i+=1){let n=t;for(;v(e[t]);)t+=1;if(t===n||t-n>1&&e[n]==="0")return!1;if(i<2){if(e[t]!==".")return!1;t+=1}}for(let i of["-","+"])if(e[t]===i)for(t+=1;;){let n=t,s=!0;for(;Q(e[t]);)v(e[t])||(s=!1),t+=1;if(t===n||i==="-"&&s&&t-n>1&&e[n]==="0")return!1;if(e[t]!==".")break;t+=1}return t===e.length}function E(e,t){for(;e[t]===" "||e[t]===" ";)t+=1;return t}function K(e,t){let i=e[t];if(i!=='"'&&i!=="'"&&i!=="(")return;let n=i==="("?")":i;for(let s=t+1;s<e.length;s+=1){let o=e[s];if(o==="\\"){let a=e[s+1];(a===n||a==="\\"||i==="("&&a==="(")&&(s+=1)}else{if(o===n)return s+1;if(o==="\r"||o===`
|
|
11
|
+
`||i==="("&&o==="(")return}}}function U(e,t){if(e[t]==="<"){for(let n=t+1;n<e.length;n+=1){let s=e[n];if(s==="\\"&&/[<>\\]/.test(e[n+1]||""))n+=1;else{if(s===">")return n+1;if(s==="<"||s==="\r"||s===`
|
|
12
|
+
`)return}}return}let i=0;for(let n=t;n<e.length;n+=1){let s=e[n];if(s==="\\"&&/[()\\]/.test(e[n+1]||""))n+=1;else if(s==="(")i+=1;else if(s===")"){if(!i)return n>t?n:void 0;i-=1}else if(s.charCodeAt(0)<=32||s==="\x7F")return!i&&n>t&&(s===" "||s===" ")?n:void 0}}function X(e,t){let i=E(e,t);if(e[i]===")")return i+1;let n=U(e,i);if(n!==void 0){let s=E(e,n);if(e[s]===")")return s+1;if(s>n){let o=K(e,s);if(o!==void 0){let a=E(e,o);if(e[a]===")")return a+1}}}}function R(e){let t=0;for(;e[t]===" "&&t<4;)t+=1;if(t===4||e[t]!=="#")return e;let i=t;for(;e[t]==="#"&&t-i<7;)t+=1;if(t-i>6||e[t]!==" "&&e[t]!==" ")return e;let n=E(e,t);if(e[n]!=="["||!v(e[n+1]))return e;let s=e.indexOf("]",n+1);if(s===-1||e[s+1]!=="(")return e;let o=e.slice(n+1,s);if(!G(o))return e;let a=X(e,s+2);return a===void 0?e:e.slice(0,n)+o+e.slice(a)}var te=j,ne={extras:!1};function le(e,t){if(e===void 0)throw new Error("lerna-clean-changelogs/cleanChangelogs(): [THROW_ID_01] The first input argument is missing!");if(!H(e))throw new Error(`lerna-clean-changelogs/cleanChangelogs(): [THROW_ID_02] The first input argument must be a string! It was given as ${Array.isArray(e)?"array":typeof e}, equal to:
|
|
13
|
+
${ee(e,4)}`);let i={...ne,...t},n=Y(e)||`
|
|
14
|
+
`,s,o=!1;if(typeof e=="string"&&e?.trim()){let a=H(e)&&!!e.length&&(e[~-e.length]===`
|
|
15
|
+
`||e[~-e.length]==="\r"),r=[],m,c=i.extras&&e.includes("<")?new Set:void 0;if((/```|~~~| {4}|\t/.test(e)||c)&&(r=e.split(/\r\n|\r|\n/),a&&r[r.length-1]===""&&r.pop(),m=W(r,c),c?.size||(c=void 0)),!m&&!c)e=e.trim().replace(/(https:\/\/git\.sr\.ht\/~[^/]+\/[^/]+\/)commits\//g,"$1commit/"),r=e.split(/\r\n|\r|\n/);else{let u=0,l=r.length;for(;u<l&&!m?.has(u)&&!r[u].trim();)u+=1;for(;l>u&&!m?.has(l-1)&&!r[l-1].trim();)l-=1;if(u||l!==r.length){if(m){let f=new Set;for(let p of m)p>=u&&p<l&&f.add(p-u);m=f}if(c){let f=new Set;for(let p of c)p>=u&&p<l&&f.add(p-u);c=f}r=r.slice(u,l)}m?.has(0)||(r[0]=r[0].replace(/^\s+/,"")),m?.has(r.length-1)||(r[r.length-1]=r[r.length-1].replace(/\s+$/,""));for(let f=0;f<r.length;f+=1)m?.has(f)||(r[f]=r[f].replace(/(https:\/\/git\.sr\.ht\/~[^/]+\/[^/]+\/)commits\//g,"$1commit/"))}i.extras&&r.forEach((u,l)=>{m?.has(l)||(c?.has(l)||(r[l]=R(u)),l&&r[l]?.startsWith("# ")&&(r[l]=`#${r[l]}`))});let h=B(r,i.extras,m),g=[];for(let u=r.length;u--;){if(m?.has(u)){g.push(r[u]),o=!1;continue}h?.has(u)||(r[u]?.trim()?r[u][0]==="*"&&r[u][1]===" "&&!/^(?:\*[ \t]*){3,}$/.test(r[u])?g.push(`- ${r[u].slice(2)}`):g.push(r[u]):g.length&&!o&&(g.push(r[u]?.trim()),o=!0),r[u]?.trim()&&(o=!1))}g[g.length-1]===""&&g.pop(),s=`${g.reverse().join(n)}${a?n:""}`}return{version:te,res:s??e}}export{le as cleanChangelogs,ne as defaults,te as version};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name lerna-clean-changelogs
|
|
3
3
|
* @fileoverview Removes frivolous entries from commitizen generated changelogs
|
|
4
|
-
* @version 5.2.
|
|
4
|
+
* @version 5.2.5
|
|
5
5
|
* @author Roy Revelt
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/lerna-clean-changelogs/}
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
"use strict";var lernaCleanChangelogs=(()=>{var A=Object.defineProperty;var z=Object.getOwnPropertyDescriptor;var V=Object.getOwnPropertyNames,k=Object.getOwnPropertySymbols;var S=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable;var C=(e,r,_)=>r in e?A(e,r,{enumerable:!0,configurable:!0,writable:!0,value:_}):e[r]=_,j=(e,r)=>{for(var _ in r||(r={}))S.call(r,_)&&C(e,_,r[_]);if(k)for(var _ of k(r))U.call(r,_)&&C(e,_,r[_]);return e};var F=(e,r)=>{for(var _ in r)A(e,_,{get:r[_],enumerable:!0})},q=(e,r,_,l)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of V(r))!S.call(e,a)&&a!==_&&A(e,a,{get:()=>r[a],enumerable:!(l=z(r,a))||l.enumerable});return e};var H=e=>q(A({},"__esModule",{value:!0}),e);var _e={};F(_e,{cleanChangelogs:()=>ee,defaults:()=>T,version:()=>N});function J(){let e=[],r=0,_=!1;return{append(l){return _?!1:r+l.length>1999?(e.push("\u2026"),r+=1,_=!0,!1):(e.push(l),r+=l.length,!0)},result(){return e.join("")},stopped(){return _}}}function K(e){return"\\u".concat(e.toString(16).padStart(4,"0"))}function O(e,r){if(e.append('"')){for(let _=0;_<r.length&&!e.stopped();_+=1){let l=r.charCodeAt(_);l===34?e.append('\\"'):l===92?e.append("\\\\"):l===8?e.append("\\b"):l===9?e.append("\\t"):l===10?e.append("\\n"):l===12?e.append("\\f"):l===13?e.append("\\r"):l<32||l===8232||l===8233||l>=55296&&l<=57343?e.append(K(l)):e.append(r[_])}e.append('"')}}function Q(e){return e.get&&e.set?"[Getter/Setter]":e.get?"[Getter]":e.set?"[Setter]":"[Accessor]"}function E(e,r){e.append("Symbol(");let _=String(r);_.length>8&&O(e,_.slice(7,-1)),e.append(")")}function D(e,r){typeof r=="symbol"?E(e,r):O(e,String(r))}function $(e,r=0){let _=J(),l=r===4?4:0,a=new WeakSet,c=0;function d(n){l&&_.append(" ".repeat(n*l))}function f(n,t){n&&_.append(","),l&&(_.append("\n"),d(t+1))}function g(n,t,s){l&&t&&(_.append("\n"),d(s)),_.append(n)}function m(n,t){Object.prototype.hasOwnProperty.call(n,"value")?y(n.value,t):_.append(Q(n))}function b(n,t){let s;try{s=Reflect.getOwnPropertyDescriptor(n,"length")}catch(u){_.append("[Uninspectable]");return}let i=s==null?void 0:s.value;if(!Number.isSafeInteger(i)||i<0){_.append("[Uninspectable]");return}_.append("[");let o=!1;for(let u=0;u<i&&!_.stopped();u+=1){if(f(o,t),o=!0,c>=50){_.append("[MaxEntries]");break}c+=1;let p;try{p=Reflect.getOwnPropertyDescriptor(n,String(u))}catch(te){_.append("[Uninspectable]");continue}p!=null&&p.enumerable?m(p,t+1):_.append("[Empty]")}g("]",o,t)}function v(n,t){let s;try{s=Reflect.ownKeys(n)}catch(o){_.append("[Uninspectable]");return}_.append("{");let i=!1;for(let o of s){if(_.stopped())break;if(c>=50){f(i,t),i=!0,O(_,"\u2026"),_.append(l?": ":":"),_.append("[MaxEntries]");break}c+=1;let u;try{u=Reflect.getOwnPropertyDescriptor(n,o)}catch(p){f(i,t),i=!0,D(_,o),_.append(l?": ":":"),_.append("[Uninspectable]");continue}u!=null&&u.enumerable&&(f(i,t),i=!0,D(_,o),_.append(l?": ":":"),m(u,t+1))}g("}",i,t)}function w(n,t){if(a.has(n)){_.append("[Circular]");return}if(t>=5){_.append("[MaxDepth]");return}let s;try{s=Array.isArray(n)}catch(i){_.append("[Uninspectable]");return}a.add(n);try{s?b(n,t):v(n,t)}finally{a.delete(n)}}function y(n,t){n===null?_.append("null"):typeof n=="string"?O(_,n):typeof n=="number"?_.append(Object.is(n,-0)?"-0":String(n)):typeof n=="boolean"?_.append(n?"true":"false"):typeof n>"u"?_.append("undefined"):typeof n=="bigint"?_.append("".concat(n,"n")):typeof n=="symbol"?E(_,n):typeof n=="function"?_.append("[Function]"):w(n,t)}try{return y(e,0),_.result()}catch(n){return"[Uninspectable]"}}var G=["_16_0_a_0_4_0_5_m_1_u_1_cp_4_b_e_4_7_0_1_0_3l_4_1_1_2_3_1_0_6_0_1_2_1_0_1_j_1_2a_1_3u_8_4l_1_11_2_0_","6_14_1z_q_4_3_19_16_z_1_1_2q_1_0_f_1_7_1_a_2_2_0_g_0_1_t_t_2g_b_0_o_w_9_1_4_0_5_l_4_0_9_0_3_0_n_o_7_","a_5_n_1_6_g_15_1m_1h_3_0_i_0_7_9_f_f_4_7_2_1_2_l_1_6_1_0_3_3_3_0_g_0_d_1_1_2_e_1_a_0_8_5_4_1_2_l_1_6","_1_1_1_1_1_1_v_3_1_0_j_2_g_8_1_2_1_l_1_6_1_1_1_4_3_0_i_0_f_1_n_0_b_7_2_1_2_l_1_6_1_1_1_4_3_0_u_1_1_2","_f_0_h_0_1_5_3_2_1_3_3_1_1_0_1_1_3_1_3_2_3_b_m_0_1g_7_1_2_1_m_1_f_3_0_q_2_1_1_2_1_u_0_4_7_1_2_1_m_1_","9_1_4_3_0_u_2_1_1_f_1_h_8_1_2_1_14_2_0_g_0_5_2_8_2_o_5_5_h_3_n_1_8_1_0_2_6_1m_1b_1_1_c_6_1m_1_1_0_1_","4_1_n_1_0_1_9_1_1_9_0_2_4_1_0_l_3_w_0_1r_7_1_z_r_4_37_16_k_0_g_5_4_3_3_0_3_1_7_2_4_c_c_0_h_11_1_0_5_","0_2_16_1_98_1_3_2_6_1_0_1_3_2_14_1_3_2_w_1_3_2_6_1_0_1_3_2_e_1_1k_1_3_2_1u_11_f_g_2d_2_5_3_h7_2_g_1_","p_5_22_6_7_7_h_d_i_e_h_e_c_1_2_f_1f_z_0_4_0_1v_2g_7_4_2_x_1_0_5_1x_a_u_1d_t_2_4_b_17_4_p_1i_m_9_1g_2","a_0_2l_1a_h_7_1i_t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e<x.length;e+=2){let r=R+1+Number.parseInt(x[e],36),_=r+Number.parseInt(x[e+1],36);Z.push([r,_]),R=_}var se=new Set([..."\u060B$\u20BC\u17DB\xA5\u20A1\u20B1\xA3\u20AC\xA2\u20B9\uFDFC\u20AA\u20A9\u20AD\u20A8\u20AE\u20A6\u20BD\u20AB\u0E3F\u20A9\u20BA\u20B4","$U","$b","B/.","BZ$","Br","Bs","C$","CHF","Ft","Gs","J$","KM","K\u010D","L","MT","NT$","P","Q","R","R$","RD$","RM","Rp","S","S/.","TT$","Z$","kn","kr","lei","z\u0142","\u0192","\u0414\u0438\u043D.","\u0434\u0435\u043D","\u043B\u0432","\u062F.\u0625","Lek"]);var Y=Function.prototype.toString,oe=Y.call(Object);var ue=Map.prototype.entries,ae=Set.prototype.values;var W,ce=(W=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength"))==null?void 0:W.get,L,fe=(L=Object.getOwnPropertyDescriptor(RegExp.prototype,"flags"))==null?void 0:L.get,P,pe=(P=Object.getOwnPropertyDescriptor(RegExp.prototype,"global"))==null?void 0:P.get,I,he=(I=Object.getOwnPropertyDescriptor(RegExp.prototype,"source"))==null?void 0:I.get,de=RegExp.prototype.test;function h(e){return typeof e=="string"}var ge=Date.prototype.getTime;function B(e){if(!(typeof e!="string"||!e)){if(e.includes("\r\n"))return"\r\n";if(e.includes("\n"))return"\n";if(e.includes("\r"))return"\r"}}var M="5.2.3";var N=M,T={extras:!1};function ee(e,r){var d,f,g,m,b,v,w,y;if(e===void 0)throw new Error("lerna-clean-changelogs/cleanChangelogs(): [THROW_ID_01] The first input argument is missing!");if(!h(e))throw new Error("lerna-clean-changelogs/cleanChangelogs(): [THROW_ID_02] The first input argument must be a string! It was given as ".concat(Array.isArray(e)?"array":typeof e,", equal to:\n").concat($(e,4)));let _=j(j({},T),r),l=B(e)||"\n",a,c=!1;if(typeof e=="string"&&(e!=null&&e.trim())){let n=h(e)&&!!e.length&&(e[~-e.length]==="\n"||e[~-e.length]==="\r");e=e==null?void 0:e.trim().replace(/(https:\/\/git\.sr\.ht\/~[^/]+\/[^/]+\/)commits\//g,"$1commit/");let t=e.split(/\r?\n/);_.extras&&t.forEach((i,o)=>{var u;i!=null&&i.startsWith("#")&&(t[o]=i.replace(/(#+) \[?(\d+\.\d+\.\d+)\s?\]\([^)]*\)/g,"$1 $2")),o&&((u=t[o])!=null&&u.startsWith("# "))&&(t[o]="#".concat(t[o]))});let s=[];for(let i=t.length;i--;){if((d=t[i])!=null&&d.startsWith("**Note:** Version bump only")||_.extras&&t[i].toLowerCase().includes("wip")){for(;i&&h(t[~-i])&&!((f=t[~-i])!=null&&f.trim());)i-=1;for(i&&h(t[~-i])&&((m=(g=t[~-i])==null?void 0:g.trim())!=null&&m.startsWith("#"))&&(i-=1);i&&h(t[~-i])&&!((b=t[~-i])!=null&&b.trim());)i-=1}else(v=t[i])!=null&&v.trim()?t[i][0]==="*"&&t[i][1]===" "?s.unshift("- ".concat(t[i].slice(2))):s.unshift(t[i]):c||(s.unshift((w=t[i])==null?void 0:w.trim()),c=!0);(y=t[i])!=null&&y.trim()&&(c=!1)}a="".concat(s.join(l)).concat(n?l:"")}return{version:N,res:a||e}}return H(_e);})();
|
|
10
|
+
"use strict";var lernaCleanChangelogs=(()=>{var S=Object.defineProperty;var oe=Object.getOwnPropertyDescriptor;var le=Object.getOwnPropertyNames,M=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable;var z=(e,t,_)=>t in e?S(e,t,{enumerable:!0,configurable:!0,writable:!0,value:_}):e[t]=_,w=(e,t)=>{for(var _ in t||(t={}))L.call(t,_)&&z(e,_,t[_]);if(M)for(var _ of M(t))ae.call(t,_)&&z(e,_,t[_]);return e};var ue=(e,t)=>{for(var _ in t)S(e,_,{get:t[_],enumerable:!0})},fe=(e,t,_,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of le(t))!L.call(e,r)&&r!==_&&S(e,r,{get:()=>t[r],enumerable:!(n=oe(t,r))||n.enumerable});return e};var ce=e=>fe(S({},"__esModule",{value:!0}),e);var Re={};ue(Re,{cleanChangelogs:()=>De,defaults:()=>re,version:()=>_e});function de(){let e=[],t=0,_=!1;return{append(n){return _?!1:t+n.length>1999?(e.push("\u2026"),t+=1,_=!0,!1):(e.push(n),t+=n.length,!0)},result(){return e.join("")},stopped(){return _}}}function pe(e){return"\\u".concat(e.toString(16).padStart(4,"0"))}function C(e,t){if(e.append('"')){for(let _=0;_<t.length&&!e.stopped();_+=1){let n=t.charCodeAt(_);n===34?e.append('\\"'):n===92?e.append("\\\\"):n===8?e.append("\\b"):n===9?e.append("\\t"):n===10?e.append("\\n"):n===12?e.append("\\f"):n===13?e.append("\\r"):n<32||n===8232||n===8233||n>=55296&&n<=57343?e.append(pe(n)):e.append(t[_])}e.append('"')}}function he(e){return e.get&&e.set?"[Getter/Setter]":e.get?"[Getter]":e.set?"[Setter]":"[Accessor]"}function V(e,t){e.append("Symbol(");let _=String(t);_.length>8&&C(e,_.slice(7,-1)),e.append(")")}function N(e,t){typeof t=="symbol"?V(e,t):C(e,String(t))}function E(e,t=0){let _=de(),n=t===4?4:0,r=new WeakSet,a=0;function f(o){n&&_.append(" ".repeat(o*n))}function u(o,i){o&&_.append(","),n&&(_.append("\n"),f(i+1))}function g(o,i,c){n&&i&&(_.append("\n"),f(c)),_.append(o)}function p(o,i){Object.prototype.hasOwnProperty.call(o,"value")?x(o.value,i):_.append(he(o))}function s(o,i){let c;try{c=Reflect.getOwnPropertyDescriptor(o,"length")}catch(b){_.append("[Uninspectable]");return}let l=c==null?void 0:c.value;if(!Number.isSafeInteger(l)||l<0){_.append("[Uninspectable]");return}_.append("[");let h=!1;for(let b=0;b<l&&!_.stopped();b+=1){if(u(h,i),h=!0,a>=50){_.append("[MaxEntries]");break}a+=1;let k;try{k=Reflect.getOwnPropertyDescriptor(o,String(b))}catch(T){_.append("[Uninspectable]");continue}k!=null&&k.enumerable?p(k,i+1):_.append("[Empty]")}g("]",h,i)}function d(o,i){let c;try{c=Reflect.ownKeys(o)}catch(h){_.append("[Uninspectable]");return}_.append("{");let l=!1;for(let h of c){if(_.stopped())break;if(a>=50){u(l,i),l=!0,C(_,"\u2026"),_.append(n?": ":":"),_.append("[MaxEntries]");break}a+=1;let b;try{b=Reflect.getOwnPropertyDescriptor(o,h)}catch(k){u(l,i),l=!0,N(_,h),_.append(n?": ":":"),_.append("[Uninspectable]");continue}b!=null&&b.enumerable&&(u(l,i),l=!0,N(_,h),_.append(n?": ":":"),p(b,i+1))}g("}",l,i)}function m(o,i){if(r.has(o)){_.append("[Circular]");return}if(i>=5){_.append("[MaxDepth]");return}let c;try{c=Array.isArray(o)}catch(l){_.append("[Uninspectable]");return}r.add(o);try{c?s(o,i):d(o,i)}finally{r.delete(o)}}function x(o,i){o===null?_.append("null"):typeof o=="string"?C(_,o):typeof o=="number"?_.append(Object.is(o,-0)?"-0":String(o)):typeof o=="boolean"?_.append(o?"true":"false"):typeof o>"u"?_.append("undefined"):typeof o=="bigint"?_.append("".concat(o,"n")):typeof o=="symbol"?V(_,o):typeof o=="function"?_.append("[Function]"):m(o,i)}try{return x(e,0),_.result()}catch(o){return"[Uninspectable]"}}var ge=["_16_0_a_0_4_0_5_m_1_u_1_cp_4_b_e_4_7_0_1_0_3l_4_1_1_2_3_1_0_6_0_1_2_1_0_1_j_1_2a_1_3u_8_4l_1_11_2_0_","6_14_1z_q_4_3_19_16_z_1_1_2q_1_0_f_1_7_1_a_2_2_0_g_0_1_t_t_2g_b_0_o_w_9_1_4_0_5_l_4_0_9_0_3_0_n_o_7_","a_5_n_1_6_g_15_1m_1h_3_0_i_0_7_9_f_f_4_7_2_1_2_l_1_6_1_0_3_3_3_0_g_0_d_1_1_2_e_1_a_0_8_5_4_1_2_l_1_6","_1_1_1_1_1_1_v_3_1_0_j_2_g_8_1_2_1_l_1_6_1_1_1_4_3_0_i_0_f_1_n_0_b_7_2_1_2_l_1_6_1_1_1_4_3_0_u_1_1_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2p_36_6pp_3_1_6_1_1_1_82_f_0_t_2_2_0_e_3_8_az_1s4_2y_5_c_3_8_7_9_4me_2c_1_1y_1_1_2_0_2_1_2_3_1_b_1_0","_1_6_1_1s_1_3_2_7_1_6_1_r_1_3_1_4_1_0_3_6_1_9f_2_o_1_o_1_u_1_o_1_u_1_o_1_u_1_o_1_u_1_o_1_7_1f8_u_6_5","_79_1p_42_18_a_6_g_0_8x_t_i_17_dg_r_6c_t_2_0_5r_u_1_2_1_1_1_6_2_4_9_1_68_6_1_3_1_1_1_e_1_5g_1n_1v_7_","0_xg_3_1_q_1_1_1_0_2_0_1_9_1_3_1_0_1_0_6_0_4_0_1_0_1_0_1_2_1_1_1_0_2_0_1_0_1_0_1_0_1_0_1_1_1_0_2_3_1","_6_1_3_1_3_1_0_1_9_1_g_5_2_1_4_1_g_3es_wyn_w_3dp_2_4gd_2_5rk_f_h9_1wi_f1_15u_3t6_5_6jt"].join(""),W=ge.slice(1).split("_"),me=[],F=127;for(let e=0;e<W.length;e+=2){let t=F+1+Number.parseInt(W[e],36),_=t+Number.parseInt(W[e+1],36);me.push([t,_]),F=_}var Pe=new Set([..."\u060B$\u20BC\u17DB\xA5\u20A1\u20B1\xA3\u20AC\xA2\u20B9\uFDFC\u20AA\u20A9\u20AD\u20A8\u20AE\u20A6\u20BD\u20AB\u0E3F\u20A9\u20BA\u20B4","$U","$b","B/.","BZ$","Br","Bs","C$","CHF","Ft","Gs","J$","KM","K\u010D","L","MT","NT$","P","Q","R","R$","RD$","RM","Rp","S","S/.","TT$","Z$","kn","kr","lei","z\u0142","\u0192","\u0414\u0438\u043D.","\u0434\u0435\u043D","\u043B\u0432","\u062F.\u0625","Lek"]);var be=Function.prototype.toString,Te=be.call(Object);var Me=Map.prototype.entries,ze=Set.prototype.values;var q,Le=(q=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength"))==null?void 0:q.get,U,Ne=(U=Object.getOwnPropertyDescriptor(RegExp.prototype,"flags"))==null?void 0:U.get,H,Ve=(H=Object.getOwnPropertyDescriptor(RegExp.prototype,"global"))==null?void 0:H.get,Z,Fe=(Z=Object.getOwnPropertyDescriptor(RegExp.prototype,"source"))==null?void 0:Z.get,qe=RegExp.prototype.test;function B(e){return typeof e=="string"}var Ue=Date.prototype.getTime;function J(e){if(!(typeof e!="string"||!e)){if(e.includes("\r\n"))return"\r\n";if(e.includes("\n"))return"\n";if(e.includes("\r"))return"\r"}}var Q="5.2.5";var ve=new Set("address article aside base basefont blockquote body caption center col colgroup dd details dialog dir div dl dt fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hr html iframe legend li link main menu menuitem nav noframes ol optgroup option p param search section summary table tbody td tfoot th thead title tr track ul".split(" "));function j(e,t){return t.tabSpaces?" ":e[t.index]}function y(e,t,_=1/0){let n=0;for(;n<_;){if(t.tabSpaces)t.tabSpaces-=1;else if(e[t.index]===" ")t.index+=1;else if(e[t.index]===" ")t.index+=1,t.tabSpaces=3-t.column%4;else break;t.column+=1,n+=1}return n}function $(e,t=1){e.index+=t,e.column+=t}function A(e,t){for(let _=t;_<e.length;_++)if(e[_]!==" "&&e[_]!==" ")return!1;return!0}function we(e){let t=e.length;for(;t&&(e[t-1]===" "||e[t-1]===" ");)t-=1;let _=e[t-1],n=t,r=-1;if(_==="*"||_==="-"||_==="_"){let a=0;for(;n;){let f=e[n-1];if(f===_)a+=1,a===3&&(r=n-1);else if(f!==" "&&f!==" ")break;n-=1}}return{end:t,marker:_,start:n,third:r}}function G(e,t){let _=e[t];if(_!=="`"&&_!=="~")return;let n=t+1;for(;e[n]===_;)n+=1;if(!(n-t<3||_==="`"&&e.indexOf("`",n)!==-1))return{marker:_,length:n-t}}function xe(e,t,_){if(y(e,t,3),j(e,t)!==_.marker)return!1;let n=t.index;for(;e[n]===_.marker;)n+=1;return n-t.index>=_.length&&A(e,n)}function P(e,t,_){return e[t]===_.marker&&t>=_.start&&t<=_.third}function I(e,t,_){let n=e[t],r=t;if(n==="#"){for(;e[r]==="#";)r+=1;return r-t<=6&&(r===e.length||e[r]===" "||e[r]===" ")}if(_&&(n==="="||n==="-")){for(;e[r]===n;)r+=1;return A(e,r)}return!1}function Y(e,t,_,n){let r=w({},t);y(e,t,3);let a=t.index,f=j(e,t);if(f==="*"||f==="+"||f==="-"){if(P(e,a,n)){Object.assign(t,r);return}$(t)}else{let s=a;for(;e[s]>="0"&&e[s]<="9"&&s-a<10;)s+=1;if(t.tabSpaces||s===a||s-a>9||e[s]!=="."&&e[s]!==")"||_&&(s-a!==1||f!=="1")){Object.assign(t,r);return}$(t,s-a+1)}let u=w({},t),g=y(e,t,5),p=A(e,t.index);if(!g&&t.index<e.length||_&&p){Object.assign(t,r);return}return!g||g>4||p?(Object.assign(t,u),y(e,t,1),u.column-r.column+1):t.column-r.column}function K(e,t,_){return _==="raw"?/<\/(?:pre|script|style|textarea)>/i.test(e):_==="comment"?e.indexOf("-->",t)!==-1:_==="instruction"?e.indexOf("?>",t)!==-1:_==="declaration"?e.indexOf(">",t)!==-1:_==="cdata"?e.indexOf("]]>",t)!==-1:A(e,t)}function ke(e,t,_){let n=t;for(;;){let r=n;for(;e[n]===" "||e[n]===" ";)n+=1;if(e[n]===">")return A(e,n+1);if(!_&&e[n]==="/"&&e[n+1]===">")return A(e,n+2);if(_||n===r||!/[A-Za-z_:]/.test(e[n]||""))return!1;for(n+=1;/[A-Za-z0-9_.:-]/.test(e[n]||"");)n+=1;let a=n;for(;e[n]===" "||e[n]===" ";)n+=1;if(e[n]!=="="){n=a;continue}for(n+=1;e[n]===" "||e[n]===" ";)n+=1;if(e[n]==='"'||e[n]==="'"){let f=e.indexOf(e[n],n+1);if(f===-1)return!1;n=f+1}else{let f=n;for(;n<e.length&&!/[ \t"'=<>`]/.test(e[n]);)n+=1;if(n===f)return!1}}}function X(e,t,_){if(e[t]!=="<")return;if(e.startsWith("<!--",t))return"comment";if(e.startsWith("<?",t))return"instruction";if(e.startsWith("<![CDATA[",t))return"cdata";if(e[t+1]==="!"&&e[t+2]>="A"&&e[t+2]<="Z")return"declaration";let n=e[t+1]==="/",r=t+(n?2:1);if(!/[A-Za-z]/.test(e[r]||""))return;let a=r+1;for(;/[A-Za-z0-9-]/.test(e[a]||"");)a+=1;let f=e.slice(r,a).toLowerCase(),u=a===e.length||e[a]===" "||e[a]===" "||e[a]===">";if(!n&&u&&(f==="pre"||f==="script"||f==="style"||f==="textarea"))return"raw";if(ve.has(f)&&(u||e[a]==="/"&&e[a+1]===">")||!_&&ke(e,a,n))return"blank"}function Oe(e,t,_){let n=w({},t);return y(e,n)>=4||n.index===e.length?!1:j(e,n)===">"||!!G(e,n.index)||I(e,n.index,!1)||P(e,n.index,_)||!!X(e,n.index,!0)||Y(e,w({},t),!1,_)!==void 0}function ee(e,t){var x;let _,n=[],r=[],a,f,u=!1,g=!1,p=-1,s=-1,d=!1;function m(o){_||(_=new Set),_.add(o)}for(let o=0;o<e.length;o++){let i=e[o],c=we(i),l={index:0,column:0,tabSpaces:0},h=0,b=0;for(;h<n.length;){let v=w({},l);if(l.index>=c.end){h=(x=r[b])!=null?x:n.length,s!==-1&&s<h&&(d=!0),y(i,l);break}if(h===s&&d)break;let O=n[h];if(O.quote){if(y(i,l,3),j(i,l)!==">"){Object.assign(l,v);break}$(l),y(i,l,1),b+=1}else if(y(i,l,O.indent)!==O.indent){Object.assign(l,v);break}h===s&&(s=-1),h+=1}if(h!==n.length){if(u&&l.index<c.end&&!Oe(i,l,c))continue;n.length=h,r.length=b,s>=h&&(s=-1),a=void 0,f=void 0,u=!1,g=!1,p=-1}if(a){m(o),xe(i,l,a)&&(a=void 0);continue}if(f){let v=K(i,l.index,f);(f!=="blank"||!v)&&(t==null||t.add(o)),v&&(f=void 0);continue}let k=w({},l),T=y(i,l),ie=l.index===i.length;if(g){if(ie){p===-1&&(p=o);continue}if(T>=4){if(p!==-1)for(let v=p;v<o;v++)m(v);p=-1,m(o);continue}g=!1,p=-1}for(Object.assign(l,k);;){let v=w({},l);if(y(i,l,3),j(i,l)===">"){r.push(n.length),n.push({quote:!0,indent:0}),$(l),y(i,l,1),u=!1;continue}if(Object.assign(l,v),u&&I(i,l.index,!0))break;let O=Y(i,l,u,c);if(O===void 0)break;n.push({quote:!1,indent:O}),l.index>=c.end&&(s=n.length-1,d=!1),u=!1}let se=y(i,l);if(l.index===i.length){u=!1;continue}if(se>=4){u||(g=!0,m(o));continue}if(a=G(i,l.index),a){m(o),u=!1;continue}if(f=X(i,l.index,u),f){t==null||t.add(o),K(i,l.index,f)&&(f=void 0),u=!1;continue}u=!I(i,l.index,u)&&!P(i,l.index,c)}return _}function te(e,t,_){let n;for(let u=0;u<e.length;u+=1)_!=null&&_.has(u)||(e[u].startsWith("**Note:** Version bump only")||t&&e[u].toLowerCase().includes("wip"))&&(n||(n=new Set),n.add(u));if(!n)return;let r=[],a=-1,f=()=>{let u=r.pop();a===r.length&&(a=-1);let g=u.retained||!u.affected||u.document;if(g?n.delete(u.index):n.add(u.index),r.length){let p=r[r.length-1];p.affected||(p.affected=u.affected),p.retained||(p.retained=g)}};for(let u=0;u<e.length;u+=1){let g=!(_!=null&&_.has(u))&&/^ {0,3}(#{1,6})(?:[ \t]+|$)/.exec(e[u]);if(g){let p=g[1].length,s=p<=2&&/^\[?\d+\.\d+\.\d+(?:[-+][^\s\]]+)?(?:[\s\](]|$)/.test(e[u].slice(g[0].length));if(s)for(;a!==-1;)f();for(;r.length&&r[r.length-1].level>=p;)f();s&&(a=r.length),r.push({index:u,level:p,affected:n.has(u),retained:!1,document:u===0&&p===1&&!s})}else if(r.length){let p=r[r.length-1];n.has(u)?p.affected=!0:e[u].trim()&&(p.retained=!0)}}for(;r.length;)f();return n}function R(e){return e>="0"&&e<="9"}function Ae(e){return R(e)||e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="-"}function je(e){let t=0;for(let _=0;_<3;_+=1){let n=t;for(;R(e[t]);)t+=1;if(t===n||t-n>1&&e[n]==="0")return!1;if(_<2){if(e[t]!==".")return!1;t+=1}}for(let _ of["-","+"])if(e[t]===_)for(t+=1;;){let n=t,r=!0;for(;Ae(e[t]);)R(e[t])||(r=!1),t+=1;if(t===n||_==="-"&&r&&t-n>1&&e[n]==="0")return!1;if(e[t]!==".")break;t+=1}return t===e.length}function D(e,t){for(;e[t]===" "||e[t]===" ";)t+=1;return t}function Se(e,t){let _=e[t];if(_!=='"'&&_!=="'"&&_!=="(")return;let n=_==="("?")":_;for(let r=t+1;r<e.length;r+=1){let a=e[r];if(a==="\\"){let f=e[r+1];(f===n||f==="\\"||_==="("&&f==="(")&&(r+=1)}else{if(a===n)return r+1;if(a==="\r"||a==="\n"||_==="("&&a==="(")return}}}function Ce(e,t){if(e[t]==="<"){for(let n=t+1;n<e.length;n+=1){let r=e[n];if(r==="\\"&&/[<>\\]/.test(e[n+1]||""))n+=1;else{if(r===">")return n+1;if(r==="<"||r==="\r"||r==="\n")return}}return}let _=0;for(let n=t;n<e.length;n+=1){let r=e[n];if(r==="\\"&&/[()\\]/.test(e[n+1]||""))n+=1;else if(r==="(")_+=1;else if(r===")"){if(!_)return n>t?n:void 0;_-=1}else if(r.charCodeAt(0)<=32||r==="\x7F")return!_&&n>t&&(r===" "||r===" ")?n:void 0}}function $e(e,t){let _=D(e,t);if(e[_]===")")return _+1;let n=Ce(e,_);if(n!==void 0){let r=D(e,n);if(e[r]===")")return r+1;if(r>n){let a=Se(e,r);if(a!==void 0){let f=D(e,a);if(e[f]===")")return f+1}}}}function ne(e){let t=0;for(;e[t]===" "&&t<4;)t+=1;if(t===4||e[t]!=="#")return e;let _=t;for(;e[t]==="#"&&t-_<7;)t+=1;if(t-_>6||e[t]!==" "&&e[t]!==" ")return e;let n=D(e,t);if(e[n]!=="["||!R(e[n+1]))return e;let r=e.indexOf("]",n+1);if(r===-1||e[r+1]!=="(")return e;let a=e.slice(n+1,r);if(!je(a))return e;let f=$e(e,r+2);return f===void 0?e:e.slice(0,n)+a+e.slice(f)}var _e=Q,re={extras:!1};function De(e,t){var f,u,g;if(e===void 0)throw new Error("lerna-clean-changelogs/cleanChangelogs(): [THROW_ID_01] The first input argument is missing!");if(!B(e))throw new Error("lerna-clean-changelogs/cleanChangelogs(): [THROW_ID_02] The first input argument must be a string! It was given as ".concat(Array.isArray(e)?"array":typeof e,", equal to:\n").concat(E(e,4)));let _=w(w({},re),t),n=J(e)||"\n",r,a=!1;if(typeof e=="string"&&(e!=null&&e.trim())){let p=B(e)&&!!e.length&&(e[~-e.length]==="\n"||e[~-e.length]==="\r"),s=[],d,m=_.extras&&e.includes("<")?new Set:void 0;if((/```|~~~| {4}|\t/.test(e)||m)&&(s=e.split(/\r\n|\r|\n/),p&&s[s.length-1]===""&&s.pop(),d=ee(s,m),m!=null&&m.size||(m=void 0)),!d&&!m)e=e.trim().replace(/(https:\/\/git\.sr\.ht\/~[^/]+\/[^/]+\/)commits\//g,"$1commit/"),s=e.split(/\r\n|\r|\n/);else{let i=0,c=s.length;for(;i<c&&!(d!=null&&d.has(i))&&!s[i].trim();)i+=1;for(;c>i&&!(d!=null&&d.has(c-1))&&!s[c-1].trim();)c-=1;if(i||c!==s.length){if(d){let l=new Set;for(let h of d)h>=i&&h<c&&l.add(h-i);d=l}if(m){let l=new Set;for(let h of m)h>=i&&h<c&&l.add(h-i);m=l}s=s.slice(i,c)}d!=null&&d.has(0)||(s[0]=s[0].replace(/^\s+/,"")),d!=null&&d.has(s.length-1)||(s[s.length-1]=s[s.length-1].replace(/\s+$/,""));for(let l=0;l<s.length;l+=1)d!=null&&d.has(l)||(s[l]=s[l].replace(/(https:\/\/git\.sr\.ht\/~[^/]+\/[^/]+\/)commits\//g,"$1commit/"))}_.extras&&s.forEach((i,c)=>{var l;d!=null&&d.has(c)||(m!=null&&m.has(c)||(s[c]=ne(i)),c&&((l=s[c])!=null&&l.startsWith("# "))&&(s[c]="#".concat(s[c])))});let x=te(s,_.extras,d),o=[];for(let i=s.length;i--;){if(d!=null&&d.has(i)){o.push(s[i]),a=!1;continue}x!=null&&x.has(i)||((f=s[i])!=null&&f.trim()?s[i][0]==="*"&&s[i][1]===" "&&!/^(?:\*[ \t]*){3,}$/.test(s[i])?o.push("- ".concat(s[i].slice(2))):o.push(s[i]):o.length&&!a&&(o.push((u=s[i])==null?void 0:u.trim()),a=!0),(g=s[i])!=null&&g.trim()&&(a=!1))}o[o.length-1]===""&&o.pop(),r="".concat(o.reverse().join(n)).concat(p?n:"")}return{version:_e,res:r!=null?r:e}}return ce(Re);})();
|
|
11
11
|
/**
|
|
12
12
|
* @name codsen-format-diagnostic-value
|
|
13
13
|
* @fileoverview Safely format untrusted JavaScript values for diagnostics
|
|
14
|
-
* @version 1.1.
|
|
14
|
+
* @version 1.1.1
|
|
15
15
|
* @author Roy Revelt
|
|
16
16
|
* @license MIT
|
|
17
17
|
* {@link https://codsen.com/os/codsen-format-diagnostic-value/}
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
/**
|
|
20
20
|
* @name codsen-utils
|
|
21
21
|
* @fileoverview Various utility functions
|
|
22
|
-
* @version 1.10.
|
|
22
|
+
* @version 1.10.2
|
|
23
23
|
* @author Roy Revelt
|
|
24
24
|
* @license MIT
|
|
25
25
|
* {@link https://codsen.com/os/codsen-utils/}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lerna-clean-changelogs",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.5",
|
|
4
4
|
"description": "Removes frivolous entries from commitizen generated changelogs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"changelog",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"codsen-utils": "^1.10.
|
|
71
|
+
"codsen-utils": "^1.10.2"
|
|
72
72
|
},
|
|
73
73
|
"engines": {
|
|
74
74
|
"node": ">=18.20.8"
|