lerna-clean-changelogs 5.0.0 → 5.0.2
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,23 +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
|
-
|
|
6
|
+
## [5.0.2](https://github.com/codsen/codsen/compare/lerna-clean-changelogs@5.0.1...lerna-clean-changelogs@5.0.2) (2022-12-06)
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
**Note:** Version bump only for package lerna-clean-changelogs
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
## 5.0.0 (2022-12-01)
|
|
11
11
|
|
|
12
12
|
### BREAKING CHANGES
|
|
13
13
|
|
|
14
14
|
- Minimum supported Node version is v14.18; we're dropping v12 support
|
|
15
15
|
|
|
16
|
-
##
|
|
16
|
+
## 4.2.2 (2022-08-27)
|
|
17
17
|
|
|
18
18
|
### Fixed
|
|
19
19
|
|
|
20
20
|
- support windows CRLF line endings ([4f6195a](https://github.com/codsen/codsen/commit/4f6195a1bfa8f21f18540c90b4963f17c433980c))
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
## 4.2.0 (2022-08-12)
|
|
23
23
|
|
|
24
24
|
### Features
|
|
25
25
|
|
|
@@ -32,13 +32,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
32
32
|
|
|
33
33
|
- tweak types ([97ea400](https://github.com/codsen/codsen/commit/97ea4001c1bb6bf1a9a09d36fa2d1694f2c4d974))
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
## 4.1.0 (2022-04-10)
|
|
36
36
|
|
|
37
37
|
### Features
|
|
38
38
|
|
|
39
39
|
- export defaults ([4bc7c0f](https://github.com/codsen/codsen/commit/4bc7c0fd98f3c2e768df04a8e34b6465d04835d9))
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
## 4.0.0 (2022-01-22)
|
|
42
42
|
|
|
43
43
|
### Fixed
|
|
44
44
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name lerna-clean-changelogs
|
|
3
3
|
* @fileoverview Removes frivolous entries from commitizen generated changelogs
|
|
4
|
-
* @version 5.0.
|
|
4
|
+
* @version 5.0.2
|
|
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
|
|
11
|
-
${JSON.stringify(t,null,4)}`);let
|
|
10
|
+
var p="5.0.2";var f=p;function n(t){return typeof t=="string"}var $={extras:!1};function g(t,m){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
|
+
${JSON.stringify(t,null,4)}`);let u={...$,...m},i=`
|
|
12
12
|
`;t.includes(`\r
|
|
13
13
|
`)?i=`\r
|
|
14
14
|
`:t.includes("\r")&&!t.includes(`
|
|
15
|
-
`)&&(i="\r");let
|
|
16
|
-
`||t[~-t.length]==="\r");t=t?.trim().replace(/(https:\/\/git\.sr\.ht\/~[^/]+\/[^/]+\/)commits\//g,"$1commit/");let
|
|
15
|
+
`)&&(i="\r");let a,o=!1;if(typeof t=="string"&&t?.trim()){let c=n(t)&&t.length&&(t[~-t.length]===`
|
|
16
|
+
`||t[~-t.length]==="\r");t=t?.trim().replace(/(https:\/\/git\.sr\.ht\/~[^/]+\/[^/]+\/)commits\//g,"$1commit/");let s=t.split(/\r?\n/);u.extras&&s.forEach((e,r)=>{e?.startsWith("#")&&(s[r]=e.replace(/(#+) \[?(\d+\.\d+\.\d+)\s?\]\([^)]*\)/g,"$1 $2")),r&&s[r]?.startsWith("# ")&&(s[r]=`#${s[r]}`)});let l=[];for(let e=s.length;e--;){if(s[e]?.startsWith("**Note:** Version bump only")||u.extras&&s[e].toLowerCase().includes("wip")){for(;e&&n(s[~-e])&&!s[~-e]?.trim();)e-=1;for(e&&n(s[~-e])&&s[~-e]?.trim()?.startsWith("#")&&(e-=1);e&&n(s[~-e])&&!s[~-e]?.trim();)e-=1}else s[e]?.trim()?s[e][0]==="*"&&s[e][1]===" "?l.unshift(`- ${s[e].slice(2)}`):l.unshift(s[e]):o||(l.unshift(s[e]?.trim()),o=!0);s[e]?.trim()&&(o=!1)}a=`${l.join(i)}${c?i:""}`}return{version:f,res:a||t}}export{g as cleanChangelogs,$ as defaults,f as version};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name lerna-clean-changelogs
|
|
3
3
|
* @fileoverview Removes frivolous entries from commitizen generated changelogs
|
|
4
|
-
* @version 5.0.
|
|
4
|
+
* @version 5.0.2
|
|
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
|
-
"use strict";var lernaCleanChangelogs=(()=>{var
|
|
11
|
-
${JSON.stringify(e,null,4)}`);let n=c(c({},
|
|
10
|
+
"use strict";var lernaCleanChangelogs=(()=>{var m=Object.defineProperty;var W=Object.getOwnPropertyDescriptor;var L=Object.getOwnPropertyNames,w=Object.getOwnPropertySymbols;var D=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var g=(e,s,n)=>s in e?m(e,s,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[s]=n,c=(e,s)=>{for(var n in s||(s={}))D.call(s,n)&&g(e,n,s[n]);if(w)for(var n of w(s))V.call(s,n)&&g(e,n,s[n]);return e};var T=(e,s)=>{for(var n in s)m(e,n,{get:s[n],enumerable:!0})},k=(e,s,n,l)=>{if(s&&typeof s=="object"||typeof s=="function")for(let i of L(s))!D.call(e,i)&&i!==n&&m(e,i,{get:()=>s[i],enumerable:!(l=W(s,i))||l.enumerable});return e};var R=e=>k(m({},"__esModule",{value:!0}),e);var I={};T(I,{cleanChangelogs:()=>J,defaults:()=>A,version:()=>j});var S="5.0.2";var j=S;function u(e){return typeof e=="string"}var A={extras:!1};function J(e,s){var d,f,$,y,b,E,x,h;if(e===void 0)throw new Error("lerna-clean-changelogs: [THROW_ID_01] The first input argument is missing!");if(!u(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({},A),s),l=`
|
|
12
12
|
`;e.includes(`\r
|
|
13
13
|
`)?l=`\r
|
|
14
14
|
`:e.includes("\r")&&!e.includes(`
|
|
15
|
-
`)&&(l="\r");let i,
|
|
16
|
-
`||e[~-e.length]==="\r");e=e==null?void 0:e.trim().replace(/(https:\/\/git\.sr\.ht\/~[^/]+\/[^/]+\/)commits\//g,"$1commit/");let
|
|
15
|
+
`)&&(l="\r");let i,a=!1;if(typeof e=="string"&&(e==null?void 0:e.trim())){let O=u(e)&&e.length&&(e[~-e.length]===`
|
|
16
|
+
`||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/);n.extras&&r.forEach((t,o)=>{var v;t!=null&&t.startsWith("#")&&(r[o]=t.replace(/(#+) \[?(\d+\.\d+\.\d+)\s?\]\([^)]*\)/g,"$1 $2")),o&&((v=r[o])==null?void 0:v.startsWith("# "))&&(r[o]=`#${r[o]}`)});let p=[];for(let t=r.length;t--;){if(((d=r[t])==null?void 0:d.startsWith("**Note:** Version bump only"))||n.extras&&r[t].toLowerCase().includes("wip")){for(;t&&u(r[~-t])&&!((f=r[~-t])!=null&&f.trim());)t-=1;for(t&&u(r[~-t])&&((y=($=r[~-t])==null?void 0:$.trim())==null?void 0:y.startsWith("#"))&&(t-=1);t&&u(r[~-t])&&!((b=r[~-t])!=null&&b.trim());)t-=1}else(E=r[t])!=null&&E.trim()?r[t][0]==="*"&&r[t][1]===" "?p.unshift(`- ${r[t].slice(2)}`):p.unshift(r[t]):a||(p.unshift((x=r[t])==null?void 0:x.trim()),a=!0);(h=r[t])!=null&&h.trim()&&(a=!1)}i=`${p.join(l)}${O?l:""}`}return{version:j,res:i||e}}return R(I);})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lerna-clean-changelogs",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.2",
|
|
4
4
|
"description": "Removes frivolous entries from commitizen generated changelogs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"changelog",
|
|
@@ -36,22 +36,22 @@
|
|
|
36
36
|
},
|
|
37
37
|
"types": "types/index.d.ts",
|
|
38
38
|
"scripts": {
|
|
39
|
-
"build": "node '../../ops/scripts/esbuild.js' &&
|
|
39
|
+
"build": "node '../../ops/scripts/esbuild.js' && npm run dts",
|
|
40
40
|
"cjs-off": "exit 0",
|
|
41
41
|
"cjs-on": "exit 0",
|
|
42
|
-
"dev": "DEV=true node '../../ops/scripts/esbuild.js' &&
|
|
43
|
-
"devtest": "c8
|
|
44
|
-
"dts": "rollup -c &&
|
|
42
|
+
"dev": "DEV=true node '../../ops/scripts/esbuild.js' && npm run dts",
|
|
43
|
+
"devtest": "c8 npm run unit && npm run examples && npm run lint",
|
|
44
|
+
"dts": "rollup -c && npm run prettier -- 'types/index.d.ts' --write --loglevel 'silent'",
|
|
45
45
|
"examples": "node '../../ops/scripts/run-examples.js'",
|
|
46
|
-
"lect": "node '../../ops/lect/lect.js' &&
|
|
47
|
-
"letspublish": "
|
|
46
|
+
"lect": "node '../../ops/lect/lect.js' && npm run prettier -- 'README.md' '.all-contributorsrc' 'rollup.config.js' --write",
|
|
47
|
+
"letspublish": "npm publish || :",
|
|
48
48
|
"lint": "eslint . --ext .js --ext .ts --fix",
|
|
49
49
|
"perf": "node perf/check.js",
|
|
50
|
-
"
|
|
50
|
+
"prep": "echo 'ready'",
|
|
51
51
|
"prettier": "prettier",
|
|
52
|
-
"prettier:format": "prettier --write '**/*.{ts,tsx,md}' --no-error-on-unmatched-pattern",
|
|
53
|
-
"pretest": "
|
|
54
|
-
"test": "
|
|
52
|
+
"prettier:format": "npm run prettier -- --write '**/*.{ts,tsx,md}' --no-error-on-unmatched-pattern --loglevel 'silent'",
|
|
53
|
+
"pretest": "npm run lect && npm run build",
|
|
54
|
+
"test": "npm run devtest",
|
|
55
55
|
"unit": "uvu test"
|
|
56
56
|
},
|
|
57
57
|
"engines": {
|