lerna-clean-changelogs 4.1.3 → 4.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,6 +3,13 @@
|
|
|
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
|
+
# 4.2.0 (2022-08-12)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- export types ([c3e7f82](https://github.com/codsen/codsen/commit/c3e7f82300e53adef3fe2c8b3f79e74fb379d12b))
|
|
11
|
+
- export types ([11b5fb9](https://github.com/codsen/codsen/commit/11b5fb936ce20e0a77c3a09806773e1cd7695c50))
|
|
12
|
+
|
|
6
13
|
## 4.1.1 (2022-04-18)
|
|
7
14
|
|
|
8
15
|
### Bug Fixes
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name lerna-clean-changelogs
|
|
3
3
|
* @fileoverview Removes frivolous entries from commitizen generated changelogs
|
|
4
|
-
* @version 4.
|
|
4
|
+
* @version 4.2.0
|
|
5
5
|
* @author Roy Revelt, Codsen Ltd
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/lerna-clean-changelogs/}
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
var p="4.
|
|
10
|
+
var p="4.2.0";var d=p;function n(t){return typeof t=="string"}var f={extras:!1};function $(t,u){if(t===void 0)throw new Error("lerna-clean-changelogs: [THROW_ID_01] The first input argument is missing!");if(!n(t))throw new Error(`lerna-clean-changelogs: [THROW_ID_02] The first input argument must be a string! It was given as ${Array.isArray(t)?"array":typeof t}, equal to:
|
|
11
11
|
${JSON.stringify(t,null,4)}`);let a={...f,...u},o,l=!1;if(typeof t=="string"&&t.length&&(!t.includes(`
|
|
12
12
|
`)||!t.includes("\r"))){let c=n(t)&&t.length&&(t[t.length-1]===`
|
|
13
|
-
`||t[t.length-1]==="\r");t=t.trim().replace(/(https:\/\/git\.sr\.ht\/~[^/]+\/[^/]+\/)commits\//g,"$1commit/");let
|
|
13
|
+
`||t[t.length-1]==="\r");t=t.trim().replace(/(https:\/\/git\.sr\.ht\/~[^/]+\/[^/]+\/)commits\//g,"$1commit/");let r=t.split(/\r?\n/);a.extras&&r.forEach((e,s)=>{e.startsWith("#")&&(r[s]=e.replace(/(#+) \[?(\d+\.\d+\.\d+)\s?\]\([^)]*\)/g,"$1 $2")),s&&r[s].startsWith("# ")&&(r[s]=`#${r[s]}`)});let i=[];for(let e=r.length;e--;){if(r[e].startsWith("**Note:** Version bump only")||a.extras&&r[e].toLowerCase().includes("wip")){for(;n(r[e-1])&&!r[e-1].trim()&&e;)e-=1;for(e&&n(r[e-1])&&r[e-1].trim().startsWith("#")&&(e-=1);n(r[e-1])&&!r[e-1].trim()&&e;)e-=1}else r[e].trim()?r[e][0]==="*"&&r[e][1]===" "?i.unshift(`- ${r[e].slice(2)}`):i.unshift(r[e]):l||(i.unshift(r[e].trim()),l=!0);r[e].trim()&&(l=!1)}o=`${i.join(`
|
|
14
14
|
`)}${c?`
|
|
15
15
|
`:""}`}return{version:d,res:o||t}}export{$ as cleanChangelogs,f as defaults,d as version};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
2
|
* @name lerna-clean-changelogs
|
|
3
3
|
* @fileoverview Removes frivolous entries from commitizen generated changelogs
|
|
4
|
-
* @version 4.
|
|
4
|
+
* @version 4.2.0
|
|
5
5
|
* @author Roy Revelt, Codsen Ltd
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/lerna-clean-changelogs/}
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
var lernaCleanChangelogs=(()=>{var u=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var
|
|
11
|
-
${JSON.stringify(e,null,4)}`);let n=c(c({},$),
|
|
10
|
+
var lernaCleanChangelogs=(()=>{var u=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames,m=Object.getOwnPropertySymbols;var f=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var d=(e,r,n)=>r in e?u(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,c=(e,r)=>{for(var n in r||(r={}))f.call(r,n)&&d(e,n,r[n]);if(m)for(var n of m(r))E.call(r,n)&&d(e,n,r[n]);return e};var v=(e,r)=>{for(var n in r)u(e,n,{get:r[n],enumerable:!0})},w=(e,r,n,l)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of x(r))!f.call(e,i)&&i!==n&&u(e,i,{get:()=>r[i],enumerable:!(l=b(r,i))||l.enumerable});return e};var W=e=>w(u({},"__esModule",{value:!0}),e);var D={};v(D,{cleanChangelogs:()=>O,defaults:()=>$,version:()=>h});var y="4.2.0";var h=y;function o(e){return typeof e=="string"}var $={extras:!1};function O(e,r){if(e===void 0)throw new Error("lerna-clean-changelogs: [THROW_ID_01] The first input argument is missing!");if(!o(e))throw new Error(`lerna-clean-changelogs: [THROW_ID_02] The first input argument must be a string! It was given as ${Array.isArray(e)?"array":typeof e}, equal to:
|
|
11
|
+
${JSON.stringify(e,null,4)}`);let n=c(c({},$),r),l,i=!1;if(typeof e=="string"&&e.length&&(!e.includes(`
|
|
12
12
|
`)||!e.includes("\r"))){let g=o(e)&&e.length&&(e[e.length-1]===`
|
|
13
|
-
`||e[e.length-1]==="\r");e=e.trim().replace(/(https:\/\/git\.sr\.ht\/~[^/]+\/[^/]+\/)commits\//g,"$1commit/");let
|
|
13
|
+
`||e[e.length-1]==="\r");e=e.trim().replace(/(https:\/\/git\.sr\.ht\/~[^/]+\/[^/]+\/)commits\//g,"$1commit/");let s=e.split(/\r?\n/);n.extras&&s.forEach((t,a)=>{t.startsWith("#")&&(s[a]=t.replace(/(#+) \[?(\d+\.\d+\.\d+)\s?\]\([^)]*\)/g,"$1 $2")),a&&s[a].startsWith("# ")&&(s[a]=`#${s[a]}`)});let p=[];for(let t=s.length;t--;){if(s[t].startsWith("**Note:** Version bump only")||n.extras&&s[t].toLowerCase().includes("wip")){for(;o(s[t-1])&&!s[t-1].trim()&&t;)t-=1;for(t&&o(s[t-1])&&s[t-1].trim().startsWith("#")&&(t-=1);o(s[t-1])&&!s[t-1].trim()&&t;)t-=1}else s[t].trim()?s[t][0]==="*"&&s[t][1]===" "?p.unshift(`- ${s[t].slice(2)}`):p.unshift(s[t]):i||(p.unshift(s[t].trim()),i=!0);s[t].trim()&&(i=!1)}l=`${p.join(`
|
|
14
14
|
`)}${g?`
|
|
15
15
|
`:""}`}return{version:h,res:l||e}}return W(D);})();
|
package/package.json
CHANGED
package/types/index.d.ts
CHANGED