@jeromefitz/conventional-gitmoji 2.1.2 → 3.0.0-contribs.1

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.
Files changed (68) hide show
  1. package/LICENSE +0 -0
  2. package/README.md +0 -0
  3. package/changelog/config.cjs +1 -0
  4. package/changelog/config.d.ts +17 -0
  5. package/changelog/config.js +1 -0
  6. package/{getGitmojiConventional.js → changelog/index.cjs} +1 -1
  7. package/changelog/index.d.ts +55 -0
  8. package/changelog/index.js +1 -0
  9. package/changelog/utils/conventionalChangelog.cjs +1 -0
  10. package/changelog/utils/conventionalChangelog.d.ts +20 -0
  11. package/changelog/utils/conventionalChangelog.js +1 -0
  12. package/changelog/utils/conventionalRecommendedBump.cjs +1 -0
  13. package/changelog/utils/conventionalRecommendedBump.d.ts +16 -0
  14. package/changelog/utils/conventionalRecommendedBump.js +1 -0
  15. package/changelog/utils/gitRawCommit.cjs +1 -0
  16. package/changelog/utils/gitRawCommit.d.ts +8 -0
  17. package/changelog/utils/gitRawCommit.js +1 -0
  18. package/changelog/utils/parserOpts.cjs +1 -0
  19. package/changelog/utils/parserOpts.d.ts +10 -0
  20. package/changelog/utils/parserOpts.js +1 -0
  21. package/changelog/utils/transformer.cjs +1 -0
  22. package/changelog/utils/transformer.d.ts +3 -0
  23. package/changelog/utils/transformer.js +1 -0
  24. package/changelog/utils/writerOpts.cjs +1 -0
  25. package/changelog/utils/writerOpts.d.ts +22 -0
  26. package/changelog/utils/writerOpts.js +1 -0
  27. package/config/rewrites.cjs +0 -0
  28. package/config/rewrites.d.ts +0 -0
  29. package/config/rewrites.js +0 -0
  30. package/config/types.cjs +1 -1
  31. package/config/types.d.ts +13 -14
  32. package/config/types.js +1 -1
  33. package/index.cjs +1 -1
  34. package/index.d.ts +24 -24
  35. package/index.js +1 -1
  36. package/package.json +11 -3
  37. package/types/commit.cjs +1 -0
  38. package/types/commit.d.ts +5 -0
  39. package/types/commit.js +1 -0
  40. package/types/commit.types.cjs +1 -0
  41. package/types/commit.types.d.ts +3 -0
  42. package/types/commit.types.js +0 -0
  43. package/types/index.cjs +1 -0
  44. package/types/index.d.ts +4 -0
  45. package/types/index.js +1 -0
  46. package/types/releaseRule.cjs +1 -0
  47. package/types/releaseRule.d.ts +6 -0
  48. package/types/releaseRule.js +1 -0
  49. package/types/releaseRule.types.cjs +1 -0
  50. package/types/releaseRule.types.d.ts +19 -0
  51. package/types/releaseRule.types.js +0 -0
  52. package/utils/getGitmojiConventional.cjs +1 -0
  53. package/utils/getGitmojiConventional.d.ts +6 -0
  54. package/utils/getGitmojiConventional.js +1 -0
  55. package/utils/getReleaseRules.cjs +1 -0
  56. package/utils/getReleaseRules.d.ts +12 -0
  57. package/utils/getReleaseRules.js +1 -0
  58. package/utils/getTypeSpecs.cjs +1 -0
  59. package/utils/getTypeSpecs.d.ts +6 -0
  60. package/utils/getTypeSpecs.js +1 -0
  61. package/getGitmojiConventional.cjs +0 -1
  62. package/getGitmojiConventional.d.ts +0 -3
  63. package/getReleaseRules.cjs +0 -1
  64. package/getReleaseRules.d.ts +0 -12
  65. package/getReleaseRules.js +0 -1
  66. package/getTypeSpecs.cjs +0 -1
  67. package/getTypeSpecs.d.ts +0 -14
  68. package/getTypeSpecs.js +0 -1
