lerna-clean-changelogs 4.2.3 → 4.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
@@ -5,7 +5,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
5
5
 
6
6
  ## [4.2.2](https://github.com/codsen/codsen/compare/lerna-clean-changelogs@4.2.1...lerna-clean-changelogs@4.2.2) (2022-08-27)
7
7
 
8
- ### Bug Fixes
8
+ ### Fixed
9
9
 
10
10
  - support windows CRLF line endings ([4f6195a](https://github.com/codsen/codsen/commit/4f6195a1bfa8f21f18540c90b4963f17c433980c))
11
11
 
@@ -18,7 +18,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
18
18
 
19
19
  ## 4.1.1 (2022-04-18)
20
20
 
21
- ### Bug Fixes
21
+ ### Fixed
22
22
 
23
23
  - tweak types ([97ea400](https://github.com/codsen/codsen/commit/97ea4001c1bb6bf1a9a09d36fa2d1694f2c4d974))
24
24
 
@@ -30,7 +30,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
30
30
 
31
31
  # [4.0.0](https://github.com/codsen/codsen/compare/lerna-clean-changelogs@3.0.11...lerna-clean-changelogs@4.0.0) (2022-01-22)
32
32
 
33
- ### Bug Fixes
33
+ ### Fixed
34
34
 
35
35
  - set options as a plain object ([814cf09](https://github.com/codsen/codsen/commit/814cf090d14c9810b2cf6074fad316fa43d125c8)), closes [#36](https://github.com/codsen/codsen/issues/36)
36
36
 
@@ -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
 
@@ -62,9 +62,9 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
62
62
 
63
63
  ## 2.0.1 (2021-01-28)
64
64
 
65
- ### Bug Fixes
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,15 +80,15 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
80
80
 
81
81
  ### Features
82
82
 
83
- - fix for sourcehut deep links ([d3bb023](https://git.sr.ht/~royston/codsen/commit/d3bb0235c7bfe507847399544c55ae29808629ed))
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 sourcehut. Sorry about that.
87
+ Accidental version bump during migration to SourceHut. Sorry about that.
88
88
 
89
89
  ## 1.3.53 (2020-04-26)
90
90
 
91
- ### Bug Fixes
91
+ ### Fixed
92
92
 
93
93
  - harden the eslint rules set and make all tests pass again ([29df39e](https://gitlab.com/codsen/codsen/commit/29df39eb787ff5b3a0636ed4ea7df6056f5a0451))
94
94
 
@@ -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.3
4
+ * @version 4.2.5
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.3";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:
10
+ var c="4.2.5";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.3
4
+ * @version 4.2.5
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,T=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))T.call(r,n)&&D(e,n,r[n]);return e};var j=(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={};j(I,{cleanChangelogs:()=>J,defaults:()=>W,version:()=>O});var A="4.2.3";var O=A;function a(e){return typeof e=="string"}var W={extras:!1};function J(e,r){var d,f,$,y,b,E,h,x;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:
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.5";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((h=s[t])==null?void 0:h.trim()),m=!0);(x=s[t])!=null&&x.trim()&&(m=!1)}i=`${u.join(l)}${g?l:""}`}return{version:O,res:i||e}}return R(I);})();
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",
3
+ "version": "4.2.5",
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",
@@ -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
- );