@jeromefitz/conventional-gitmoji 2.1.2-kbar-from-website.1 → 3.0.0-contribs.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) 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/changelog/index.cjs +1 -0
  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/getGitmojiConventional.js +0 -1
  64. package/getReleaseRules.cjs +0 -1
  65. package/getReleaseRules.d.ts +0 -12
  66. package/getReleaseRules.js +0 -1
  67. package/getTypeSpecs.cjs +0 -1
  68. package/getTypeSpecs.d.ts +0 -14
  69. package/getTypeSpecs.js +0 -1
@@ -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 U=Object.create;var x=Object.defineProperty;var B=Object.getOwnPropertyDescriptor;var H=Object.getOwnPropertyNames;var J=Object.getPrototypeOf,N=Object.prototype.hasOwnProperty;var V=o=>x(o,"__esModule",{value:!0});var X=(o,e)=>()=>(o&&(e=o(o=0)),e);var w=(o,e)=>()=>(e||o((e={exports:{}}).exports,e),e.exports);var q=(o,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of H(e))!N.call(o,i)&&(t||i!=="default")&&x(o,i,{get:()=>e[i],enumerable:!(n=B(e,i))||n.enumerable});return o},Z=(o,e)=>q(V(x(o!=null?U(J(o)):{},"default",!e&&o&&o.__esModule?{get:()=>o.default,enumerable:!0}:{value:o,enumerable:!0})),o);var r=X(()=>{});var P=w((Ie,C)=>{r();var re=["for","and","nor","but","or","yet","so"],ne=["a","an","the"],ie=["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"];C.exports=new Set([...re,...ne,...ie])});var T=w((Se,F)=>{r();var se=["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"];F.exports=se});var D=w((Ae,E)=>{r();var ae=P(),ce=T(),f=`[^\\s'\u2019\\(\\)!?;:"-]`,me=new RegExp(`(?:(?:(\\s?(?:^|[.\\(\\)!?;:"-])\\s*)(${f}))|(${f}))(${f}*[\u2019']*${f}*)`,"g"),de=o=>o.map(e=>[new RegExp(`\\b${e}\\b`,"gi"),e]);function pe(o){let e=o[0];return/\s/.test(e)?o.substr(1):/[\(\)]/.test(e)?null:o}E.exports=(o,e={})=>{o=o.toLowerCase().replace(me,(s,m="",y,l,d,v,b)=>{let g=s.length+v>=b.length,j=pe(s);if(!j)return s;if(!y){let L=l+d;if(ae.has(L)&&!g)return j}return m+(l||y).toUpperCase()+d});let t=e.special||[],n=[...ce,...t];return de(n).forEach(([s,m])=>{o=o.replace(s,m)}),o}});r();r();import ue from"grapheme-splitter";import $ from"lodash/pullAt.js";r();r();var K=[{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}],_={gitmojis:K};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"}],I=Q;r();var Y={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"}},u=Y;var{gitmojis:ee}=_,oe=()=>(ee.map(e=>{let t=I.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;u[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(u).sort().reduce((e,t)=>(e[t]=u[t],e),{})),S=oe;r();var p=[],te=o=>(Object.keys(o).map(e=>{let t=o[e];!!t&&!!t.semver&&(p.push({release:t.semver,type:t==null?void 0:t.code.replace(/(:[^:]*):/g,"$1")}),p.push({release:t.semver,type:t==null?void 0:t.code}),p.push({release:t.semver,type:t.commit}),p.push({release:t.semver,type:t.emoji}))}),p),A=te;r();var M=Z(D(),1),O=[],le=o=>(Object.keys(o).map(e=>{O.push({code:o[e].code,description:(0,M.default)(o[e].description.replace(".","")),emoji:o[e].emoji,semver:o[e].semver,type:o[e].commit,value:o[e].commit})}),O),G=le;var W=S(),Ee=A(W),h=G(W);var k=new ue,fe=(o,e)=>{let{type:t}=o,n=t,i=h.findIndex(({code:d,emoji:v,type:b,value:g})=>{if(n!==null)return n.replace(/\:/g,"")===d.replace(/\:/g,"")||n===b||n===g||n===v});if(i===-1&&(n=k.splitGraphemes(t)[0],i=h.findIndex(({emoji:d})=>{if(n!==null)return n[0]===d[0]||n[0]===k.splitGraphemes(d)[0]})),i===-1)return;let s=h[i];o.type=`${s.emoji} ${s.description}`,o.typeSpecIndex=i,o.typeSpec=s,typeof o.hash=="string"&&(o.hash=o.hash.substring(0,7));let m=k.splitGraphemes(o.subject),l=m[0]===s.emoji?o.subject.replace($(m,[0]),"").replace($(m,[0]),""):o.subject;return o.subject=l.trim(),o},z=fe;var he={transform:(o,e)=>z(o,e),groupBy:"type",commitGroupsSort:["order","title"],commitsSort:["scope","subject"],noteGroupsSort:["title"],notesSort:["title"]},ze=he;export{ze 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 Z=Object.create;var f=Object.defineProperty;var Q=Object.getOwnPropertyDescriptor;var Y=Object.getOwnPropertyNames;var ee=Object.getPrototypeOf,te=Object.prototype.hasOwnProperty;var C=t=>f(t,"__esModule",{value:!0});var oe=(t,e)=>()=>(t&&(e=t(t=0)),e);var k=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),re=(t,e)=>{for(var o in e)f(t,o,{get:e[o],enumerable:!0})},P=(t,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Y(e))!te.call(t,i)&&(o||i!=="default")&&f(t,i,{get:()=>e[i],enumerable:!(n=Q(e,i))||n.enumerable});return t},j=(t,e)=>P(C(f(t!=null?Z(ee(t)):{},"default",!e&&t&&t.__esModule?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t),ne=(t=>(e,o)=>t&&t.get(e)||(o=P(C({}),e,1),t&&t.set(e,o),o))(typeof WeakMap!="undefined"?new WeakMap:0);var r=oe(()=>{});var H=k((st,U)=>{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"];U.exports=new Set([...be,...ge,...xe])});var W=k((at,L)=>{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"];L.exports=we});var K=k((ct,z)=>{r();var ke=H(),je=W(),v=`[^\\s'\u2019\\(\\)!?;:"-]`,Re=new RegExp(`(?:(?:(\\s?(?:^|[.\\(\\)!?;:"-])\\s*)(${v}))|(${v}))(${v}*[\u2019']*${v}*)`,"g"),Ie=t=>t.map(e=>[new RegExp(`\\b${e}\\b`,"gi"),e]);function _e(t){let e=t[0];return/\s/.test(e)?t.substr(1):/[\(\)]/.test(e)?null:t}z.exports=(t,e={})=>{t=t.toLowerCase().replace(Re,(a,c="",b,u,m,g,x)=>{let w=a.length+g>=x.length,S=_e(a);if(!S)return a;if(!b){let q=u+m;if(ke.has(q)&&!w)return S}return c+(u||b).toUpperCase()+m});let o=e.special||[],n=[...je,...o];return Ie(n).forEach(([a,c])=>{t=t.replace(a,c)}),t}});var Fe={};re(Fe,{default:()=>Ee,parserOpts:()=>Se,releaseRules:()=>Pe,typeSpecs:()=>p,types:()=>A,writerOpts:()=>Ce});r();r();r();r();var ie={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"]},d=ie;r();r();var E=j(require("grapheme-splitter"),1),I=j(require("lodash/pullAt.js"),1);var R=new E.default,se=(t,e)=>{let{type:o}=t,n=o,i=p.findIndex(({code:m,emoji:g,type:x,value:w})=>{if(n!==null)return n.replace(/\:/g,"")===m.replace(/\:/g,"")||n===x||n===w||n===g});if(i===-1&&(n=R.splitGraphemes(o)[0],i=p.findIndex(({emoji:m})=>{if(n!==null)return n[0]===m[0]||n[0]===R.splitGraphemes(m)[0]})),i===-1)return;let a=p[i];t.type=`${a.emoji} ${a.description}`,t.typeSpecIndex=i,t.typeSpec=a,typeof t.hash=="string"&&(t.hash=t.hash.substring(0,7));let c=R.splitGraphemes(t.subject),u=c[0]===a.emoji?t.subject.replace((0,I.default)(c,[0]),"").replace((0,I.default)(c,[0]),""):t.subject;return t.subject=u.trim(),t},F=se;var ae={transform:(t,e)=>F(t,e),groupBy:"type",commitGroupsSort:["order","title"],commitsSort:["scope","subject"],noteGroupsSort:["title"],notesSort:["title"]},h=ae;var ce={parserOpts:d,writerOpts:h},O=ce;r();var me={parserOpts:d,whatBump:t=>{let e=2,o=0,n=0;return t.forEach(i=>{i.notes.length>0?(o+=i.notes.length,e=0):i.type==="feat"&&(n+=1,e===2&&(e=1))}),{level:e,reason:o===1?`There is ${o} BREAKING CHANGE and ${n} features`:`There are ${o} BREAKING CHANGES and ${n} features`}}},T=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"},G=de;var pe={conventionalChangelog:O,parserOpts:d,recommendedBumpOpts:T,writerOpts:h,gitRawCommitsOpts:G},_=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}],$={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"}],D=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"}},y=fe;var{gitmojis:he}=$,ye=()=>(he.map(e=>{let o=D.find(n=>(n==null?void 0:n.from)===e.name);if(o){let n=o.semver===void 0?(e==null?void 0:e.semver)||null:o.semver||(e==null?void 0:e.semver)||null;y[o.to]={branch:Boolean(o==null?void 0:o.branch)?o.branch:null,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: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(y).sort().reduce((e,o)=>(e[o]=y[o],e),{})),M=ye;r();var l=[],ve=t=>(Object.keys(t).map(e=>{let o=t[e];!!o&&!!o.semver&&(l.push({release:o.semver,type:o==null?void 0:o.code.replace(/(:[^:]*):/g,"$1")}),l.push({release:o.semver,type:o==null?void 0:o.code}),l.push({release:o.semver,type:o.commit}),l.push({release:o.semver,type:o.emoji}))}),l),N=ve;r();var V=j(K(),1),J=[],Ae=t=>(Object.keys(t).map(e=>{J.push({code:t[e].code,description:(0,V.default)(t[e].description.replace(".","")),emoji:t[e].emoji,semver:t[e].semver,type:t[e].commit,value:t[e].commit})}),J),X=Ae;var{parserOpts:Se,writerOpts:Ce}=_,A=M(),Pe=N(A),p=X(A);var Ee=_;module.exports=ne(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 V=Object.create;var k=Object.defineProperty;var X=Object.getOwnPropertyDescriptor;var q=Object.getOwnPropertyNames;var Z=Object.getPrototypeOf,Q=Object.prototype.hasOwnProperty;var Y=t=>k(t,"__esModule",{value:!0});var ee=(t,e)=>()=>(t&&(e=t(t=0)),e);var j=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var te=(t,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of q(e))!Q.call(t,i)&&(o||i!=="default")&&k(t,i,{get:()=>e[i],enumerable:!(n=X(e,i))||n.enumerable});return t},oe=(t,e)=>te(Y(k(t!=null?V(Z(t)):{},"default",!e&&t&&t.__esModule?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t);var r=ee(()=>{});var $=j((ot,D)=>{r();var ve=["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"];D.exports=new Set([...ve,...be,...ge])});var M=j((rt,N)=>{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"];N.exports=xe});var W=j((nt,H)=>{r();var we=$(),ke=M(),v=`[^\\s'\u2019\\(\\)!?;:"-]`,je=new RegExp(`(?:(?:(\\s?(?:^|[.\\(\\)!?;:"-])\\s*)(${v}))|(${v}))(${v}*[\u2019']*${v}*)`,"g"),Re=t=>t.map(e=>[new RegExp(`\\b${e}\\b`,"gi"),e]);function _e(t){let e=t[0];return/\s/.test(e)?t.substr(1):/[\(\)]/.test(e)?null:t}H.exports=(t,e={})=>{t=t.toLowerCase().replace(je,(c,m="",b,u,d,g,x)=>{let w=c.length+g>=x.length,I=_e(c);if(!I)return c;if(!b){let J=u+d;if(we.has(J)&&!w)return I}return m+(u||b).toUpperCase()+d});let o=e.special||[],n=[...ke,...o];return Re(n).forEach(([c,m])=>{t=t.replace(c,m)}),t}});r();r();r();r();var re={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"]},p=re;r();r();import ne from"grapheme-splitter";import A from"lodash/pullAt.js";var R=new ne,ie=(t,e)=>{let{type:o}=t,n=o,i=f.findIndex(({code:d,emoji:g,type:x,value:w})=>{if(n!==null)return n.replace(/\:/g,"")===d.replace(/\:/g,"")||n===x||n===w||n===g});if(i===-1&&(n=R.splitGraphemes(o)[0],i=f.findIndex(({emoji:d})=>{if(n!==null)return n[0]===d[0]||n[0]===R.splitGraphemes(d)[0]})),i===-1)return;let c=f[i];t.type=`${c.emoji} ${c.description}`,t.typeSpecIndex=i,t.typeSpec=c,typeof t.hash=="string"&&(t.hash=t.hash.substring(0,7));let m=R.splitGraphemes(t.subject),u=m[0]===c.emoji?t.subject.replace(A(m,[0]),"").replace(A(m,[0]),""):t.subject;return t.subject=u.trim(),t},C=ie;var se={transform:(t,e)=>C(t,e),groupBy:"type",commitGroupsSort:["order","title"],commitsSort:["scope","subject"],noteGroupsSort:["title"],notesSort:["title"]},h=se;var ae={parserOpts:p,writerOpts:h},S=ae;r();var ce={parserOpts:p,whatBump:t=>{let e=2,o=0,n=0;return t.forEach(i=>{i.notes.length>0?(o+=i.notes.length,e=0):i.type==="feat"&&(n+=1,e===2&&(e=1))}),{level:e,reason:o===1?`There is ${o} BREAKING CHANGE and ${n} features`:`There are ${o} BREAKING CHANGES and ${n} features`}}},P=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"},E=me;var de={conventionalChangelog:S,parserOpts:p,recommendedBumpOpts:P,writerOpts:h,gitRawCommitsOpts:E},_=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}],O={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"}],T=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"}},y=ue;var{gitmojis:fe}=O,he=()=>(fe.map(e=>{let o=T.find(n=>(n==null?void 0:n.from)===e.name);if(o){let n=o.semver===void 0?(e==null?void 0:e.semver)||null:o.semver||(e==null?void 0:e.semver)||null;y[o.to]={branch:Boolean(o==null?void 0:o.branch)?o.branch:null,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: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(y).sort().reduce((e,o)=>(e[o]=y[o],e),{})),G=he;r();var l=[],ye=t=>(Object.keys(t).map(e=>{let o=t[e];!!o&&!!o.semver&&(l.push({release:o.semver,type:o==null?void 0:o.code.replace(/(:[^:]*):/g,"$1")}),l.push({release:o.semver,type:o==null?void 0:o.code}),l.push({release:o.semver,type:o.commit}),l.push({release:o.semver,type:o.emoji}))}),l),B=ye;r();var L=oe(W(),1),z=[],Ie=t=>(Object.keys(t).map(e=>{z.push({code:t[e].code,description:(0,L.default)(t[e].description.replace(".","")),emoji:t[e].emoji,semver:t[e].semver,type:t[e].commit,value:t[e].commit})}),z),U=Ie;var{parserOpts:dt,writerOpts:pt}=_,K=G(),lt=B(K),f=U(K);var ut=_;export{ut as default,dt as parserOpts,lt as releaseRules,f as typeSpecs,K as types,pt as writerOpts};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jeromefitz/conventional-gitmoji",
3
- "version": "2.1.2-kbar-from-website.1",
3
+ "version": "3.0.0-contribs.2",
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
@@ -0,0 +1 @@
1
+ var n=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var p=t=>n(t,"__esModule",{value:!0});var u=(t,e)=>{for(var i in e)n(t,i,{get:e[i],enumerable:!0})},h=(t,e,i,c)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of d(e))!l.call(t,o)&&(i||o!=="default")&&n(t,o,{get:()=>e[o],enumerable:!(c=s(e,o))||c.enumerable});return t};var b=(t=>(e,i)=>t&&t.get(e)||(i=h(p({}),e,1),t&&t.set(e,i),i))(typeof WeakMap!="undefined"?new WeakMap:0);var y={};u(y,{commitTypes:()=>a,releaseRuleTypes:()=>m});var a=["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"];var m={access:{branch:null,code:":wheelchair:",commit:"access",description:"Improve accessibility.",emoji:"\u267F\uFE0F",entity:"&#9855;",name:"wheelchair",semver:"patch"},analytics:{branch:null,code:":chart_with_upwards_trend:",commit:"analytics",description:"Add or update analytics or track code.",emoji:"\u{1F4C8}",entity:"&#x1F4C8;",name:"chart-with-upwards-trend",semver:"patch"},animation:{branch:null,code:":dizzy:",commit:"animation",description:"Add or update animations and transitions.",emoji:"\u{1F4AB}",entity:"&#x1f4ab;",name:"animation",semver:"patch"},arch:{branch:null,code:":building_construction:",commit:"arch",description:"Make architectural changes.",emoji:"\u{1F3D7}\uFE0F",entity:"&#1f3d7;",name:"building-construction",semver:null},assets:{branch:null,code:":bento:",commit:"assets",description:"Add or update assets.",emoji:"\u{1F371}",entity:"&#1F371",name:"bento",semver:"patch"},beer:{branch:null,code:":beers:",commit:"beer",description:"Write code drunkenly.",emoji:"\u{1F37B}",entity:"&#x1f37b;",name:"beers",semver:null},breaking:{branch:null,code:":boom:",commit:"breaking",description:"Introduce breaking changes.",emoji:"\u{1F4A5}",entity:"&#x1f4a5;",name:"boom",semver:"major"},build:{branch:null,code:":hammer:",commit:"build",description:"Add or update development scripts.",emoji:"\u{1F528}",entity:"&#128296;",name:"hammer",semver:null},catch:{branch:null,code:":goal_net:",commit:"catch",description:"Catch errors.",emoji:"\u{1F945}",entity:"&#x1F945;",name:"goal-net",semver:"patch"},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},ci:{branch:"ci",code:":construction_worker:",commit:"ci",description:"Add or update CI build system.",emoji:"\u{1F477}",entity:"&#x1f477;",name:"construction-worker",semver:null},clean:{branch:null,code:":wastebasket:",commit:"clean",description:"Deprecate code that needs to be cleaned up.",emoji:"\u{1F5D1}\uFE0F",entity:"&#x1F5D1;",name:"wastebasket",semver:"patch"},compat:{branch:null,code:":alien:",commit:"compat",description:"Update code due to external API changes.",emoji:"\u{1F47D}\uFE0F",entity:"&#1F47D;",name:"alien",semver:"patch"},config:{branch:null,code:":wrench:",commit:"config",description:"Add or update configuration files.",emoji:"\u{1F527}",entity:"&#x1f527;",name:"wrench",semver:"patch"},"contrib-add":{branch:null,code:":busts_in_silhouette:",commit:"contrib-add",description:"Add or update contributor(s).",emoji:"\u{1F465}",entity:"&#128101;",name:"busts-in-silhouette",semver:null},data:{branch:null,code:":monocle_face:",commit:"data",description:"Data exploration/inspection.",emoji:"\u{1F9D0}",entity:"&#x1F9D0;",name:"monocle-face",semver:null},db:{branch:null,code:":card_file_box:",commit:"db",description:"Perform database related changes.",emoji:"\u{1F5C3}\uFE0F",entity:"&#128451;",name:"card-file-box",semver:"patch"},"dep-add":{branch:null,code:":heavy_plus_sign:",commit:"dep-add",description:"Add a dependency.",emoji:"\u2795",entity:"&#10133;",name:"heavy-plus-sign",semver:"patch"},"dep-rm":{branch:null,code:":heavy_minus_sign:",commit:"dep-rm",description:"Remove a dependency.",emoji:"\u2796",entity:"&#10134;",name:"heavy-minus-sign",semver:"patch"},"dep-up":{branch:null,code:":package:",commit:"dep-up",description:"Add or update compiled files or packages.",emoji:"\u{1F4E6}\uFE0F",entity:"&#1F4E6;",name:"package",semver:"patch"},deploy:{branch:null,code:":rocket:",commit:"deploy",description:"Deploy stuff.",emoji:"\u{1F680}",entity:"&#x1f680;",name:"rocket",semver:null},docs:{branch:null,code:":memo:",commit:"docs",description:"Add or update documentation.",emoji:"\u{1F4DD}",entity:"&#x1f4dd;",name:"memo",semver:null},"docs-code":{branch:null,code:":bulb:",commit:"docs-code",description:"Add or update comments in source code.",emoji:"\u{1F4A1}",entity:"&#128161;",name:"bulb",semver:null},downgrade:{branch:null,code:":arrow_down:",commit:"downgrade",description:"Downgrade dependencies.",emoji:"\u2B07\uFE0F",entity:"\u2B07\uFE0F",name:"arrow-down",semver:"patch"},dx:{branch:null,code:":technologist:",commit:"dx",description:"Improve developer experience",emoji:"\u{1F9D1}\u200D\u{1F4BB}",entity:"&#129489;&#8205;&#128187;",name:"technologist",semver:null},egg:{branch:null,code:":egg:",commit:"egg",description:"Add or update an easter egg.",emoji:"\u{1F95A}",entity:"&#129370;",name:"egg",semver:"patch"},experiment:{branch:null,code:":alembic:",commit:"experiment",description:"Perform experiments.",emoji:"\u2697\uFE0F",entity:"&#128248;",name:"alembic",semver:"patch"},feat:{branch:"feature",code:":sparkles:",commit:"feat",description:"Introduce new features.",emoji:"\u2728",entity:"&#x2728;",name:"sparkles",semver:"minor"},fix:{branch:"fix",code:":bug:",commit:"fix",description:"Fix a bug.",emoji:"\u{1F41B}",entity:"&#x1f41b;",name:"bug",semver:"patch"},"fix-ci":{branch:null,code:":green_heart:",commit:"fix-ci",description:"Fix CI Build.",emoji:"\u{1F49A}",entity:"&#x1f49a;",name:"green-heart",semver:null},flags:{branch:null,code:":triangular_flag_on_post:",commit:"flags",description:"Add, update, or remove feature flags.",emoji:"\u{1F6A9}",entity:"&#x1F6A9;",name:"triangular-flag-on-post",semver:"patch"},healthcheck:{branch:null,code:":stethoscope:",commit:"healthcheck",description:"Add or update healthcheck.",emoji:"\u{1FA7A}",entity:"&#x1FA7A;",name:"stethoscope",semver:null},hotfix:{branch:"hotfix",code:":ambulance:",commit:"hotfix",description:"Critical hotfix.",emoji:"\u{1F691}\uFE0F",entity:"&#128657;",name:"ambulance",semver:"patch"},i18n:{branch:null,code:":globe_with_meridians:",commit:"i18n",description:"Internationalization and localization.",emoji:"\u{1F310}",entity:"&#127760;",name:"globe-with-meridians",semver:"patch"},ignore:{branch:null,code:":see_no_evil:",commit:"ignore",description:"Add or update a .gitignore file.",emoji:"\u{1F648}",entity:"&#8bdfe7;",name:"see-no-evil",semver:null},inf:{branch:null,code:":bricks:",commit:"inf",description:"Infrastructure related changes.",emoji:"\u{1F9F1}",entity:"&#x1f9f1;",name:"bricks",semver:null},init:{branch:null,code:":tada:",commit:"init",description:"Begin a project.",emoji:"\u{1F389}",entity:"&#127881;",name:"tada",semver:"patch"},iphone:{branch:null,code:":iphone:",commit:"iphone",description:"Work on responsive design.",emoji:"\u{1F4F1}",entity:"&#128241;",name:"iphone",semver:"patch"},license:{branch:null,code:":page_facing_up:",commit:"license",description:"Add or update license.",emoji:"\u{1F4C4}",entity:"&#1F4C4;",name:"page-facing-up",semver:null},lint:{branch:null,code:":rotating_light:",commit:"lint",description:"Fix compiler / linter warnings.",emoji:"\u{1F6A8}",entity:"&#x1f6a8;",name:"rotating-light",semver:null},"log-add":{branch:null,code:":loud_sound:",commit:"log-add",description:"Add or update logs.",emoji:"\u{1F50A}",entity:"&#128266;",name:"loud-sound",semver:null},"log-rm":{branch:null,code:":mute:",commit:"log-rm",description:"Remove logs.",emoji:"\u{1F507}",entity:"&#128263;",name:"mute",semver:null},logic:{branch:null,code:":necktie:",commit:"logic",description:"Add or update business logic",emoji:"\u{1F454}",entity:"&#128084;",name:"necktie",semver:"patch"},merge:{branch:null,code:":twisted_rightwards_arrows:",commit:"merge",description:"Merge branches.",emoji:"\u{1F500}",entity:"&#128256;",name:"twisted-rightwards-arrows",semver:null},mock:{branch:null,code:":clown_face:",commit:"mock",description:"Mock things.",emoji:"\u{1F921}",entity:"&#129313;",name:"clown-face",semver:null},mv:{branch:null,code:":truck:",commit:"mv",description:"Move or rename resources (e.g.: files, paths, routes).",emoji:"\u{1F69A}",entity:"&#1F69A;",name:"truck",semver:null},patch:{branch:null,code:":adhesive_bandage:",commit:"patch",description:"Simple fix for a non-critical issue.",emoji:"\u{1FA79}",entity:"&#x1FA79;",name:"adhesive-bandage",semver:"patch"},perf:{branch:null,code:":zap:",commit:"perf",description:"Improve performance.",emoji:"\u26A1\uFE0F",entity:"&#x26a1;",name:"zap",semver:"patch"},poo:{branch:null,code:":poop:",commit:"poo",description:"Write bad code that needs to be improved.",emoji:"\u{1F4A9}",entity:"&#58613;",name:"poop",semver:null},prune:{branch:null,code:":fire:",commit:"prune",description:"Remove code or files.",emoji:"\u{1F525}",entity:"&#x1f525;",name:"fire",semver:null},pushpin:{branch:null,code:":pushpin:",commit:"pushpin",description:"Pin dependencies to specific versions.",emoji:"\u{1F4CC}",entity:"&#x1F4CC;",name:"pushpin",semver:"patch"},refactor:{branch:"refactor",code:":recycle:",commit:"refactor",description:"Refactor code.",emoji:"\u267B\uFE0F",entity:"&#x2672;",name:"recycle",semver:null},release:{branch:"release",code:":bookmark:",commit:"release",description:"Release / Version tags.",emoji:"\u{1F516}",entity:"&#x1f516;",name:"bookmark",semver:null},revert:{branch:null,code:":rewind:",commit:"revert",description:"Revert changes.",emoji:"\u23EA\uFE0F",entity:"&#9194;",name:"rewind",semver:"patch"},rip:{branch:null,code:":coffin:",commit:"rip",description:"Remove dead code.",emoji:"\u26B0\uFE0F",entity:"&#x26B0;",name:"coffin",semver:null},roles:{branch:null,code:":passport_control:",commit:"roles",description:"Work on code related to authorization, roles and permissions.",emoji:"\u{1F6C2}",entity:"&#x1F6C2;",name:"passport-control",semver:"patch"},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"},secrets:{branch:null,code:":closed_lock_with_key:",commit:"secrets",description:"Add or update secrets.",emoji:"\u{1F510}",entity:"&#x1f510;",name:"closed-lock-with-key",semver:null},security:{branch:null,code:":lock:",commit:"security",description:"Fix security issues.",emoji:"\u{1F512}\uFE0F",entity:"&#x1f512;",name:"lock",semver:"patch"},seed:{branch:null,code:":seedling:",commit:"seed",description:"Add or update seed files.",emoji:"\u{1F331}",entity:"&#127793;",name:"seedling",semver:null},seo:{branch:null,code:":mag:",commit:"seo",description:"Improve SEO.",emoji:"\u{1F50D}\uFE0F",entity:"&#128269;",name:"mag",semver:"patch"},snapshot:{branch:null,code:":camera_flash:",commit:"snapshot",description:"Add or update snapshots.",emoji:"\u{1F4F8}",entity:"&#128248;",name:"camera-flash",semver:null},style:{branch:null,code:":art:",commit:"style",description:"Improve structure / format of the code.",emoji:"\u{1F3A8}",entity:"&#x1f3a8;",name:"art",semver:null},test:{branch:"test",code:":white_check_mark:",commit:"test",description:"Add, update, or pass tests.",emoji:"\u2705",entity:"&#x2705;",name:"white-check-mark",semver:null},"test-fail":{branch:null,code:":test_tube:",commit:"test-fail",description:"Add a failing test.",emoji:"\u{1F9EA}",entity:"&#x1F9EA;",name:"test-tube",semver:null},texts:{branch:null,code:":speech_balloon:",commit:"texts",description:"Add or update text and literals.",emoji:"\u{1F4AC}",entity:"&#128172;",name:"speech-balloon",semver:"patch"},types:{branch:null,code:":label:",commit:"types",description:"Add or update types.",emoji:"\u{1F3F7}\uFE0F",entity:"&#127991;",name:"label",semver:"patch"},typo:{branch:null,code:":pencil2:",commit:"typo",description:"Fix typos.",emoji:"\u270F\uFE0F",entity:"&#59161;",name:"pencil2",semver:"patch"},ui:{branch:null,code:":lipstick:",commit:"ui",description:"Add or update the UI and style files.",emoji:"\u{1F484}",entity:"&#ff99cc;",name:"lipstick",semver:"patch"},upgrade:{branch:null,code:":arrow_up:",commit:"upgrade",description:"Upgrade dependencies.",emoji:"\u2B06\uFE0F",entity:"\u2B06\uFE0F",name:"arrow-up",semver:"patch"},ux:{branch:null,code:":children_crossing:",commit:"ux",description:"Improve user experience / usability.",emoji:"\u{1F6B8}",entity:"&#128696;",name:"children-crossing",semver:"patch"},wip:{branch:null,code:":construction:",commit:"wip",description:"Work in progress.",emoji:"\u{1F6A7}",entity:"&#x1f6a7;",name:"construction",semver:null}};module.exports=b(y);0&&(module.exports={commitTypes,releaseRuleTypes});
@@ -0,0 +1,4 @@
1
+ export { ICommit } from './commit.types';
2
+ export { commit as commitTypes } from './commit';
3
+ export { IReleaseRule, IReleaseRuleProps } from './releaseRule.types';
4
+ export { releaseRule as releaseRuleTypes } from './releaseRule';
package/types/index.js ADDED
@@ -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"];var o={access:{branch:null,code:":wheelchair:",commit:"access",description:"Improve accessibility.",emoji:"\u267F\uFE0F",entity:"&#9855;",name:"wheelchair",semver:"patch"},analytics:{branch:null,code:":chart_with_upwards_trend:",commit:"analytics",description:"Add or update analytics or track code.",emoji:"\u{1F4C8}",entity:"&#x1F4C8;",name:"chart-with-upwards-trend",semver:"patch"},animation:{branch:null,code:":dizzy:",commit:"animation",description:"Add or update animations and transitions.",emoji:"\u{1F4AB}",entity:"&#x1f4ab;",name:"animation",semver:"patch"},arch:{branch:null,code:":building_construction:",commit:"arch",description:"Make architectural changes.",emoji:"\u{1F3D7}\uFE0F",entity:"&#1f3d7;",name:"building-construction",semver:null},assets:{branch:null,code:":bento:",commit:"assets",description:"Add or update assets.",emoji:"\u{1F371}",entity:"&#1F371",name:"bento",semver:"patch"},beer:{branch:null,code:":beers:",commit:"beer",description:"Write code drunkenly.",emoji:"\u{1F37B}",entity:"&#x1f37b;",name:"beers",semver:null},breaking:{branch:null,code:":boom:",commit:"breaking",description:"Introduce breaking changes.",emoji:"\u{1F4A5}",entity:"&#x1f4a5;",name:"boom",semver:"major"},build:{branch:null,code:":hammer:",commit:"build",description:"Add or update development scripts.",emoji:"\u{1F528}",entity:"&#128296;",name:"hammer",semver:null},catch:{branch:null,code:":goal_net:",commit:"catch",description:"Catch errors.",emoji:"\u{1F945}",entity:"&#x1F945;",name:"goal-net",semver:"patch"},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},ci:{branch:"ci",code:":construction_worker:",commit:"ci",description:"Add or update CI build system.",emoji:"\u{1F477}",entity:"&#x1f477;",name:"construction-worker",semver:null},clean:{branch:null,code:":wastebasket:",commit:"clean",description:"Deprecate code that needs to be cleaned up.",emoji:"\u{1F5D1}\uFE0F",entity:"&#x1F5D1;",name:"wastebasket",semver:"patch"},compat:{branch:null,code:":alien:",commit:"compat",description:"Update code due to external API changes.",emoji:"\u{1F47D}\uFE0F",entity:"&#1F47D;",name:"alien",semver:"patch"},config:{branch:null,code:":wrench:",commit:"config",description:"Add or update configuration files.",emoji:"\u{1F527}",entity:"&#x1f527;",name:"wrench",semver:"patch"},"contrib-add":{branch:null,code:":busts_in_silhouette:",commit:"contrib-add",description:"Add or update contributor(s).",emoji:"\u{1F465}",entity:"&#128101;",name:"busts-in-silhouette",semver:null},data:{branch:null,code:":monocle_face:",commit:"data",description:"Data exploration/inspection.",emoji:"\u{1F9D0}",entity:"&#x1F9D0;",name:"monocle-face",semver:null},db:{branch:null,code:":card_file_box:",commit:"db",description:"Perform database related changes.",emoji:"\u{1F5C3}\uFE0F",entity:"&#128451;",name:"card-file-box",semver:"patch"},"dep-add":{branch:null,code:":heavy_plus_sign:",commit:"dep-add",description:"Add a dependency.",emoji:"\u2795",entity:"&#10133;",name:"heavy-plus-sign",semver:"patch"},"dep-rm":{branch:null,code:":heavy_minus_sign:",commit:"dep-rm",description:"Remove a dependency.",emoji:"\u2796",entity:"&#10134;",name:"heavy-minus-sign",semver:"patch"},"dep-up":{branch:null,code:":package:",commit:"dep-up",description:"Add or update compiled files or packages.",emoji:"\u{1F4E6}\uFE0F",entity:"&#1F4E6;",name:"package",semver:"patch"},deploy:{branch:null,code:":rocket:",commit:"deploy",description:"Deploy stuff.",emoji:"\u{1F680}",entity:"&#x1f680;",name:"rocket",semver:null},docs:{branch:null,code:":memo:",commit:"docs",description:"Add or update documentation.",emoji:"\u{1F4DD}",entity:"&#x1f4dd;",name:"memo",semver:null},"docs-code":{branch:null,code:":bulb:",commit:"docs-code",description:"Add or update comments in source code.",emoji:"\u{1F4A1}",entity:"&#128161;",name:"bulb",semver:null},downgrade:{branch:null,code:":arrow_down:",commit:"downgrade",description:"Downgrade dependencies.",emoji:"\u2B07\uFE0F",entity:"\u2B07\uFE0F",name:"arrow-down",semver:"patch"},dx:{branch:null,code:":technologist:",commit:"dx",description:"Improve developer experience",emoji:"\u{1F9D1}\u200D\u{1F4BB}",entity:"&#129489;&#8205;&#128187;",name:"technologist",semver:null},egg:{branch:null,code:":egg:",commit:"egg",description:"Add or update an easter egg.",emoji:"\u{1F95A}",entity:"&#129370;",name:"egg",semver:"patch"},experiment:{branch:null,code:":alembic:",commit:"experiment",description:"Perform experiments.",emoji:"\u2697\uFE0F",entity:"&#128248;",name:"alembic",semver:"patch"},feat:{branch:"feature",code:":sparkles:",commit:"feat",description:"Introduce new features.",emoji:"\u2728",entity:"&#x2728;",name:"sparkles",semver:"minor"},fix:{branch:"fix",code:":bug:",commit:"fix",description:"Fix a bug.",emoji:"\u{1F41B}",entity:"&#x1f41b;",name:"bug",semver:"patch"},"fix-ci":{branch:null,code:":green_heart:",commit:"fix-ci",description:"Fix CI Build.",emoji:"\u{1F49A}",entity:"&#x1f49a;",name:"green-heart",semver:null},flags:{branch:null,code:":triangular_flag_on_post:",commit:"flags",description:"Add, update, or remove feature flags.",emoji:"\u{1F6A9}",entity:"&#x1F6A9;",name:"triangular-flag-on-post",semver:"patch"},healthcheck:{branch:null,code:":stethoscope:",commit:"healthcheck",description:"Add or update healthcheck.",emoji:"\u{1FA7A}",entity:"&#x1FA7A;",name:"stethoscope",semver:null},hotfix:{branch:"hotfix",code:":ambulance:",commit:"hotfix",description:"Critical hotfix.",emoji:"\u{1F691}\uFE0F",entity:"&#128657;",name:"ambulance",semver:"patch"},i18n:{branch:null,code:":globe_with_meridians:",commit:"i18n",description:"Internationalization and localization.",emoji:"\u{1F310}",entity:"&#127760;",name:"globe-with-meridians",semver:"patch"},ignore:{branch:null,code:":see_no_evil:",commit:"ignore",description:"Add or update a .gitignore file.",emoji:"\u{1F648}",entity:"&#8bdfe7;",name:"see-no-evil",semver:null},inf:{branch:null,code:":bricks:",commit:"inf",description:"Infrastructure related changes.",emoji:"\u{1F9F1}",entity:"&#x1f9f1;",name:"bricks",semver:null},init:{branch:null,code:":tada:",commit:"init",description:"Begin a project.",emoji:"\u{1F389}",entity:"&#127881;",name:"tada",semver:"patch"},iphone:{branch:null,code:":iphone:",commit:"iphone",description:"Work on responsive design.",emoji:"\u{1F4F1}",entity:"&#128241;",name:"iphone",semver:"patch"},license:{branch:null,code:":page_facing_up:",commit:"license",description:"Add or update license.",emoji:"\u{1F4C4}",entity:"&#1F4C4;",name:"page-facing-up",semver:null},lint:{branch:null,code:":rotating_light:",commit:"lint",description:"Fix compiler / linter warnings.",emoji:"\u{1F6A8}",entity:"&#x1f6a8;",name:"rotating-light",semver:null},"log-add":{branch:null,code:":loud_sound:",commit:"log-add",description:"Add or update logs.",emoji:"\u{1F50A}",entity:"&#128266;",name:"loud-sound",semver:null},"log-rm":{branch:null,code:":mute:",commit:"log-rm",description:"Remove logs.",emoji:"\u{1F507}",entity:"&#128263;",name:"mute",semver:null},logic:{branch:null,code:":necktie:",commit:"logic",description:"Add or update business logic",emoji:"\u{1F454}",entity:"&#128084;",name:"necktie",semver:"patch"},merge:{branch:null,code:":twisted_rightwards_arrows:",commit:"merge",description:"Merge branches.",emoji:"\u{1F500}",entity:"&#128256;",name:"twisted-rightwards-arrows",semver:null},mock:{branch:null,code:":clown_face:",commit:"mock",description:"Mock things.",emoji:"\u{1F921}",entity:"&#129313;",name:"clown-face",semver:null},mv:{branch:null,code:":truck:",commit:"mv",description:"Move or rename resources (e.g.: files, paths, routes).",emoji:"\u{1F69A}",entity:"&#1F69A;",name:"truck",semver:null},patch:{branch:null,code:":adhesive_bandage:",commit:"patch",description:"Simple fix for a non-critical issue.",emoji:"\u{1FA79}",entity:"&#x1FA79;",name:"adhesive-bandage",semver:"patch"},perf:{branch:null,code:":zap:",commit:"perf",description:"Improve performance.",emoji:"\u26A1\uFE0F",entity:"&#x26a1;",name:"zap",semver:"patch"},poo:{branch:null,code:":poop:",commit:"poo",description:"Write bad code that needs to be improved.",emoji:"\u{1F4A9}",entity:"&#58613;",name:"poop",semver:null},prune:{branch:null,code:":fire:",commit:"prune",description:"Remove code or files.",emoji:"\u{1F525}",entity:"&#x1f525;",name:"fire",semver:null},pushpin:{branch:null,code:":pushpin:",commit:"pushpin",description:"Pin dependencies to specific versions.",emoji:"\u{1F4CC}",entity:"&#x1F4CC;",name:"pushpin",semver:"patch"},refactor:{branch:"refactor",code:":recycle:",commit:"refactor",description:"Refactor code.",emoji:"\u267B\uFE0F",entity:"&#x2672;",name:"recycle",semver:null},release:{branch:"release",code:":bookmark:",commit:"release",description:"Release / Version tags.",emoji:"\u{1F516}",entity:"&#x1f516;",name:"bookmark",semver:null},revert:{branch:null,code:":rewind:",commit:"revert",description:"Revert changes.",emoji:"\u23EA\uFE0F",entity:"&#9194;",name:"rewind",semver:"patch"},rip:{branch:null,code:":coffin:",commit:"rip",description:"Remove dead code.",emoji:"\u26B0\uFE0F",entity:"&#x26B0;",name:"coffin",semver:null},roles:{branch:null,code:":passport_control:",commit:"roles",description:"Work on code related to authorization, roles and permissions.",emoji:"\u{1F6C2}",entity:"&#x1F6C2;",name:"passport-control",semver:"patch"},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"},secrets:{branch:null,code:":closed_lock_with_key:",commit:"secrets",description:"Add or update secrets.",emoji:"\u{1F510}",entity:"&#x1f510;",name:"closed-lock-with-key",semver:null},security:{branch:null,code:":lock:",commit:"security",description:"Fix security issues.",emoji:"\u{1F512}\uFE0F",entity:"&#x1f512;",name:"lock",semver:"patch"},seed:{branch:null,code:":seedling:",commit:"seed",description:"Add or update seed files.",emoji:"\u{1F331}",entity:"&#127793;",name:"seedling",semver:null},seo:{branch:null,code:":mag:",commit:"seo",description:"Improve SEO.",emoji:"\u{1F50D}\uFE0F",entity:"&#128269;",name:"mag",semver:"patch"},snapshot:{branch:null,code:":camera_flash:",commit:"snapshot",description:"Add or update snapshots.",emoji:"\u{1F4F8}",entity:"&#128248;",name:"camera-flash",semver:null},style:{branch:null,code:":art:",commit:"style",description:"Improve structure / format of the code.",emoji:"\u{1F3A8}",entity:"&#x1f3a8;",name:"art",semver:null},test:{branch:"test",code:":white_check_mark:",commit:"test",description:"Add, update, or pass tests.",emoji:"\u2705",entity:"&#x2705;",name:"white-check-mark",semver:null},"test-fail":{branch:null,code:":test_tube:",commit:"test-fail",description:"Add a failing test.",emoji:"\u{1F9EA}",entity:"&#x1F9EA;",name:"test-tube",semver:null},texts:{branch:null,code:":speech_balloon:",commit:"texts",description:"Add or update text and literals.",emoji:"\u{1F4AC}",entity:"&#128172;",name:"speech-balloon",semver:"patch"},types:{branch:null,code:":label:",commit:"types",description:"Add or update types.",emoji:"\u{1F3F7}\uFE0F",entity:"&#127991;",name:"label",semver:"patch"},typo:{branch:null,code:":pencil2:",commit:"typo",description:"Fix typos.",emoji:"\u270F\uFE0F",entity:"&#59161;",name:"pencil2",semver:"patch"},ui:{branch:null,code:":lipstick:",commit:"ui",description:"Add or update the UI and style files.",emoji:"\u{1F484}",entity:"&#ff99cc;",name:"lipstick",semver:"patch"},upgrade:{branch:null,code:":arrow_up:",commit:"upgrade",description:"Upgrade dependencies.",emoji:"\u2B06\uFE0F",entity:"\u2B06\uFE0F",name:"arrow-up",semver:"patch"},ux:{branch:null,code:":children_crossing:",commit:"ux",description:"Improve user experience / usability.",emoji:"\u{1F6B8}",entity:"&#128696;",name:"children-crossing",semver:"patch"},wip:{branch:null,code:":construction:",commit:"wip",description:"Work in progress.",emoji:"\u{1F6A7}",entity:"&#x1f6a7;",name:"construction",semver:null}};export{i as commitTypes,o as releaseRuleTypes};