@@ -0,0 +1 @@
1
+ var H=Object.create;var u=Object.defineProperty;var J=Object.getOwnPropertyDescriptor;var N=Object.getOwnPropertyNames;var V=Object.getPrototypeOf,X=Object.prototype.hasOwnProperty;var j=o=>u(o,"__esModule",{value:!0});var q=(o,e)=>()=>(o&&(e=o(o=0)),e);var b=(o,e)=>()=>(e||o((e={exports:{}}).exports,e),e.exports),Z=(o,e)=>{for(var t in e)u(o,t,{get:e[t],enumerable:!0})},R=(o,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of N(e))!X.call(o,i)&&(t||i!=="default")&&u(o,i,{get:()=>e[i],enumerable:!(n=J(e,i))||n.enumerable});return o},g=(o,e)=>R(j(u(o!=null?H(V(o)):{},"default",!e&&o&&o.__esModule?{get:()=>o.default,enumerable:!0}:{value:o,enumerable:!0})),o),K=(o=>(e,t)=>o&&o.get(e)||(t=R(j({}),e,1),o&&o.set(e,t),t))(typeof WeakMap!="undefined"?new WeakMap:0);var r=q(()=>{});var F=b((Ce,P)=>{r();var ne=["for","and","nor","but","or","yet","so"],ie=["a","an","the"],se=["aboard","about","above","across","after","against","along","amid","among","anti","around","as","at","before","behind","below","beneath","beside","besides","between","beyond","but","by","concerning","considering","despite","down","during","except","excepting","excluding","following","for","from","in","inside","into","like","minus","near","of","off","on","onto","opposite","over","past","per","plus","regarding","round","save","since","than","through","to","toward","towards","under","underneath","unlike","until","up","upon","versus","via","with","within","without"];P.exports=new Set([...ne,...ie,...se])});var E=b((Pe,T)=>{r();var ae=["ZEIT","ZEIT Inc.","Vercel","Vercel Inc.","CLI","API","HTTP","HTTPS","JSX","DNS","URL","now.sh","now.json","vercel.app","vercel.json","CI","CD","CDN","package.json","package.lock","yarn.lock","GitHub","GitLab","CSS","Sass","JS","JavaScript","TypeScript","HTML","WordPress","JavaScript","Next.js","Node.js","Webpack","Docker","Bash","Kubernetes","SWR","TinaCMS","UI","UX","TS","TSX","iPhone","iPad","watchOS","iOS","iPadOS","macOS","PHP","composer.json","composer.lock","CMS"];T.exports=ae});var D=b((Fe,M)=>{r();var ce=F(),me=E(),h=`[^\\s'\u2019\\(\\)!?;:"-]`,de=new RegExp(`(?:(?:(\\s?(?:^|[.\\(\\)!?;:"-])\\s*)(${h}))|(${h}))(${h}*[\u2019']*${h}*)`,"g"),pe=o=>o.map(e=>[new RegExp(`\\b${e}\\b`,"gi"),e]);function le(o){let e=o[0];return/\s/.test(e)?o.substr(1):/[\(\)]/.test(e)?null:o}M.exports=(o,e={})=>{o=o.toLowerCase().replace(de,(a,m="",d,p,l,y,v)=>{let G=a.length+y>=v.length,k=le(a);if(!k)return a;if(!d){let B=p+l;if(ce.has(B)&&!G)return k}return m+(p||d).toUpperCase()+l});let t=e.special||[],n=[...me,...t];return pe(n).forEach(([a,m])=>{o=o.replace(a,m)}),o}});var be={};Z(be,{default:()=>ve});r();r();var $=g(require("grapheme-splitter"),1),w=g(require("lodash/pullAt.js"),1);r();r();var Q=[{emoji:"\u{1F3A8}",entity:"🎨",code:":art:",description:"Improve structure / format of the code.",name:"art",semver:null},{emoji:"\u26A1\uFE0F",entity:"⚡",code:":zap:",description:"Improve performance.",name:"zap",semver:"patch"},{emoji:"\u{1F525}",entity:"🔥",code:":fire:",description:"Remove code or files.",name:"fire",semver:null},{emoji:"\u{1F41B}",entity:"🐛",code:":bug:",description:"Fix a bug.",name:"bug",semver:"patch"},{emoji:"\u{1F691}\uFE0F",entity:"🚑",code:":ambulance:",description:"Critical hotfix.",name:"ambulance",semver:"patch"},{emoji:"\u2728",entity:"✨",code:":sparkles:",description:"Introduce new features.",name:"sparkles",semver:"minor"},{emoji:"\u{1F4DD}",entity:"📝",code:":memo:",description:"Add or update documentation.",name:"memo",semver:null},{emoji:"\u{1F680}",entity:"🚀",code:":rocket:",description:"Deploy stuff.",name:"rocket",semver:null},{emoji:"\u{1F484}",entity:"&#ff99cc;",code:":lipstick:",description:"Add or update the UI and style files.",name:"lipstick",semver:"patch"},{emoji:"\u{1F389}",entity:"🎉",code:":tada:",description:"Begin a project.",name:"tada",semver:null},{emoji:"\u2705",entity:"✅",code:":white_check_mark:",description:"Add, update, or pass tests.",name:"white-check-mark",semver:null},{emoji:"\u{1F512}\uFE0F",entity:"🔒",code:":lock:",description:"Fix security issues.",name:"lock",semver:"patch"},{emoji:"\u{1F510}",entity:"🔐",code:":closed_lock_with_key:",description:"Add or update secrets.",name:"closed-lock-with-key",semver:null},{emoji:"\u{1F516}",entity:"🔖",code:":bookmark:",description:"Release / Version tags.",name:"bookmark",semver:null},{emoji:"\u{1F6A8}",entity:"🚨",code:":rotating_light:",description:"Fix compiler / linter warnings.",name:"rotating-light",semver:null},{emoji:"\u{1F6A7}",entity:"🚧",code:":construction:",description:"Work in progress.",name:"construction",semver:null},{emoji:"\u{1F49A}",entity:"💚",code:":green_heart:",description:"Fix CI Build.",name:"green-heart",semver:null},{emoji:"\u2B07\uFE0F",entity:"\u2B07\uFE0F",code:":arrow_down:",description:"Downgrade dependencies.",name:"arrow-down",semver:"patch"},{emoji:"\u2B06\uFE0F",entity:"\u2B06\uFE0F",code:":arrow_up:",description:"Upgrade dependencies.",name:"arrow-up",semver:"patch"},{emoji:"\u{1F4CC}",entity:"📌",code:":pushpin:",description:"Pin dependencies to specific versions.",name:"pushpin",semver:"patch"},{emoji:"\u{1F477}",entity:"👷",code:":construction_worker:",description:"Add or update CI build system.",name:"construction-worker",semver:null},{emoji:"\u{1F4C8}",entity:"📈",code:":chart_with_upwards_trend:",description:"Add or update analytics or track code.",name:"chart-with-upwards-trend",semver:"patch"},{emoji:"\u267B\uFE0F",entity:"♲",code:":recycle:",description:"Refactor code.",name:"recycle",semver:null},{emoji:"\u2795",entity:"➕",code:":heavy_plus_sign:",description:"Add a dependency.",name:"heavy-plus-sign",semver:"patch"},{emoji:"\u2796",entity:"➖",code:":heavy_minus_sign:",description:"Remove a dependency.",name:"heavy-minus-sign",semver:"patch"},{emoji:"\u{1F527}",entity:"🔧",code:":wrench:",description:"Add or update configuration files.",name:"wrench",semver:"patch"},{emoji:"\u{1F528}",entity:"🔨",code:":hammer:",description:"Add or update development scripts.",name:"hammer",semver:null},{emoji:"\u{1F310}",entity:"🌐",code:":globe_with_meridians:",description:"Internationalization and localization.",name:"globe-with-meridians",semver:"patch"},{emoji:"\u270F\uFE0F",entity:"",code:":pencil2:",description:"Fix typos.",name:"pencil2",semver:"patch"},{emoji:"\u{1F4A9}",entity:"",code:":poop:",description:"Write bad code that needs to be improved.",name:"poop",semver:null},{emoji:"\u23EA\uFE0F",entity:"⏪",code:":rewind:",description:"Revert changes.",name:"rewind",semver:"patch"},{emoji:"\u{1F500}",entity:"🔀",code:":twisted_rightwards_arrows:",description:"Merge branches.",name:"twisted-rightwards-arrows",semver:null},{emoji:"\u{1F4E6}\uFE0F",entity:"&#1F4E6;",code:":package:",description:"Add or update compiled files or packages.",name:"package",semver:"patch"},{emoji:"\u{1F47D}\uFE0F",entity:"&#1F47D;",code:":alien:",description:"Update code due to external API changes.",name:"alien",semver:"patch"},{emoji:"\u{1F69A}",entity:"&#1F69A;",code:":truck:",description:"Move or rename resources (e.g.: files, paths, routes).",name:"truck",semver:null},{emoji:"\u{1F4C4}",entity:"&#1F4C4;",code:":page_facing_up:",description:"Add or update license.",name:"page-facing-up",semver:null},{emoji:"\u{1F4A5}",entity:"💥",code:":boom:",description:"Introduce breaking changes.",name:"boom",semver:"major"},{emoji:"\u{1F371}",entity:"&#1F371",code:":bento:",description:"Add or update assets.",name:"bento",semver:"patch"},{emoji:"\u267F\uFE0F",entity:"♿",code:":wheelchair:",description:"Improve accessibility.",name:"wheelchair",semver:"patch"},{emoji:"\u{1F4A1}",entity:"💡",code:":bulb:",description:"Add or update comments in source code.",name:"bulb",semver:null},{emoji:"\u{1F37B}",entity:"🍻",code:":beers:",description:"Write code drunkenly.",name:"beers",semver:null},{emoji:"\u{1F4AC}",entity:"💬",code:":speech_balloon:",description:"Add or update text and literals.",name:"speech-balloon",semver:"patch"},{emoji:"\u{1F5C3}\uFE0F",entity:"🗃",code:":card_file_box:",description:"Perform database related changes.",name:"card-file-box",semver:"patch"},{emoji:"\u{1F50A}",entity:"🔊",code:":loud_sound:",description:"Add or update logs.",name:"loud-sound",semver:null},{emoji:"\u{1F507}",entity:"🔇",code:":mute:",description:"Remove logs.",name:"mute",semver:null},{emoji:"\u{1F465}",entity:"👥",code:":busts_in_silhouette:",description:"Add or update contributor(s).",name:"busts-in-silhouette",semver:null},{emoji:"\u{1F6B8}",entity:"🚸",code:":children_crossing:",description:"Improve user experience / usability.",name:"children-crossing",semver:"patch"},{emoji:"\u{1F3D7}\uFE0F",entity:"&#1f3d7;",code:":building_construction:",description:"Make architectural changes.",name:"building-construction",semver:null},{emoji:"\u{1F4F1}",entity:"📱",code:":iphone:",description:"Work on responsive design.",name:"iphone",semver:"patch"},{emoji:"\u{1F921}",entity:"🤡",code:":clown_face:",description:"Mock things.",name:"clown-face",semver:null},{emoji:"\u{1F95A}",entity:"🥚",code:":egg:",description:"Add or update an easter egg.",name:"egg",semver:"patch"},{emoji:"\u{1F648}",entity:"&#8bdfe7;",code:":see_no_evil:",description:"Add or update a .gitignore file.",name:"see-no-evil",semver:null},{emoji:"\u{1F4F8}",entity:"📸",code:":camera_flash:",description:"Add or update snapshots.",name:"camera-flash",semver:null},{emoji:"\u2697\uFE0F",entity:"📸",code:":alembic:",description:"Perform experiments.",name:"alembic",semver:"patch"},{emoji:"\u{1F50D}\uFE0F",entity:"🔍",code:":mag:",description:"Improve SEO.",name:"mag",semver:"patch"},{emoji:"\u{1F3F7}\uFE0F",entity:"🏷",code:":label:",description:"Add or update types.",name:"label",semver:"patch"},{emoji:"\u{1F331}",entity:"🌱",code:":seedling:",description:"Add or update seed files.",name:"seedling",semver:null},{emoji:"\u{1F6A9}",entity:"🚩",code:":triangular_flag_on_post:",description:"Add, update, or remove feature flags.",name:"triangular-flag-on-post",semver:"patch"},{emoji:"\u{1F945}",entity:"🥅",code:":goal_net:",description:"Catch errors.",name:"goal-net",semver:"patch"},{emoji:"\u{1F4AB}",entity:"💫",code:":dizzy:",description:"Add or update animations and transitions.",name:"animation",semver:"patch"},{emoji:"\u{1F5D1}\uFE0F",entity:"🗑",code:":wastebasket:",description:"Deprecate code that needs to be cleaned up.",name:"wastebasket",semver:"patch"},{emoji:"\u{1F6C2}",entity:"🛂",code:":passport_control:",description:"Work on code related to authorization, roles and permissions.",name:"passport-control",semver:"patch"},{emoji:"\u{1FA79}",entity:"🩹",code:":adhesive_bandage:",description:"Simple fix for a non-critical issue.",name:"adhesive-bandage",semver:"patch"},{emoji:"\u{1F9D0}",entity:"🧐",code:":monocle_face:",description:"Data exploration/inspection.",name:"monocle-face",semver:null},{emoji:"\u26B0\uFE0F",entity:"⚰",code:":coffin:",description:"Remove dead code.",name:"coffin",semver:null},{emoji:"\u{1F9EA}",entity:"🧪",code:":test_tube:",description:"Add a failing test.",name:"test-tube",semver:null},{emoji:"\u{1F454}",entity:"👔",code:":necktie:",description:"Add or update business logic",name:"necktie",semver:"patch"},{emoji:"\u{1FA7A}",entity:"🩺",code:":stethoscope:",description:"Add or update healthcheck.",name:"stethoscope",semver:null},{emoji:"\u{1F9F1}",entity:"🧱",code:":bricks:",description:"Infrastructure related changes.",name:"bricks",semver:null},{emoji:"\u{1F9D1}\u200D\u{1F4BB}",entity:"🧑‍💻",code:":technologist:",description:"Improve developer experience",name:"technologist",semver:null}],I={gitmojis:Q};r();var Y=[{from:"art",to:"style"},{from:"zap",to:"perf"},{from:"fire",to:"prune"},{from:"bug",to:"fix",branch:"fix"},{from:"ambulance",to:"hotfix",branch:"hotfix"},{from:"sparkles",to:"feat",branch:"feature"},{from:"memo",to:"docs"},{from:"rocket",to:"deploy"},{from:"lipstick",to:"ui"},{from:"tada",to:"init",semver:"patch"},{from:"white-check-mark",to:"test",branch:"test"},{from:"lock",to:"security"},{from:"bookmark",to:"release",branch:"release"},{from:"rotating-light",to:"lint"},{from:"construction",to:"wip"},{from:"green-heart",to:"fix-ci"},{from:"arrow-down",to:"downgrade"},{from:"arrow-up",to:"upgrade"},{from:"pushpin",to:"pushpin"},{from:"construction-worker",to:"ci",branch:"ci"},{from:"chart-with-upwards-trend",to:"analytics"},{from:"recycle",to:"refactor",branch:"refactor"},{from:"heavy-plus-sign",to:"dep-add"},{from:"heavy-minus-sign",to:"dep-rm"},{from:"wrench",to:"config"},{from:"hammer",to:"build"},{from:"globe-with-meridians",to:"i18n"},{from:"pencil2",to:"typo"},{from:"poop",to:"poo"},{from:"rewind",to:"revert"},{from:"twisted-rightwards-arrows",to:"merge"},{from:"package",to:"dep-up"},{from:"alien",to:"compat"},{from:"truck",to:"mv"},{from:"page-facing-up",to:"license"},{from:"boom",to:"breaking",semver:"major"},{from:"bento",to:"assets"},{from:"wheelchair",to:"access"},{from:"bulb",to:"docs-code"},{from:"beers",to:"beer"},{from:"speech-balloon",to:"texts"},{from:"card-file-box",to:"db"},{from:"loud-sound",to:"log-add"},{from:"mute",to:"log-rm"},{from:"busts-in-silhouette",to:"contrib-add"},{from:"children-crossing",to:"ux"},{from:"building-construction",to:"arch"},{from:"iphone",to:"iphone"},{from:"clown-face",to:"mock"},{from:"egg",to:"egg"},{from:"see-no-evil",to:"ignore"},{from:"camera-flash",to:"snapshot"},{from:"alembic",to:"experiment"},{from:"mag",to:"seo"},{from:"label",to:"types"},{from:"seedling",to:"seed"},{from:"triangular-flag-on-post",to:"flags"},{from:"goal-net",to:"catch"},{from:"animation",to:"animation"},{from:"wastebasket",to:"clean"},{from:"passport-control",to:"roles"},{from:"adhesive-bandage",to:"patch"},{from:"monocle-face",to:"data"},{from:"coffin",to:"rip"},{from:"test-tube",to:"test-fail"},{from:"necktie",to:"logic"},{from:"stethoscope",to:"healthcheck"},{from:"bricks",to:"inf"},{from:"technologist",to:"dx"},{from:"closed-lock-with-key",to:"secrets"}],S=Y;r();var ee={chore:{branch:"chore",code:":computer_disk:",commit:"chore",description:"Changes that don\u2019t modify src or test files",emoji:"\u{1F4BD}\uFE0F",entity:"💽",name:"computer-disk",semver:null},rollforward:{branch:null,code:":fast_forward:",commit:"rollforward",description:"Create rollforward version.",emoji:"\u23E9\uFE0F",entity:"&#23E9;",name:"rollforward",semver:null},"run-build":{branch:null,code:":rocket:",commit:"run-build",description:"Custom type for CI/CD to hook into run build override.",emoji:"\u{1F680}\uFE0F",entity:"&#1F680;",name:"run-build",semver:"patch"}},f=ee;var{gitmojis:oe}=I,te=()=>(oe.map(e=>{let t=S.find(n=>(n==null?void 0:n.from)===e.name);if(t){let n=t.semver===void 0?(e==null?void 0:e.semver)||null:t.semver||(e==null?void 0:e.semver)||null;f[t.to]={branch:Boolean(t==null?void 0:t.branch)?t.branch:null,code:e==null?void 0:e.code,commit:t.to,description:e==null?void 0:e.description,emoji:e==null?void 0:e.emoji,entity:e==null?void 0:e.entity,name:e==null?void 0:e.name,semver:n?n.replace("fix","patch").replace("feature","minor").replace("breaking","major"):null}}else console.dir(`@todo(conventional-gitmoji) create rewrite for: ${e.name}`)}),Object.keys(f).sort().reduce((e,t)=>(e[t]=f[t],e),{})),A=te;r();var c=[],re=o=>(Object.keys(o).map(e=>{let t=o[e];!!t&&!!t.semver&&(c.push({release:t.semver,type:t==null?void 0:t.code.replace(/(:[^:]*):/g,"$1")}),c.push({release:t.semver,type:t==null?void 0:t.code}),c.push({release:t.semver,type:t.commit}),c.push({release:t.semver,type:t.emoji}))}),c),C=re;r();var U=g(D(),1),O=[],ue=o=>(Object.keys(o).map(e=>{O.push({code:o[e].code,description:(0,U.default)(o[e].description.replace(".","")),emoji:o[e].emoji,semver:o[e].semver,type:o[e].commit,value:o[e].commit})}),O),L=ue;var W=A(),Oe=C(W),x=L(W);var fe=new $.default,he=(o,e)=>{let{type:t}=o,n=x.findIndex(({code:p,emoji:l,type:y,value:v})=>{if(t!==null)return t.replace(/\:/g,"")===p.replace(/\:/g,"")||t===l||t===y||t===v});if(n===-1)return;let i=x[n];o.type=`${i.emoji} ${i.description}`,o.typeSpecIndex=n,o.typeSpec=i,typeof o.hash=="string"&&(o.hash=o.hash.substring(0,7));let a=fe.splitGraphemes(o.subject),d=a[0]===i.emoji?o.subject.replace((0,w.default)(a,[0]),"").replace((0,w.default)(a,[0]),""):o.subject;return o.subject=d.trim(),o},z=he;var ye={transform:(o,e)=>z(o,e),groupBy:"type",commitGroupsSort:["order","title"],commitsSort:["scope","subject"],noteGroupsSort:["title"],notesSort:["title"]},ve=ye;module.exports=K(be);0&&(module.exports={});
@@ -0,0 +1,22 @@
1
+ /**
2
+ * @note (semantic)
3
+ * templates need to be redone away from handlebars
4
+ * and will be replaced by remark or replace string
5
+ */
6
+ /**
7
+ * @todo customize these configs
8
+ *
9
+ * - transform should receive config
10
+ * - all writerOpts should be able to be overwritten
11
+ * - i guess we are going _back_ to handlebars haha
12
+ */
13
+ declare const writerOpts: {
14
+ transform: (commit: any, context: any) => any;
15
+ groupBy: string;
16
+ commitGroupsSort: string[];
17
+ commitsSort: string[];
18
+ noteGroupsSort: string[];
19
+ notesSort: string[];
20
+ };
21
+
22
+ export { writerOpts as default };
@@ -0,0 +1 @@
1
+ var L=Object.create;var b=Object.defineProperty;var U=Object.getOwnPropertyDescriptor;var B=Object.getOwnPropertyNames;var H=Object.getPrototypeOf,J=Object.prototype.hasOwnProperty;var N=o=>b(o,"__esModule",{value:!0});var V=(o,e)=>()=>(o&&(e=o(o=0)),e);var g=(o,e)=>()=>(e||o((e={exports:{}}).exports,e),e.exports);var X=(o,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of B(e))!J.call(o,i)&&(t||i!=="default")&&b(o,i,{get:()=>e[i],enumerable:!(n=U(e,i))||n.enumerable});return o},q=(o,e)=>X(N(b(o!=null?L(H(o)):{},"default",!e&&o&&o.__esModule?{get:()=>o.default,enumerable:!0}:{value:o,enumerable:!0})),o);var r=V(()=>{});var A=g((Ie,S)=>{r();var te=["for","and","nor","but","or","yet","so"],re=["a","an","the"],ne=["aboard","about","above","across","after","against","along","amid","among","anti","around","as","at","before","behind","below","beneath","beside","besides","between","beyond","but","by","concerning","considering","despite","down","during","except","excepting","excluding","following","for","from","in","inside","into","like","minus","near","of","off","on","onto","opposite","over","past","per","plus","regarding","round","save","since","than","through","to","toward","towards","under","underneath","unlike","until","up","upon","versus","via","with","within","without"];S.exports=new Set([...te,...re,...ne])});var P=g((Se,C)=>{r();var ie=["ZEIT","ZEIT Inc.","Vercel","Vercel Inc.","CLI","API","HTTP","HTTPS","JSX","DNS","URL","now.sh","now.json","vercel.app","vercel.json","CI","CD","CDN","package.json","package.lock","yarn.lock","GitHub","GitLab","CSS","Sass","JS","JavaScript","TypeScript","HTML","WordPress","JavaScript","Next.js","Node.js","Webpack","Docker","Bash","Kubernetes","SWR","TinaCMS","UI","UX","TS","TSX","iPhone","iPad","watchOS","iOS","iPadOS","macOS","PHP","composer.json","composer.lock","CMS"];C.exports=ie});var T=g((Ae,F)=>{r();var se=A(),ae=P(),h=`[^\\s'\u2019\\(\\)!?;:"-]`,ce=new RegExp(`(?:(?:(\\s?(?:^|[.\\(\\)!?;:"-])\\s*)(${h}))|(${h}))(${h}*[\u2019']*${h}*)`,"g"),me=o=>o.map(e=>[new RegExp(`\\b${e}\\b`,"gi"),e]);function de(o){let e=o[0];return/\s/.test(e)?o.substr(1):/[\(\)]/.test(e)?null:o}F.exports=(o,e={})=>{o=o.toLowerCase().replace(ce,(c,d="",p,l,u,y,v)=>{let z=c.length+y>=v.length,w=de(c);if(!w)return c;if(!p){let G=l+u;if(se.has(G)&&!z)return w}return d+(l||p).toUpperCase()+u});let t=e.special||[],n=[...ae,...t];return me(n).forEach(([c,d])=>{o=o.replace(c,d)}),o}});r();r();import le from"grapheme-splitter";import W from"lodash/pullAt.js";r();r();var Z=[{emoji:"\u{1F3A8}",entity:"🎨",code:":art:",description:"Improve structure / format of the code.",name:"art",semver:null},{emoji:"\u26A1\uFE0F",entity:"⚡",code:":zap:",description:"Improve performance.",name:"zap",semver:"patch"},{emoji:"\u{1F525}",entity:"🔥",code:":fire:",description:"Remove code or files.",name:"fire",semver:null},{emoji:"\u{1F41B}",entity:"🐛",code:":bug:",description:"Fix a bug.",name:"bug",semver:"patch"},{emoji:"\u{1F691}\uFE0F",entity:"🚑",code:":ambulance:",description:"Critical hotfix.",name:"ambulance",semver:"patch"},{emoji:"\u2728",entity:"✨",code:":sparkles:",description:"Introduce new features.",name:"sparkles",semver:"minor"},{emoji:"\u{1F4DD}",entity:"📝",code:":memo:",description:"Add or update documentation.",name:"memo",semver:null},{emoji:"\u{1F680}",entity:"🚀",code:":rocket:",description:"Deploy stuff.",name:"rocket",semver:null},{emoji:"\u{1F484}",entity:"&#ff99cc;",code:":lipstick:",description:"Add or update the UI and style files.",name:"lipstick",semver:"patch"},{emoji:"\u{1F389}",entity:"🎉",code:":tada:",description:"Begin a project.",name:"tada",semver:null},{emoji:"\u2705",entity:"✅",code:":white_check_mark:",description:"Add, update, or pass tests.",name:"white-check-mark",semver:null},{emoji:"\u{1F512}\uFE0F",entity:"🔒",code:":lock:",description:"Fix security issues.",name:"lock",semver:"patch"},{emoji:"\u{1F510}",entity:"🔐",code:":closed_lock_with_key:",description:"Add or update secrets.",name:"closed-lock-with-key",semver:null},{emoji:"\u{1F516}",entity:"🔖",code:":bookmark:",description:"Release / Version tags.",name:"bookmark",semver:null},{emoji:"\u{1F6A8}",entity:"🚨",code:":rotating_light:",description:"Fix compiler / linter warnings.",name:"rotating-light",semver:null},{emoji:"\u{1F6A7}",entity:"🚧",code:":construction:",description:"Work in progress.",name:"construction",semver:null},{emoji:"\u{1F49A}",entity:"💚",code:":green_heart:",description:"Fix CI Build.",name:"green-heart",semver:null},{emoji:"\u2B07\uFE0F",entity:"\u2B07\uFE0F",code:":arrow_down:",description:"Downgrade dependencies.",name:"arrow-down",semver:"patch"},{emoji:"\u2B06\uFE0F",entity:"\u2B06\uFE0F",code:":arrow_up:",description:"Upgrade dependencies.",name:"arrow-up",semver:"patch"},{emoji:"\u{1F4CC}",entity:"📌",code:":pushpin:",description:"Pin dependencies to specific versions.",name:"pushpin",semver:"patch"},{emoji:"\u{1F477}",entity:"👷",code:":construction_worker:",description:"Add or update CI build system.",name:"construction-worker",semver:null},{emoji:"\u{1F4C8}",entity:"📈",code:":chart_with_upwards_trend:",description:"Add or update analytics or track code.",name:"chart-with-upwards-trend",semver:"patch"},{emoji:"\u267B\uFE0F",entity:"♲",code:":recycle:",description:"Refactor code.",name:"recycle",semver:null},{emoji:"\u2795",entity:"➕",code:":heavy_plus_sign:",description:"Add a dependency.",name:"heavy-plus-sign",semver:"patch"},{emoji:"\u2796",entity:"➖",code:":heavy_minus_sign:",description:"Remove a dependency.",name:"heavy-minus-sign",semver:"patch"},{emoji:"\u{1F527}",entity:"🔧",code:":wrench:",description:"Add or update configuration files.",name:"wrench",semver:"patch"},{emoji:"\u{1F528}",entity:"🔨",code:":hammer:",description:"Add or update development scripts.",name:"hammer",semver:null},{emoji:"\u{1F310}",entity:"🌐",code:":globe_with_meridians:",description:"Internationalization and localization.",name:"globe-with-meridians",semver:"patch"},{emoji:"\u270F\uFE0F",entity:"",code:":pencil2:",description:"Fix typos.",name:"pencil2",semver:"patch"},{emoji:"\u{1F4A9}",entity:"",code:":poop:",description:"Write bad code that needs to be improved.",name:"poop",semver:null},{emoji:"\u23EA\uFE0F",entity:"⏪",code:":rewind:",description:"Revert changes.",name:"rewind",semver:"patch"},{emoji:"\u{1F500}",entity:"🔀",code:":twisted_rightwards_arrows:",description:"Merge branches.",name:"twisted-rightwards-arrows",semver:null},{emoji:"\u{1F4E6}\uFE0F",entity:"&#1F4E6;",code:":package:",description:"Add or update compiled files or packages.",name:"package",semver:"patch"},{emoji:"\u{1F47D}\uFE0F",entity:"&#1F47D;",code:":alien:",description:"Update code due to external API changes.",name:"alien",semver:"patch"},{emoji:"\u{1F69A}",entity:"&#1F69A;",code:":truck:",description:"Move or rename resources (e.g.: files, paths, routes).",name:"truck",semver:null},{emoji:"\u{1F4C4}",entity:"&#1F4C4;",code:":page_facing_up:",description:"Add or update license.",name:"page-facing-up",semver:null},{emoji:"\u{1F4A5}",entity:"💥",code:":boom:",description:"Introduce breaking changes.",name:"boom",semver:"major"},{emoji:"\u{1F371}",entity:"&#1F371",code:":bento:",description:"Add or update assets.",name:"bento",semver:"patch"},{emoji:"\u267F\uFE0F",entity:"♿",code:":wheelchair:",description:"Improve accessibility.",name:"wheelchair",semver:"patch"},{emoji:"\u{1F4A1}",entity:"💡",code:":bulb:",description:"Add or update comments in source code.",name:"bulb",semver:null},{emoji:"\u{1F37B}",entity:"🍻",code:":beers:",description:"Write code drunkenly.",name:"beers",semver:null},{emoji:"\u{1F4AC}",entity:"💬",code:":speech_balloon:",description:"Add or update text and literals.",name:"speech-balloon",semver:"patch"},{emoji:"\u{1F5C3}\uFE0F",entity:"🗃",code:":card_file_box:",description:"Perform database related changes.",name:"card-file-box",semver:"patch"},{emoji:"\u{1F50A}",entity:"🔊",code:":loud_sound:",description:"Add or update logs.",name:"loud-sound",semver:null},{emoji:"\u{1F507}",entity:"🔇",code:":mute:",description:"Remove logs.",name:"mute",semver:null},{emoji:"\u{1F465}",entity:"👥",code:":busts_in_silhouette:",description:"Add or update contributor(s).",name:"busts-in-silhouette",semver:null},{emoji:"\u{1F6B8}",entity:"🚸",code:":children_crossing:",description:"Improve user experience / usability.",name:"children-crossing",semver:"patch"},{emoji:"\u{1F3D7}\uFE0F",entity:"&#1f3d7;",code:":building_construction:",description:"Make architectural changes.",name:"building-construction",semver:null},{emoji:"\u{1F4F1}",entity:"📱",code:":iphone:",description:"Work on responsive design.",name:"iphone",semver:"patch"},{emoji:"\u{1F921}",entity:"🤡",code:":clown_face:",description:"Mock things.",name:"clown-face",semver:null},{emoji:"\u{1F95A}",entity:"🥚",code:":egg:",description:"Add or update an easter egg.",name:"egg",semver:"patch"},{emoji:"\u{1F648}",entity:"&#8bdfe7;",code:":see_no_evil:",description:"Add or update a .gitignore file.",name:"see-no-evil",semver:null},{emoji:"\u{1F4F8}",entity:"📸",code:":camera_flash:",description:"Add or update snapshots.",name:"camera-flash",semver:null},{emoji:"\u2697\uFE0F",entity:"📸",code:":alembic:",description:"Perform experiments.",name:"alembic",semver:"patch"},{emoji:"\u{1F50D}\uFE0F",entity:"🔍",code:":mag:",description:"Improve SEO.",name:"mag",semver:"patch"},{emoji:"\u{1F3F7}\uFE0F",entity:"🏷",code:":label:",description:"Add or update types.",name:"label",semver:"patch"},{emoji:"\u{1F331}",entity:"🌱",code:":seedling:",description:"Add or update seed files.",name:"seedling",semver:null},{emoji:"\u{1F6A9}",entity:"🚩",code:":triangular_flag_on_post:",description:"Add, update, or remove feature flags.",name:"triangular-flag-on-post",semver:"patch"},{emoji:"\u{1F945}",entity:"🥅",code:":goal_net:",description:"Catch errors.",name:"goal-net",semver:"patch"},{emoji:"\u{1F4AB}",entity:"💫",code:":dizzy:",description:"Add or update animations and transitions.",name:"animation",semver:"patch"},{emoji:"\u{1F5D1}\uFE0F",entity:"🗑",code:":wastebasket:",description:"Deprecate code that needs to be cleaned up.",name:"wastebasket",semver:"patch"},{emoji:"\u{1F6C2}",entity:"🛂",code:":passport_control:",description:"Work on code related to authorization, roles and permissions.",name:"passport-control",semver:"patch"},{emoji:"\u{1FA79}",entity:"🩹",code:":adhesive_bandage:",description:"Simple fix for a non-critical issue.",name:"adhesive-bandage",semver:"patch"},{emoji:"\u{1F9D0}",entity:"🧐",code:":monocle_face:",description:"Data exploration/inspection.",name:"monocle-face",semver:null},{emoji:"\u26B0\uFE0F",entity:"⚰",code:":coffin:",description:"Remove dead code.",name:"coffin",semver:null},{emoji:"\u{1F9EA}",entity:"🧪",code:":test_tube:",description:"Add a failing test.",name:"test-tube",semver:null},{emoji:"\u{1F454}",entity:"👔",code:":necktie:",description:"Add or update business logic",name:"necktie",semver:"patch"},{emoji:"\u{1FA7A}",entity:"🩺",code:":stethoscope:",description:"Add or update healthcheck.",name:"stethoscope",semver:null},{emoji:"\u{1F9F1}",entity:"🧱",code:":bricks:",description:"Infrastructure related changes.",name:"bricks",semver:null},{emoji:"\u{1F9D1}\u200D\u{1F4BB}",entity:"🧑‍💻",code:":technologist:",description:"Improve developer experience",name:"technologist",semver:null}],j={gitmojis:Z};r();var K=[{from:"art",to:"style"},{from:"zap",to:"perf"},{from:"fire",to:"prune"},{from:"bug",to:"fix",branch:"fix"},{from:"ambulance",to:"hotfix",branch:"hotfix"},{from:"sparkles",to:"feat",branch:"feature"},{from:"memo",to:"docs"},{from:"rocket",to:"deploy"},{from:"lipstick",to:"ui"},{from:"tada",to:"init",semver:"patch"},{from:"white-check-mark",to:"test",branch:"test"},{from:"lock",to:"security"},{from:"bookmark",to:"release",branch:"release"},{from:"rotating-light",to:"lint"},{from:"construction",to:"wip"},{from:"green-heart",to:"fix-ci"},{from:"arrow-down",to:"downgrade"},{from:"arrow-up",to:"upgrade"},{from:"pushpin",to:"pushpin"},{from:"construction-worker",to:"ci",branch:"ci"},{from:"chart-with-upwards-trend",to:"analytics"},{from:"recycle",to:"refactor",branch:"refactor"},{from:"heavy-plus-sign",to:"dep-add"},{from:"heavy-minus-sign",to:"dep-rm"},{from:"wrench",to:"config"},{from:"hammer",to:"build"},{from:"globe-with-meridians",to:"i18n"},{from:"pencil2",to:"typo"},{from:"poop",to:"poo"},{from:"rewind",to:"revert"},{from:"twisted-rightwards-arrows",to:"merge"},{from:"package",to:"dep-up"},{from:"alien",to:"compat"},{from:"truck",to:"mv"},{from:"page-facing-up",to:"license"},{from:"boom",to:"breaking",semver:"major"},{from:"bento",to:"assets"},{from:"wheelchair",to:"access"},{from:"bulb",to:"docs-code"},{from:"beers",to:"beer"},{from:"speech-balloon",to:"texts"},{from:"card-file-box",to:"db"},{from:"loud-sound",to:"log-add"},{from:"mute",to:"log-rm"},{from:"busts-in-silhouette",to:"contrib-add"},{from:"children-crossing",to:"ux"},{from:"building-construction",to:"arch"},{from:"iphone",to:"iphone"},{from:"clown-face",to:"mock"},{from:"egg",to:"egg"},{from:"see-no-evil",to:"ignore"},{from:"camera-flash",to:"snapshot"},{from:"alembic",to:"experiment"},{from:"mag",to:"seo"},{from:"label",to:"types"},{from:"seedling",to:"seed"},{from:"triangular-flag-on-post",to:"flags"},{from:"goal-net",to:"catch"},{from:"animation",to:"animation"},{from:"wastebasket",to:"clean"},{from:"passport-control",to:"roles"},{from:"adhesive-bandage",to:"patch"},{from:"monocle-face",to:"data"},{from:"coffin",to:"rip"},{from:"test-tube",to:"test-fail"},{from:"necktie",to:"logic"},{from:"stethoscope",to:"healthcheck"},{from:"bricks",to:"inf"},{from:"technologist",to:"dx"},{from:"closed-lock-with-key",to:"secrets"}],R=K;r();var Q={chore:{branch:"chore",code:":computer_disk:",commit:"chore",description:"Changes that don\u2019t modify src or test files",emoji:"\u{1F4BD}\uFE0F",entity:"💽",name:"computer-disk",semver:null},rollforward:{branch:null,code:":fast_forward:",commit:"rollforward",description:"Create rollforward version.",emoji:"\u23E9\uFE0F",entity:"&#23E9;",name:"rollforward",semver:null},"run-build":{branch:null,code:":rocket:",commit:"run-build",description:"Custom type for CI/CD to hook into run build override.",emoji:"\u{1F680}\uFE0F",entity:"&#1F680;",name:"run-build",semver:"patch"}},f=Q;var{gitmojis:Y}=j,ee=()=>(Y.map(e=>{let t=R.find(n=>(n==null?void 0:n.from)===e.name);if(t){let n=t.semver===void 0?(e==null?void 0:e.semver)||null:t.semver||(e==null?void 0:e.semver)||null;f[t.to]={branch:Boolean(t==null?void 0:t.branch)?t.branch:null,code:e==null?void 0:e.code,commit:t.to,description:e==null?void 0:e.description,emoji:e==null?void 0:e.emoji,entity:e==null?void 0:e.entity,name:e==null?void 0:e.name,semver:n?n.replace("fix","patch").replace("feature","minor").replace("breaking","major"):null}}else console.dir(`@todo(conventional-gitmoji) create rewrite for: ${e.name}`)}),Object.keys(f).sort().reduce((e,t)=>(e[t]=f[t],e),{})),_=ee;r();var m=[],oe=o=>(Object.keys(o).map(e=>{let t=o[e];!!t&&!!t.semver&&(m.push({release:t.semver,type:t==null?void 0:t.code.replace(/(:[^:]*):/g,"$1")}),m.push({release:t.semver,type:t==null?void 0:t.code}),m.push({release:t.semver,type:t.commit}),m.push({release:t.semver,type:t.emoji}))}),m),I=oe;r();var D=q(T(),1),E=[],pe=o=>(Object.keys(o).map(e=>{E.push({code:o[e].code,description:(0,D.default)(o[e].description.replace(".","")),emoji:o[e].emoji,semver:o[e].semver,type:o[e].commit,value:o[e].commit})}),E),O=pe;var M=_(),Ee=I(M),x=O(M);var ue=new le,fe=(o,e)=>{let{type:t}=o,n=x.findIndex(({code:l,emoji:u,type:y,value:v})=>{if(t!==null)return t.replace(/\:/g,"")===l.replace(/\:/g,"")||t===u||t===y||t===v});if(n===-1)return;let i=x[n];o.type=`${i.emoji} ${i.description}`,o.typeSpecIndex=n,o.typeSpec=i,typeof o.hash=="string"&&(o.hash=o.hash.substring(0,7));let c=ue.splitGraphemes(o.subject),p=c[0]===i.emoji?o.subject.replace(W(c,[0]),"").replace(W(c,[0]),""):o.subject;return o.subject=p.trim(),o},$=fe;var he={transform:(o,e)=>$(o,e),groupBy:"type",commitGroupsSort:["order","title"],commitsSort:["scope","subject"],noteGroupsSort:["title"],notesSort:["title"]},Ge=he;export{Ge as default};
File without changes
File without changes
File without changes
package/config/types.cjs CHANGED
@@ -1 +1 @@
1
- var t=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var c=r=>t(r,"__esModule",{value:!0});var d=(r,e)=>{for(var o in e)t(r,o,{get:e[o],enumerable:!0})},m=(r,e,o,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of s(e))!l.call(r,n)&&(o||n!=="default")&&t(r,n,{get:()=>e[n],enumerable:!(i=a(e,n))||i.enumerable});return r};var u=(r=>(e,o)=>r&&r.get(e)||(o=m(c({}),e,1),r&&r.set(e,o),o))(typeof WeakMap!="undefined"?new WeakMap:0);var y={};d(y,{default:()=>p});var f={chore:{branch:"chore",code:":computer_disk:",commit:"chore",description:"Changes that don\u2019t modify src or test files",emoji:"\u{1F4BD}\uFE0F",entity:"💽",name:"computer-disk",semver:null},rollforward:{branch:!1,code:":fast_forward:",commit:"rollforward",description:"Create rollforward version.",emoji:"\u23E9\uFE0F",entity:"&#23E9;",name:"rollforward",semver:null},"run-build":{branch:!1,code:":rocket:",commit:"run-build",description:"Custom type for CI/CD to hook into run build override.",emoji:"\u{1F680}\uFE0F",entity:"&#1F680;",name:"run-build",semver:"patch"}},p=f;module.exports=u(y);0&&(module.exports={});
1
+ var i=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var m=r=>i(r,"__esModule",{value:!0});var s=(r,e)=>{for(var o in e)i(r,o,{get:e[o],enumerable:!0})},a=(r,e,o,l)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of d(e))!c.call(r,t)&&(o||t!=="default")&&i(r,t,{get:()=>e[t],enumerable:!(l=n(e,t))||l.enumerable});return r};var u=(r=>(e,o)=>r&&r.get(e)||(o=a(m({}),e,1),r&&r.set(e,o),o))(typeof WeakMap!="undefined"?new WeakMap:0);var h={};s(h,{default:()=>p});var f={chore:{branch:"chore",code:":computer_disk:",commit:"chore",description:"Changes that don\u2019t modify src or test files",emoji:"\u{1F4BD}\uFE0F",entity:"💽",name:"computer-disk",semver:null},rollforward:{branch:null,code:":fast_forward:",commit:"rollforward",description:"Create rollforward version.",emoji:"\u23E9\uFE0F",entity:"&#23E9;",name:"rollforward",semver:null},"run-build":{branch:null,code:":rocket:",commit:"run-build",description:"Custom type for CI/CD to hook into run build override.",emoji:"\u{1F680}\uFE0F",entity:"&#1F680;",name:"run-build",semver:"patch"}},p=f;module.exports=u(h);0&&(module.exports={});
package/config/types.d.ts CHANGED
@@ -1,18 +1,17 @@
1
+ import { IReleaseRule } from '../types/releaseRule.types';
2
+ import '../types/commit.types';
3
+
1
4
  /**
2
- * @note default from git-cz
5
+ * @note
6
+ * These are _additional_ types on top of base Gitmoji
7
+ *
8
+ * @todo
9
+ * - These should be accepted through a config for use by:
10
+ * - @jeromefitz/git-cz
11
+ * - @jeromefitz/semantic
12
+ * - @jeromefitz/release-notes
13
+ *
3
14
  */
