lerna-clean-changelogs 4.2.4 → 4.2.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.
- package/CHANGELOG.md +4 -4
- package/README.md +13 -16
- package/dist/lerna-clean-changelogs.esm.js +2 -2
- package/dist/lerna-clean-changelogs.umd.js +3 -3
- package/package.json +2 -2
- package/examples/_quickTake.js +0 -60
package/CHANGELOG.md
CHANGED
|
@@ -46,7 +46,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
46
46
|
|
|
47
47
|
### BREAKING CHANGES
|
|
48
48
|
|
|
49
|
-
- programs now are in ES Modules and won't work with Common JS require()
|
|
49
|
+
- programs now are in ES Modules and won't work with Common JS `require()`
|
|
50
50
|
|
|
51
51
|
## 2.1.0 (2021-05-24)
|
|
52
52
|
|
|
@@ -64,7 +64,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
64
64
|
|
|
65
65
|
### Fixed
|
|
66
66
|
|
|
67
|
-
- add testStats to npmignore ([f3c84e9](https://github.com/codsen/codsen/commit/f3c84e95afc5514214312f913692d85b2e12eb29))
|
|
67
|
+
- add `testStats` to npmignore ([f3c84e9](https://github.com/codsen/codsen/commit/f3c84e95afc5514214312f913692d85b2e12eb29))
|
|
68
68
|
|
|
69
69
|
## 2.0.0 (2021-01-23)
|
|
70
70
|
|
|
@@ -80,11 +80,11 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
80
80
|
|
|
81
81
|
### Features
|
|
82
82
|
|
|
83
|
-
- fix for
|
|
83
|
+
- fix for SourceHut deep links ([d3bb023](https://git.sr.ht/~royston/codsen/commit/d3bb0235c7bfe507847399544c55ae29808629ed))
|
|
84
84
|
|
|
85
85
|
## 1.4.0 (2020-11-28)
|
|
86
86
|
|
|
87
|
-
Accidental version bump during migration to
|
|
87
|
+
Accidental version bump during migration to SourceHut. Sorry about that.
|
|
88
88
|
|
|
89
89
|
## 1.3.53 (2020-04-26)
|
|
90
90
|
|
package/README.md
CHANGED
|
@@ -1,28 +1,25 @@
|
|
|
1
|
-
|
|
1
|
+
<h1 align="center">lerna-clean-changelogs</h1>
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
<p align="center">Removes frivolous entries from commitizen generated changelogs</p>
|
|
4
4
|
|
|
5
|
-
<
|
|
6
|
-
<a href="https://www.npmjs.com/package/lerna-clean-changelogs" rel="nofollow noreferrer noopener">
|
|
7
|
-
<img src="https://img.shields.io/badge/-npm-blue?style=flat-square" alt="page on npm">
|
|
8
|
-
</a>
|
|
5
|
+
<p align="center">
|
|
9
6
|
<a href="https://codsen.com/os/lerna-clean-changelogs" rel="nofollow noreferrer noopener">
|
|
10
7
|
<img src="https://img.shields.io/badge/-codsen-blue?style=flat-square" alt="page on codsen.com">
|
|
11
8
|
</a>
|
|
9
|
+
<a href="https://www.npmjs.com/package/lerna-clean-changelogs" rel="nofollow noreferrer noopener">
|
|
10
|
+
<img src="https://img.shields.io/badge/-npm-blue?style=flat-square" alt="page on npm">
|
|
11
|
+
</a>
|
|
12
12
|
<a href="https://github.com/codsen/codsen/tree/main/packages/lerna-clean-changelogs" rel="nofollow noreferrer noopener">
|
|
13
13
|
<img src="https://img.shields.io/badge/-github-blue?style=flat-square" alt="page on github">
|
|
14
14
|
</a>
|
|
15
15
|
<a href="https://npmcharts.com/compare/lerna-clean-changelogs?interval=30" rel="nofollow noreferrer noopener" target="_blank">
|
|
16
16
|
<img src="https://img.shields.io/npm/dm/lerna-clean-changelogs.svg?style=flat-square" alt="Downloads per month">
|
|
17
17
|
</a>
|
|
18
|
-
<a href="https://
|
|
19
|
-
<img src="https://img.shields.io/badge/
|
|
20
|
-
</a>
|
|
21
|
-
<img src="https://img.shields.io/badge/licence-MIT-brightgreen.svg?style=flat-square" alt="MIT License">
|
|
22
|
-
<a href="https://liberamanifesto.com" rel="nofollow noreferrer noopener" target="_blank">
|
|
23
|
-
<img src="https://img.shields.io/badge/libera-manifesto-lightgrey.svg?style=flat-square" alt="libera manifesto">
|
|
18
|
+
<a href="https://codsen.com/os/lerna-clean-changelogs/changelog" rel="nofollow noreferrer noopener">
|
|
19
|
+
<img src="https://img.shields.io/badge/changelog-here-brightgreen?style=flat-square" alt="changelog">
|
|
24
20
|
</a>
|
|
25
|
-
|
|
21
|
+
<img src="https://img.shields.io/badge/licence-MIT-brightgreen.svg?style=flat-square" alt="MIT Licence">
|
|
22
|
+
</p>
|
|
26
23
|
|
|
27
24
|
## Install
|
|
28
25
|
|
|
@@ -97,8 +94,8 @@ To report bugs or request features or assistance, [raise an issue](https://githu
|
|
|
97
94
|
|
|
98
95
|
## Licence
|
|
99
96
|
|
|
100
|
-
MIT License
|
|
97
|
+
MIT License.
|
|
101
98
|
|
|
102
|
-
Copyright
|
|
99
|
+
Copyright © 2010-2022 Roy Revelt and other contributors.
|
|
103
100
|
|
|
104
|
-
<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">
|
|
101
|
+
<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 4.2.
|
|
4
|
+
* @version 4.2.6
|
|
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 c="4.2.
|
|
10
|
+
var c="4.2.6";var f=c;function n(t){return typeof t=="string"}var $={extras:!1};function g(t,p){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={...$,...p},i=`
|
|
12
12
|
`;t.includes(`\r
|
|
13
13
|
`)?i=`\r
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name lerna-clean-changelogs
|
|
3
3
|
* @fileoverview Removes frivolous entries from commitizen generated changelogs
|
|
4
|
-
* @version 4.2.
|
|
4
|
+
* @version 4.2.6
|
|
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 p=Object.defineProperty;var L=Object.getOwnPropertyDescriptor;var V=Object.getOwnPropertyNames,w=Object.getOwnPropertySymbols;var S=Object.prototype.hasOwnProperty,
|
|
10
|
+
"use strict";var lernaCleanChangelogs=(()=>{var p=Object.defineProperty;var L=Object.getOwnPropertyDescriptor;var V=Object.getOwnPropertyNames,w=Object.getOwnPropertySymbols;var S=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var D=(e,r,n)=>r in e?p(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,c=(e,r)=>{for(var n in r||(r={}))S.call(r,n)&&D(e,n,r[n]);if(w)for(var n of w(r))j.call(r,n)&&D(e,n,r[n]);return e};var T=(e,r)=>{for(var n in r)p(e,n,{get:r[n],enumerable:!0})},k=(e,r,n,l)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of V(r))!S.call(e,i)&&i!==n&&p(e,i,{get:()=>r[i],enumerable:!(l=L(r,i))||l.enumerable});return e};var R=e=>k(p({},"__esModule",{value:!0}),e);var I={};T(I,{cleanChangelogs:()=>J,defaults:()=>W,version:()=>O});var A="4.2.6";var O=A;function a(e){return typeof e=="string"}var W={extras:!1};function J(e,r){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(!a(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
11
|
${JSON.stringify(e,null,4)}`);let n=c(c({},W),r),l=`
|
|
12
12
|
`;e.includes(`\r
|
|
13
13
|
`)?l=`\r
|
|
14
14
|
`:e.includes("\r")&&!e.includes(`
|
|
15
15
|
`)&&(l="\r");let i,m=!1;if(typeof e=="string"&&(e==null?void 0:e.trim())){let g=a(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 s=e.split(/\r?\n/);n.extras&&s.forEach((t,o)=>{var v;t!=null&&t.startsWith("#")&&(s[o]=t.replace(/(#+) \[?(\d+\.\d+\.\d+)\s?\]\([^)]*\)/g,"$1 $2")),o&&((v=s[o])==null?void 0:v.startsWith("# "))&&(s[o]=`#${s[o]}`)});let u=[];for(let t=s.length;t--;){if(((d=s[t])==null?void 0:d.startsWith("**Note:** Version bump only"))||n.extras&&s[t].toLowerCase().includes("wip")){for(;t&&a(s[~-t])&&!((f=s[~-t])!=null&&f.trim());)t-=1;for(t&&a(s[~-t])&&((y=($=s[~-t])==null?void 0:$.trim())==null?void 0:y.startsWith("#"))&&(t-=1);t&&a(s[~-t])&&!((b=s[~-t])!=null&&b.trim());)t-=1}else(E=s[t])!=null&&E.trim()?s[t][0]==="*"&&s[t][1]===" "?u.unshift(`- ${s[t].slice(2)}`):u.unshift(s[t]):m||(u.unshift((
|
|
16
|
+
`||e[~-e.length]==="\r");e=e==null?void 0:e.trim().replace(/(https:\/\/git\.sr\.ht\/~[^/]+\/[^/]+\/)commits\//g,"$1commit/");let s=e.split(/\r?\n/);n.extras&&s.forEach((t,o)=>{var v;t!=null&&t.startsWith("#")&&(s[o]=t.replace(/(#+) \[?(\d+\.\d+\.\d+)\s?\]\([^)]*\)/g,"$1 $2")),o&&((v=s[o])==null?void 0:v.startsWith("# "))&&(s[o]=`#${s[o]}`)});let u=[];for(let t=s.length;t--;){if(((d=s[t])==null?void 0:d.startsWith("**Note:** Version bump only"))||n.extras&&s[t].toLowerCase().includes("wip")){for(;t&&a(s[~-t])&&!((f=s[~-t])!=null&&f.trim());)t-=1;for(t&&a(s[~-t])&&((y=($=s[~-t])==null?void 0:$.trim())==null?void 0:y.startsWith("#"))&&(t-=1);t&&a(s[~-t])&&!((b=s[~-t])!=null&&b.trim());)t-=1}else(E=s[t])!=null&&E.trim()?s[t][0]==="*"&&s[t][1]===" "?u.unshift(`- ${s[t].slice(2)}`):u.unshift(s[t]):m||(u.unshift((x=s[t])==null?void 0:x.trim()),m=!0);(h=s[t])!=null&&h.trim()&&(m=!1)}i=`${u.join(l)}${g?l:""}`}return{version:O,res:i||e}}return R(I);})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lerna-clean-changelogs",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.6",
|
|
4
4
|
"description": "Removes frivolous entries from commitizen generated changelogs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"changelog",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"examples": "node '../../ops/scripts/run-examples.js'",
|
|
44
44
|
"lect": "node '../../ops/lect/lect.js' && yarn run prettier 'README.md' '.all-contributorsrc' 'rollup.config.js' --write",
|
|
45
45
|
"letspublish": "yarn publish || :",
|
|
46
|
-
"lint": "eslint . --fix",
|
|
46
|
+
"lint": "eslint . --ext .js --ext .ts --fix",
|
|
47
47
|
"perf": "node perf/check.js",
|
|
48
48
|
"prepare": "echo 'ready'",
|
|
49
49
|
"prettier": "prettier",
|
package/examples/_quickTake.js
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
// Quick Take
|
|
2
|
-
|
|
3
|
-
import { strict as assert } from "assert";
|
|
4
|
-
|
|
5
|
-
import { cleanChangelogs } from "../dist/lerna-clean-changelogs.esm.js";
|
|
6
|
-
|
|
7
|
-
// are all values equal to null:
|
|
8
|
-
assert.equal(
|
|
9
|
-
cleanChangelogs(`# Change Log
|
|
10
|
-
|
|
11
|
-
All notable changes to this project will be documented in this file.
|
|
12
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
13
|
-
|
|
14
|
-
## 2.9.2 (2018-12-27)
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
**Note:** Version bump only for package ranges-apply
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
## [2.9.1](https://gitlab.com/codsen/codsen/tree/master/packages/ranges-apply/compare/ranges-apply@2.9.0...ranges-apply@2.9.1) (2018-12-27)
|
|
27
|
-
|
|
28
|
-
**Note:** Version bump only for package ranges-apply
|
|
29
|
-
|
|
30
|
-
## 2.9.0 (2018-12-26)
|
|
31
|
-
|
|
32
|
-
### Bug Fixes
|
|
33
|
-
|
|
34
|
-
* aaa
|
|
35
|
-
|
|
36
|
-
### Features
|
|
37
|
-
|
|
38
|
-
* bbb
|
|
39
|
-
|
|
40
|
-
`).res,
|
|
41
|
-
//
|
|
42
|
-
//
|
|
43
|
-
//
|
|
44
|
-
// output:
|
|
45
|
-
`# Change Log
|
|
46
|
-
|
|
47
|
-
All notable changes to this project will be documented in this file.
|
|
48
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
49
|
-
|
|
50
|
-
## 2.9.0 (2018-12-26)
|
|
51
|
-
|
|
52
|
-
### Bug Fixes
|
|
53
|
-
|
|
54
|
-
- aaa
|
|
55
|
-
|
|
56
|
-
### Features
|
|
57
|
-
|
|
58
|
-
- bbb
|
|
59
|
-
`
|
|
60
|
-
);
|