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
- # 5.0.0 (2022-12-01)
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
- ### Features
8
+ **Note:** Version bump only for package lerna-clean-changelogs
9
9
 
10
- - drop Node v12 support; minimum version requirement now is v14.18 and above ([c8049e8](https://github.com/codsen/codsen/commit/c8049e82a5844d3f72587740f1cc74e3c9020d22))
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
- ## [4.2.2](https://github.com/codsen/codsen/compare/lerna-clean-changelogs@4.2.1...lerna-clean-changelogs@4.2.2) (2022-08-27)
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
- # 4.2.0 (2022-08-12)
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
- # 4.1.0 (2022-04-10)
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
- # [4.0.0](https://github.com/codsen/codsen/compare/lerna-clean-changelogs@3.0.11...lerna-clean-changelogs@4.0.0) (2022-01-22)
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.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 c="5.0.0";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
- ${JSON.stringify(t,null,4)}`);let a={...$,...p},i=`
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 u,o=!1;if(typeof t=="string"&&t?.trim()){let m=n(t)&&t.length&&(t[~-t.length]===`
16
- `||t[~-t.length]==="\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 l=[];for(let e=r.length;e--;){if(r[e]?.startsWith("**Note:** Version bump only")||a.extras&&r[e].toLowerCase().includes("wip")){for(;e&&n(r[~-e])&&!r[~-e]?.trim();)e-=1;for(e&&n(r[~-e])&&r[~-e]?.trim()?.startsWith("#")&&(e-=1);e&&n(r[~-e])&&!r[~-e]?.trim();)e-=1}else r[e]?.trim()?r[e][0]==="*"&&r[e][1]===" "?l.unshift(`- ${r[e].slice(2)}`):l.unshift(r[e]):o||(l.unshift(r[e]?.trim()),o=!0);r[e]?.trim()&&(o=!1)}u=`${l.join(i)}${m?i:""}`}return{version:f,res:u||t}}export{g as cleanChangelogs,$ as defaults,f as version};
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.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 p=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var L=Object.getOwnPropertyNames,w=Object.getOwnPropertySymbols;var S=Object.prototype.hasOwnProperty,V=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))V.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 L(r))!S.call(e,i)&&i!==n&&p(e,i,{get:()=>r[i],enumerable:!(l=g(r,i))||l.enumerable});return e};var R=e=>k(p({},"__esModule",{value:!0}),e);var I={};T(I,{cleanChangelogs:()=>J,defaults:()=>O,version:()=>A});var j="5.0.0";var A=j;function a(e){return typeof e=="string"}var O={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
- ${JSON.stringify(e,null,4)}`);let n=c(c({},O),r),l=`
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,m=!1;if(typeof e=="string"&&(e==null?void 0:e.trim())){let W=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((x=s[t])==null?void 0:x.trim()),m=!0);(h=s[t])!=null&&h.trim()&&(m=!1)}i=`${u.join(l)}${W?l:""}`}return{version:A,res:i||e}}return R(I);})();
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.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' && yarn run dts",
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' && yarn run dts",
43
- "devtest": "c8 yarn run unit && yarn run examples && yarn run lint",
44
- "dts": "rollup -c && yarn run prettier 'types/index.d.ts' --write",
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' && yarn run prettier 'README.md' '.all-contributorsrc' 'rollup.config.js' --write",
47
- "letspublish": "yarn publish || :",
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
- "prepare": "echo 'ready'",
50
+ "prep": "echo 'ready'",
51
51
  "prettier": "prettier",
52
- "prettier:format": "prettier --write '**/*.{ts,tsx,md}' --no-error-on-unmatched-pattern",
53
- "pretest": "yarn run lect && yarn run build",
54
- "test": "yarn run devtest",
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": {