4
- declare type TypesProps = {
5
- [x: string]: {
6
- branch: string | boolean | null | undefined;
7
- code: any | null;
8
- commit: any;
9
- description: any;
10
- emoji: any;
11
- entity: string;
12
- name: string;
13
- semver: 'breaking' | 'feature' | 'fix' | 'major' | 'minor' | 'patch' | null;
14
- };
15
- };
16
- declare const types: TypesProps;
15
+ declare const types: IReleaseRule;
17
16
 
18
17
  export { types as default };
package/config/types.js CHANGED
@@ -1 +1 @@
1
- var e={chore:{branch:"chore",code:":computer_disk:",commit:"chore",description:"Changes that don\u2019t modify src or test files",emoji:"\u{1F4BD}\uFE0F",entity:"💽",name:"computer-disk",semver:null},rollforward:{branch:!1,code:":fast_forward:",commit:"rollforward",description:"Create rollforward version.",emoji:"\u23E9\uFE0F",entity:"&#23E9;",name:"rollforward",semver:null},"run-build":{branch:!1,code:":rocket:",commit:"run-build",description:"Custom type for CI/CD to hook into run build override.",emoji:"\u{1F680}\uFE0F",entity:"&#1F680;",name:"run-build",semver:"patch"}},n=e;export{n as default};
1
+ var e={chore:{branch:"chore",code:":computer_disk:",commit:"chore",description:"Changes that don\u2019t modify src or test files",emoji:"\u{1F4BD}\uFE0F",entity:"💽",name:"computer-disk",semver:null},rollforward:{branch:null,code:":fast_forward:",commit:"rollforward",description:"Create rollforward version.",emoji:"\u23E9\uFE0F",entity:"&#23E9;",name:"rollforward",semver:null},"run-build":{branch:null,code:":rocket:",commit:"run-build",description:"Custom type for CI/CD to hook into run build override.",emoji:"\u{1F680}\uFE0F",entity:"&#1F680;",name:"run-build",semver:"patch"}},t=e;export{t as default};
package/index.cjs CHANGED
@@ -1 +1 @@
1
- var W=Object.create;var c=Object.defineProperty;var z=Object.getOwnPropertyDescriptor;var O=Object.getOwnPropertyNames;var $=Object.getPrototypeOf,B=Object.prototype.hasOwnProperty;var x=e=>c(e,"__esModule",{value:!0});var H=(e,o)=>()=>(e&&(o=e(e=0)),o);var m=(e,o)=>()=>(o||e((o={exports:{}}).exports,o),o.exports),G=(e,o)=>{for(var t in o)c(e,t,{get:o[t],enumerable:!0})},w=(e,o,t,a)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of O(o))!B.call(e,i)&&(t||i!=="default")&&c(e,i,{get:()=>o[i],enumerable:!(a=z(o,i))||a.enumerable});return e},J=(e,o)=>w(x(c(e!=null?W($(e)):{},"default",!o&&e&&e.__esModule?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),N=(e=>(o,t)=>e&&e.get(o)||(t=w(x({}),o,1),e&&e.set(o,t),t))(typeof WeakMap!="undefined"?new WeakMap:0);var r=H(()=>{});var j=m((ge,X)=>{X.exports={gitmojis:[{emoji:"\u{1F3A8}",entity:"🎨",code:":art:",description:"Improve structure / format of the code.",name:"art",semver:null},{emoji:"\u26A1\uFE0F",entity:"⚡",code:":zap:",description:"Improve performance.",name:"zap",semver:"patch"},{emoji:"\u{1F525}",entity:"🔥",code:":fire:",description:"Remove code or files.",name:"fire",semver:null},{emoji:"\u{1F41B}",entity:"🐛",code:":bug:",description:"Fix a bug.",name:"bug",semver:"patch"},{emoji:"\u{1F691}\uFE0F",entity:"🚑",code:":ambulance:",description:"Critical hotfix.",name:"ambulance",semver:"patch"},{emoji:"\u2728",entity:"✨",code:":sparkles:",description:"Introduce new features.",name:"sparkles",semver:"minor"},{emoji:"\u{1F4DD}",entity:"📝",code:":memo:",description:"Add or update documentation.",name:"memo",semver:null},{emoji:"\u{1F680}",entity:"🚀",code:":rocket:",description:"Deploy stuff.",name:"rocket",semver:null},{emoji:"\u{1F484}",entity:"&#ff99cc;",code:":lipstick:",description:"Add or update the UI and style files.",name:"lipstick",semver:"patch"},{emoji:"\u{1F389}",entity:"🎉",code:":tada:",description:"Begin a project.",name:"tada",semver:null},{emoji:"\u2705",entity:"✅",code:":white_check_mark:",description:"Add, update, or pass tests.",name:"white-check-mark",semver:null},{emoji:"\u{1F512}\uFE0F",entity:"🔒",code:":lock:",description:"Fix security issues.",name:"lock",semver:"patch"},{emoji:"\u{1F510}",entity:"🔐",code:":closed_lock_with_key:",description:"Add or update secrets.",name:"closed-lock-with-key",semver:null},{emoji:"\u{1F516}",entity:"🔖",code:":bookmark:",description:"Release / Version tags.",name:"bookmark",semver:null},{emoji:"\u{1F6A8}",entity:"🚨",code:":rotating_light:",description:"Fix compiler / linter warnings.",name:"rotating-light",semver:null},{emoji:"\u{1F6A7}",entity:"🚧",code:":construction:",description:"Work in progress.",name:"construction",semver:null},{emoji:"\u{1F49A}",entity:"💚",code:":green_heart:",description:"Fix CI Build.",name:"green-heart",semver:null},{emoji:"\u2B07\uFE0F",entity:"\u2B07\uFE0F",code:":arrow_down:",description:"Downgrade dependencies.",name:"arrow-down",semver:"patch"},{emoji:"\u2B06\uFE0F",entity:"\u2B06\uFE0F",code:":arrow_up:",description:"Upgrade dependencies.",name:"arrow-up",semver:"patch"},{emoji:"\u{1F4CC}",entity:"📌",code:":pushpin:",description:"Pin dependencies to specific versions.",name:"pushpin",semver:"patch"},{emoji:"\u{1F477}",entity:"👷",code:":construction_worker:",description:"Add or update CI build system.",name:"construction-worker",semver:null},{emoji:"\u{1F4C8}",entity:"📈",code:":chart_with_upwards_trend:",description:"Add or update analytics or track code.",name:"chart-with-upwards-trend",semver:"patch"},{emoji:"\u267B\uFE0F",entity:"♲",code:":recycle:",description:"Refactor code.",name:"recycle",semver:null},{emoji:"\u2795",entity:"➕",code:":heavy_plus_sign:",description:"Add a dependency.",name:"heavy-plus-sign",semver:"patch"},{emoji:"\u2796",entity:"➖",code:":heavy_minus_sign:",description:"Remove a dependency.",name:"heavy-minus-sign",semver:"patch"},{emoji:"\u{1F527}",entity:"🔧",code:":wrench:",description:"Add or update configuration files.",name:"wrench",semver:"patch"},{emoji:"\u{1F528}",entity:"🔨",code:":hammer:",description:"Add or update development scripts.",name:"hammer",semver:null},{emoji:"\u{1F310}",entity:"🌐",code:":globe_with_meridians:",description:"Internationalization and localization.",name:"globe-with-meridians",semver:"patch"},{emoji:"\u270F\uFE0F",entity:"",code:":pencil2:",description:"Fix typos.",name:"pencil2",semver:"patch"},{emoji:"\u{1F4A9}",entity:"",code:":poop:",description:"Write bad code that needs to be improved.",name:"poop",semver:null},{emoji:"\u23EA\uFE0F",entity:"⏪",code:":rewind:",description:"Revert changes.",name:"rewind",semver:"patch"},{emoji:"\u{1F500}",entity:"🔀",code:":twisted_rightwards_arrows:",description:"Merge branches.",name:"twisted-rightwards-arrows",semver:null},{emoji:"\u{1F4E6}\uFE0F",entity:"&#1F4E6;",code:":package:",description:"Add or update compiled files or packages.",name:"package",semver:"patch"},{emoji:"\u{1F47D}\uFE0F",entity:"&#1F47D;",code:":alien:",description:"Update code due to external API changes.",name:"alien",semver:"patch"},{emoji:"\u{1F69A}",entity:"&#1F69A;",code:":truck:",description:"Move or rename resources (e.g.: files, paths, routes).",name:"truck",semver:null},{emoji:"\u{1F4C4}",entity:"&#1F4C4;",code:":page_facing_up:",description:"Add or update license.",name:"page-facing-up",semver:null},{emoji:"\u{1F4A5}",entity:"💥",code:":boom:",description:"Introduce breaking changes.",name:"boom",semver:"major"},{emoji:"\u{1F371}",entity:"&#1F371",code:":bento:",description:"Add or update assets.",name:"bento",semver:"patch"},{emoji:"\u267F\uFE0F",entity:"♿",code:":wheelchair:",description:"Improve accessibility.",name:"wheelchair",semver:"patch"},{emoji:"\u{1F4A1}",entity:"💡",code:":bulb:",description:"Add or update comments in source code.",name:"bulb",semver:null},{emoji:"\u{1F37B}",entity:"🍻",code:":beers:",description:"Write code drunkenly.",name:"beers",semver:null},{emoji:"\u{1F4AC}",entity:"💬",code:":speech_balloon:",description:"Add or update text and literals.",name:"speech-balloon",semver:"patch"},{emoji:"\u{1F5C3}\uFE0F",entity:"🗃",code:":card_file_box:",description:"Perform database related changes.",name:"card-file-box",semver:"patch"},{emoji:"\u{1F50A}",entity:"🔊",code:":loud_sound:",description:"Add or update logs.",name:"loud-sound",semver:null},{emoji:"\u{1F507}",entity:"🔇",code:":mute:",description:"Remove logs.",name:"mute",semver:null},{emoji:"\u{1F465}",entity:"👥",code:":busts_in_silhouette:",description:"Add or update contributor(s).",name:"busts-in-silhouette",semver:null},{emoji:"\u{1F6B8}",entity:"🚸",code:":children_crossing:",description:"Improve user experience / usability.",name:"children-crossing",semver:"patch"},{emoji:"\u{1F3D7}\uFE0F",entity:"&#1f3d7;",code:":building_construction:",description:"Make architectural changes.",name:"building-construction",semver:null},{emoji:"\u{1F4F1}",entity:"📱",code:":iphone:",description:"Work on responsive design.",name:"iphone",semver:"patch"},{emoji:"\u{1F921}",entity:"🤡",code:":clown_face:",description:"Mock things.",name:"clown-face",semver:null},{emoji:"\u{1F95A}",entity:"🥚",code:":egg:",description:"Add or update an easter egg.",name:"egg",semver:"patch"},{emoji:"\u{1F648}",entity:"&#8bdfe7;",code:":see_no_evil:",description:"Add or update a .gitignore file.",name:"see-no-evil",semver:null},{emoji:"\u{1F4F8}",entity:"📸",code:":camera_flash:",description:"Add or update snapshots.",name:"camera-flash",semver:null},{emoji:"\u2697\uFE0F",entity:"📸",code:":alembic:",description:"Perform experiments.",name:"alembic",semver:"patch"},{emoji:"\u{1F50D}\uFE0F",entity:"🔍",code:":mag:",description:"Improve SEO.",name:"mag",semver:"patch"},{emoji:"\u{1F3F7}\uFE0F",entity:"🏷",code:":label:",description:"Add or update types.",name:"label",semver:"patch"},{emoji:"\u{1F331}",entity:"🌱",code:":seedling:",description:"Add or update seed files.",name:"seedling",semver:null},{emoji:"\u{1F6A9}",entity:"🚩",code:":triangular_flag_on_post:",description:"Add, update, or remove feature flags.",name:"triangular-flag-on-post",semver:"patch"},{emoji:"\u{1F945}",entity:"🥅",code:":goal_net:",description:"Catch errors.",name:"goal-net",semver:"patch"},{emoji:"\u{1F4AB}",entity:"💫",code:":dizzy:",description:"Add or update animations and transitions.",name:"animation",semver:"patch"},{emoji:"\u{1F5D1}\uFE0F",entity:"🗑",code:":wastebasket:",description:"Deprecate code that needs to be cleaned up.",name:"wastebasket",semver:"patch"},{emoji:"\u{1F6C2}",entity:"🛂",code:":passport_control:",description:"Work on code related to authorization, roles and permissions.",name:"passport-control",semver:"patch"},{emoji:"\u{1FA79}",entity:"🩹",code:":adhesive_bandage:",description:"Simple fix for a non-critical issue.",name:"adhesive-bandage",semver:"patch"},{emoji:"\u{1F9D0}",entity:"🧐",code:":monocle_face:",description:"Data exploration/inspection.",name:"monocle-face",semver:null},{emoji:"\u26B0\uFE0F",entity:"⚰",code:":coffin:",description:"Remove dead code.",name:"coffin",semver:null},{emoji:"\u{1F9EA}",entity:"🧪",code:":test_tube:",description:"Add a failing test.",name:"test-tube",semver:null},{emoji:"\u{1F454}",entity:"👔",code:":necktie:",description:"Add or update business logic",name:"necktie",semver:"patch"},{emoji:"\u{1FA7A}",entity:"🩺",code:":stethoscope:",description:"Add or update healthcheck.",name:"stethoscope",semver:null},{emoji:"\u{1F9F1}",entity:"🧱",code:":bricks:",description:"Infrastructure related changes.",name:"bricks",semver:null},{emoji:"\u{1F9D1}\u200D\u{1F4BB}",entity:"🧑‍💻",code:":technologist:",description:"Improve developer experience",name:"technologist",semver:null}]}});var S=m((ke,A)=>{r();var Y=["for","and","nor","but","or","yet","so"],ee=["a","an","the"],oe=["aboard","about","above","across","after","against","along","amid","among","anti","around","as","at","before","behind","below","beneath","beside","besides","between","beyond","but","by","concerning","considering","despite","down","during","except","excepting","excluding","following","for","from","in","inside","into","like","minus","near","of","off","on","onto","opposite","over","past","per","plus","regarding","round","save","since","than","through","to","toward","towards","under","underneath","unlike","until","up","upon","versus","via","with","within","without"];A.exports=new Set([...Y,...ee,...oe])});var P=m((je,R)=>{r();var te=["ZEIT","ZEIT Inc.","Vercel","Vercel Inc.","CLI","API","HTTP","HTTPS","JSX","DNS","URL","now.sh","now.json","vercel.app","vercel.json","CI","CD","CDN","package.json","package.lock","yarn.lock","GitHub","GitLab","CSS","Sass","JS","JavaScript","TypeScript","HTML","WordPress","JavaScript","Next.js","Node.js","Webpack","Docker","Bash","Kubernetes","SWR","TinaCMS","UI","UX","TS","TSX","iPhone","iPad","watchOS","iOS","iPadOS","macOS","PHP","composer.json","composer.lock","CMS"];R.exports=te});var I=m((_e,C)=>{r();var re=S(),ne=P(),l=`[^\\s'\u2019\\(\\)!?;:"-]`,ie=new RegExp(`(?:(?:(\\s?(?:^|[.\\(\\)!?;:"-])\\s*)(${l}))|(${l}))(${l}*[\u2019']*${l}*)`,"g"),se=e=>e.map(o=>[new RegExp(`\\b${o}\\b`,"gi"),o]);function ae(e){let o=e[0];return/\s/.test(o)?e.substr(1):/[\(\)]/.test(o)?null:e}C.exports=(e,o={})=>{e=e.toLowerCase().replace(ie,(s,u="",v,g,b,E,U)=>{let M=s.length+E>=U.length,y=ae(s);if(!y)return s;if(!v){let L=g+b;if(re.has(L)&&!M)return y}return u+(g||v).toUpperCase()+b});let t=o.special||[],a=[...ne,...t];return se(a).forEach(([s,u])=>{e=e.replace(s,u)}),e}});var le={};G(le,{default:()=>pe,releaseRules:()=>me,typeSpecs:()=>de,types:()=>h});r();r();r();var q=[{from:"art",to:"style"},{from:"zap",to:"perf"},{from:"fire",to:"prune"},{from:"bug",to:"fix",branch:"fix"},{from:"ambulance",to:"hotfix",branch:"hotfix"},{from:"sparkles",to:"feat",branch:"feature"},{from:"memo",to:"docs"},{from:"rocket",to:"deploy"},{from:"lipstick",to:"ui"},{from:"tada",to:"init",semver:"patch"},{from:"white-check-mark",to:"test",branch:"test"},{from:"lock",to:"security"},{from:"bookmark",to:"release",branch:"release"},{from:"rotating-light",to:"lint"},{from:"construction",to:"wip"},{from:"green-heart",to:"fix-ci"},{from:"arrow-down",to:"downgrade"},{from:"arrow-up",to:"upgrade"},{from:"pushpin",to:"pushpin"},{from:"construction-worker",to:"ci",branch:"ci"},{from:"chart-with-upwards-trend",to:"analytics"},{from:"recycle",to:"refactor",branch:"refactor"},{from:"heavy-plus-sign",to:"dep-add"},{from:"heavy-minus-sign",to:"dep-rm"},{from:"wrench",to:"config"},{from:"hammer",to:"build"},{from:"globe-with-meridians",to:"i18n"},{from:"pencil2",to:"typo"},{from:"poop",to:"poo"},{from:"rewind",to:"revert"},{from:"twisted-rightwards-arrows",to:"merge"},{from:"package",to:"dep-up"},{from:"alien",to:"compat"},{from:"truck",to:"mv"},{from:"page-facing-up",to:"license"},{from:"boom",to:"breaking",semver:"major"},{from:"bento",to:"assets"},{from:"wheelchair",to:"access"},{from:"bulb",to:"docs-code"},{from:"beers",to:"beer"},{from:"speech-balloon",to:"texts"},{from:"card-file-box",to:"db"},{from:"loud-sound",to:"log-add"},{from:"mute",to:"log-rm"},{from:"busts-in-silhouette",to:"contrib-add"},{from:"children-crossing",to:"ux"},{from:"building-construction",to:"arch"},{from:"iphone",to:"iphone"},{from:"clown-face",to:"mock"},{from:"egg",to:"egg"},{from:"see-no-evil",to:"ignore"},{from:"camera-flash",to:"snapshot"},{from:"alembic",to:"experiment"},{from:"mag",to:"seo"},{from:"label",to:"types"},{from:"seedling",to:"seed"},{from:"triangular-flag-on-post",to:"flags"},{from:"goal-net",to:"catch"},{from:"animation",to:"animation"},{from:"wastebasket",to:"clean"},{from:"passport-control",to:"roles"},{from:"adhesive-bandage",to:"patch"},{from:"monocle-face",to:"data"},{from:"coffin",to:"rip"},{from:"test-tube",to:"test-fail"},{from:"necktie",to:"logic"},{from:"stethoscope",to:"healthcheck"},{from:"bricks",to:"inf"},{from:"technologist",to:"dx"},{from:"closed-lock-with-key",to:"secrets"}],k=q;r();var V={chore:{branch:"chore",code:":computer_disk:",commit:"chore",description:"Changes that don\u2019t modify src or test files",emoji:"\u{1F4BD}\uFE0F",entity:"💽",name:"computer-disk",semver:null},rollforward:{branch:!1,code:":fast_forward:",commit:"rollforward",description:"Create rollforward version.",emoji:"\u23E9\uFE0F",entity:"&#23E9;",name:"rollforward",semver:null},"run-build":{branch:!1,code:":rocket:",commit:"run-build",description:"Custom type for CI/CD to hook into run build override.",emoji:"\u{1F680}\uFE0F",entity:"&#1F680;",name:"run-build",semver:"patch"}},d=V;var Z=j().gitmojis,K=()=>(Z.map(e=>{let o=k.find(t=>(t==null?void 0:t.from)===e.name);if(o){let t=o.semver===void 0?(e==null?void 0:e.semver)||null:o.semver||(e==null?void 0:e.semver)||null;d[o.to]={branch:Boolean(o==null?void 0:o.branch)?o.branch:!1,code:e==null?void 0:e.code,commit:o.to,description:e==null?void 0:e.description,emoji:e==null?void 0:e.emoji,entity:e==null?void 0:e.entity,name:e==null?void 0:e.name,semver:t?t.replace("fix","patch").replace("feature","minor").replace("breaking","major"):null}}else console.dir(`@todo(conventional-gitmoji) create rewrite for: ${e.name}`)}),Object.keys(d).sort().reduce((e,o)=>(e[o]=d[o],e),{})),f=K;r();var p=[],Q=e=>(Object.keys(e).map(o=>{var t;p.push({release:e[o].semver,type:!!e[o]&&((t=e[o])==null?void 0:t.code.replace(/(:[^:]*):/g,"$1"))}),p.push({release:e[o].semver,type:e[o].commit}),p.push({release:e[o].semver,type:e[o].emoji})}),p),_=Q;r();var F=J(I(),1),T=[],ce=e=>(Object.keys(e).map(o=>{T.push({code:e[o].code,description:(0,F.default)(e[o].description.replace(".","")),emoji:e[o].emoji,semver:e[o].semver,type:e[o].commit,value:e[o].commit})}),T),D=ce;var h=f(),me=_(h),de=D(h);var pe=f;module.exports=N(le);0&&(module.exports={releaseRules,typeSpecs,types});
1
+ var q=Object.create;var f=Object.defineProperty;var Z=Object.getOwnPropertyDescriptor;var Q=Object.getOwnPropertyNames;var Y=Object.getPrototypeOf,ee=Object.prototype.hasOwnProperty;var A=o=>f(o,"__esModule",{value:!0});var oe=(o,e)=>()=>(o&&(e=o(o=0)),e);var w=(o,e)=>()=>(e||o((e={exports:{}}).exports,e),e.exports),te=(o,e)=>{for(var t in e)f(o,t,{get:e[t],enumerable:!0})},S=(o,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Q(e))!ee.call(o,i)&&(t||i!=="default")&&f(o,i,{get:()=>e[i],enumerable:!(n=Z(e,i))||n.enumerable});return o},k=(o,e)=>S(A(f(o!=null?q(Y(o)):{},"default",!e&&o&&o.__esModule?{get:()=>o.default,enumerable:!0}:{value:o,enumerable:!0})),o),re=(o=>(e,t)=>o&&o.get(e)||(t=S(A({}),e,1),o&&o.set(e,t),t))(typeof WeakMap!="undefined"?new WeakMap:0);var r=oe(()=>{});var N=w((so,M)=>{r();var be=["for","and","nor","but","or","yet","so"],ge=["a","an","the"],xe=["aboard","about","above","across","after","against","along","amid","among","anti","around","as","at","before","behind","below","beneath","beside","besides","between","beyond","but","by","concerning","considering","despite","down","during","except","excepting","excluding","following","for","from","in","inside","into","like","minus","near","of","off","on","onto","opposite","over","past","per","plus","regarding","round","save","since","than","through","to","toward","towards","under","underneath","unlike","until","up","upon","versus","via","with","within","without"];M.exports=new Set([...be,...ge,...xe])});var H=w((ao,U)=>{r();var we=["ZEIT","ZEIT Inc.","Vercel","Vercel Inc.","CLI","API","HTTP","HTTPS","JSX","DNS","URL","now.sh","now.json","vercel.app","vercel.json","CI","CD","CDN","package.json","package.lock","yarn.lock","GitHub","GitLab","CSS","Sass","JS","JavaScript","TypeScript","HTML","WordPress","JavaScript","Next.js","Node.js","Webpack","Docker","Bash","Kubernetes","SWR","TinaCMS","UI","UX","TS","TSX","iPhone","iPad","watchOS","iOS","iPadOS","macOS","PHP","composer.json","composer.lock","CMS"];U.exports=we});var W=w((co,L)=>{r();var ke=N(),je=H(),b=`[^\\s'\u2019\\(\\)!?;:"-]`,Re=new RegExp(`(?:(?:(\\s?(?:^|[.\\(\\)!?;:"-])\\s*)(${b}))|(${b}))(${b}*[\u2019']*${b}*)`,"g"),Ie=o=>o.map(e=>[new RegExp(`\\b${e}\\b`,"gi"),e]);function _e(o){let e=o[0];return/\s/.test(e)?o.substr(1):/[\(\)]/.test(e)?null:o}L.exports=(o,e={})=>{o=o.toLowerCase().replace(Re,(a,d="",p,l,u,g,x)=>{let V=a.length+g>=x.length,_=_e(a);if(!_)return a;if(!p){let X=l+u;if(ke.has(X)&&!V)return _}return d+(l||p).toUpperCase()+u});let t=e.special||[],n=[...je,...t];return Ie(n).forEach(([a,d])=>{o=o.replace(a,d)}),o}});var Fe={};te(Fe,{default:()=>Ee,parserOpts:()=>Se,releaseRules:()=>Pe,typeSpecs:()=>h,types:()=>I,writerOpts:()=>Ce});r();r();r();r();var ne={headerPattern:/^(.*?)(?:\((.*)\))?:?\s(.*)$/,headerCorrespondence:["type","scope","subject","ticket"],noteKeywords:["BREAKING CHANGE","BREAKING CHANGES"],revertPattern:/^Revert\s"([\s\S]*)"\s*This reverts commit (\w*)\./,issuePrefixes:["1b9fe48b-292c-46e7-bfde-0599639d0ec0"],referenceActions:["b6db85c1-4860-4275-88e3-bd9917a0b29f"]},c=ne;r();r();var C=k(require("grapheme-splitter"),1),j=k(require("lodash/pullAt.js"),1);var ie=new C.default,se=(o,e)=>{let{type:t}=o,n=h.findIndex(({code:l,emoji:u,type:g,value:x})=>{if(t!==null)return t.replace(/\:/g,"")===l.replace(/\:/g,"")||t===u||t===g||t===x});if(n===-1)return;let i=h[n];o.type=`${i.emoji} ${i.description}`,o.typeSpecIndex=n,o.typeSpec=i,typeof o.hash=="string"&&(o.hash=o.hash.substring(0,7));let a=ie.splitGraphemes(o.subject),p=a[0]===i.emoji?o.subject.replace((0,j.default)(a,[0]),"").replace((0,j.default)(a,[0]),""):o.subject;return o.subject=p.trim(),o},P=se;var ae={transform:(o,e)=>P(o,e),groupBy:"type",commitGroupsSort:["order","title"],commitsSort:["scope","subject"],noteGroupsSort:["title"],notesSort:["title"]},y=ae;var ce={parserOpts:c,writerOpts:y},E=ce;r();var me={parserOpts:c,whatBump:o=>{let e=2,t=0,n=0;return o.forEach(i=>{i.notes.length>0?(t+=i.notes.length,e=0):i.type==="feat"&&(n+=1,e===2&&(e=1))}),{level:e,reason:t===1?`There is ${t} BREAKING CHANGE and ${n} features`:`There are ${t} BREAKING CHANGES and ${n} features`}}},F=me;r();var de={format:"%B%n-hash-%n%H%n-gitTags-%n%d%n-committerDate-%n%ci%n-authorName-%n%an%n-authorEmail-%n%ae"},O=de;var pe={conventionalChangelog:E,parserOpts:c,recommendedBumpOpts:F,writerOpts:y,gitRawCommitsOpts:O},R=pe;r();var le=[{emoji:"\u{1F3A8}",entity:"🎨",code:":art:",description:"Improve structure / format of the code.",name:"art",semver:null},{emoji:"\u26A1\uFE0F",entity:"⚡",code:":zap:",description:"Improve performance.",name:"zap",semver:"patch"},{emoji:"\u{1F525}",entity:"🔥",code:":fire:",description:"Remove code or files.",name:"fire",semver:null},{emoji:"\u{1F41B}",entity:"🐛",code:":bug:",description:"Fix a bug.",name:"bug",semver:"patch"},{emoji:"\u{1F691}\uFE0F",entity:"🚑",code:":ambulance:",description:"Critical hotfix.",name:"ambulance",semver:"patch"},{emoji:"\u2728",entity:"✨",code:":sparkles:",description:"Introduce new features.",name:"sparkles",semver:"minor"},{emoji:"\u{1F4DD}",entity:"📝",code:":memo:",description:"Add or update documentation.",name:"memo",semver:null},{emoji:"\u{1F680}",entity:"🚀",code:":rocket:",description:"Deploy stuff.",name:"rocket",semver:null},{emoji:"\u{1F484}",entity:"&#ff99cc;",code:":lipstick:",description:"Add or update the UI and style files.",name:"lipstick",semver:"patch"},{emoji:"\u{1F389}",entity:"🎉",code:":tada:",description:"Begin a project.",name:"tada",semver:null},{emoji:"\u2705",entity:"✅",code:":white_check_mark:",description:"Add, update, or pass tests.",name:"white-check-mark",semver:null},{emoji:"\u{1F512}\uFE0F",entity:"🔒",code:":lock:",description:"Fix security issues.",name:"lock",semver:"patch"},{emoji:"\u{1F510}",entity:"🔐",code:":closed_lock_with_key:",description:"Add or update secrets.",name:"closed-lock-with-key",semver:null},{emoji:"\u{1F516}",entity:"🔖",code:":bookmark:",description:"Release / Version tags.",name:"bookmark",semver:null},{emoji:"\u{1F6A8}",entity:"🚨",code:":rotating_light:",description:"Fix compiler / linter warnings.",name:"rotating-light",semver:null},{emoji:"\u{1F6A7}",entity:"🚧",code:":construction:",description:"Work in progress.",name:"construction",semver:null},{emoji:"\u{1F49A}",entity:"💚",code:":green_heart:",description:"Fix CI Build.",name:"green-heart",semver:null},{emoji:"\u2B07\uFE0F",entity:"\u2B07\uFE0F",code:":arrow_down:",description:"Downgrade dependencies.",name:"arrow-down",semver:"patch"},{emoji:"\u2B06\uFE0F",entity:"\u2B06\uFE0F",code:":arrow_up:",description:"Upgrade dependencies.",name:"arrow-up",semver:"patch"},{emoji:"\u{1F4CC}",entity:"📌",code:":pushpin:",description:"Pin dependencies to specific versions.",name:"pushpin",semver:"patch"},{emoji:"\u{1F477}",entity:"👷",code:":construction_worker:",description:"Add or update CI build system.",name:"construction-worker",semver:null},{emoji:"\u{1F4C8}",entity:"📈",code:":chart_with_upwards_trend:",description:"Add or update analytics or track code.",name:"chart-with-upwards-trend",semver:"patch"},{emoji:"\u267B\uFE0F",entity:"♲",code:":recycle:",description:"Refactor code.",name:"recycle",semver:null},{emoji:"\u2795",entity:"➕",code:":heavy_plus_sign:",description:"Add a dependency.",name:"heavy-plus-sign",semver:"patch"},{emoji:"\u2796",entity:"➖",code:":heavy_minus_sign:",description:"Remove a dependency.",name:"heavy-minus-sign",semver:"patch"},{emoji:"\u{1F527}",entity:"🔧",code:":wrench:",description:"Add or update configuration files.",name:"wrench",semver:"patch"},{emoji:"\u{1F528}",entity:"🔨",code:":hammer:",description:"Add or update development scripts.",name:"hammer",semver:null},{emoji:"\u{1F310}",entity:"🌐",code:":globe_with_meridians:",description:"Internationalization and localization.",name:"globe-with-meridians",semver:"patch"},{emoji:"\u270F\uFE0F",entity:"",code:":pencil2:",description:"Fix typos.",name:"pencil2",semver:"patch"},{emoji:"\u{1F4A9}",entity:"",code:":poop:",description:"Write bad code that needs to be improved.",name:"poop",semver:null},{emoji:"\u23EA\uFE0F",entity:"⏪",code:":rewind:",description:"Revert changes.",name:"rewind",semver:"patch"},{emoji:"\u{1F500}",entity:"🔀",code:":twisted_rightwards_arrows:",description:"Merge branches.",name:"twisted-rightwards-arrows",semver:null},{emoji:"\u{1F4E6}\uFE0F",entity:"&#1F4E6;",code:":package:",description:"Add or update compiled files or packages.",name:"package",semver:"patch"},{emoji:"\u{1F47D}\uFE0F",entity:"&#1F47D;",code:":alien:",description:"Update code due to external API changes.",name:"alien",semver:"patch"},{emoji:"\u{1F69A}",entity:"&#1F69A;",code:":truck:",description:"Move or rename resources (e.g.: files, paths, routes).",name:"truck",semver:null},{emoji:"\u{1F4C4}",entity:"&#1F4C4;",code:":page_facing_up:",description:"Add or update license.",name:"page-facing-up",semver:null},{emoji:"\u{1F4A5}",entity:"💥",code:":boom:",description:"Introduce breaking changes.",name:"boom",semver:"major"},{emoji:"\u{1F371}",entity:"&#1F371",code:":bento:",description:"Add or update assets.",name:"bento",semver:"patch"},{emoji:"\u267F\uFE0F",entity:"♿",code:":wheelchair:",description:"Improve accessibility.",name:"wheelchair",semver:"patch"},{emoji:"\u{1F4A1}",entity:"💡",code:":bulb:",description:"Add or update comments in source code.",name:"bulb",semver:null},{emoji:"\u{1F37B}",entity:"🍻",code:":beers:",description:"Write code drunkenly.",name:"beers",semver:null},{emoji:"\u{1F4AC}",entity:"💬",code:":speech_balloon:",description:"Add or update text and literals.",name:"speech-balloon",semver:"patch"},{emoji:"\u{1F5C3}\uFE0F",entity:"🗃",code:":card_file_box:",description:"Perform database related changes.",name:"card-file-box",semver:"patch"},{emoji:"\u{1F50A}",entity:"🔊",code:":loud_sound:",description:"Add or update logs.",name:"loud-sound",semver:null},{emoji:"\u{1F507}",entity:"🔇",code:":mute:",description:"Remove logs.",name:"mute",semver:null},{emoji:"\u{1F465}",entity:"👥",code:":busts_in_silhouette:",description:"Add or update contributor(s).",name:"busts-in-silhouette",semver:null},{emoji:"\u{1F6B8}",entity:"🚸",code:":children_crossing:",description:"Improve user experience / usability.",name:"children-crossing",semver:"patch"},{emoji:"\u{1F3D7}\uFE0F",entity:"&#1f3d7;",code:":building_construction:",description:"Make architectural changes.",name:"building-construction",semver:null},{emoji:"\u{1F4F1}",entity:"📱",code:":iphone:",description:"Work on responsive design.",name:"iphone",semver:"patch"},{emoji:"\u{1F921}",entity:"🤡",code:":clown_face:",description:"Mock things.",name:"clown-face",semver:null},{emoji:"\u{1F95A}",entity:"🥚",code:":egg:",description:"Add or update an easter egg.",name:"egg",semver:"patch"},{emoji:"\u{1F648}",entity:"&#8bdfe7;",code:":see_no_evil:",description:"Add or update a .gitignore file.",name:"see-no-evil",semver:null},{emoji:"\u{1F4F8}",entity:"📸",code:":camera_flash:",description:"Add or update snapshots.",name:"camera-flash",semver:null},{emoji:"\u2697\uFE0F",entity:"📸",code:":alembic:",description:"Perform experiments.",name:"alembic",semver:"patch"},{emoji:"\u{1F50D}\uFE0F",entity:"🔍",code:":mag:",description:"Improve SEO.",name:"mag",semver:"patch"},{emoji:"\u{1F3F7}\uFE0F",entity:"🏷",code:":label:",description:"Add or update types.",name:"label",semver:"patch"},{emoji:"\u{1F331}",entity:"🌱",code:":seedling:",description:"Add or update seed files.",name:"seedling",semver:null},{emoji:"\u{1F6A9}",entity:"🚩",code:":triangular_flag_on_post:",description:"Add, update, or remove feature flags.",name:"triangular-flag-on-post",semver:"patch"},{emoji:"\u{1F945}",entity:"🥅",code:":goal_net:",description:"Catch errors.",name:"goal-net",semver:"patch"},{emoji:"\u{1F4AB}",entity:"💫",code:":dizzy:",description:"Add or update animations and transitions.",name:"animation",semver:"patch"},{emoji:"\u{1F5D1}\uFE0F",entity:"🗑",code:":wastebasket:",description:"Deprecate code that needs to be cleaned up.",name:"wastebasket",semver:"patch"},{emoji:"\u{1F6C2}",entity:"🛂",code:":passport_control:",description:"Work on code related to authorization, roles and permissions.",name:"passport-control",semver:"patch"},{emoji:"\u{1FA79}",entity:"🩹",code:":adhesive_bandage:",description:"Simple fix for a non-critical issue.",name:"adhesive-bandage",semver:"patch"},{emoji:"\u{1F9D0}",entity:"🧐",code:":monocle_face:",description:"Data exploration/inspection.",name:"monocle-face",semver:null},{emoji:"\u26B0\uFE0F",entity:"⚰",code:":coffin:",description:"Remove dead code.",name:"coffin",semver:null},{emoji:"\u{1F9EA}",entity:"🧪",code:":test_tube:",description:"Add a failing test.",name:"test-tube",semver:null},{emoji:"\u{1F454}",entity:"👔",code:":necktie:",description:"Add or update business logic",name:"necktie",semver:"patch"},{emoji:"\u{1FA7A}",entity:"🩺",code:":stethoscope:",description:"Add or update healthcheck.",name:"stethoscope",semver:null},{emoji:"\u{1F9F1}",entity:"🧱",code:":bricks:",description:"Infrastructure related changes.",name:"bricks",semver:null},{emoji:"\u{1F9D1}\u200D\u{1F4BB}",entity:"🧑‍💻",code:":technologist:",description:"Improve developer experience",name:"technologist",semver:null}],G={gitmojis:le};r();var ue=[{from:"art",to:"style"},{from:"zap",to:"perf"},{from:"fire",to:"prune"},{from:"bug",to:"fix",branch:"fix"},{from:"ambulance",to:"hotfix",branch:"hotfix"},{from:"sparkles",to:"feat",branch:"feature"},{from:"memo",to:"docs"},{from:"rocket",to:"deploy"},{from:"lipstick",to:"ui"},{from:"tada",to:"init",semver:"patch"},{from:"white-check-mark",to:"test",branch:"test"},{from:"lock",to:"security"},{from:"bookmark",to:"release",branch:"release"},{from:"rotating-light",to:"lint"},{from:"construction",to:"wip"},{from:"green-heart",to:"fix-ci"},{from:"arrow-down",to:"downgrade"},{from:"arrow-up",to:"upgrade"},{from:"pushpin",to:"pushpin"},{from:"construction-worker",to:"ci",branch:"ci"},{from:"chart-with-upwards-trend",to:"analytics"},{from:"recycle",to:"refactor",branch:"refactor"},{from:"heavy-plus-sign",to:"dep-add"},{from:"heavy-minus-sign",to:"dep-rm"},{from:"wrench",to:"config"},{from:"hammer",to:"build"},{from:"globe-with-meridians",to:"i18n"},{from:"pencil2",to:"typo"},{from:"poop",to:"poo"},{from:"rewind",to:"revert"},{from:"twisted-rightwards-arrows",to:"merge"},{from:"package",to:"dep-up"},{from:"alien",to:"compat"},{from:"truck",to:"mv"},{from:"page-facing-up",to:"license"},{from:"boom",to:"breaking",semver:"major"},{from:"bento",to:"assets"},{from:"wheelchair",to:"access"},{from:"bulb",to:"docs-code"},{from:"beers",to:"beer"},{from:"speech-balloon",to:"texts"},{from:"card-file-box",to:"db"},{from:"loud-sound",to:"log-add"},{from:"mute",to:"log-rm"},{from:"busts-in-silhouette",to:"contrib-add"},{from:"children-crossing",to:"ux"},{from:"building-construction",to:"arch"},{from:"iphone",to:"iphone"},{from:"clown-face",to:"mock"},{from:"egg",to:"egg"},{from:"see-no-evil",to:"ignore"},{from:"camera-flash",to:"snapshot"},{from:"alembic",to:"experiment"},{from:"mag",to:"seo"},{from:"label",to:"types"},{from:"seedling",to:"seed"},{from:"triangular-flag-on-post",to:"flags"},{from:"goal-net",to:"catch"},{from:"animation",to:"animation"},{from:"wastebasket",to:"clean"},{from:"passport-control",to:"roles"},{from:"adhesive-bandage",to:"patch"},{from:"monocle-face",to:"data"},{from:"coffin",to:"rip"},{from:"test-tube",to:"test-fail"},{from:"necktie",to:"logic"},{from:"stethoscope",to:"healthcheck"},{from:"bricks",to:"inf"},{from:"technologist",to:"dx"},{from:"closed-lock-with-key",to:"secrets"}],B=ue;r();var fe={chore:{branch:"chore",code:":computer_disk:",commit:"chore",description:"Changes that don\u2019t modify src or test files",emoji:"\u{1F4BD}\uFE0F",entity:"💽",name:"computer-disk",semver:null},rollforward:{branch:null,code:":fast_forward:",commit:"rollforward",description:"Create rollforward version.",emoji:"\u23E9\uFE0F",entity:"&#23E9;",name:"rollforward",semver:null},"run-build":{branch:null,code:":rocket:",commit:"run-build",description:"Custom type for CI/CD to hook into run build override.",emoji:"\u{1F680}\uFE0F",entity:"&#1F680;",name:"run-build",semver:"patch"}},v=fe;var{gitmojis:he}=G,ye=()=>(he.map(e=>{let t=B.find(n=>(n==null?void 0:n.from)===e.name);if(t){let n=t.semver===void 0?(e==null?void 0:e.semver)||null:t.semver||(e==null?void 0:e.semver)||null;v[t.to]={branch:Boolean(t==null?void 0:t.branch)?t.branch:null,code:e==null?void 0:e.code,commit:t.to,description:e==null?void 0:e.description,emoji:e==null?void 0:e.emoji,entity:e==null?void 0:e.entity,name:e==null?void 0:e.name,semver:n?n.replace("fix","patch").replace("feature","minor").replace("breaking","major"):null}}else console.dir(`@todo(conventional-gitmoji) create rewrite for: ${e.name}`)}),Object.keys(v).sort().reduce((e,t)=>(e[t]=v[t],e),{})),$=ye;r();var m=[],ve=o=>(Object.keys(o).map(e=>{let t=o[e];!!t&&!!t.semver&&(m.push({release:t.semver,type:t==null?void 0:t.code.replace(/(:[^:]*):/g,"$1")}),m.push({release:t.semver,type:t==null?void 0:t.code}),m.push({release:t.semver,type:t.commit}),m.push({release:t.semver,type:t.emoji}))}),m),D=ve;r();var K=k(W(),1),z=[],Ae=o=>(Object.keys(o).map(e=>{z.push({code:o[e].code,description:(0,K.default)(o[e].description.replace(".","")),emoji:o[e].emoji,semver:o[e].semver,type:o[e].commit,value:o[e].commit})}),z),J=Ae;var{parserOpts:Se,writerOpts:Ce}=R,I=$(),Pe=D(I),h=J(I);var Ee=R;module.exports=re(Fe);0&&(module.exports={parserOpts,releaseRules,typeSpecs,types,writerOpts});
package/index.d.ts CHANGED
@@ -1,32 +1,32 @@
1
- import getGitmoji from './getGitmojiConventional';
2
- export { default } from './getGitmojiConventional';
1
+ import changelog from './changelog/index';
2
+ export { default } from './changelog/index';
3
+ export { ICommit } from './types/commit.types';
4
+ import { IReleaseRule, IReleaseRuleProps } from './types/releaseRule.types';
5
+ export { IReleaseRule, IReleaseRuleProps } from './types/releaseRule.types';
3
6
 
4
- interface TypesProps {
5
- [x: string]: {
6
- branch: string | boolean | null | undefined;
7
- code: any | null;
8
- commit: any;
9
- description: string;
10
- emoji: string;
11
- entity: string;
12
- name: string;
13
- semver: 'breaking' | 'feature' | 'fix' | 'major' | 'minor' | 'patch' | null;
14
- };
15
- }
16
- declare const types: TypesProps;
7
+ declare const parserOpts: {
8
+ headerPattern: RegExp;
9
+ headerCorrespondence: string[];
10
+ noteKeywords: string[];
11
+ revertPattern: RegExp;
12
+ issuePrefixes: string[];
13
+ referenceActions: string[];
14
+ };
15
+ declare const writerOpts: {
16
+ transform: (commit: any, context: any) => any;
17
+ groupBy: string;
18
+ commitGroupsSort: string[];
19
+ commitsSort: string[];
20
+ noteGroupsSort: string[];
21
+ notesSort: string[];
22
+ };
23
+ declare const types: IReleaseRule;
17
24
  declare const releaseRules: {
18
25
  message?: string | null | undefined;
19
26
  release?: string | null | undefined;
20
27
  tag?: string | null | undefined;
21
28
  type?: string | null | undefined;
22
29
  }[];
23
- declare const typeSpecs: {
24
- code: string;
25
- description: string;
26
- emoji: string;
27
- semver: "breaking" | "feature" | "fix" | "major" | "minor" | "patch" | null;
28
- type: string;
29
- value: string;
30
- }[];
30
+ declare const typeSpecs: Omit<IReleaseRuleProps, "branch" | "commit" | "entity" | "name">[];
31
31
 
32
- export { TypesProps, releaseRules, typeSpecs, types };
32
+ export { parserOpts, releaseRules, typeSpecs, types, writerOpts };
package/index.js CHANGED
@@ -1 +1 @@
1
- var z=Object.create;var f=Object.defineProperty;var L=Object.getOwnPropertyDescriptor;var O=Object.getOwnPropertyNames;var U=Object.getPrototypeOf,$=Object.prototype.hasOwnProperty;var B=e=>f(e,"__esModule",{value:!0});var H=(e,o)=>()=>(e&&(o=e(e=0)),o);var m=(e,o)=>()=>(o||e((o={exports:{}}).exports,o),o.exports);var G=(e,o,r,c)=>{if(o&&typeof o=="object"||typeof o=="function")for(let s of O(o))!$.call(e,s)&&(r||s!=="default")&&f(e,s,{get:()=>o[s],enumerable:!(c=L(o,s))||c.enumerable});return e},J=(e,o)=>G(B(f(e!=null?z(U(e)):{},"default",!o&&e&&e.__esModule?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var t=H(()=>{});var w=m((le,V)=>{V.exports={gitmojis:[{emoji:"\u{1F3A8}",entity:"&#x1f3a8;",code:":art:",description:"Improve structure / format of the code.",name:"art",semver:null},{emoji:"\u26A1\uFE0F",entity:"&#x26a1;",code:":zap:",description:"Improve performance.",name:"zap",semver:"patch"},{emoji:"\u{1F525}",entity:"&#x1f525;",code:":fire:",description:"Remove code or files.",name:"fire",semver:null},{emoji:"\u{1F41B}",entity:"&#x1f41b;",code:":bug:",description:"Fix a bug.",name:"bug",semver:"patch"},{emoji:"\u{1F691}\uFE0F",entity:"&#128657;",code:":ambulance:",description:"Critical hotfix.",name:"ambulance",semver:"patch"},{emoji:"\u2728",entity:"&#x2728;",code:":sparkles:",description:"Introduce new features.",name:"sparkles",semver:"minor"},{emoji:"\u{1F4DD}",entity:"&#x1f4dd;",code:":memo:",description:"Add or update documentation.",name:"memo",semver:null},{emoji:"\u{1F680}",entity:"&#x1f680;",code:":rocket:",description:"Deploy stuff.",name:"rocket",semver:null},{emoji:"\u{1F484}",entity:"&#ff99cc;",code:":lipstick:",description:"Add or update the UI and style files.",name:"lipstick",semver:"patch"},{emoji:"\u{1F389}",entity:"&#127881;",code:":tada:",description:"Begin a project.",name:"tada",semver:null},{emoji:"\u2705",entity:"&#x2705;",code:":white_check_mark:",description:"Add, update, or pass tests.",name:"white-check-mark",semver:null},{emoji:"\u{1F512}\uFE0F",entity:"&#x1f512;",code:":lock:",description:"Fix security issues.",name:"lock",semver:"patch"},{emoji:"\u{1F510}",entity:"&#x1f510;",code:":closed_lock_with_key:",description:"Add or update secrets.",name:"closed-lock-with-key",semver:null},{emoji:"\u{1F516}",entity:"&#x1f516;",code:":bookmark:",description:"Release / Version tags.",name:"bookmark",semver:null},{emoji:"\u{1F6A8}",entity:"&#x1f6a8;",code:":rotating_light:",description:"Fix compiler / linter warnings.",name:"rotating-light",semver:null},{emoji:"\u{1F6A7}",entity:"&#x1f6a7;",code:":construction:",description:"Work in progress.",name:"construction",semver:null},{emoji:"\u{1F49A}",entity:"&#x1f49a;",code:":green_heart:",description:"Fix CI Build.",name:"green-heart",semver:null},{emoji:"\u2B07\uFE0F",entity:"\u2B07\uFE0F",code:":arrow_down:",description:"Downgrade dependencies.",name:"arrow-down",semver:"patch"},{emoji:"\u2B06\uFE0F",entity:"\u2B06\uFE0F",code:":arrow_up:",description:"Upgrade dependencies.",name:"arrow-up",semver:"patch"},{emoji:"\u{1F4CC}",entity:"&#x1F4CC;",code:":pushpin:",description:"Pin dependencies to specific versions.",name:"pushpin",semver:"patch"},{emoji:"\u{1F477}",entity:"&#x1f477;",code:":construction_worker:",description:"Add or update CI build system.",name:"construction-worker",semver:null},{emoji:"\u{1F4C8}",entity:"&#x1F4C8;",code:":chart_with_upwards_trend:",description:"Add or update analytics or track code.",name:"chart-with-upwards-trend",semver:"patch"},{emoji:"\u267B\uFE0F",entity:"&#x2672;",code:":recycle:",description:"Refactor code.",name:"recycle",semver:null},{emoji:"\u2795",entity:"&#10133;",code:":heavy_plus_sign:",description:"Add a dependency.",name:"heavy-plus-sign",semver:"patch"},{emoji:"\u2796",entity:"&#10134;",code:":heavy_minus_sign:",description:"Remove a dependency.",name:"heavy-minus-sign",semver:"patch"},{emoji:"\u{1F527}",entity:"&#x1f527;",code:":wrench:",description:"Add or update configuration files.",name:"wrench",semver:"patch"},{emoji:"\u{1F528}",entity:"&#128296;",code:":hammer:",description:"Add or update development scripts.",name:"hammer",semver:null},{emoji:"\u{1F310}",entity:"&#127760;",code:":globe_with_meridians:",description:"Internationalization and localization.",name:"globe-with-meridians",semver:"patch"},{emoji:"\u270F\uFE0F",entity:"&#59161;",code:":pencil2:",description:"Fix typos.",name:"pencil2",semver:"patch"},{emoji:"\u{1F4A9}",entity:"&#58613;",code:":poop:",description:"Write bad code that needs to be improved.",name:"poop",semver:null},{emoji:"\u23EA\uFE0F",entity:"&#9194;",code:":rewind:",description:"Revert changes.",name:"rewind",semver:"patch"},{emoji:"\u{1F500}",entity:"&#128256;",code:":twisted_rightwards_arrows:",description:"Merge branches.",name:"twisted-rightwards-arrows",semver:null},{emoji:"\u{1F4E6}\uFE0F",entity:"&#1F4E6;",code:":package:",description:"Add or update compiled files or packages.",name:"package",semver:"patch"},{emoji:"\u{1F47D}\uFE0F",entity:"&#1F47D;",code:":alien:",description:"Update code due to external API changes.",name:"alien",semver:"patch"},{emoji:"\u{1F69A}",entity:"&#1F69A;",code:":truck:",description:"Move or rename resources (e.g.: files, paths, routes).",name:"truck",semver:null},{emoji:"\u{1F4C4}",entity:"&#1F4C4;",code:":page_facing_up:",description:"Add or update license.",name:"page-facing-up",semver:null},{emoji:"\u{1F4A5}",entity:"&#x1f4a5;",code:":boom:",description:"Introduce breaking changes.",name:"boom",semver:"major"},{emoji:"\u{1F371}",entity:"&#1F371",code:":bento:",description:"Add or update assets.",name:"bento",semver:"patch"},{emoji:"\u267F\uFE0F",entity:"&#9855;",code:":wheelchair:",description:"Improve accessibility.",name:"wheelchair",semver:"patch"},{emoji:"\u{1F4A1}",entity:"&#128161;",code:":bulb:",description:"Add or update comments in source code.",name:"bulb",semver:null},{emoji:"\u{1F37B}",entity:"&#x1f37b;",code:":beers:",description:"Write code drunkenly.",name:"beers",semver:null},{emoji:"\u{1F4AC}",entity:"&#128172;",code:":speech_balloon:",description:"Add or update text and literals.",name:"speech-balloon",semver:"patch"},{emoji:"\u{1F5C3}\uFE0F",entity:"&#128451;",code:":card_file_box:",description:"Perform database related changes.",name:"card-file-box",semver:"patch"},{emoji:"\u{1F50A}",entity:"&#128266;",code:":loud_sound:",description:"Add or update logs.",name:"loud-sound",semver:null},{emoji:"\u{1F507}",entity:"&#128263;",code:":mute:",description:"Remove logs.",name:"mute",semver:null},{emoji:"\u{1F465}",entity:"&#128101;",code:":busts_in_silhouette:",description:"Add or update contributor(s).",name:"busts-in-silhouette",semver:null},{emoji:"\u{1F6B8}",entity:"&#128696;",code:":children_crossing:",description:"Improve user experience / usability.",name:"children-crossing",semver:"patch"},{emoji:"\u{1F3D7}\uFE0F",entity:"&#1f3d7;",code:":building_construction:",description:"Make architectural changes.",name:"building-construction",semver:null},{emoji:"\u{1F4F1}",entity:"&#128241;",code:":iphone:",description:"Work on responsive design.",name:"iphone",semver:"patch"},{emoji:"\u{1F921}",entity:"&#129313;",code:":clown_face:",description:"Mock things.",name:"clown-face",semver:null},{emoji:"\u{1F95A}",entity:"&#129370;",code:":egg:",description:"Add or update an easter egg.",name:"egg",semver:"patch"},{emoji:"\u{1F648}",entity:"&#8bdfe7;",code:":see_no_evil:",description:"Add or update a .gitignore file.",name:"see-no-evil",semver:null},{emoji:"\u{1F4F8}",entity:"&#128248;",code:":camera_flash:",description:"Add or update snapshots.",name:"camera-flash",semver:null},{emoji:"\u2697\uFE0F",entity:"&#128248;",code:":alembic:",description:"Perform experiments.",name:"alembic",semver:"patch"},{emoji:"\u{1F50D}\uFE0F",entity:"&#128269;",code:":mag:",description:"Improve SEO.",name:"mag",semver:"patch"},{emoji:"\u{1F3F7}\uFE0F",entity:"&#127991;",code:":label:",description:"Add or update types.",name:"label",semver:"patch"},{emoji:"\u{1F331}",entity:"&#127793;",code:":seedling:",description:"Add or update seed files.",name:"seedling",semver:null},{emoji:"\u{1F6A9}",entity:"&#x1F6A9;",code:":triangular_flag_on_post:",description:"Add, update, or remove feature flags.",name:"triangular-flag-on-post",semver:"patch"},{emoji:"\u{1F945}",entity:"&#x1F945;",code:":goal_net:",description:"Catch errors.",name:"goal-net",semver:"patch"},{emoji:"\u{1F4AB}",entity:"&#x1f4ab;",code:":dizzy:",description:"Add or update animations and transitions.",name:"animation",semver:"patch"},{emoji:"\u{1F5D1}\uFE0F",entity:"&#x1F5D1;",code:":wastebasket:",description:"Deprecate code that needs to be cleaned up.",name:"wastebasket",semver:"patch"},{emoji:"\u{1F6C2}",entity:"&#x1F6C2;",code:":passport_control:",description:"Work on code related to authorization, roles and permissions.",name:"passport-control",semver:"patch"},{emoji:"\u{1FA79}",entity:"&#x1FA79;",code:":adhesive_bandage:",description:"Simple fix for a non-critical issue.",name:"adhesive-bandage",semver:"patch"},{emoji:"\u{1F9D0}",entity:"&#x1F9D0;",code:":monocle_face:",description:"Data exploration/inspection.",name:"monocle-face",semver:null},{emoji:"\u26B0\uFE0F",entity:"&#x26B0;",code:":coffin:",description:"Remove dead code.",name:"coffin",semver:null},{emoji:"\u{1F9EA}",entity:"&#x1F9EA;",code:":test_tube:",description:"Add a failing test.",name:"test-tube",semver:null},{emoji:"\u{1F454}",entity:"&#128084;",code:":necktie:",description:"Add or update business logic",name:"necktie",semver:"patch"},{emoji:"\u{1FA7A}",entity:"&#x1FA7A;",code:":stethoscope:",description:"Add or update healthcheck.",name:"stethoscope",semver:null},{emoji:"\u{1F9F1}",entity:"&#x1f9f1;",code:":bricks:",description:"Infrastructure related changes.",name:"bricks",semver:null},{emoji:"\u{1F9D1}\u200D\u{1F4BB}",entity:"&#129489;&#8205;&#128187;",code:":technologist:",description:"Improve developer experience",name:"technologist",semver:null}]}});var _=m((ve,j)=>{t();var Q=["for","and","nor","but","or","yet","so"],Y=["a","an","the"],ee=["aboard","about","above","across","after","against","along","amid","among","anti","around","as","at","before","behind","below","beneath","beside","besides","between","beyond","but","by","concerning","considering","despite","down","during","except","excepting","excluding","following","for","from","in","inside","into","like","minus","near","of","off","on","onto","opposite","over","past","per","plus","regarding","round","save","since","than","through","to","toward","towards","under","underneath","unlike","until","up","upon","versus","via","with","within","without"];j.exports=new Set([...Q,...Y,...ee])});var P=m((be,A)=>{t();var oe=["ZEIT","ZEIT Inc.","Vercel","Vercel Inc.","CLI","API","HTTP","HTTPS","JSX","DNS","URL","now.sh","now.json","vercel.app","vercel.json","CI","CD","CDN","package.json","package.lock","yarn.lock","GitHub","GitLab","CSS","Sass","JS","JavaScript","TypeScript","HTML","WordPress","JavaScript","Next.js","Node.js","Webpack","Docker","Bash","Kubernetes","SWR","TinaCMS","UI","UX","TS","TSX","iPhone","iPad","watchOS","iOS","iPadOS","macOS","PHP","composer.json","composer.lock","CMS"];A.exports=oe});var R=m((ye,S)=>{t();var te=_(),re=P(),l=`[^\\s'\u2019\\(\\)!?;:"-]`,ne=new RegExp(`(?:(?:(\\s?(?:^|[.\\(\\)!?;:"-])\\s*)(${l}))|(${l}))(${l}*[\u2019']*${l}*)`,"g"),ie=e=>e.map(o=>[new RegExp(`\\b${o}\\b`,"gi"),o]);function se(e){let o=e[0];return/\s/.test(o)?e.substr(1):/[\(\)]/.test(o)?null:e}S.exports=(e,o={})=>{e=e.toLowerCase().replace(ne,(a,u="",g,v,b,D,E)=>{let M=a.length+D>=E.length,y=se(a);if(!y)return a;if(!g){let W=v+b;if(te.has(W)&&!M)return y}return u+(v||g).toUpperCase()+b});let r=o.special||[],c=[...re,...r];return ie(c).forEach(([a,u])=>{e=e.replace(a,u)}),e}});t();t();t();var N=[{from:"art",to:"style"},{from:"zap",to:"perf"},{from:"fire",to:"prune"},{from:"bug",to:"fix",branch:"fix"},{from:"ambulance",to:"hotfix",branch:"hotfix"},{from:"sparkles",to:"feat",branch:"feature"},{from:"memo",to:"docs"},{from:"rocket",to:"deploy"},{from:"lipstick",to:"ui"},{from:"tada",to:"init",semver:"patch"},{from:"white-check-mark",to:"test",branch:"test"},{from:"lock",to:"security"},{from:"bookmark",to:"release",branch:"release"},{from:"rotating-light",to:"lint"},{from:"construction",to:"wip"},{from:"green-heart",to:"fix-ci"},{from:"arrow-down",to:"downgrade"},{from:"arrow-up",to:"upgrade"},{from:"pushpin",to:"pushpin"},{from:"construction-worker",to:"ci",branch:"ci"},{from:"chart-with-upwards-trend",to:"analytics"},{from:"recycle",to:"refactor",branch:"refactor"},{from:"heavy-plus-sign",to:"dep-add"},{from:"heavy-minus-sign",to:"dep-rm"},{from:"wrench",to:"config"},{from:"hammer",to:"build"},{from:"globe-with-meridians",to:"i18n"},{from:"pencil2",to:"typo"},{from:"poop",to:"poo"},{from:"rewind",to:"revert"},{from:"twisted-rightwards-arrows",to:"merge"},{from:"package",to:"dep-up"},{from:"alien",to:"compat"},{from:"truck",to:"mv"},{from:"page-facing-up",to:"license"},{from:"boom",to:"breaking",semver:"major"},{from:"bento",to:"assets"},{from:"wheelchair",to:"access"},{from:"bulb",to:"docs-code"},{from:"beers",to:"beer"},{from:"speech-balloon",to:"texts"},{from:"card-file-box",to:"db"},{from:"loud-sound",to:"log-add"},{from:"mute",to:"log-rm"},{from:"busts-in-silhouette",to:"contrib-add"},{from:"children-crossing",to:"ux"},{from:"building-construction",to:"arch"},{from:"iphone",to:"iphone"},{from:"clown-face",to:"mock"},{from:"egg",to:"egg"},{from:"see-no-evil",to:"ignore"},{from:"camera-flash",to:"snapshot"},{from:"alembic",to:"experiment"},{from:"mag",to:"seo"},{from:"label",to:"types"},{from:"seedling",to:"seed"},{from:"triangular-flag-on-post",to:"flags"},{from:"goal-net",to:"catch"},{from:"animation",to:"animation"},{from:"wastebasket",to:"clean"},{from:"passport-control",to:"roles"},{from:"adhesive-bandage",to:"patch"},{from:"monocle-face",to:"data"},{from:"coffin",to:"rip"},{from:"test-tube",to:"test-fail"},{from:"necktie",to:"logic"},{from:"stethoscope",to:"healthcheck"},{from:"bricks",to:"inf"},{from:"technologist",to:"dx"},{from:"closed-lock-with-key",to:"secrets"}],x=N;t();var q={chore:{branch:"chore",code:":computer_disk:",commit:"chore",description:"Changes that don\u2019t modify src or test files",emoji:"\u{1F4BD}\uFE0F",entity:"&#x1f4bd;",name:"computer-disk",semver:null},rollforward:{branch:!1,code:":fast_forward:",commit:"rollforward",description:"Create rollforward version.",emoji:"\u23E9\uFE0F",entity:"&#23E9;",name:"rollforward",semver:null},"run-build":{branch:!1,code:":rocket:",commit:"run-build",description:"Custom type for CI/CD to hook into run build override.",emoji:"\u{1F680}\uFE0F",entity:"&#1F680;",name:"run-build",semver:"patch"}},d=q;var X=w().gitmojis,Z=()=>(X.map(e=>{let o=x.find(r=>(r==null?void 0:r.from)===e.name);if(o){let r=o.semver===void 0?(e==null?void 0:e.semver)||null:o.semver||(e==null?void 0:e.semver)||null;d[o.to]={branch:Boolean(o==null?void 0:o.branch)?o.branch:!1,code:e==null?void 0:e.code,commit:o.to,description:e==null?void 0:e.description,emoji:e==null?void 0:e.emoji,entity:e==null?void 0:e.entity,name:e==null?void 0:e.name,semver:r?r.replace("fix","patch").replace("feature","minor").replace("breaking","major"):null}}else console.dir(`@todo(conventional-gitmoji) create rewrite for: ${e.name}`)}),Object.keys(d).sort().reduce((e,o)=>(e[o]=d[o],e),{})),h=Z;t();var p=[],K=e=>(Object.keys(e).map(o=>{var r;p.push({release:e[o].semver,type:!!e[o]&&((r=e[o])==null?void 0:r.code.replace(/(:[^:]*):/g,"$1"))}),p.push({release:e[o].semver,type:e[o].commit}),p.push({release:e[o].semver,type:e[o].emoji})}),p),k=K;t();var T=J(R(),1),C=[],ae=e=>(Object.keys(e).map(o=>{C.push({code:e[o].code,description:(0,T.default)(e[o].description.replace(".","")),emoji:e[o].emoji,semver:e[o].semver,type:e[o].commit,value:e[o].commit})}),C),I=ae;var F=h(),_e=k(F),Ae=I(F);var Pe=h;export{Pe as default,_e as releaseRules,Ae as typeSpecs,F as types};
1
+ var J=Object.create;var x=Object.defineProperty;var V=Object.getOwnPropertyDescriptor;var X=Object.getOwnPropertyNames;var q=Object.getPrototypeOf,Z=Object.prototype.hasOwnProperty;var Q=o=>x(o,"__esModule",{value:!0});var Y=(o,e)=>()=>(o&&(e=o(o=0)),e);var w=(o,e)=>()=>(e||o((e={exports:{}}).exports,e),e.exports);var ee=(o,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of X(e))!Z.call(o,i)&&(t||i!=="default")&&x(o,i,{get:()=>e[i],enumerable:!(n=V(e,i))||n.enumerable});return o},oe=(o,e)=>ee(Q(x(o!=null?J(q(o)):{},"default",!e&&o&&o.__esModule?{get:()=>o.default,enumerable:!0}:{value:o,enumerable:!0})),o);var r=Y(()=>{});var B=w((to,G)=>{r();var ye=["for","and","nor","but","or","yet","so"],be=["a","an","the"],ge=["aboard","about","above","across","after","against","along","amid","among","anti","around","as","at","before","behind","below","beneath","beside","besides","between","beyond","but","by","concerning","considering","despite","down","during","except","excepting","excluding","following","for","from","in","inside","into","like","minus","near","of","off","on","onto","opposite","over","past","per","plus","regarding","round","save","since","than","through","to","toward","towards","under","underneath","unlike","until","up","upon","versus","via","with","within","without"];G.exports=new Set([...ye,...be,...ge])});var $=w((ro,D)=>{r();var xe=["ZEIT","ZEIT Inc.","Vercel","Vercel Inc.","CLI","API","HTTP","HTTPS","JSX","DNS","URL","now.sh","now.json","vercel.app","vercel.json","CI","CD","CDN","package.json","package.lock","yarn.lock","GitHub","GitLab","CSS","Sass","JS","JavaScript","TypeScript","HTML","WordPress","JavaScript","Next.js","Node.js","Webpack","Docker","Bash","Kubernetes","SWR","TinaCMS","UI","UX","TS","TSX","iPhone","iPad","watchOS","iOS","iPadOS","macOS","PHP","composer.json","composer.lock","CMS"];D.exports=xe});var M=w((no,N)=>{r();var we=B(),ke=$(),y=`[^\\s'\u2019\\(\\)!?;:"-]`,je=new RegExp(`(?:(?:(\\s?(?:^|[.\\(\\)!?;:"-])\\s*)(${y}))|(${y}))(${y}*[\u2019']*${y}*)`,"g"),Re=o=>o.map(e=>[new RegExp(`\\b${e}\\b`,"gi"),e]);function _e(o){let e=o[0];return/\s/.test(e)?o.substr(1):/[\(\)]/.test(e)?null:o}N.exports=(o,e={})=>{o=o.toLowerCase().replace(je,(c,p="",l,u,f,b,g)=>{let U=c.length+b>=g.length,R=_e(c);if(!R)return c;if(!l){let K=u+f;if(we.has(K)&&!U)return R}return p+(u||l).toUpperCase()+f});let t=e.special||[],n=[...ke,...t];return Re(n).forEach(([c,p])=>{o=o.replace(c,p)}),o}});r();r();r();r();var te={headerPattern:/^(.*?)(?:\((.*)\))?:?\s(.*)$/,headerCorrespondence:["type","scope","subject","ticket"],noteKeywords:["BREAKING CHANGE","BREAKING CHANGES"],revertPattern:/^Revert\s"([\s\S]*)"\s*This reverts commit (\w*)\./,issuePrefixes:["1b9fe48b-292c-46e7-bfde-0599639d0ec0"],referenceActions:["b6db85c1-4860-4275-88e3-bd9917a0b29f"]},m=te;r();r();import re from"grapheme-splitter";import _ from"lodash/pullAt.js";var ne=new re,ie=(o,e)=>{let{type:t}=o,n=k.findIndex(({code:u,emoji:f,type:b,value:g})=>{if(t!==null)return t.replace(/\:/g,"")===u.replace(/\:/g,"")||t===f||t===b||t===g});if(n===-1)return;let i=k[n];o.type=`${i.emoji} ${i.description}`,o.typeSpecIndex=n,o.typeSpec=i,typeof o.hash=="string"&&(o.hash=o.hash.substring(0,7));let c=ne.splitGraphemes(o.subject),l=c[0]===i.emoji?o.subject.replace(_(c,[0]),"").replace(_(c,[0]),""):o.subject;return o.subject=l.trim(),o},I=ie;var se={transform:(o,e)=>I(o,e),groupBy:"type",commitGroupsSort:["order","title"],commitsSort:["scope","subject"],noteGroupsSort:["title"],notesSort:["title"]},h=se;var ae={parserOpts:m,writerOpts:h},A=ae;r();var ce={parserOpts:m,whatBump:o=>{let e=2,t=0,n=0;return o.forEach(i=>{i.notes.length>0?(t+=i.notes.length,e=0):i.type==="feat"&&(n+=1,e===2&&(e=1))}),{level:e,reason:t===1?`There is ${t} BREAKING CHANGE and ${n} features`:`There are ${t} BREAKING CHANGES and ${n} features`}}},C=ce;r();var me={format:"%B%n-hash-%n%H%n-gitTags-%n%d%n-committerDate-%n%ci%n-authorName-%n%an%n-authorEmail-%n%ae"},S=me;var de={conventionalChangelog:A,parserOpts:m,recommendedBumpOpts:C,writerOpts:h,gitRawCommitsOpts:S},j=de;r();var pe=[{emoji:"\u{1F3A8}",entity:"&#x1f3a8;",code:":art:",description:"Improve structure / format of the code.",name:"art",semver:null},{emoji:"\u26A1\uFE0F",entity:"&#x26a1;",code:":zap:",description:"Improve performance.",name:"zap",semver:"patch"},{emoji:"\u{1F525}",entity:"&#x1f525;",code:":fire:",description:"Remove code or files.",name:"fire",semver:null},{emoji:"\u{1F41B}",entity:"&#x1f41b;",code:":bug:",description:"Fix a bug.",name:"bug",semver:"patch"},{emoji:"\u{1F691}\uFE0F",entity:"&#128657;",code:":ambulance:",description:"Critical hotfix.",name:"ambulance",semver:"patch"},{emoji:"\u2728",entity:"&#x2728;",code:":sparkles:",description:"Introduce new features.",name:"sparkles",semver:"minor"},{emoji:"\u{1F4DD}",entity:"&#x1f4dd;",code:":memo:",description:"Add or update documentation.",name:"memo",semver:null},{emoji:"\u{1F680}",entity:"&#x1f680;",code:":rocket:",description:"Deploy stuff.",name:"rocket",semver:null},{emoji:"\u{1F484}",entity:"&#ff99cc;",code:":lipstick:",description:"Add or update the UI and style files.",name:"lipstick",semver:"patch"},{emoji:"\u{1F389}",entity:"&#127881;",code:":tada:",description:"Begin a project.",name:"tada",semver:null},{emoji:"\u2705",entity:"&#x2705;",code:":white_check_mark:",description:"Add, update, or pass tests.",name:"white-check-mark",semver:null},{emoji:"\u{1F512}\uFE0F",entity:"&#x1f512;",code:":lock:",description:"Fix security issues.",name:"lock",semver:"patch"},{emoji:"\u{1F510}",entity:"&#x1f510;",code:":closed_lock_with_key:",description:"Add or update secrets.",name:"closed-lock-with-key",semver:null},{emoji:"\u{1F516}",entity:"&#x1f516;",code:":bookmark:",description:"Release / Version tags.",name:"bookmark",semver:null},{emoji:"\u{1F6A8}",entity:"&#x1f6a8;",code:":rotating_light:",description:"Fix compiler / linter warnings.",name:"rotating-light",semver:null},{emoji:"\u{1F6A7}",entity:"&#x1f6a7;",code:":construction:",description:"Work in progress.",name:"construction",semver:null},{emoji:"\u{1F49A}",entity:"&#x1f49a;",code:":green_heart:",description:"Fix CI Build.",name:"green-heart",semver:null},{emoji:"\u2B07\uFE0F",entity:"\u2B07\uFE0F",code:":arrow_down:",description:"Downgrade dependencies.",name:"arrow-down",semver:"patch"},{emoji:"\u2B06\uFE0F",entity:"\u2B06\uFE0F",code:":arrow_up:",description:"Upgrade dependencies.",name:"arrow-up",semver:"patch"},{emoji:"\u{1F4CC}",entity:"&#x1F4CC;",code:":pushpin:",description:"Pin dependencies to specific versions.",name:"pushpin",semver:"patch"},{emoji:"\u{1F477}",entity:"&#x1f477;",code:":construction_worker:",description:"Add or update CI build system.",name:"construction-worker",semver:null},{emoji:"\u{1F4C8}",entity:"&#x1F4C8;",code:":chart_with_upwards_trend:",description:"Add or update analytics or track code.",name:"chart-with-upwards-trend",semver:"patch"},{emoji:"\u267B\uFE0F",entity:"&#x2672;",code:":recycle:",description:"Refactor code.",name:"recycle",semver:null},{emoji:"\u2795",entity:"&#10133;",code:":heavy_plus_sign:",description:"Add a dependency.",name:"heavy-plus-sign",semver:"patch"},{emoji:"\u2796",entity:"&#10134;",code:":heavy_minus_sign:",description:"Remove a dependency.",name:"heavy-minus-sign",semver:"patch"},{emoji:"\u{1F527}",entity:"&#x1f527;",code:":wrench:",description:"Add or update configuration files.",name:"wrench",semver:"patch"},{emoji:"\u{1F528}",entity:"&#128296;",code:":hammer:",description:"Add or update development scripts.",name:"hammer",semver:null},{emoji:"\u{1F310}",entity:"&#127760;",code:":globe_with_meridians:",description:"Internationalization and localization.",name:"globe-with-meridians",semver:"patch"},{emoji:"\u270F\uFE0F",entity:"&#59161;",code:":pencil2:",description:"Fix typos.",name:"pencil2",semver:"patch"},{emoji:"\u{1F4A9}",entity:"&#58613;",code:":poop:",description:"Write bad code that needs to be improved.",name:"poop",semver:null},{emoji:"\u23EA\uFE0F",entity:"&#9194;",code:":rewind:",description:"Revert changes.",name:"rewind",semver:"patch"},{emoji:"\u{1F500}",entity:"&#128256;",code:":twisted_rightwards_arrows:",description:"Merge branches.",name:"twisted-rightwards-arrows",semver:null},{emoji:"\u{1F4E6}\uFE0F",entity:"&#1F4E6;",code:":package:",description:"Add or update compiled files or packages.",name:"package",semver:"patch"},{emoji:"\u{1F47D}\uFE0F",entity:"&#1F47D;",code:":alien:",description:"Update code due to external API changes.",name:"alien",semver:"patch"},{emoji:"\u{1F69A}",entity:"&#1F69A;",code:":truck:",description:"Move or rename resources (e.g.: files, paths, routes).",name:"truck",semver:null},{emoji:"\u{1F4C4}",entity:"&#1F4C4;",code:":page_facing_up:",description:"Add or update license.",name:"page-facing-up",semver:null},{emoji:"\u{1F4A5}",entity:"&#x1f4a5;",code:":boom:",description:"Introduce breaking changes.",name:"boom",semver:"major"},{emoji:"\u{1F371}",entity:"&#1F371",code:":bento:",description:"Add or update assets.",name:"bento",semver:"patch"},{emoji:"\u267F\uFE0F",entity:"&#9855;",code:":wheelchair:",description:"Improve accessibility.",name:"wheelchair",semver:"patch"},{emoji:"\u{1F4A1}",entity:"&#128161;",code:":bulb:",description:"Add or update comments in source code.",name:"bulb",semver:null},{emoji:"\u{1F37B}",entity:"&#x1f37b;",code:":beers:",description:"Write code drunkenly.",name:"beers",semver:null},{emoji:"\u{1F4AC}",entity:"&#128172;",code:":speech_balloon:",description:"Add or update text and literals.",name:"speech-balloon",semver:"patch"},{emoji:"\u{1F5C3}\uFE0F",entity:"&#128451;",code:":card_file_box:",description:"Perform database related changes.",name:"card-file-box",semver:"patch"},{emoji:"\u{1F50A}",entity:"&#128266;",code:":loud_sound:",description:"Add or update logs.",name:"loud-sound",semver:null},{emoji:"\u{1F507}",entity:"&#128263;",code:":mute:",description:"Remove logs.",name:"mute",semver:null},{emoji:"\u{1F465}",entity:"&#128101;",code:":busts_in_silhouette:",description:"Add or update contributor(s).",name:"busts-in-silhouette",semver:null},{emoji:"\u{1F6B8}",entity:"&#128696;",code:":children_crossing:",description:"Improve user experience / usability.",name:"children-crossing",semver:"patch"},{emoji:"\u{1F3D7}\uFE0F",entity:"&#1f3d7;",code:":building_construction:",description:"Make architectural changes.",name:"building-construction",semver:null},{emoji:"\u{1F4F1}",entity:"&#128241;",code:":iphone:",description:"Work on responsive design.",name:"iphone",semver:"patch"},{emoji:"\u{1F921}",entity:"&#129313;",code:":clown_face:",description:"Mock things.",name:"clown-face",semver:null},{emoji:"\u{1F95A}",entity:"&#129370;",code:":egg:",description:"Add or update an easter egg.",name:"egg",semver:"patch"},{emoji:"\u{1F648}",entity:"&#8bdfe7;",code:":see_no_evil:",description:"Add or update a .gitignore file.",name:"see-no-evil",semver:null},{emoji:"\u{1F4F8}",entity:"&#128248;",code:":camera_flash:",description:"Add or update snapshots.",name:"camera-flash",semver:null},{emoji:"\u2697\uFE0F",entity:"&#128248;",code:":alembic:",description:"Perform experiments.",name:"alembic",semver:"patch"},{emoji:"\u{1F50D}\uFE0F",entity:"&#128269;",code:":mag:",description:"Improve SEO.",name:"mag",semver:"patch"},{emoji:"\u{1F3F7}\uFE0F",entity:"&#127991;",code:":label:",description:"Add or update types.",name:"label",semver:"patch"},{emoji:"\u{1F331}",entity:"&#127793;",code:":seedling:",description:"Add or update seed files.",name:"seedling",semver:null},{emoji:"\u{1F6A9}",entity:"&#x1F6A9;",code:":triangular_flag_on_post:",description:"Add, update, or remove feature flags.",name:"triangular-flag-on-post",semver:"patch"},{emoji:"\u{1F945}",entity:"&#x1F945;",code:":goal_net:",description:"Catch errors.",name:"goal-net",semver:"patch"},{emoji:"\u{1F4AB}",entity:"&#x1f4ab;",code:":dizzy:",description:"Add or update animations and transitions.",name:"animation",semver:"patch"},{emoji:"\u{1F5D1}\uFE0F",entity:"&#x1F5D1;",code:":wastebasket:",description:"Deprecate code that needs to be cleaned up.",name:"wastebasket",semver:"patch"},{emoji:"\u{1F6C2}",entity:"&#x1F6C2;",code:":passport_control:",description:"Work on code related to authorization, roles and permissions.",name:"passport-control",semver:"patch"},{emoji:"\u{1FA79}",entity:"&#x1FA79;",code:":adhesive_bandage:",description:"Simple fix for a non-critical issue.",name:"adhesive-bandage",semver:"patch"},{emoji:"\u{1F9D0}",entity:"&#x1F9D0;",code:":monocle_face:",description:"Data exploration/inspection.",name:"monocle-face",semver:null},{emoji:"\u26B0\uFE0F",entity:"&#x26B0;",code:":coffin:",description:"Remove dead code.",name:"coffin",semver:null},{emoji:"\u{1F9EA}",entity:"&#x1F9EA;",code:":test_tube:",description:"Add a failing test.",name:"test-tube",semver:null},{emoji:"\u{1F454}",entity:"&#128084;",code:":necktie:",description:"Add or update business logic",name:"necktie",semver:"patch"},{emoji:"\u{1FA7A}",entity:"&#x1FA7A;",code:":stethoscope:",description:"Add or update healthcheck.",name:"stethoscope",semver:null},{emoji:"\u{1F9F1}",entity:"&#x1f9f1;",code:":bricks:",description:"Infrastructure related changes.",name:"bricks",semver:null},{emoji:"\u{1F9D1}\u200D\u{1F4BB}",entity:"&#129489;&#8205;&#128187;",code:":technologist:",description:"Improve developer experience",name:"technologist",semver:null}],E={gitmojis:pe};r();var le=[{from:"art",to:"style"},{from:"zap",to:"perf"},{from:"fire",to:"prune"},{from:"bug",to:"fix",branch:"fix"},{from:"ambulance",to:"hotfix",branch:"hotfix"},{from:"sparkles",to:"feat",branch:"feature"},{from:"memo",to:"docs"},{from:"rocket",to:"deploy"},{from:"lipstick",to:"ui"},{from:"tada",to:"init",semver:"patch"},{from:"white-check-mark",to:"test",branch:"test"},{from:"lock",to:"security"},{from:"bookmark",to:"release",branch:"release"},{from:"rotating-light",to:"lint"},{from:"construction",to:"wip"},{from:"green-heart",to:"fix-ci"},{from:"arrow-down",to:"downgrade"},{from:"arrow-up",to:"upgrade"},{from:"pushpin",to:"pushpin"},{from:"construction-worker",to:"ci",branch:"ci"},{from:"chart-with-upwards-trend",to:"analytics"},{from:"recycle",to:"refactor",branch:"refactor"},{from:"heavy-plus-sign",to:"dep-add"},{from:"heavy-minus-sign",to:"dep-rm"},{from:"wrench",to:"config"},{from:"hammer",to:"build"},{from:"globe-with-meridians",to:"i18n"},{from:"pencil2",to:"typo"},{from:"poop",to:"poo"},{from:"rewind",to:"revert"},{from:"twisted-rightwards-arrows",to:"merge"},{from:"package",to:"dep-up"},{from:"alien",to:"compat"},{from:"truck",to:"mv"},{from:"page-facing-up",to:"license"},{from:"boom",to:"breaking",semver:"major"},{from:"bento",to:"assets"},{from:"wheelchair",to:"access"},{from:"bulb",to:"docs-code"},{from:"beers",to:"beer"},{from:"speech-balloon",to:"texts"},{from:"card-file-box",to:"db"},{from:"loud-sound",to:"log-add"},{from:"mute",to:"log-rm"},{from:"busts-in-silhouette",to:"contrib-add"},{from:"children-crossing",to:"ux"},{from:"building-construction",to:"arch"},{from:"iphone",to:"iphone"},{from:"clown-face",to:"mock"},{from:"egg",to:"egg"},{from:"see-no-evil",to:"ignore"},{from:"camera-flash",to:"snapshot"},{from:"alembic",to:"experiment"},{from:"mag",to:"seo"},{from:"label",to:"types"},{from:"seedling",to:"seed"},{from:"triangular-flag-on-post",to:"flags"},{from:"goal-net",to:"catch"},{from:"animation",to:"animation"},{from:"wastebasket",to:"clean"},{from:"passport-control",to:"roles"},{from:"adhesive-bandage",to:"patch"},{from:"monocle-face",to:"data"},{from:"coffin",to:"rip"},{from:"test-tube",to:"test-fail"},{from:"necktie",to:"logic"},{from:"stethoscope",to:"healthcheck"},{from:"bricks",to:"inf"},{from:"technologist",to:"dx"},{from:"closed-lock-with-key",to:"secrets"}],F=le;r();var ue={chore:{branch:"chore",code:":computer_disk:",commit:"chore",description:"Changes that don\u2019t modify src or test files",emoji:"\u{1F4BD}\uFE0F",entity:"&#x1f4bd;",name:"computer-disk",semver:null},rollforward:{branch:null,code:":fast_forward:",commit:"rollforward",description:"Create rollforward version.",emoji:"\u23E9\uFE0F",entity:"&#23E9;",name:"rollforward",semver:null},"run-build":{branch:null,code:":rocket:",commit:"run-build",description:"Custom type for CI/CD to hook into run build override.",emoji:"\u{1F680}\uFE0F",entity:"&#1F680;",name:"run-build",semver:"patch"}},v=ue;var{gitmojis:fe}=E,he=()=>(fe.map(e=>{let t=F.find(n=>(n==null?void 0:n.from)===e.name);if(t){let n=t.semver===void 0?(e==null?void 0:e.semver)||null:t.semver||(e==null?void 0:e.semver)||null;v[t.to]={branch:Boolean(t==null?void 0:t.branch)?t.branch:null,code:e==null?void 0:e.code,commit:t.to,description:e==null?void 0:e.description,emoji:e==null?void 0:e.emoji,entity:e==null?void 0:e.entity,name:e==null?void 0:e.name,semver:n?n.replace("fix","patch").replace("feature","minor").replace("breaking","major"):null}}else console.dir(`@todo(conventional-gitmoji) create rewrite for: ${e.name}`)}),Object.keys(v).sort().reduce((e,t)=>(e[t]=v[t],e),{})),O=he;r();var d=[],ve=o=>(Object.keys(o).map(e=>{let t=o[e];!!t&&!!t.semver&&(d.push({release:t.semver,type:t==null?void 0:t.code.replace(/(:[^:]*):/g,"$1")}),d.push({release:t.semver,type:t==null?void 0:t.code}),d.push({release:t.semver,type:t.commit}),d.push({release:t.semver,type:t.emoji}))}),d),T=ve;r();var W=oe(M(),1),H=[],Ie=o=>(Object.keys(o).map(e=>{H.push({code:o[e].code,description:(0,W.default)(o[e].description.replace(".","")),emoji:o[e].emoji,semver:o[e].semver,type:o[e].commit,value:o[e].commit})}),H),z=Ie;var{parserOpts:po,writerOpts:lo}=j,L=O(),uo=T(L),k=z(L);var fo=j;export{fo as default,po as parserOpts,uo as releaseRules,k as typeSpecs,L as types,lo as writerOpts};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jeromefitz/conventional-gitmoji",
3
- "version": "2.1.2",
3
+ "version": "3.0.0-contribs.1",
4
4
  "description": "Helper package for dual gitmoji / conventional commits",
5
5
  "author": {
6
6
  "name": "Jerome Fitzgerald",
@@ -23,6 +23,7 @@
23
23
  "scripts": {
24
24
  "build": "tsup",
25
25
  "dev": "tsup --watch",
26
+ "generate:types": "node ./scripts/generateTypes.js && yarn lint:fix",
26
27
  "---": "",
27
28
  "clean": "rm -rf .turbo && rm -rf dist",
28
29
  "clean:install": "yarn clean && rm -rf node_modules",
@@ -36,10 +37,17 @@
36
37
  "semantic-release": "semantic-release",
37
38
  "semantic-release:mono": "semantic-release -e semantic-release-monorepo"
38
39
  },
40
+ "dependencies": {
41
+ "grapheme-splitter": "1.0.4",
42
+ "lodash": "4.17.21",
43
+ "semantic-release": "19.0.2",
44
+ "title": "3.4.4"
45
+ },
39
46
  "devDependencies": {
47
+ "@types/lodash": "4.14.178",
48
+ "@types/semantic-release": "17.2.3",
40
49
  "@types/title": "3.4.1",
41
- "gitmojis": "3.9.0",
42
- "title": "3.4.4"
50
+ "gitmojis": "3.9.0"
43
51
  },
44
52
  "type": "module",
45
53
  "sideEffects": false,
@@ -0,0 +1 @@
1
+ var r=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var d=t=>r(t,"__esModule",{value:!0});var n=(t,e)=>{for(var i in e)r(t,i,{get:e[i],enumerable:!0})},l=(t,e,i,c)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of s(e))!p.call(t,o)&&(i||o!=="default")&&r(t,o,{get:()=>e[o],enumerable:!(c=a(e,o))||c.enumerable});return t};var m=(t=>(e,i)=>t&&t.get(e)||(i=l(d({}),e,1),t&&t.set(e,i),i))(typeof WeakMap!="undefined"?new WeakMap:0);var g={};n(g,{commit:()=>f});var f=["access","analytics","animation","arch","assets","beer","breaking","build","catch","chore","ci","clean","compat","config","contrib-add","data","db","dep-add","dep-rm","dep-up","deploy","docs","docs-code","downgrade","dx","egg","experiment","feat","fix","fix-ci","flags","healthcheck","hotfix","i18n","ignore","inf","init","iphone","license","lint","log-add","log-rm","logic","merge","mock","mv","patch","perf","poo","prune","pushpin","refactor","release","revert","rip","roles","rollforward","run-build","secrets","security","seed","seo","snapshot","style","test","test-fail","texts","types","typo","ui","upgrade","ux","wip"];module.exports=m(g);0&&(module.exports={commit});
@@ -0,0 +1,5 @@
1
+ import { ICommit } from './commit.types';
2
+
3
+ declare const commit: ICommit[];
4
+
5
+ export { commit };
@@ -0,0 +1 @@
1
+ var i=["access","analytics","animation","arch","assets","beer","breaking","build","catch","chore","ci","clean","compat","config","contrib-add","data","db","dep-add","dep-rm","dep-up","deploy","docs","docs-code","downgrade","dx","egg","experiment","feat","fix","fix-ci","flags","healthcheck","hotfix","i18n","ignore","inf","init","iphone","license","lint","log-add","log-rm","logic","merge","mock","mv","patch","perf","poo","prune","pushpin","refactor","release","revert","rip","roles","rollforward","run-build","secrets","security","seed","seo","snapshot","style","test","test-fail","texts","types","typo","ui","upgrade","ux","wip"];export{i as commit};
@@ -0,0 +1 @@
1
+ var a=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var p=e=>a(e,"__esModule",{value:!0});var n=(e,t,i,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of s(t))!d.call(e,o)&&(i||o!=="default")&&a(e,o,{get:()=>t[o],enumerable:!(r=c(t,o))||r.enumerable});return e};var l=(e=>(t,i)=>e&&e.get(t)||(i=n(p({}),t,1),e&&e.set(t,i),i))(typeof WeakMap!="undefined"?new WeakMap:0);var g={};module.exports=l(g);
@@ -0,0 +1,3 @@
1
+ declare type ICommit = 'access' | 'analytics' | 'animation' | 'arch' | 'assets' | 'beer' | 'breaking' | 'build' | 'catch' | 'chore' | 'ci' | 'clean' | 'compat' | 'config' | 'contrib-add' | 'data' | 'db' | 'dep-add' | 'dep-rm' | 'dep-up' | 'deploy' | 'docs-code' | 'docs' | 'downgrade' | 'dx' | 'egg' | 'experiment' | 'feat' | 'fix-ci' | 'fix' | 'flags' | 'healthcheck' | 'hotfix' | 'i18n' | 'ignore' | 'inf' | 'init' | 'iphone' | 'license' | 'lint' | 'log-add' | 'log-rm' | 'logic' | 'merge' | 'mock' | 'mv' | 'patch' | 'perf' | 'poo' | 'prune' | 'pushpin' | 'refactor' | 'release' | 'revert' | 'rip' | 'roles' | 'rollforward' | 'run-build' | 'secrets' | 'security' | 'seed' | 'seo' | 'snapshot' | 'style' | 'test-fail' | 'test' | 'texts' | 'types' | 'typo' | 'ui' | 'upgrade' | 'ux' | 'wip';
2
+
3
+ export { ICommit };
File without changes