lerna-clean-changelogs 5.1.0 → 5.2.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
@@ -3,11 +3,23 @@
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.1.0 (2025-10-15)
6
+ ## 5.2.0 (2026-08-19)
7
+
8
+ ### Bug Fixes
9
+
10
+ - make validation diagnostics safe ([7b01074](https://github.com/codsen/codsen/commit/7b0107476f12734aeb8e82852ba980b187280110))
11
+ - resolve review findings REV-004 through REV-007 ([b60e9ee](https://github.com/codsen/codsen/commit/b60e9eeb499af94685cfb87b4970fe025be1fc10))
12
+ - retire direct publish aliases ([f98e31e](https://github.com/codsen/codsen/commit/f98e31eb89bc185471225664e610b55f34fbf648))
7
13
 
8
14
  ### Features
9
15
 
10
- - if value to be added is a number, keep it as is, don't stringify ([ce3e1a5](https://github.com/codsen/codsen/commit/ce3e1a525998ca3c0abf0142affef95b14cd1990))
16
+ - add codsen-glob and migrate glob consumers ([5595a2b](https://github.com/codsen/codsen/commit/5595a2b267eaa6cb60072d037aef00b7a28edd42))
17
+ - refresh the tooling and generate with the latest dependencies ([781f802](https://github.com/codsen/codsen/commit/781f802911066a82a4533b0e5a3fcbd742d0dd83))
18
+
19
+ ### Reverts
20
+
21
+ - 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)
22
+ - 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)
11
23
 
12
24
  ## 5.0.8 (2023-04-16)
13
25
 
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright © 2010-2025 Roy Revelt and other contributors
3
+ Copyright © 2010-2026 Roy Revelt and other contributors
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining
6
6
  a copy of this software and associated documentation files (the
package/README.md CHANGED
@@ -32,7 +32,7 @@ npm i lerna-clean-changelogs
32
32
  ## Quick Take
33
33
 
34
34
  ```js
35
- import { strict as assert } from "assert";
35
+ import { strict as assert } from "node:assert";
36
36
 
37
37
  import { cleanChangelogs } from "lerna-clean-changelogs";
38
38
 
@@ -84,6 +84,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
84
84
  );
85
85
  ```
86
86
 
87
+
87
88
  ## Documentation
88
89
 
89
90
  Please [visit codsen.com](https://codsen.com/os/lerna-clean-changelogs/) for a full description of the API. If you’re looking for the **Changelog**, it’s [here](https://github.com/codsen/codsen/blob/main/packages/lerna-clean-changelogs/CHANGELOG.md).
@@ -96,6 +97,6 @@ To report bugs or request features or assistance, [raise an issue](https://githu
96
97
 
97
98
  MIT License
98
99
 
99
- Copyright © 2010-2025 Roy Revelt and other contributors
100
+ Copyright © 2010-2026 Roy Revelt and other contributors
100
101
 
101
102
  <p align="center"><img src="https://codsen.com/images/png-codsen-ok.png" width="98" alt="ok" align="center"> <img src="https://codsen.com/images/png-codsen-1.png" width="148" alt="codsen" align="center"> <img src="https://codsen.com/images/png-codsen-star-small.png" width="32" alt="star" align="center"></p>
@@ -1,13 +1,13 @@
1
1
  /**
2
2
  * @name lerna-clean-changelogs
3
3
  * @fileoverview Removes frivolous entries from commitizen generated changelogs
4
- * @version 5.1.0
4
+ * @version 5.2.0
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{isStr as n,detectEol as f}from"codsen-utils";var u="5.1.0";var $=u,g={extras:!1};function x(s,m){if(s===void 0)throw new Error("lerna-clean-changelogs: [THROW_ID_01] The first input argument is missing!");if(!n(s))throw new Error(`lerna-clean-changelogs: [THROW_ID_02] The first input argument must be a string! It was given as ${Array.isArray(s)?"array":typeof s}, equal to:
11
- ${JSON.stringify(s,null,4)}`);let o={...g,...m},a=f(s)||`
12
- `,p,l=!1;if(typeof s=="string"&&s?.trim()){let c=n(s)&&!!s.length&&(s[~-s.length]===`
13
- `||s[~-s.length]==="\r");s=s?.trim().replace(/(https:\/\/git\.sr\.ht\/~[^/]+\/[^/]+\/)commits\//g,"$1commit/");let t=s.split(/\r?\n/);o.extras&&t.forEach((e,r)=>{e?.startsWith("#")&&(t[r]=e.replace(/(#+) \[?(\d+\.\d+\.\d+)\s?\]\([^)]*\)/g,"$1 $2")),r&&t[r]?.startsWith("# ")&&(t[r]=`#${t[r]}`)});let i=[];for(let e=t.length;e--;){if(t[e]?.startsWith("**Note:** Version bump only")||o.extras&&t[e].toLowerCase().includes("wip")){for(;e&&n(t[~-e])&&!t[~-e]?.trim();)e-=1;for(e&&n(t[~-e])&&t[~-e]?.trim()?.startsWith("#")&&(e-=1);e&&n(t[~-e])&&!t[~-e]?.trim();)e-=1}else t[e]?.trim()?t[e][0]==="*"&&t[e][1]===" "?i.unshift(`- ${t[e].slice(2)}`):i.unshift(t[e]):l||(i.unshift(t[e]?.trim()),l=!0);t[e]?.trim()&&(l=!1)}p=`${i.join(a)}${c?a:""}`}return{version:$,res:p||s}}export{x as cleanChangelogs,g as defaults,$ as version};
10
+ import{detectEol as f,formatDiagnosticValue as $,isStr as n}from"codsen-utils";var m="5.2.0";var g=m,y={extras:!1};function v(s,p){if(s===void 0)throw new Error("lerna-clean-changelogs/cleanChangelogs(): [THROW_ID_01] The first input argument is missing!");if(!n(s))throw new Error(`lerna-clean-changelogs/cleanChangelogs(): [THROW_ID_02] The first input argument must be a string! It was given as ${Array.isArray(s)?"array":typeof s}, equal to:
11
+ ${$(s,4)}`);let o={...y,...p},a=f(s)||`
12
+ `,c,l=!1;if(typeof s=="string"&&s?.trim()){let u=n(s)&&!!s.length&&(s[~-s.length]===`
13
+ `||s[~-s.length]==="\r");s=s?.trim().replace(/(https:\/\/git\.sr\.ht\/~[^/]+\/[^/]+\/)commits\//g,"$1commit/");let t=s.split(/\r?\n/);o.extras&&t.forEach((e,r)=>{e?.startsWith("#")&&(t[r]=e.replace(/(#+) \[?(\d+\.\d+\.\d+)\s?\]\([^)]*\)/g,"$1 $2")),r&&t[r]?.startsWith("# ")&&(t[r]=`#${t[r]}`)});let i=[];for(let e=t.length;e--;){if(t[e]?.startsWith("**Note:** Version bump only")||o.extras&&t[e].toLowerCase().includes("wip")){for(;e&&n(t[~-e])&&!t[~-e]?.trim();)e-=1;for(e&&n(t[~-e])&&t[~-e]?.trim()?.startsWith("#")&&(e-=1);e&&n(t[~-e])&&!t[~-e]?.trim();)e-=1}else t[e]?.trim()?t[e][0]==="*"&&t[e][1]===" "?i.unshift(`- ${t[e].slice(2)}`):i.unshift(t[e]):l||(i.unshift(t[e]?.trim()),l=!0);t[e]?.trim()&&(l=!1)}c=`${i.join(a)}${u?a:""}`}return{version:g,res:c||s}}export{v as cleanChangelogs,y as defaults,g 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.1.0
4
+ * @version 5.2.0
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 V=Object.create;var $=Object.defineProperty;var R=Object.getOwnPropertyDescriptor;var W=Object.getOwnPropertyNames,E=Object.getOwnPropertySymbols,M=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var S=(e,n,i)=>n in e?$(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i,O=(e,n)=>{for(var i in n||(n={}))x.call(n,i)&&S(e,i,n[i]);if(E)for(var i of E(n))P.call(n,i)&&S(e,i,n[i]);return e};var F=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),H=(e,n)=>{for(var i in n)$(e,i,{get:n[i],enumerable:!0})},v=(e,n,i,m)=>{if(n&&typeof n=="object"||typeof n=="function")for(let c of W(n))!x.call(e,c)&&c!==i&&$(e,c,{get:()=>n[c],enumerable:!(m=R(n,c))||m.enumerable});return e};var I=(e,n,i)=>(i=e!=null?V(M(e)):{},v(n||!e||!e.__esModule?$(i,"default",{value:e,enumerable:!0}):i,e)),J=e=>v($({},"__esModule",{value:!0}),e);var C=F((Z,D)=>{"use strict";D.exports=Q;function h(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function Q(e){if(e=e||{},e.circles)return _(e);let n=new Map;if(n.set(Date,s=>new Date(s)),n.set(Map,(s,u)=>new Map(m(Array.from(s),u))),n.set(Set,(s,u)=>new Set(m(Array.from(s),u))),e.constructorHandlers)for(let s of e.constructorHandlers)n.set(s[0],s[1]);let i=null;return e.proto?d:c;function m(s,u){let r=Object.keys(s),t=new Array(r.length);for(let a=0;a<r.length;a++){let o=r[a],p=s[o];typeof p!="object"||p===null?t[o]=p:p.constructor!==Object&&(i=n.get(p.constructor))?t[o]=i(p,u):ArrayBuffer.isView(p)?t[o]=h(p):t[o]=u(p)}return t}function c(s){if(typeof s!="object"||s===null)return s;if(Array.isArray(s))return m(s,c);if(s.constructor!==Object&&(i=n.get(s.constructor)))return i(s,c);let u={};for(let r in s){if(Object.hasOwnProperty.call(s,r)===!1)continue;let t=s[r];typeof t!="object"||t===null?u[r]=t:t.constructor!==Object&&(i=n.get(t.constructor))?u[r]=i(t,c):ArrayBuffer.isView(t)?u[r]=h(t):u[r]=c(t)}return u}function d(s){if(typeof s!="object"||s===null)return s;if(Array.isArray(s))return m(s,d);if(s.constructor!==Object&&(i=n.get(s.constructor)))return i(s,d);let u={};for(let r in s){let t=s[r];typeof t!="object"||t===null?u[r]=t:t.constructor!==Object&&(i=n.get(t.constructor))?u[r]=i(t,d):ArrayBuffer.isView(t)?u[r]=h(t):u[r]=d(t)}return u}}function _(e){let n=[],i=[],m=new Map;if(m.set(Date,r=>new Date(r)),m.set(Map,(r,t)=>new Map(d(Array.from(r),t))),m.set(Set,(r,t)=>new Set(d(Array.from(r),t))),e.constructorHandlers)for(let r of e.constructorHandlers)m.set(r[0],r[1]);let c=null;return e.proto?u:s;function d(r,t){let a=Object.keys(r),o=new Array(a.length);for(let p=0;p<a.length;p++){let b=a[p],y=r[b];if(typeof y!="object"||y===null)o[b]=y;else if(y.constructor!==Object&&(c=m.get(y.constructor)))o[b]=c(y,t);else if(ArrayBuffer.isView(y))o[b]=h(y);else{let f=n.indexOf(y);f!==-1?o[b]=i[f]:o[b]=t(y)}}return o}function s(r){if(typeof r!="object"||r===null)return r;if(Array.isArray(r))return d(r,s);if(r.constructor!==Object&&(c=m.get(r.constructor)))return c(r,s);let t={};n.push(r),i.push(t);for(let a in r){if(Object.hasOwnProperty.call(r,a)===!1)continue;let o=r[a];if(typeof o!="object"||o===null)t[a]=o;else if(o.constructor!==Object&&(c=m.get(o.constructor)))t[a]=c(o,s);else if(ArrayBuffer.isView(o))t[a]=h(o);else{let p=n.indexOf(o);p!==-1?t[a]=i[p]:t[a]=s(o)}}return n.pop(),i.pop(),t}function u(r){if(typeof r!="object"||r===null)return r;if(Array.isArray(r))return d(r,u);if(r.constructor!==Object&&(c=m.get(r.constructor)))return c(r,u);let t={};n.push(r),i.push(t);for(let a in r){let o=r[a];if(typeof o!="object"||o===null)t[a]=o;else if(o.constructor!==Object&&(c=m.get(o.constructor)))t[a]=c(o,u);else if(ArrayBuffer.isView(o))t[a]=h(o);else{let p=n.indexOf(o);p!==-1?t[a]=i[p]:t[a]=u(o)}}return n.pop(),i.pop(),t}}});var z={};H(z,{cleanChangelogs:()=>q,defaults:()=>N,version:()=>T});var k=I(C(),1);var G=(0,k.default)();function g(e){return typeof e=="string"}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 L="5.1.0";var T=L,N={extras:!1};function q(e,n){var s,u,r,t,a,o,p,b;if(e===void 0)throw new Error("lerna-clean-changelogs: [THROW_ID_01] The first input argument is missing!");if(!g(e))throw new Error("lerna-clean-changelogs: [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(JSON.stringify(e,null,4)));let i=O(O({},N),n),m=B(e)||"\n",c,d=!1;if(typeof e=="string"&&(e!=null&&e.trim())){let y=g(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 f=e.split(/\r?\n/);i.extras&&f.forEach((l,A)=>{var j;l!=null&&l.startsWith("#")&&(f[A]=l.replace(/(#+) \[?(\d+\.\d+\.\d+)\s?\]\([^)]*\)/g,"$1 $2")),A&&((j=f[A])!=null&&j.startsWith("# "))&&(f[A]="#".concat(f[A]))});let w=[];for(let l=f.length;l--;){if((s=f[l])!=null&&s.startsWith("**Note:** Version bump only")||i.extras&&f[l].toLowerCase().includes("wip")){for(;l&&g(f[~-l])&&!((u=f[~-l])!=null&&u.trim());)l-=1;for(l&&g(f[~-l])&&((t=(r=f[~-l])==null?void 0:r.trim())!=null&&t.startsWith("#"))&&(l-=1);l&&g(f[~-l])&&!((a=f[~-l])!=null&&a.trim());)l-=1}else(o=f[l])!=null&&o.trim()?f[l][0]==="*"&&f[l][1]===" "?w.unshift("- ".concat(f[l].slice(2))):w.unshift(f[l]):d||(w.unshift((p=f[l])==null?void 0:p.trim()),d=!0);(b=f[l])!=null&&b.trim()&&(d=!1)}c="".concat(w.join(m)).concat(y?m:"")}return{version:T,res:c||e}}return J(z);})();
10
+ "use strict";var lernaCleanChangelogs=(()=>{var w=Object.defineProperty;var B=Object.getOwnPropertyDescriptor;var I=Object.getOwnPropertyNames,x=Object.getOwnPropertySymbols;var O=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var k=(e,s,t)=>s in e?w(e,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[s]=t,S=(e,s)=>{for(var t in s||(s={}))O.call(s,t)&&k(e,t,s[t]);if(x)for(var t of x(s))T.call(s,t)&&k(e,t,s[t]);return e};var N=(e,s)=>{for(var t in s)w(e,t,{get:s[t],enumerable:!0})},P=(e,s,t,l)=>{if(s&&typeof s=="object"||typeof s=="function")for(let f of I(s))!O.call(e,f)&&f!==t&&w(e,f,{get:()=>s[f],enumerable:!(l=B(s,f))||l.enumerable});return e};var V=e=>P(w({},"__esModule",{value:!0}),e);var J={};N(J,{cleanChangelogs:()=>Q,defaults:()=>M,version:()=>R});function F(){let e=[],s=0,t=!1;return{append(l){return t?!1:s+l.length>1999?(e.push("\u2026"),s+=1,t=!0,!1):(e.push(l),s+=l.length,!0)},result(){return e.join("")},stopped(){return t}}}function U(e){return"\\u".concat(e.toString(16).padStart(4,"0"))}function C(e,s){if(e.append('"')){for(let t=0;t<s.length&&!e.stopped();t+=1){let l=s.charCodeAt(t);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(U(l)):e.append(s[t])}e.append('"')}}function _(e){return e.get&&e.set?"[Getter/Setter]":e.get?"[Getter]":e.set?"[Setter]":"[Accessor]"}function D(e,s){e.append("Symbol(");let t=String(s);t.length>8&&C(e,t.slice(7,-1)),e.append(")")}function W(e,s){typeof s=="symbol"?D(e,s):C(e,String(s))}function E(e,s=0){let t=F(),l=s===4?4:0,f=new WeakSet,c=0;function g(n){l&&t.append(" ".repeat(n*l))}function p(n,r){n&&t.append(","),l&&(t.append("\n"),g(r+1))}function m(n,r,o){l&&r&&(t.append("\n"),g(o)),t.append(n)}function y(n,r){Object.prototype.hasOwnProperty.call(n,"value")?b(n.value,r):t.append(_(n))}function v(n,r){let o;try{o=Reflect.getOwnPropertyDescriptor(n,"length")}catch(a){t.append("[Uninspectable]");return}let i=o==null?void 0:o.value;if(!Number.isSafeInteger(i)||i<0){t.append("[Uninspectable]");return}t.append("[");let u=!1;for(let a=0;a<i&&!t.stopped();a+=1){if(p(u,r),u=!0,c>=50){t.append("[MaxEntries]");break}c+=1;let h;try{h=Reflect.getOwnPropertyDescriptor(n,String(a))}catch(z){t.append("[Uninspectable]");continue}h!=null&&h.enumerable?y(h,r+1):t.append("[Empty]")}m("]",u,r)}function A(n,r){let o;try{o=Reflect.ownKeys(n)}catch(u){t.append("[Uninspectable]");return}t.append("{");let i=!1;for(let u of o){if(t.stopped())break;if(c>=50){p(i,r),i=!0,C(t,"\u2026"),t.append(l?": ":":"),t.append("[MaxEntries]");break}c+=1;let a;try{a=Reflect.getOwnPropertyDescriptor(n,u)}catch(h){p(i,r),i=!0,W(t,u),t.append(l?": ":":"),t.append("[Uninspectable]");continue}a!=null&&a.enumerable&&(p(i,r),i=!0,W(t,u),t.append(l?": ":":"),y(a,r+1))}m("}",i,r)}function $(n,r){if(f.has(n)){t.append("[Circular]");return}if(r>=5){t.append("[MaxDepth]");return}let o;try{o=Array.isArray(n)}catch(i){t.append("[Uninspectable]");return}f.add(n);try{o?v(n,r):A(n,r)}finally{f.delete(n)}}function b(n,r){n===null?t.append("null"):typeof n=="string"?C(t,n):typeof n=="number"?t.append(Object.is(n,-0)?"-0":String(n)):typeof n=="boolean"?t.append(n?"true":"false"):typeof n>"u"?t.append("undefined"):typeof n=="bigint"?t.append("".concat(n,"n")):typeof n=="symbol"?D(t,n):typeof n=="function"?t.append("[Function]"):$(n,r)}try{return b(e,0),t.result()}catch(n){return"[Uninspectable]"}}var K=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"]);function d(e){return typeof e=="string"}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 L="5.2.0";var R=L,M={extras:!1};function Q(e,s){var g,p,m,y,v,A,$,b;if(e===void 0)throw new Error("lerna-clean-changelogs/cleanChangelogs(): [THROW_ID_01] The first input argument is missing!");if(!d(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 t=S(S({},M),s),l=j(e)||"\n",f,c=!1;if(typeof e=="string"&&(e!=null&&e.trim())){let n=d(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 r=e.split(/\r?\n/);t.extras&&r.forEach((i,u)=>{var a;i!=null&&i.startsWith("#")&&(r[u]=i.replace(/(#+) \[?(\d+\.\d+\.\d+)\s?\]\([^)]*\)/g,"$1 $2")),u&&((a=r[u])!=null&&a.startsWith("# "))&&(r[u]="#".concat(r[u]))});let o=[];for(let i=r.length;i--;){if((g=r[i])!=null&&g.startsWith("**Note:** Version bump only")||t.extras&&r[i].toLowerCase().includes("wip")){for(;i&&d(r[~-i])&&!((p=r[~-i])!=null&&p.trim());)i-=1;for(i&&d(r[~-i])&&((y=(m=r[~-i])==null?void 0:m.trim())!=null&&y.startsWith("#"))&&(i-=1);i&&d(r[~-i])&&!((v=r[~-i])!=null&&v.trim());)i-=1}else(A=r[i])!=null&&A.trim()?r[i][0]==="*"&&r[i][1]===" "?o.unshift("- ".concat(r[i].slice(2))):o.unshift(r[i]):c||(o.unshift(($=r[i])==null?void 0:$.trim()),c=!0);(b=r[i])!=null&&b.trim()&&(c=!1)}f="".concat(o.join(l)).concat(n?l:"")}return{version:R,res:f||e}}return V(J);})();
11
11
  /**
12
12
  * @name codsen-utils
13
13
  * @fileoverview Various utility functions
14
- * @version 1.7.0
14
+ * @version 1.8.0
15
15
  * @author Roy Revelt
16
16
  * @license MIT
17
17
  * {@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.1.0",
3
+ "version": "5.2.0",
4
4
  "description": "Removes frivolous entries from commitizen generated changelogs",
5
5
  "keywords": [
6
6
  "changelog",
@@ -36,43 +36,42 @@
36
36
  },
37
37
  "types": "types/index.d.ts",
38
38
  "scripts": {
39
- "build": "node '../../ops/scripts/esbuild.js' && npm run dts",
40
- "cjs-off": "exit 0",
41
- "cjs-on": "exit 0",
42
- "dev": "DEV=true node '../../ops/scripts/esbuild.js' && npm run dts",
39
+ "build": "node ../../ops/scripts/esbuild.js && npm run dts",
40
+ "coverage": "c8 uvu test",
41
+ "dev": "node ../../ops/scripts/esbuild.js --dev && npm run dts",
43
42
  "devtest": "c8 npm run unit && npm run examples && npm run lint",
44
- "dts": "rollup -c && npm run prettier -- 'types/index.d.ts' --write --log-level 'silent'",
43
+ "dts": "rollup -c && biome format --write --config-path=../../biome.json --vcs-enabled=false --use-editorconfig=false types/index.d.ts",
45
44
  "examples": "node '../../ops/scripts/run-examples.js'",
46
- "lect": "node '../../ops/lect/lect.js' && npm run prettier -- 'README.md' '.all-contributorsrc' 'rollup.config.js' --write",
47
- "letspublish": "npm publish --provenance || :",
48
- "lint": "eslint . --fix --concurrency=auto --cache",
45
+ "lect": "node '../../ops/lect/lect.js'",
46
+ "lect:check": "node '../../ops/lect/lect.js' --check",
47
+ "lint": "biome lint --error-on-warnings . && npm run typecheck",
48
+ "lint:fix": "biome lint --write --error-on-warnings . && npm run typecheck",
49
49
  "perf": "node perf/check.js",
50
50
  "prep": "echo 'ready'",
51
- "prettier": "prettier",
52
- "prettier:format": "npm run prettier -- --write '**/*.{ts,tsx,md}' --no-error-on-unmatched-pattern --log-level 'silent'",
53
- "pretest": "npm run lect && npm run build",
51
+ "prettier": "biome format",
52
+ "prettier:format": "biome format --write .",
53
+ "pretest": "npm run lect:check && npm run build",
54
54
  "test": "npm run devtest",
55
+ "typecheck": "tsc --noEmit --pretty false --project tsconfig.json",
55
56
  "unit": "uvu test"
56
57
  },
57
- "engines": {
58
- "node": ">=14.18.0"
59
- },
60
58
  "c8": {
59
+ "all": true,
61
60
  "check-coverage": true,
62
- "exclude": [
63
- "**/test/**/*.*"
64
- ],
61
+ "exclude": ["**/test/**/*.*"],
62
+ "include": ["dist/*.esm.js"],
65
63
  "lines": 100
66
64
  },
67
65
  "lect": {
68
66
  "licence": {
69
- "extras": [
70
- ""
71
- ]
67
+ "extras": [""]
72
68
  }
73
69
  },
74
70
  "dependencies": {
75
- "codsen-utils": "^1.7.0"
71
+ "codsen-utils": "^1.8.0"
72
+ },
73
+ "engines": {
74
+ "node": ">=18.20.8"
76
75
  },
77
76
  "publishConfig": {
78
77
  "registry": "https://registry.npmjs.org/"
package/.eslintcache DELETED
@@ -1 +0,0 @@
1
- [{"/home/runner/work/codsen/codsen/packages/lerna-clean-changelogs/examples/_quickTake.js":"1","/home/runner/work/codsen/codsen/packages/lerna-clean-changelogs/perf/check.js":"2","/home/runner/work/codsen/codsen/packages/lerna-clean-changelogs/rollup.config.js":"3","/home/runner/work/codsen/codsen/packages/lerna-clean-changelogs/src/main.ts":"4","/home/runner/work/codsen/codsen/packages/lerna-clean-changelogs/test/test.js":"5","/home/runner/work/codsen/codsen/packages/lerna-clean-changelogs/test/throws.js":"6"},{"size":989,"mtime":1760566739117,"results":"7","hashOfConfig":"8"},{"size":538,"mtime":1760566739117,"results":"9","hashOfConfig":"10"},{"size":373,"mtime":1760566739117,"results":"11","hashOfConfig":"8"},{"size":5389,"mtime":1760566739118,"results":"12","hashOfConfig":"10"},{"size":3697,"mtime":1760566739118,"results":"13","hashOfConfig":"14"},{"size":1180,"mtime":1760566739118,"results":"15","hashOfConfig":"14"},{"filePath":"16","messages":"17","suppressedMessages":"18","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1nlhngw",{"filePath":"19","messages":"20","suppressedMessages":"21","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1xjytlu",{"filePath":"22","messages":"23","suppressedMessages":"24","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"25","messages":"26","suppressedMessages":"27","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"28","messages":"29","suppressedMessages":"30","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"nrihsz",{"filePath":"31","messages":"32","suppressedMessages":"33","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/home/runner/work/codsen/codsen/packages/lerna-clean-changelogs/examples/_quickTake.js",[],[],"/home/runner/work/codsen/codsen/packages/lerna-clean-changelogs/perf/check.js",[],[],"/home/runner/work/codsen/codsen/packages/lerna-clean-changelogs/rollup.config.js",[],[],"/home/runner/work/codsen/codsen/packages/lerna-clean-changelogs/src/main.ts",[],[],"/home/runner/work/codsen/codsen/packages/lerna-clean-changelogs/test/test.js",[],["34","35","36","37","38","39"],"/home/runner/work/codsen/codsen/packages/lerna-clean-changelogs/test/throws.js",[],["40","41","42","43","44"],{"ruleId":"45","severity":2,"message":"46","line":5,"column":17,"nodeType":null,"messageId":"47","endLine":5,"endColumn":19,"suppressions":"48"},{"ruleId":"45","severity":2,"message":"49","line":5,"column":21,"nodeType":null,"messageId":"47","endLine":5,"endColumn":23,"suppressions":"50"},{"ruleId":"45","severity":2,"message":"51","line":5,"column":25,"nodeType":null,"messageId":"47","endLine":5,"endColumn":31,"suppressions":"52"},{"ruleId":"45","severity":2,"message":"53","line":5,"column":33,"nodeType":null,"messageId":"47","endLine":5,"endColumn":37,"suppressions":"54"},{"ruleId":"45","severity":2,"message":"55","line":5,"column":39,"nodeType":null,"messageId":"47","endLine":5,"endColumn":42,"suppressions":"56"},{"ruleId":"45","severity":2,"message":"57","line":5,"column":44,"nodeType":null,"messageId":"47","endLine":5,"endColumn":49,"suppressions":"58"},{"ruleId":"45","severity":2,"message":"46","line":3,"column":17,"nodeType":null,"messageId":"47","endLine":3,"endColumn":19,"suppressions":"59"},{"ruleId":"45","severity":2,"message":"49","line":3,"column":21,"nodeType":null,"messageId":"47","endLine":3,"endColumn":23,"suppressions":"60"},{"ruleId":"45","severity":2,"message":"53","line":3,"column":33,"nodeType":null,"messageId":"47","endLine":3,"endColumn":37,"suppressions":"61"},{"ruleId":"45","severity":2,"message":"55","line":3,"column":39,"nodeType":null,"messageId":"47","endLine":3,"endColumn":42,"suppressions":"62"},{"ruleId":"45","severity":2,"message":"57","line":3,"column":44,"nodeType":null,"messageId":"47","endLine":3,"endColumn":49,"suppressions":"63"},"@typescript-eslint/no-unused-vars","'is' is defined but never used.","unusedVar",["64"],"'ok' is defined but never used.",["65"],"'throws' is defined but never used.",["66"],"'type' is defined but never used.",["67"],"'not' is defined but never used.",["68"],"'match' is defined but never used.",["69"],["70"],["71"],["72"],["73"],["74"],{"kind":"75","justification":"76"},{"kind":"75","justification":"76"},{"kind":"75","justification":"76"},{"kind":"75","justification":"76"},{"kind":"75","justification":"76"},{"kind":"75","justification":"76"},{"kind":"75","justification":"76"},{"kind":"75","justification":"76"},{"kind":"75","justification":"76"},{"kind":"75","justification":"76"},{"kind":"75","justification":"76"},"directive",""]