@jeromefitz/semantic 9.1.0 → 9.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/getConfig.cjs CHANGED
@@ -1 +1 @@
1
- var ee=Object.create;var v=Object.defineProperty;var te=Object.getOwnPropertyDescriptor;var oe=Object.getOwnPropertyNames,w=Object.getOwnPropertySymbols,re=Object.getPrototypeOf,_=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable;var $=(e,t,o)=>t in e?v(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,m=(e,t)=>{for(var o in t||(t={}))_.call(t,o)&&$(e,o,t[o]);if(w)for(var o of w(t))H.call(t,o)&&$(e,o,t[o]);return e};var M=(e,t)=>{var o={};for(var r in e)_.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&w)for(var r of w(e))t.indexOf(r)<0&&H.call(e,r)&&(o[r]=e[r]);return o};var ie=(e,t)=>{for(var o in t)v(e,o,{get:t[o],enumerable:!0})},L=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of oe(t))!_.call(e,i)&&i!==o&&v(e,i,{get:()=>t[i],enumerable:!(r=te(t,i))||r.enumerable});return e};var U=(e,t,o)=>(o=e!=null?ee(re(e)):{},L(t||!e||!e.__esModule?v(o,"default",{value:e,enumerable:!0}):o,e)),ne=e=>L(v({},"__esModule",{value:!0}),e);var Le={};ie(Le,{getConfig:()=>Me});module.exports=ne(Le);var J=U(require("grapheme-splitter"),1),R=U(require("lodash/pullAt.js"),1),se=Object.create,K=Object.defineProperty,ae=Object.getOwnPropertyDescriptor,ce=Object.getOwnPropertyNames,me=Object.getPrototypeOf,le=Object.prototype.hasOwnProperty,pe=(e,t)=>()=>(e&&(t=e(e=0)),t),k=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),de=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ce(t))!le.call(e,i)&&i!==o&&K(e,i,{get:()=>t[i],enumerable:!(r=ae(t,i))||r.enumerable});return e},ue=(e,t,o)=>(o=e!=null?se(me(e)):{},de(t||!e||!e.__esModule?K(o,"default",{value:e,enumerable:!0}):o,e)),s=pe(()=>{}),fe=k((e,t)=>{t.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}]}}),ge=k((e,t)=>{s();var o=["for","and","nor","but","or","yet","so"],r=["a","an","the"],i=["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"];t.exports=new Set([...o,...r,...i])}),he=k((e,t)=>{s();var o=["ZEIT","ZEIT Inc.","Vercel","Vercel Inc.","CLI","API","HTTP","HTTPS","JSX","DNS","URL","now.sh","now.json","vercel.app","vercel.json","CI","CD","CDN","package.json","package.lock","yarn.lock","GitHub","GitLab","CSS","Sass","JS","JavaScript","TypeScript","HTML","WordPress","JavaScript","Next.js","Node.js","Webpack","Docker","Bash","Kubernetes","SWR","TinaCMS","UI","UX","TS","TSX","iPhone","iPad","watchOS","iOS","iPadOS","macOS","PHP","composer.json","composer.lock","CMS"];t.exports=o}),ve=k((e,t)=>{s();var o=ge(),r=he(),i=`[^\\s'\u2019\\(\\)!?;:"-]`,c=new RegExp(`(?:(?:(\\s?(?:^|[.\\(\\)!?;:"-])\\s*)(${i}))|(${i}))(${i}*[\u2019']*${i}*)`,"g"),l=n=>n.map(a=>[new RegExp(`\\b${a}\\b`,"gi"),a]);function u(n){let a=n[0];return/\s/.test(a)?n.substr(1):/[\(\)]/.test(a)?null:n}t.exports=(n,a={})=>{n=n.toLowerCase().replace(c,(p,h="",y,F,j,A,O)=>{let P=p.length+A>=O.length,x=u(p);if(!x)return p;if(!y){let T=F+j;if(o.has(T)&&!P)return x}return h+(F||y).toUpperCase()+j});let f=a.special||[],g=[...r,...f];return l(g).forEach(([p,h])=>{n=n.replace(p,h)}),n}});s();s();s();s();var be={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"]},I=be;s();s();var C=new J.default,ye=(e,t)=>{let{type:o}=e,r=o,i=S.findIndex(({code:n,emoji:a,type:f,value:g})=>{if(r!==null)return r.replace(/\:/g,"")===n.replace(/\:/g,"")||r===f||r===g||r===a});if(i===-1&&(r=C.splitGraphemes(o)[0],i=S.findIndex(({emoji:n})=>{if(r!==null)return r[0]===n[0]||r[0]===C.splitGraphemes(n)[0]})),i===-1)return;let c=S[i];e.type=`${c.emoji} ${c.description}`,e.typeSpecIndex=i,e.typeSpec=c,typeof e.hash=="string"&&(e.hash=e.hash.substring(0,7));let l=C.splitGraphemes(e.subject),u=l[0]===c.emoji?e.subject.replace((0,R.default)(l,[0]),"").replace((0,R.default)(l,[0]),""):e.subject;return e.subject=u.trim(),e},Fe=ye,je={transform:(e,t)=>Fe(e,t),groupBy:"type",commitGroupsSort:["order","title"],commitsSort:["scope","subject"],noteGroupsSort:["title"],notesSort:["title"]},V=je,xe={parserOpts:I,writerOpts:V},we=xe;s();var ke={parserOpts:I,whatBump:e=>{let t=2,o=0,r=0;return e.forEach(i=>{i.notes.length>0?(o+=i.notes.length,t=0):i.type==="feat"&&(r+=1,t===2&&(t=1))}),{level:t,reason:o===1?`There is ${o} BREAKING CHANGE and ${r} features`:`There are ${o} BREAKING CHANGES and ${r} features`}}},Ae=ke;s();var Oe={format:"%B%n-hash-%n%H%n-gitTags-%n%d%n-committerDate-%n%ci%n-authorName-%n%an%n-authorEmail-%n%ae"},Pe=Oe,_e={conventionalChangelog:we,parserOpts:I,recommendedBumpOpts:Ae,writerOpts:V,gitRawCommitsOpts:Pe},Ce=_e;s();s();var Ee=[{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"}],Se=Ee;s();var Re={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"}},E=Re,Ie=fe(),{gitmojis:De}=Ie,Be=()=>(De.map(e=>{let t=Se.find(o=>(o==null?void 0:o.from)===e.name);if(t){let o=t.semver===void 0?(e==null?void 0:e.semver)||null:t.semver||(e==null?void 0:e.semver)||null;E[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:o?o.replace("fix","patch").replace("feature","minor").replace("breaking","major"):null}}else console.dir(`@todo(conventional-gitmoji) create rewrite for: ${e.name}`)}),Object.keys(E).sort().reduce((e,t)=>(e[t]=E[t],e),{})),Ge=Be;s();var b=[],Ne=e=>(Object.keys(e).map(t=>{let o=e[t];!!o&&!!o.semver&&(b.push({release:o.semver,type:o==null?void 0:o.code.replace(/(:[^:]*):/g,"$1")}),b.push({release:o.semver,type:o==null?void 0:o.code}),b.push({release:o.semver,type:o.commit}),b.push({release:o.semver,type:o.emoji}))}),b),ze=Ne;s();var Te=ue(ve(),1),W=[],$e=e=>(Object.keys(e).map(t=>{W.push({code:e[t].code,description:(0,Te.default)(e[t].description.replace(".","")),emoji:e[t].emoji,semver:e[t].semver,type:e[t].commit,value:e[t].commit})}),W),He=$e,{parserOpts:X,writerOpts:Z}=Ce,q=Ge(),Q=ze(q),S=He(q);var D=(e=[])=>{let t=[...Q,...e];return["@semantic-release/commit-analyzer",{config:"@jeromefitz/conventional-gitmoji",releaseRules:t}]};var B=e=>["@semantic-release/git",{assets:typeof e.gitAssets=="boolean"?!1:["package.json"].concat(e.gitAssets?e.gitAssets:[]).filter(t=>t),message:e.message?e.message:"\u{1F516}\uFE0F `${nextRelease.gitTag}` [skip ci] \n\n${nextRelease.notes}"}];var G=(e={})=>{let t=e&&Object.values(e).filter(c=>typeof c<"u").length===0;if(!e||t)return["@semantic-release/github",{addReleases:!1,labels:!1,releasedLabels:!1,successComment:!1}];let i=e,{githubAssets:o}=i,r=M(i,["githubAssets"]);return["@semantic-release/github",m({assets:o,addReleases:!1,labels:!1,releasedLabels:!1,successComment:!1},r)]};var N=e=>!e||typeof e.pkgRoot!="string"&&typeof e.npmPublish!="boolean"&&typeof e.tarballDir>"u"?"@semantic-release/npm":["@semantic-release/npm",m({},e)];var z=e=>{let o=m(m({},{enableGit:!1,enableGithub:!0,enableNpm:!0,enableReleaseNotes:!1,enableReleaseNotesCustom:!0,pkgRoot:"./dist"}),e),r=["@semantic-release/release-notes-generator",{config:"@jeromefitz/conventional-gitmoji",parserOpts:X,writerOpts:Z}],i=["@jeromefitz/release-notes-generator",{config:"@jeromefitz/conventional-gitmoji"}],{npmPublish:c,pkgRoot:l,tarballDir:u}=o,n=N({npmPublish:c,pkgRoot:l,tarballDir:u}),{addReleases:a,assignees:f,failComment:g,failTitle:p,githubApiPathPrefix:h,githubAssets:y,githubUrl:F,labels:j,proxy:A,releasedLabels:O}=o,P=G({addReleases:a,assignees:f,failComment:g,failTitle:p,githubApiPathPrefix:h,githubAssets:y,githubUrl:F,labels:j,proxy:A,releasedLabels:O}),x=B(o);return[D(o.releaseRules),o.enableReleaseNotes?r:"",o.enableReleaseNotesCustom?i:"",o.enableNpm?n:"",o.enableGithub?P:"",o.enableGit?x:""].filter(Y=>!!Y)};var Me=(e={})=>{let t=z(e);return m(m({},{branches:[{name:"main"},{name:"canary",prerelease:"canary"}],extends:["semantic-release-commit-filter"],plugins:t,tagFormat:"v${version}"}),e)};0&&(module.exports={getConfig});
1
+ var Q=Object.create;var g=Object.defineProperty;var Y=Object.getOwnPropertyDescriptor;var ee=Object.getOwnPropertyNames,j=Object.getOwnPropertySymbols,te=Object.getPrototypeOf,P=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var z=(e,t,o)=>t in e?g(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,c=(e,t)=>{for(var o in t||(t={}))P.call(t,o)&&z(e,o,t[o]);if(j)for(var o of j(t))T.call(t,o)&&z(e,o,t[o]);return e};var $=(e,t)=>{var o={};for(var r in e)P.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&j)for(var r of j(e))t.indexOf(r)<0&&T.call(e,r)&&(o[r]=e[r]);return o};var oe=(e,t)=>{for(var o in t)g(e,o,{get:t[o],enumerable:!0})},M=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ee(t))!P.call(e,i)&&i!==o&&g(e,i,{get:()=>t[i],enumerable:!(r=Y(t,i))||r.enumerable});return e};var H=(e,t,o)=>(o=e!=null?Q(te(e)):{},M(t||!e||!e.__esModule?g(o,"default",{value:e,enumerable:!0}):o,e)),re=e=>M(g({},"__esModule",{value:!0}),e);var $e={};oe($e,{getConfig:()=>Te});module.exports=re($e);var W=H(require("grapheme-splitter"),1),E=H(require("lodash/pullAt.js"),1),ie=Object.create,U=Object.defineProperty,ne=Object.getOwnPropertyDescriptor,se=Object.getOwnPropertyNames,ae=Object.getPrototypeOf,ce=Object.prototype.hasOwnProperty,x=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),me=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of se(t))!ce.call(e,i)&&i!==o&&U(e,i,{get:()=>t[i],enumerable:!(r=ne(t,i))||r.enumerable});return e},le=(e,t,o)=>(o=e!=null?ie(ae(e)):{},me(t||!e||!e.__esModule?U(o,"default",{value:e,enumerable:!0}):o,e)),pe=x((e,t)=>{t.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}]}}),de=x((e,t)=>{var o=["for","and","nor","but","or","yet","so"],r=["a","an","the"],i=["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"];t.exports=new Set([...o,...r,...i])}),ue=x((e,t)=>{var o=["ZEIT","ZEIT Inc.","Vercel","Vercel Inc.","CLI","API","HTTP","HTTPS","JSX","DNS","URL","now.sh","now.json","vercel.app","vercel.json","CI","CD","CDN","package.json","package.lock","yarn.lock","GitHub","GitLab","CSS","Sass","JS","JavaScript","TypeScript","HTML","WordPress","JavaScript","Next.js","Node.js","Webpack","Docker","Bash","Kubernetes","SWR","TinaCMS","UI","UX","TS","TSX","iPhone","iPad","watchOS","iOS","iPadOS","macOS","PHP","composer.json","composer.lock","CMS"];t.exports=o}),fe=x((e,t)=>{var o=de(),r=ue(),i=`[^\\s'\u2019\\(\\)!?;:"-]`,a=new RegExp(`(?:(?:(\\s?(?:^|[.\\(\\)!?;:"-])\\s*)(${i}))|(${i}))(${i}*[\u2019']*${i}*)`,"g"),m=n=>n.map(s=>[new RegExp(`\\b${s}\\b`,"gi"),s]);function p(n){let s=n[0];return/\s/.test(s)?n.substr(1):/[\(\)]/.test(s)?null:n}t.exports=(n,s={})=>{n=n.toLowerCase().replace(a,(l,f="",v,b,y,w,k)=>{let A=l.length+w>=k.length,F=p(l);if(!F)return l;if(!v){let G=b+y;if(o.has(G)&&!A)return F}return f+(b||v).toUpperCase()+y});let d=s.special||[],u=[...r,...d];return m(u).forEach(([l,f])=>{n=n.replace(l,f)}),n}}),ge={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"]},S=ge,O=new W.default,he=(e,t)=>{let{type:o}=e,r=o,i=_.findIndex(({code:n,emoji:s,type:d,value:u})=>{if(r!==null)return r.replace(/\:/g,"")===n.replace(/\:/g,"")||r===d||r===u||r===s});if(i===-1&&(r=O.splitGraphemes(o)[0],i=_.findIndex(({emoji:n})=>{if(r!==null)return r[0]===n[0]||r[0]===O.splitGraphemes(n)[0]})),i===-1)return;let a=_[i];e.type=`${a.emoji} ${a.description}`,e.typeSpecIndex=i,e.typeSpec=a,typeof e.hash=="string"&&(e.hash=e.hash.substring(0,7));let m=O.splitGraphemes(e.subject),p=m[0]===a.emoji?e.subject.replace((0,E.default)(m,[0]),"").replace((0,E.default)(m,[0]),""):e.subject;return e.subject=p.trim(),e},ve=he,be={transform:(e,t)=>ve(e,t),groupBy:"type",commitGroupsSort:["order","title"],commitsSort:["scope","subject"],noteGroupsSort:["title"],notesSort:["title"]},K=be,ye={parserOpts:S,writerOpts:K},Fe=ye,je={parserOpts:S,whatBump:e=>{let t=2,o=0,r=0;return e.forEach(i=>{i.notes.length>0?(o+=i.notes.length,t=0):i.type==="feat"&&(r+=1,t===2&&(t=1))}),{level:t,reason:o===1?`There is ${o} BREAKING CHANGE and ${r} features`:`There are ${o} BREAKING CHANGES and ${r} features`}}},xe=je,we={format:"%B%n-hash-%n%H%n-gitTags-%n%d%n-committerDate-%n%ci%n-authorName-%n%an%n-authorEmail-%n%ae"},ke=we,Ae={conventionalChangelog:Fe,parserOpts:S,recommendedBumpOpts:xe,writerOpts:K,gitRawCommitsOpts:ke},Pe=Ae,Oe=[{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"}],Ce=Oe,_e={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"}},C=_e,Ee=pe(),{gitmojis:Se}=Ee,Re=()=>(Se.map(e=>{let t=Ce.find(o=>(o==null?void 0:o.from)===e.name);if(t){let o=t.semver===void 0?(e==null?void 0:e.semver)||null:t.semver||(e==null?void 0:e.semver)||null;C[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:o?o.replace("fix","patch").replace("feature","minor").replace("breaking","major"):null}}else console.dir(`@todo(conventional-gitmoji) create rewrite for: ${e.name}`)}),Object.keys(C).sort().reduce((e,t)=>(e[t]=C[t],e),{})),Ie=Re,h=[],De=e=>(Object.keys(e).map(t=>{let o=e[t];!!o&&!!o.semver&&(h.push({release:o.semver,type:o==null?void 0:o.code.replace(/(:[^:]*):/g,"$1")}),h.push({release:o.semver,type:o==null?void 0:o.code}),h.push({release:o.semver,type:o.commit}),h.push({release:o.semver,type:o.emoji}))}),h),Be=De,Ne=le(fe(),1),L=[],Ge=e=>(Object.keys(e).map(t=>{L.push({code:e[t].code,description:(0,Ne.default)(e[t].description.replace(".","")),emoji:e[t].emoji,semver:e[t].semver,type:e[t].commit,value:e[t].commit})}),L),ze=Ge,{parserOpts:J,writerOpts:V}=Pe,X=Ie(),Z=Be(X),_=ze(X);var R=(e=[])=>{let t=[...Z,...e];return["@semantic-release/commit-analyzer",{config:"@jeromefitz/conventional-gitmoji",releaseRules:t}]};var I=e=>["@semantic-release/git",{assets:typeof e.gitAssets=="boolean"?!1:["package.json"].concat(e.gitAssets?e.gitAssets:[]).filter(t=>t),message:e.message?e.message:"\u{1F516}\uFE0F `${nextRelease.gitTag}` [skip ci] \n\n${nextRelease.notes}"}];var D=(e={})=>{let t=e&&Object.values(e).filter(a=>typeof a<"u").length===0;if(!e||t)return["@semantic-release/github",{addReleases:!1,labels:!1,releasedLabels:!1,successComment:!1}];let i=e,{githubAssets:o}=i,r=$(i,["githubAssets"]);return["@semantic-release/github",c({assets:o,addReleases:!1,labels:!1,releasedLabels:!1,successComment:!1},r)]};var B=e=>!e||typeof e.pkgRoot!="string"&&typeof e.npmPublish!="boolean"&&typeof e.tarballDir>"u"?"@semantic-release/npm":["@semantic-release/npm",c({},e)];var N=e=>{let o=c(c({},{enableGit:!1,enableGithub:!0,enableNpm:!0,enableReleaseNotes:!1,enableReleaseNotesCustom:!0,pkgRoot:"./dist"}),e),r=["@semantic-release/release-notes-generator",{config:"@jeromefitz/conventional-gitmoji",parserOpts:J,writerOpts:V}],i=["@jeromefitz/release-notes-generator",{config:"@jeromefitz/conventional-gitmoji"}],{npmPublish:a,pkgRoot:m,tarballDir:p}=o,n=B({npmPublish:a,pkgRoot:m,tarballDir:p}),{addReleases:s,assignees:d,failComment:u,failTitle:l,githubApiPathPrefix:f,githubAssets:v,githubUrl:b,labels:y,proxy:w,releasedLabels:k}=o,A=D({addReleases:s,assignees:d,failComment:u,failTitle:l,githubApiPathPrefix:f,githubAssets:v,githubUrl:b,labels:y,proxy:w,releasedLabels:k}),F=I(o);return[R(o.releaseRules),o.enableReleaseNotes?r:"",o.enableReleaseNotesCustom?i:"",o.enableNpm?n:"",o.enableGithub?A:"",o.enableGit?F:""].filter(q=>!!q)};var Te=(e={})=>{let t=N(e);return c(c({},{branches:[{name:"main"},{name:"canary",prerelease:"canary"}],extends:["semantic-release-commit-filter"],plugins:t,tagFormat:"v${version}"}),e)};0&&(module.exports={getConfig});
package/getConfig.js CHANGED
@@ -1 +1 @@
1
- var q=Object.defineProperty;var w=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable;var z=(e,t,o)=>t in e?q(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,m=(e,t)=>{for(var o in t||(t={}))T.call(t,o)&&z(e,o,t[o]);if(w)for(var o of w(t))$.call(t,o)&&z(e,o,t[o]);return e};var H=(e,t)=>{var o={};for(var r in e)T.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&w)for(var r of w(e))t.indexOf(r)<0&&$.call(e,r)&&(o[r]=e[r]);return o};import pe from"grapheme-splitter";import M from"lodash/pullAt.js";var Q=Object.create,U=Object.defineProperty,Y=Object.getOwnPropertyDescriptor,ee=Object.getOwnPropertyNames,te=Object.getPrototypeOf,oe=Object.prototype.hasOwnProperty,re=(e,t)=>()=>(e&&(t=e(e=0)),t),k=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ie=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ee(t))!oe.call(e,i)&&i!==o&&U(e,i,{get:()=>t[i],enumerable:!(r=Y(t,i))||r.enumerable});return e},ne=(e,t,o)=>(o=e!=null?Q(te(e)):{},ie(t||!e||!e.__esModule?U(o,"default",{value:e,enumerable:!0}):o,e)),s=re(()=>{}),se=k((e,t)=>{t.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}]}}),ae=k((e,t)=>{s();var o=["for","and","nor","but","or","yet","so"],r=["a","an","the"],i=["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"];t.exports=new Set([...o,...r,...i])}),ce=k((e,t)=>{s();var o=["ZEIT","ZEIT Inc.","Vercel","Vercel Inc.","CLI","API","HTTP","HTTPS","JSX","DNS","URL","now.sh","now.json","vercel.app","vercel.json","CI","CD","CDN","package.json","package.lock","yarn.lock","GitHub","GitLab","CSS","Sass","JS","JavaScript","TypeScript","HTML","WordPress","JavaScript","Next.js","Node.js","Webpack","Docker","Bash","Kubernetes","SWR","TinaCMS","UI","UX","TS","TSX","iPhone","iPad","watchOS","iOS","iPadOS","macOS","PHP","composer.json","composer.lock","CMS"];t.exports=o}),me=k((e,t)=>{s();var o=ae(),r=ce(),i=`[^\\s'\u2019\\(\\)!?;:"-]`,c=new RegExp(`(?:(?:(\\s?(?:^|[.\\(\\)!?;:"-])\\s*)(${i}))|(${i}))(${i}*[\u2019']*${i}*)`,"g"),l=n=>n.map(a=>[new RegExp(`\\b${a}\\b`,"gi"),a]);function f(n){let a=n[0];return/\s/.test(a)?n.substr(1):/[\(\)]/.test(a)?null:n}t.exports=(n,a={})=>{n=n.toLowerCase().replace(c,(p,v="",y,F,j,A,O)=>{let P=p.length+A>=O.length,x=f(p);if(!x)return p;if(!y){let N=F+j;if(o.has(N)&&!P)return x}return v+(F||y).toUpperCase()+j});let g=a.special||[],h=[...r,...g];return l(h).forEach(([p,v])=>{n=n.replace(p,v)}),n}});s();s();s();s();var le={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"]},S=le;s();s();var _=new pe,de=(e,t)=>{let{type:o}=e,r=o,i=E.findIndex(({code:n,emoji:a,type:g,value:h})=>{if(r!==null)return r.replace(/\:/g,"")===n.replace(/\:/g,"")||r===g||r===h||r===a});if(i===-1&&(r=_.splitGraphemes(o)[0],i=E.findIndex(({emoji:n})=>{if(r!==null)return r[0]===n[0]||r[0]===_.splitGraphemes(n)[0]})),i===-1)return;let c=E[i];e.type=`${c.emoji} ${c.description}`,e.typeSpecIndex=i,e.typeSpec=c,typeof e.hash=="string"&&(e.hash=e.hash.substring(0,7));let l=_.splitGraphemes(e.subject),f=l[0]===c.emoji?e.subject.replace(M(l,[0]),"").replace(M(l,[0]),""):e.subject;return e.subject=f.trim(),e},ue=de,fe={transform:(e,t)=>ue(e,t),groupBy:"type",commitGroupsSort:["order","title"],commitsSort:["scope","subject"],noteGroupsSort:["title"],notesSort:["title"]},W=fe,ge={parserOpts:S,writerOpts:W},he=ge;s();var ve={parserOpts:S,whatBump:e=>{let t=2,o=0,r=0;return e.forEach(i=>{i.notes.length>0?(o+=i.notes.length,t=0):i.type==="feat"&&(r+=1,t===2&&(t=1))}),{level:t,reason:o===1?`There is ${o} BREAKING CHANGE and ${r} features`:`There are ${o} BREAKING CHANGES and ${r} features`}}},be=ve;s();var ye={format:"%B%n-hash-%n%H%n-gitTags-%n%d%n-committerDate-%n%ci%n-authorName-%n%an%n-authorEmail-%n%ae"},Fe=ye,je={conventionalChangelog:he,parserOpts:S,recommendedBumpOpts:be,writerOpts:W,gitRawCommitsOpts:Fe},xe=je;s();s();var we=[{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"}],ke=we;s();var Ae={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"}},C=Ae,Oe=se(),{gitmojis:Pe}=Oe,_e=()=>(Pe.map(e=>{let t=ke.find(o=>(o==null?void 0:o.from)===e.name);if(t){let o=t.semver===void 0?(e==null?void 0:e.semver)||null:t.semver||(e==null?void 0:e.semver)||null;C[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:o?o.replace("fix","patch").replace("feature","minor").replace("breaking","major"):null}}else console.dir(`@todo(conventional-gitmoji) create rewrite for: ${e.name}`)}),Object.keys(C).sort().reduce((e,t)=>(e[t]=C[t],e),{})),Ce=_e;s();var b=[],Ee=e=>(Object.keys(e).map(t=>{let o=e[t];!!o&&!!o.semver&&(b.push({release:o.semver,type:o==null?void 0:o.code.replace(/(:[^:]*):/g,"$1")}),b.push({release:o.semver,type:o==null?void 0:o.code}),b.push({release:o.semver,type:o.commit}),b.push({release:o.semver,type:o.emoji}))}),b),Se=Ee;s();var Re=ne(me(),1),L=[],Ie=e=>(Object.keys(e).map(t=>{L.push({code:e[t].code,description:(0,Re.default)(e[t].description.replace(".","")),emoji:e[t].emoji,semver:e[t].semver,type:e[t].commit,value:e[t].commit})}),L),De=Ie,{parserOpts:K,writerOpts:J}=xe,V=Ce(),X=Se(V),E=De(V);var R=(e=[])=>{let t=[...X,...e];return["@semantic-release/commit-analyzer",{config:"@jeromefitz/conventional-gitmoji",releaseRules:t}]};var I=e=>["@semantic-release/git",{assets:typeof e.gitAssets=="boolean"?!1:["package.json"].concat(e.gitAssets?e.gitAssets:[]).filter(t=>t),message:e.message?e.message:"\u{1F516}\uFE0F `${nextRelease.gitTag}` [skip ci] \n\n${nextRelease.notes}"}];var D=(e={})=>{let t=e&&Object.values(e).filter(c=>typeof c<"u").length===0;if(!e||t)return["@semantic-release/github",{addReleases:!1,labels:!1,releasedLabels:!1,successComment:!1}];let i=e,{githubAssets:o}=i,r=H(i,["githubAssets"]);return["@semantic-release/github",m({assets:o,addReleases:!1,labels:!1,releasedLabels:!1,successComment:!1},r)]};var B=e=>!e||typeof e.pkgRoot!="string"&&typeof e.npmPublish!="boolean"&&typeof e.tarballDir>"u"?"@semantic-release/npm":["@semantic-release/npm",m({},e)];var G=e=>{let o=m(m({},{enableGit:!1,enableGithub:!0,enableNpm:!0,enableReleaseNotes:!1,enableReleaseNotesCustom:!0,pkgRoot:"./dist"}),e),r=["@semantic-release/release-notes-generator",{config:"@jeromefitz/conventional-gitmoji",parserOpts:K,writerOpts:J}],i=["@jeromefitz/release-notes-generator",{config:"@jeromefitz/conventional-gitmoji"}],{npmPublish:c,pkgRoot:l,tarballDir:f}=o,n=B({npmPublish:c,pkgRoot:l,tarballDir:f}),{addReleases:a,assignees:g,failComment:h,failTitle:p,githubApiPathPrefix:v,githubAssets:y,githubUrl:F,labels:j,proxy:A,releasedLabels:O}=o,P=D({addReleases:a,assignees:g,failComment:h,failTitle:p,githubApiPathPrefix:v,githubAssets:y,githubUrl:F,labels:j,proxy:A,releasedLabels:O}),x=I(o);return[R(o.releaseRules),o.enableReleaseNotes?r:"",o.enableReleaseNotesCustom?i:"",o.enableNpm?n:"",o.enableGithub?P:"",o.enableGit?x:""].filter(Z=>!!Z)};var tt=(e={})=>{let t=G(e);return m(m({},{branches:[{name:"main"},{name:"canary",prerelease:"canary"}],extends:["semantic-release-commit-filter"],plugins:t,tagFormat:"v${version}"}),e)};export{tt as getConfig};
1
+ var V=Object.defineProperty;var F=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable;var B=(e,t,o)=>t in e?V(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,c=(e,t)=>{for(var o in t||(t={}))N.call(t,o)&&B(e,o,t[o]);if(F)for(var o of F(t))G.call(t,o)&&B(e,o,t[o]);return e};var z=(e,t)=>{var o={};for(var r in e)N.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&F)for(var r of F(e))t.indexOf(r)<0&&G.call(e,r)&&(o[r]=e[r]);return o};import ae from"grapheme-splitter";import T from"lodash/pullAt.js";var X=Object.create,M=Object.defineProperty,Z=Object.getOwnPropertyDescriptor,q=Object.getOwnPropertyNames,Q=Object.getPrototypeOf,Y=Object.prototype.hasOwnProperty,j=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ee=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of q(t))!Y.call(e,i)&&i!==o&&M(e,i,{get:()=>t[i],enumerable:!(r=Z(t,i))||r.enumerable});return e},te=(e,t,o)=>(o=e!=null?X(Q(e)):{},ee(t||!e||!e.__esModule?M(o,"default",{value:e,enumerable:!0}):o,e)),oe=j((e,t)=>{t.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}]}}),re=j((e,t)=>{var o=["for","and","nor","but","or","yet","so"],r=["a","an","the"],i=["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"];t.exports=new Set([...o,...r,...i])}),ie=j((e,t)=>{var o=["ZEIT","ZEIT Inc.","Vercel","Vercel Inc.","CLI","API","HTTP","HTTPS","JSX","DNS","URL","now.sh","now.json","vercel.app","vercel.json","CI","CD","CDN","package.json","package.lock","yarn.lock","GitHub","GitLab","CSS","Sass","JS","JavaScript","TypeScript","HTML","WordPress","JavaScript","Next.js","Node.js","Webpack","Docker","Bash","Kubernetes","SWR","TinaCMS","UI","UX","TS","TSX","iPhone","iPad","watchOS","iOS","iPadOS","macOS","PHP","composer.json","composer.lock","CMS"];t.exports=o}),ne=j((e,t)=>{var o=re(),r=ie(),i=`[^\\s'\u2019\\(\\)!?;:"-]`,a=new RegExp(`(?:(?:(\\s?(?:^|[.\\(\\)!?;:"-])\\s*)(${i}))|(${i}))(${i}*[\u2019']*${i}*)`,"g"),m=n=>n.map(s=>[new RegExp(`\\b${s}\\b`,"gi"),s]);function p(n){let s=n[0];return/\s/.test(s)?n.substr(1):/[\(\)]/.test(s)?null:n}t.exports=(n,s={})=>{n=n.toLowerCase().replace(a,(l,f="",h,v,b,x,w)=>{let k=l.length+x>=w.length,y=p(l);if(!y)return l;if(!h){let D=v+b;if(o.has(D)&&!k)return y}return f+(v||h).toUpperCase()+b});let d=s.special||[],u=[...r,...d];return m(u).forEach(([l,f])=>{n=n.replace(l,f)}),n}}),se={headerPattern:/^(.*?)(?:\((.*)\))?:?\s(.*)$/,headerCorrespondence:["type","scope","subject","ticket"],noteKeywords:["BREAKING CHANGE","BREAKING CHANGES"],revertPattern:/^Revert\s"([\s\S]*)"\s*This reverts commit (\w*)\./,issuePrefixes:["1b9fe48b-292c-46e7-bfde-0599639d0ec0"],referenceActions:["b6db85c1-4860-4275-88e3-bd9917a0b29f"]},C=se,A=new ae,ce=(e,t)=>{let{type:o}=e,r=o,i=O.findIndex(({code:n,emoji:s,type:d,value:u})=>{if(r!==null)return r.replace(/\:/g,"")===n.replace(/\:/g,"")||r===d||r===u||r===s});if(i===-1&&(r=A.splitGraphemes(o)[0],i=O.findIndex(({emoji:n})=>{if(r!==null)return r[0]===n[0]||r[0]===A.splitGraphemes(n)[0]})),i===-1)return;let a=O[i];e.type=`${a.emoji} ${a.description}`,e.typeSpecIndex=i,e.typeSpec=a,typeof e.hash=="string"&&(e.hash=e.hash.substring(0,7));let m=A.splitGraphemes(e.subject),p=m[0]===a.emoji?e.subject.replace(T(m,[0]),"").replace(T(m,[0]),""):e.subject;return e.subject=p.trim(),e},me=ce,le={transform:(e,t)=>me(e,t),groupBy:"type",commitGroupsSort:["order","title"],commitsSort:["scope","subject"],noteGroupsSort:["title"],notesSort:["title"]},H=le,pe={parserOpts:C,writerOpts:H},de=pe,ue={parserOpts:C,whatBump:e=>{let t=2,o=0,r=0;return e.forEach(i=>{i.notes.length>0?(o+=i.notes.length,t=0):i.type==="feat"&&(r+=1,t===2&&(t=1))}),{level:t,reason:o===1?`There is ${o} BREAKING CHANGE and ${r} features`:`There are ${o} BREAKING CHANGES and ${r} features`}}},fe=ue,ge={format:"%B%n-hash-%n%H%n-gitTags-%n%d%n-committerDate-%n%ci%n-authorName-%n%an%n-authorEmail-%n%ae"},he=ge,ve={conventionalChangelog:de,parserOpts:C,recommendedBumpOpts:fe,writerOpts:H,gitRawCommitsOpts:he},be=ve,ye=[{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"}],Fe=ye,je={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"}},P=je,xe=oe(),{gitmojis:we}=xe,ke=()=>(we.map(e=>{let t=Fe.find(o=>(o==null?void 0:o.from)===e.name);if(t){let o=t.semver===void 0?(e==null?void 0:e.semver)||null:t.semver||(e==null?void 0:e.semver)||null;P[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:o?o.replace("fix","patch").replace("feature","minor").replace("breaking","major"):null}}else console.dir(`@todo(conventional-gitmoji) create rewrite for: ${e.name}`)}),Object.keys(P).sort().reduce((e,t)=>(e[t]=P[t],e),{})),Ae=ke,g=[],Pe=e=>(Object.keys(e).map(t=>{let o=e[t];!!o&&!!o.semver&&(g.push({release:o.semver,type:o==null?void 0:o.code.replace(/(:[^:]*):/g,"$1")}),g.push({release:o.semver,type:o==null?void 0:o.code}),g.push({release:o.semver,type:o.commit}),g.push({release:o.semver,type:o.emoji}))}),g),Oe=Pe,Ce=te(ne(),1),$=[],_e=e=>(Object.keys(e).map(t=>{$.push({code:e[t].code,description:(0,Ce.default)(e[t].description.replace(".","")),emoji:e[t].emoji,semver:e[t].semver,type:e[t].commit,value:e[t].commit})}),$),Ee=_e,{parserOpts:L,writerOpts:U}=be,W=Ae(),K=Oe(W),O=Ee(W);var _=(e=[])=>{let t=[...K,...e];return["@semantic-release/commit-analyzer",{config:"@jeromefitz/conventional-gitmoji",releaseRules:t}]};var E=e=>["@semantic-release/git",{assets:typeof e.gitAssets=="boolean"?!1:["package.json"].concat(e.gitAssets?e.gitAssets:[]).filter(t=>t),message:e.message?e.message:"\u{1F516}\uFE0F `${nextRelease.gitTag}` [skip ci] \n\n${nextRelease.notes}"}];var S=(e={})=>{let t=e&&Object.values(e).filter(a=>typeof a<"u").length===0;if(!e||t)return["@semantic-release/github",{addReleases:!1,labels:!1,releasedLabels:!1,successComment:!1}];let i=e,{githubAssets:o}=i,r=z(i,["githubAssets"]);return["@semantic-release/github",c({assets:o,addReleases:!1,labels:!1,releasedLabels:!1,successComment:!1},r)]};var R=e=>!e||typeof e.pkgRoot!="string"&&typeof e.npmPublish!="boolean"&&typeof e.tarballDir>"u"?"@semantic-release/npm":["@semantic-release/npm",c({},e)];var I=e=>{let o=c(c({},{enableGit:!1,enableGithub:!0,enableNpm:!0,enableReleaseNotes:!1,enableReleaseNotesCustom:!0,pkgRoot:"./dist"}),e),r=["@semantic-release/release-notes-generator",{config:"@jeromefitz/conventional-gitmoji",parserOpts:L,writerOpts:U}],i=["@jeromefitz/release-notes-generator",{config:"@jeromefitz/conventional-gitmoji"}],{npmPublish:a,pkgRoot:m,tarballDir:p}=o,n=R({npmPublish:a,pkgRoot:m,tarballDir:p}),{addReleases:s,assignees:d,failComment:u,failTitle:l,githubApiPathPrefix:f,githubAssets:h,githubUrl:v,labels:b,proxy:x,releasedLabels:w}=o,k=S({addReleases:s,assignees:d,failComment:u,failTitle:l,githubApiPathPrefix:f,githubAssets:h,githubUrl:v,labels:b,proxy:x,releasedLabels:w}),y=E(o);return[_(o.releaseRules),o.enableReleaseNotes?r:"",o.enableReleaseNotesCustom?i:"",o.enableNpm?n:"",o.enableGithub?k:"",o.enableGit?y:""].filter(J=>!!J)};var qe=(e={})=>{let t=I(e);return c(c({},{branches:[{name:"main"},{name:"canary",prerelease:"canary"}],extends:["semantic-release-commit-filter"],plugins:t,tagFormat:"v${version}"}),e)};export{qe as getConfig};
package/index.cjs CHANGED
@@ -1 +1 @@
1
- var te=Object.create;var b=Object.defineProperty;var oe=Object.getOwnPropertyDescriptor;var re=Object.getOwnPropertyNames,k=Object.getOwnPropertySymbols,ie=Object.getPrototypeOf,_=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable;var H=(e,t,o)=>t in e?b(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,m=(e,t)=>{for(var o in t||(t={}))_.call(t,o)&&H(e,o,t[o]);if(k)for(var o of k(t))M.call(t,o)&&H(e,o,t[o]);return e};var L=(e,t)=>{var o={};for(var r in e)_.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&k)for(var r of k(e))t.indexOf(r)<0&&M.call(e,r)&&(o[r]=e[r]);return o};var ne=(e,t)=>{for(var o in t)b(e,o,{get:t[o],enumerable:!0})},U=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of re(t))!_.call(e,i)&&i!==o&&b(e,i,{get:()=>t[i],enumerable:!(r=oe(t,i))||r.enumerable});return e};var W=(e,t,o)=>(o=e!=null?te(ie(e)):{},U(t||!e||!e.__esModule?b(o,"default",{value:e,enumerable:!0}):o,e)),se=e=>U(b({},"__esModule",{value:!0}),e);var We={};ne(We,{config:()=>Ue,getConfig:()=>T,getPluginOptions:()=>u,plugins:()=>Le});module.exports=se(We);var V=W(require("grapheme-splitter"),1),I=W(require("lodash/pullAt.js"),1),ae=Object.create,J=Object.defineProperty,ce=Object.getOwnPropertyDescriptor,me=Object.getOwnPropertyNames,le=Object.getPrototypeOf,pe=Object.prototype.hasOwnProperty,de=(e,t)=>()=>(e&&(t=e(e=0)),t),A=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ue=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of me(t))!pe.call(e,i)&&i!==o&&J(e,i,{get:()=>t[i],enumerable:!(r=ce(t,i))||r.enumerable});return e},fe=(e,t,o)=>(o=e!=null?ae(le(e)):{},ue(t||!e||!e.__esModule?J(o,"default",{value:e,enumerable:!0}):o,e)),s=de(()=>{}),ge=A((e,t)=>{t.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}]}}),he=A((e,t)=>{s();var o=["for","and","nor","but","or","yet","so"],r=["a","an","the"],i=["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"];t.exports=new Set([...o,...r,...i])}),ve=A((e,t)=>{s();var o=["ZEIT","ZEIT Inc.","Vercel","Vercel Inc.","CLI","API","HTTP","HTTPS","JSX","DNS","URL","now.sh","now.json","vercel.app","vercel.json","CI","CD","CDN","package.json","package.lock","yarn.lock","GitHub","GitLab","CSS","Sass","JS","JavaScript","TypeScript","HTML","WordPress","JavaScript","Next.js","Node.js","Webpack","Docker","Bash","Kubernetes","SWR","TinaCMS","UI","UX","TS","TSX","iPhone","iPad","watchOS","iOS","iPadOS","macOS","PHP","composer.json","composer.lock","CMS"];t.exports=o}),be=A((e,t)=>{s();var o=he(),r=ve(),i=`[^\\s'\u2019\\(\\)!?;:"-]`,c=new RegExp(`(?:(?:(\\s?(?:^|[.\\(\\)!?;:"-])\\s*)(${i}))|(${i}))(${i}*[\u2019']*${i}*)`,"g"),p=n=>n.map(a=>[new RegExp(`\\b${a}\\b`,"gi"),a]);function f(n){let a=n[0];return/\s/.test(a)?n.substr(1):/[\(\)]/.test(a)?null:n}t.exports=(n,a={})=>{n=n.toLowerCase().replace(c,(d,v="",F,j,x,O,P)=>{let C=d.length+O>=P.length,w=f(d);if(!w)return d;if(!F){let $=j+x;if(o.has($)&&!C)return w}return v+(j||F).toUpperCase()+x});let g=a.special||[],h=[...r,...g];return p(h).forEach(([d,v])=>{n=n.replace(d,v)}),n}});s();s();s();s();var ye={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=ye;s();s();var E=new V.default,Fe=(e,t)=>{let{type:o}=e,r=o,i=R.findIndex(({code:n,emoji:a,type:g,value:h})=>{if(r!==null)return r.replace(/\:/g,"")===n.replace(/\:/g,"")||r===g||r===h||r===a});if(i===-1&&(r=E.splitGraphemes(o)[0],i=R.findIndex(({emoji:n})=>{if(r!==null)return r[0]===n[0]||r[0]===E.splitGraphemes(n)[0]})),i===-1)return;let c=R[i];e.type=`${c.emoji} ${c.description}`,e.typeSpecIndex=i,e.typeSpec=c,typeof e.hash=="string"&&(e.hash=e.hash.substring(0,7));let p=E.splitGraphemes(e.subject),f=p[0]===c.emoji?e.subject.replace((0,I.default)(p,[0]),"").replace((0,I.default)(p,[0]),""):e.subject;return e.subject=f.trim(),e},je=Fe,xe={transform:(e,t)=>je(e,t),groupBy:"type",commitGroupsSort:["order","title"],commitsSort:["scope","subject"],noteGroupsSort:["title"],notesSort:["title"]},X=xe,we={parserOpts:D,writerOpts:X},ke=we;s();var Ae={parserOpts:D,whatBump:e=>{let t=2,o=0,r=0;return e.forEach(i=>{i.notes.length>0?(o+=i.notes.length,t=0):i.type==="feat"&&(r+=1,t===2&&(t=1))}),{level:t,reason:o===1?`There is ${o} BREAKING CHANGE and ${r} features`:`There are ${o} BREAKING CHANGES and ${r} features`}}},Oe=Ae;s();var Pe={format:"%B%n-hash-%n%H%n-gitTags-%n%d%n-committerDate-%n%ci%n-authorName-%n%an%n-authorEmail-%n%ae"},Ce=Pe,_e={conventionalChangelog:ke,parserOpts:D,recommendedBumpOpts:Oe,writerOpts:X,gitRawCommitsOpts:Ce},Ee=_e;s();s();var Se=[{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"}],Re=Se;s();var Ie={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"}},S=Ie,De=ge(),{gitmojis:Be}=De,Ge=()=>(Be.map(e=>{let t=Re.find(o=>(o==null?void 0:o.from)===e.name);if(t){let o=t.semver===void 0?(e==null?void 0:e.semver)||null:t.semver||(e==null?void 0:e.semver)||null;S[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:o?o.replace("fix","patch").replace("feature","minor").replace("breaking","major"):null}}else console.dir(`@todo(conventional-gitmoji) create rewrite for: ${e.name}`)}),Object.keys(S).sort().reduce((e,t)=>(e[t]=S[t],e),{})),Ne=Ge;s();var y=[],ze=e=>(Object.keys(e).map(t=>{let o=e[t];!!o&&!!o.semver&&(y.push({release:o.semver,type:o==null?void 0:o.code.replace(/(:[^:]*):/g,"$1")}),y.push({release:o.semver,type:o==null?void 0:o.code}),y.push({release:o.semver,type:o.commit}),y.push({release:o.semver,type:o.emoji}))}),y),Te=ze;s();var $e=fe(be(),1),K=[],He=e=>(Object.keys(e).map(t=>{K.push({code:e[t].code,description:(0,$e.default)(e[t].description.replace(".","")),emoji:e[t].emoji,semver:e[t].semver,type:e[t].commit,value:e[t].commit})}),K),Me=He,{parserOpts:Z,writerOpts:q}=Ee,Q=Ne(),Y=Te(Q),R=Me(Q);var B=(e=[])=>{let t=[...Y,...e];return["@semantic-release/commit-analyzer",{config:"@jeromefitz/conventional-gitmoji",releaseRules:t}]};var G=e=>["@semantic-release/git",{assets:typeof e.gitAssets=="boolean"?!1:["package.json"].concat(e.gitAssets?e.gitAssets:[]).filter(t=>t),message:e.message?e.message:"\u{1F516}\uFE0F `${nextRelease.gitTag}` [skip ci] \n\n${nextRelease.notes}"}];var N=(e={})=>{let t=e&&Object.values(e).filter(c=>typeof c<"u").length===0;if(!e||t)return["@semantic-release/github",{addReleases:!1,labels:!1,releasedLabels:!1,successComment:!1}];let i=e,{githubAssets:o}=i,r=L(i,["githubAssets"]);return["@semantic-release/github",m({assets:o,addReleases:!1,labels:!1,releasedLabels:!1,successComment:!1},r)]};var z=e=>!e||typeof e.pkgRoot!="string"&&typeof e.npmPublish!="boolean"&&typeof e.tarballDir>"u"?"@semantic-release/npm":["@semantic-release/npm",m({},e)];var u=e=>{let o=m(m({},{enableGit:!1,enableGithub:!0,enableNpm:!0,enableReleaseNotes:!1,enableReleaseNotesCustom:!0,pkgRoot:"./dist"}),e),r=["@semantic-release/release-notes-generator",{config:"@jeromefitz/conventional-gitmoji",parserOpts:Z,writerOpts:q}],i=["@jeromefitz/release-notes-generator",{config:"@jeromefitz/conventional-gitmoji"}],{npmPublish:c,pkgRoot:p,tarballDir:f}=o,n=z({npmPublish:c,pkgRoot:p,tarballDir:f}),{addReleases:a,assignees:g,failComment:h,failTitle:d,githubApiPathPrefix:v,githubAssets:F,githubUrl:j,labels:x,proxy:O,releasedLabels:P}=o,C=N({addReleases:a,assignees:g,failComment:h,failTitle:d,githubApiPathPrefix:v,githubAssets:F,githubUrl:j,labels:x,proxy:O,releasedLabels:P}),w=G(o);return[B(o.releaseRules),o.enableReleaseNotes?r:"",o.enableReleaseNotesCustom?i:"",o.enableNpm?n:"",o.enableGithub?C:"",o.enableGit?w:""].filter(ee=>!!ee)};var T=(e={})=>{let t=u(e);return m(m({},{branches:[{name:"main"},{name:"canary",prerelease:"canary"}],extends:["semantic-release-commit-filter"],plugins:t,tagFormat:"v${version}"}),e)};var Le=u(),Ue=T();0&&(module.exports={config,getConfig,getPluginOptions,plugins});
1
+ var Y=Object.create;var h=Object.defineProperty;var ee=Object.getOwnPropertyDescriptor;var te=Object.getOwnPropertyNames,x=Object.getOwnPropertySymbols,oe=Object.getPrototypeOf,P=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable;var T=(e,t,o)=>t in e?h(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,c=(e,t)=>{for(var o in t||(t={}))P.call(t,o)&&T(e,o,t[o]);if(x)for(var o of x(t))$.call(t,o)&&T(e,o,t[o]);return e};var M=(e,t)=>{var o={};for(var r in e)P.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&x)for(var r of x(e))t.indexOf(r)<0&&$.call(e,r)&&(o[r]=e[r]);return o};var re=(e,t)=>{for(var o in t)h(e,o,{get:t[o],enumerable:!0})},H=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of te(t))!P.call(e,i)&&i!==o&&h(e,i,{get:()=>t[i],enumerable:!(r=ee(t,i))||r.enumerable});return e};var L=(e,t,o)=>(o=e!=null?Y(oe(e)):{},H(t||!e||!e.__esModule?h(o,"default",{value:e,enumerable:!0}):o,e)),ie=e=>H(h({},"__esModule",{value:!0}),e);var He={};re(He,{config:()=>Me,getConfig:()=>G,getPluginOptions:()=>p,plugins:()=>$e});module.exports=ie(He);var K=L(require("grapheme-splitter"),1),S=L(require("lodash/pullAt.js"),1),ne=Object.create,W=Object.defineProperty,se=Object.getOwnPropertyDescriptor,ae=Object.getOwnPropertyNames,ce=Object.getPrototypeOf,me=Object.prototype.hasOwnProperty,w=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),le=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ae(t))!me.call(e,i)&&i!==o&&W(e,i,{get:()=>t[i],enumerable:!(r=se(t,i))||r.enumerable});return e},pe=(e,t,o)=>(o=e!=null?ne(ce(e)):{},le(t||!e||!e.__esModule?W(o,"default",{value:e,enumerable:!0}):o,e)),de=w((e,t)=>{t.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}]}}),ue=w((e,t)=>{var o=["for","and","nor","but","or","yet","so"],r=["a","an","the"],i=["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"];t.exports=new Set([...o,...r,...i])}),fe=w((e,t)=>{var o=["ZEIT","ZEIT Inc.","Vercel","Vercel Inc.","CLI","API","HTTP","HTTPS","JSX","DNS","URL","now.sh","now.json","vercel.app","vercel.json","CI","CD","CDN","package.json","package.lock","yarn.lock","GitHub","GitLab","CSS","Sass","JS","JavaScript","TypeScript","HTML","WordPress","JavaScript","Next.js","Node.js","Webpack","Docker","Bash","Kubernetes","SWR","TinaCMS","UI","UX","TS","TSX","iPhone","iPad","watchOS","iOS","iPadOS","macOS","PHP","composer.json","composer.lock","CMS"];t.exports=o}),ge=w((e,t)=>{var o=ue(),r=fe(),i=`[^\\s'\u2019\\(\\)!?;:"-]`,a=new RegExp(`(?:(?:(\\s?(?:^|[.\\(\\)!?;:"-])\\s*)(${i}))|(${i}))(${i}*[\u2019']*${i}*)`,"g"),m=n=>n.map(s=>[new RegExp(`\\b${s}\\b`,"gi"),s]);function d(n){let s=n[0];return/\s/.test(s)?n.substr(1):/[\(\)]/.test(s)?null:n}t.exports=(n,s={})=>{n=n.toLowerCase().replace(a,(l,g="",b,y,F,k,A)=>{let O=l.length+k>=A.length,j=d(l);if(!j)return l;if(!b){let z=y+F;if(o.has(z)&&!O)return j}return g+(y||b).toUpperCase()+F});let u=s.special||[],f=[...r,...u];return m(f).forEach(([l,g])=>{n=n.replace(l,g)}),n}}),he={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"]},R=he,C=new K.default,ve=(e,t)=>{let{type:o}=e,r=o,i=E.findIndex(({code:n,emoji:s,type:u,value:f})=>{if(r!==null)return r.replace(/\:/g,"")===n.replace(/\:/g,"")||r===u||r===f||r===s});if(i===-1&&(r=C.splitGraphemes(o)[0],i=E.findIndex(({emoji:n})=>{if(r!==null)return r[0]===n[0]||r[0]===C.splitGraphemes(n)[0]})),i===-1)return;let a=E[i];e.type=`${a.emoji} ${a.description}`,e.typeSpecIndex=i,e.typeSpec=a,typeof e.hash=="string"&&(e.hash=e.hash.substring(0,7));let m=C.splitGraphemes(e.subject),d=m[0]===a.emoji?e.subject.replace((0,S.default)(m,[0]),"").replace((0,S.default)(m,[0]),""):e.subject;return e.subject=d.trim(),e},be=ve,ye={transform:(e,t)=>be(e,t),groupBy:"type",commitGroupsSort:["order","title"],commitsSort:["scope","subject"],noteGroupsSort:["title"],notesSort:["title"]},J=ye,Fe={parserOpts:R,writerOpts:J},je=Fe,xe={parserOpts:R,whatBump:e=>{let t=2,o=0,r=0;return e.forEach(i=>{i.notes.length>0?(o+=i.notes.length,t=0):i.type==="feat"&&(r+=1,t===2&&(t=1))}),{level:t,reason:o===1?`There is ${o} BREAKING CHANGE and ${r} features`:`There are ${o} BREAKING CHANGES and ${r} features`}}},we=xe,ke={format:"%B%n-hash-%n%H%n-gitTags-%n%d%n-committerDate-%n%ci%n-authorName-%n%an%n-authorEmail-%n%ae"},Ae=ke,Oe={conventionalChangelog:je,parserOpts:R,recommendedBumpOpts:we,writerOpts:J,gitRawCommitsOpts:Ae},Pe=Oe,Ce=[{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"}],_e=Ce,Ee={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"}},_=Ee,Se=de(),{gitmojis:Re}=Se,Ie=()=>(Re.map(e=>{let t=_e.find(o=>(o==null?void 0:o.from)===e.name);if(t){let o=t.semver===void 0?(e==null?void 0:e.semver)||null:t.semver||(e==null?void 0:e.semver)||null;_[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:o?o.replace("fix","patch").replace("feature","minor").replace("breaking","major"):null}}else console.dir(`@todo(conventional-gitmoji) create rewrite for: ${e.name}`)}),Object.keys(_).sort().reduce((e,t)=>(e[t]=_[t],e),{})),De=Ie,v=[],Be=e=>(Object.keys(e).map(t=>{let o=e[t];!!o&&!!o.semver&&(v.push({release:o.semver,type:o==null?void 0:o.code.replace(/(:[^:]*):/g,"$1")}),v.push({release:o.semver,type:o==null?void 0:o.code}),v.push({release:o.semver,type:o.commit}),v.push({release:o.semver,type:o.emoji}))}),v),Ne=Be,Ge=pe(ge(),1),U=[],ze=e=>(Object.keys(e).map(t=>{U.push({code:e[t].code,description:(0,Ge.default)(e[t].description.replace(".","")),emoji:e[t].emoji,semver:e[t].semver,type:e[t].commit,value:e[t].commit})}),U),Te=ze,{parserOpts:V,writerOpts:X}=Pe,Z=De(),q=Ne(Z),E=Te(Z);var I=(e=[])=>{let t=[...q,...e];return["@semantic-release/commit-analyzer",{config:"@jeromefitz/conventional-gitmoji",releaseRules:t}]};var D=e=>["@semantic-release/git",{assets:typeof e.gitAssets=="boolean"?!1:["package.json"].concat(e.gitAssets?e.gitAssets:[]).filter(t=>t),message:e.message?e.message:"\u{1F516}\uFE0F `${nextRelease.gitTag}` [skip ci] \n\n${nextRelease.notes}"}];var B=(e={})=>{let t=e&&Object.values(e).filter(a=>typeof a<"u").length===0;if(!e||t)return["@semantic-release/github",{addReleases:!1,labels:!1,releasedLabels:!1,successComment:!1}];let i=e,{githubAssets:o}=i,r=M(i,["githubAssets"]);return["@semantic-release/github",c({assets:o,addReleases:!1,labels:!1,releasedLabels:!1,successComment:!1},r)]};var N=e=>!e||typeof e.pkgRoot!="string"&&typeof e.npmPublish!="boolean"&&typeof e.tarballDir>"u"?"@semantic-release/npm":["@semantic-release/npm",c({},e)];var p=e=>{let o=c(c({},{enableGit:!1,enableGithub:!0,enableNpm:!0,enableReleaseNotes:!1,enableReleaseNotesCustom:!0,pkgRoot:"./dist"}),e),r=["@semantic-release/release-notes-generator",{config:"@jeromefitz/conventional-gitmoji",parserOpts:V,writerOpts:X}],i=["@jeromefitz/release-notes-generator",{config:"@jeromefitz/conventional-gitmoji"}],{npmPublish:a,pkgRoot:m,tarballDir:d}=o,n=N({npmPublish:a,pkgRoot:m,tarballDir:d}),{addReleases:s,assignees:u,failComment:f,failTitle:l,githubApiPathPrefix:g,githubAssets:b,githubUrl:y,labels:F,proxy:k,releasedLabels:A}=o,O=B({addReleases:s,assignees:u,failComment:f,failTitle:l,githubApiPathPrefix:g,githubAssets:b,githubUrl:y,labels:F,proxy:k,releasedLabels:A}),j=D(o);return[I(o.releaseRules),o.enableReleaseNotes?r:"",o.enableReleaseNotesCustom?i:"",o.enableNpm?n:"",o.enableGithub?O:"",o.enableGit?j:""].filter(Q=>!!Q)};var G=(e={})=>{let t=p(e);return c(c({},{branches:[{name:"main"},{name:"canary",prerelease:"canary"}],extends:["semantic-release-commit-filter"],plugins:t,tagFormat:"v${version}"}),e)};var $e=p(),Me=G();0&&(module.exports={config,getConfig,getPluginOptions,plugins});
package/index.js CHANGED
@@ -1 +1 @@
1
- var Q=Object.defineProperty;var k=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable;var z=(e,t,o)=>t in e?Q(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,m=(e,t)=>{for(var o in t||(t={}))T.call(t,o)&&z(e,o,t[o]);if(k)for(var o of k(t))$.call(t,o)&&z(e,o,t[o]);return e};var H=(e,t)=>{var o={};for(var r in e)T.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&k)for(var r of k(e))t.indexOf(r)<0&&$.call(e,r)&&(o[r]=e[r]);return o};import de from"grapheme-splitter";import M from"lodash/pullAt.js";var Y=Object.create,U=Object.defineProperty,ee=Object.getOwnPropertyDescriptor,te=Object.getOwnPropertyNames,oe=Object.getPrototypeOf,re=Object.prototype.hasOwnProperty,ie=(e,t)=>()=>(e&&(t=e(e=0)),t),A=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ne=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of te(t))!re.call(e,i)&&i!==o&&U(e,i,{get:()=>t[i],enumerable:!(r=ee(t,i))||r.enumerable});return e},se=(e,t,o)=>(o=e!=null?Y(oe(e)):{},ne(t||!e||!e.__esModule?U(o,"default",{value:e,enumerable:!0}):o,e)),s=ie(()=>{}),ae=A((e,t)=>{t.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}]}}),ce=A((e,t)=>{s();var o=["for","and","nor","but","or","yet","so"],r=["a","an","the"],i=["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"];t.exports=new Set([...o,...r,...i])}),me=A((e,t)=>{s();var o=["ZEIT","ZEIT Inc.","Vercel","Vercel Inc.","CLI","API","HTTP","HTTPS","JSX","DNS","URL","now.sh","now.json","vercel.app","vercel.json","CI","CD","CDN","package.json","package.lock","yarn.lock","GitHub","GitLab","CSS","Sass","JS","JavaScript","TypeScript","HTML","WordPress","JavaScript","Next.js","Node.js","Webpack","Docker","Bash","Kubernetes","SWR","TinaCMS","UI","UX","TS","TSX","iPhone","iPad","watchOS","iOS","iPadOS","macOS","PHP","composer.json","composer.lock","CMS"];t.exports=o}),le=A((e,t)=>{s();var o=ce(),r=me(),i=`[^\\s'\u2019\\(\\)!?;:"-]`,c=new RegExp(`(?:(?:(\\s?(?:^|[.\\(\\)!?;:"-])\\s*)(${i}))|(${i}))(${i}*[\u2019']*${i}*)`,"g"),d=n=>n.map(a=>[new RegExp(`\\b${a}\\b`,"gi"),a]);function f(n){let a=n[0];return/\s/.test(a)?n.substr(1):/[\(\)]/.test(a)?null:n}t.exports=(n,a={})=>{n=n.toLowerCase().replace(c,(u,v="",F,j,x,O,P)=>{let C=u.length+O>=P.length,w=f(u);if(!w)return u;if(!F){let N=j+x;if(o.has(N)&&!C)return w}return v+(j||F).toUpperCase()+x});let g=a.special||[],h=[...r,...g];return d(h).forEach(([u,v])=>{n=n.replace(u,v)}),n}});s();s();s();s();var pe={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"]},R=pe;s();s();var _=new de,ue=(e,t)=>{let{type:o}=e,r=o,i=S.findIndex(({code:n,emoji:a,type:g,value:h})=>{if(r!==null)return r.replace(/\:/g,"")===n.replace(/\:/g,"")||r===g||r===h||r===a});if(i===-1&&(r=_.splitGraphemes(o)[0],i=S.findIndex(({emoji:n})=>{if(r!==null)return r[0]===n[0]||r[0]===_.splitGraphemes(n)[0]})),i===-1)return;let c=S[i];e.type=`${c.emoji} ${c.description}`,e.typeSpecIndex=i,e.typeSpec=c,typeof e.hash=="string"&&(e.hash=e.hash.substring(0,7));let d=_.splitGraphemes(e.subject),f=d[0]===c.emoji?e.subject.replace(M(d,[0]),"").replace(M(d,[0]),""):e.subject;return e.subject=f.trim(),e},fe=ue,ge={transform:(e,t)=>fe(e,t),groupBy:"type",commitGroupsSort:["order","title"],commitsSort:["scope","subject"],noteGroupsSort:["title"],notesSort:["title"]},W=ge,he={parserOpts:R,writerOpts:W},ve=he;s();var be={parserOpts:R,whatBump:e=>{let t=2,o=0,r=0;return e.forEach(i=>{i.notes.length>0?(o+=i.notes.length,t=0):i.type==="feat"&&(r+=1,t===2&&(t=1))}),{level:t,reason:o===1?`There is ${o} BREAKING CHANGE and ${r} features`:`There are ${o} BREAKING CHANGES and ${r} features`}}},ye=be;s();var Fe={format:"%B%n-hash-%n%H%n-gitTags-%n%d%n-committerDate-%n%ci%n-authorName-%n%an%n-authorEmail-%n%ae"},je=Fe,xe={conventionalChangelog:ve,parserOpts:R,recommendedBumpOpts:ye,writerOpts:W,gitRawCommitsOpts:je},we=xe;s();s();var ke=[{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"}],Ae=ke;s();var Oe={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"}},E=Oe,Pe=ae(),{gitmojis:Ce}=Pe,_e=()=>(Ce.map(e=>{let t=Ae.find(o=>(o==null?void 0:o.from)===e.name);if(t){let o=t.semver===void 0?(e==null?void 0:e.semver)||null:t.semver||(e==null?void 0:e.semver)||null;E[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:o?o.replace("fix","patch").replace("feature","minor").replace("breaking","major"):null}}else console.dir(`@todo(conventional-gitmoji) create rewrite for: ${e.name}`)}),Object.keys(E).sort().reduce((e,t)=>(e[t]=E[t],e),{})),Ee=_e;s();var b=[],Se=e=>(Object.keys(e).map(t=>{let o=e[t];!!o&&!!o.semver&&(b.push({release:o.semver,type:o==null?void 0:o.code.replace(/(:[^:]*):/g,"$1")}),b.push({release:o.semver,type:o==null?void 0:o.code}),b.push({release:o.semver,type:o.commit}),b.push({release:o.semver,type:o.emoji}))}),b),Re=Se;s();var Ie=se(le(),1),L=[],De=e=>(Object.keys(e).map(t=>{L.push({code:e[t].code,description:(0,Ie.default)(e[t].description.replace(".","")),emoji:e[t].emoji,semver:e[t].semver,type:e[t].commit,value:e[t].commit})}),L),Be=De,{parserOpts:K,writerOpts:J}=we,V=Ee(),X=Re(V),S=Be(V);var I=(e=[])=>{let t=[...X,...e];return["@semantic-release/commit-analyzer",{config:"@jeromefitz/conventional-gitmoji",releaseRules:t}]};var D=e=>["@semantic-release/git",{assets:typeof e.gitAssets=="boolean"?!1:["package.json"].concat(e.gitAssets?e.gitAssets:[]).filter(t=>t),message:e.message?e.message:"\u{1F516}\uFE0F `${nextRelease.gitTag}` [skip ci] \n\n${nextRelease.notes}"}];var B=(e={})=>{let t=e&&Object.values(e).filter(c=>typeof c<"u").length===0;if(!e||t)return["@semantic-release/github",{addReleases:!1,labels:!1,releasedLabels:!1,successComment:!1}];let i=e,{githubAssets:o}=i,r=H(i,["githubAssets"]);return["@semantic-release/github",m({assets:o,addReleases:!1,labels:!1,releasedLabels:!1,successComment:!1},r)]};var G=e=>!e||typeof e.pkgRoot!="string"&&typeof e.npmPublish!="boolean"&&typeof e.tarballDir>"u"?"@semantic-release/npm":["@semantic-release/npm",m({},e)];var y=e=>{let o=m(m({},{enableGit:!1,enableGithub:!0,enableNpm:!0,enableReleaseNotes:!1,enableReleaseNotesCustom:!0,pkgRoot:"./dist"}),e),r=["@semantic-release/release-notes-generator",{config:"@jeromefitz/conventional-gitmoji",parserOpts:K,writerOpts:J}],i=["@jeromefitz/release-notes-generator",{config:"@jeromefitz/conventional-gitmoji"}],{npmPublish:c,pkgRoot:d,tarballDir:f}=o,n=G({npmPublish:c,pkgRoot:d,tarballDir:f}),{addReleases:a,assignees:g,failComment:h,failTitle:u,githubApiPathPrefix:v,githubAssets:F,githubUrl:j,labels:x,proxy:O,releasedLabels:P}=o,C=B({addReleases:a,assignees:g,failComment:h,failTitle:u,githubApiPathPrefix:v,githubAssets:F,githubUrl:j,labels:x,proxy:O,releasedLabels:P}),w=D(o);return[I(o.releaseRules),o.enableReleaseNotes?r:"",o.enableReleaseNotesCustom?i:"",o.enableNpm?n:"",o.enableGithub?C:"",o.enableGit?w:""].filter(q=>!!q)};var Z=(e={})=>{let t=y(e);return m(m({},{branches:[{name:"main"},{name:"canary",prerelease:"canary"}],extends:["semantic-release-commit-filter"],plugins:t,tagFormat:"v${version}"}),e)};var nt=y(),st=Z();export{st as config,Z as getConfig,y as getPluginOptions,nt as plugins};
1
+ var X=Object.defineProperty;var j=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable;var B=(e,t,o)=>t in e?X(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,c=(e,t)=>{for(var o in t||(t={}))N.call(t,o)&&B(e,o,t[o]);if(j)for(var o of j(t))G.call(t,o)&&B(e,o,t[o]);return e};var z=(e,t)=>{var o={};for(var r in e)N.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&j)for(var r of j(e))t.indexOf(r)<0&&G.call(e,r)&&(o[r]=e[r]);return o};import ce from"grapheme-splitter";import T from"lodash/pullAt.js";var Z=Object.create,M=Object.defineProperty,q=Object.getOwnPropertyDescriptor,Q=Object.getOwnPropertyNames,Y=Object.getPrototypeOf,ee=Object.prototype.hasOwnProperty,x=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),te=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Q(t))!ee.call(e,i)&&i!==o&&M(e,i,{get:()=>t[i],enumerable:!(r=q(t,i))||r.enumerable});return e},oe=(e,t,o)=>(o=e!=null?Z(Y(e)):{},te(t||!e||!e.__esModule?M(o,"default",{value:e,enumerable:!0}):o,e)),re=x((e,t)=>{t.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}]}}),ie=x((e,t)=>{var o=["for","and","nor","but","or","yet","so"],r=["a","an","the"],i=["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"];t.exports=new Set([...o,...r,...i])}),ne=x((e,t)=>{var o=["ZEIT","ZEIT Inc.","Vercel","Vercel Inc.","CLI","API","HTTP","HTTPS","JSX","DNS","URL","now.sh","now.json","vercel.app","vercel.json","CI","CD","CDN","package.json","package.lock","yarn.lock","GitHub","GitLab","CSS","Sass","JS","JavaScript","TypeScript","HTML","WordPress","JavaScript","Next.js","Node.js","Webpack","Docker","Bash","Kubernetes","SWR","TinaCMS","UI","UX","TS","TSX","iPhone","iPad","watchOS","iOS","iPadOS","macOS","PHP","composer.json","composer.lock","CMS"];t.exports=o}),se=x((e,t)=>{var o=ie(),r=ne(),i=`[^\\s'\u2019\\(\\)!?;:"-]`,a=new RegExp(`(?:(?:(\\s?(?:^|[.\\(\\)!?;:"-])\\s*)(${i}))|(${i}))(${i}*[\u2019']*${i}*)`,"g"),m=n=>n.map(s=>[new RegExp(`\\b${s}\\b`,"gi"),s]);function p(n){let s=n[0];return/\s/.test(s)?n.substr(1):/[\(\)]/.test(s)?null:n}t.exports=(n,s={})=>{n=n.toLowerCase().replace(a,(l,f="",v,b,y,w,k)=>{let A=l.length+w>=k.length,F=p(l);if(!F)return l;if(!v){let D=b+y;if(o.has(D)&&!A)return F}return f+(b||v).toUpperCase()+y});let d=s.special||[],u=[...r,...d];return m(u).forEach(([l,f])=>{n=n.replace(l,f)}),n}}),ae={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"]},_=ae,O=new ce,me=(e,t)=>{let{type:o}=e,r=o,i=C.findIndex(({code:n,emoji:s,type:d,value:u})=>{if(r!==null)return r.replace(/\:/g,"")===n.replace(/\:/g,"")||r===d||r===u||r===s});if(i===-1&&(r=O.splitGraphemes(o)[0],i=C.findIndex(({emoji:n})=>{if(r!==null)return r[0]===n[0]||r[0]===O.splitGraphemes(n)[0]})),i===-1)return;let a=C[i];e.type=`${a.emoji} ${a.description}`,e.typeSpecIndex=i,e.typeSpec=a,typeof e.hash=="string"&&(e.hash=e.hash.substring(0,7));let m=O.splitGraphemes(e.subject),p=m[0]===a.emoji?e.subject.replace(T(m,[0]),"").replace(T(m,[0]),""):e.subject;return e.subject=p.trim(),e},le=me,pe={transform:(e,t)=>le(e,t),groupBy:"type",commitGroupsSort:["order","title"],commitsSort:["scope","subject"],noteGroupsSort:["title"],notesSort:["title"]},H=pe,de={parserOpts:_,writerOpts:H},ue=de,fe={parserOpts:_,whatBump:e=>{let t=2,o=0,r=0;return e.forEach(i=>{i.notes.length>0?(o+=i.notes.length,t=0):i.type==="feat"&&(r+=1,t===2&&(t=1))}),{level:t,reason:o===1?`There is ${o} BREAKING CHANGE and ${r} features`:`There are ${o} BREAKING CHANGES and ${r} features`}}},ge=fe,he={format:"%B%n-hash-%n%H%n-gitTags-%n%d%n-committerDate-%n%ci%n-authorName-%n%an%n-authorEmail-%n%ae"},ve=he,be={conventionalChangelog:ue,parserOpts:_,recommendedBumpOpts:ge,writerOpts:H,gitRawCommitsOpts:ve},ye=be,Fe=[{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"}],je=Fe,xe={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"}},P=xe,we=re(),{gitmojis:ke}=we,Ae=()=>(ke.map(e=>{let t=je.find(o=>(o==null?void 0:o.from)===e.name);if(t){let o=t.semver===void 0?(e==null?void 0:e.semver)||null:t.semver||(e==null?void 0:e.semver)||null;P[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:o?o.replace("fix","patch").replace("feature","minor").replace("breaking","major"):null}}else console.dir(`@todo(conventional-gitmoji) create rewrite for: ${e.name}`)}),Object.keys(P).sort().reduce((e,t)=>(e[t]=P[t],e),{})),Oe=Ae,g=[],Pe=e=>(Object.keys(e).map(t=>{let o=e[t];!!o&&!!o.semver&&(g.push({release:o.semver,type:o==null?void 0:o.code.replace(/(:[^:]*):/g,"$1")}),g.push({release:o.semver,type:o==null?void 0:o.code}),g.push({release:o.semver,type:o.commit}),g.push({release:o.semver,type:o.emoji}))}),g),Ce=Pe,_e=oe(se(),1),$=[],Ee=e=>(Object.keys(e).map(t=>{$.push({code:e[t].code,description:(0,_e.default)(e[t].description.replace(".","")),emoji:e[t].emoji,semver:e[t].semver,type:e[t].commit,value:e[t].commit})}),$),Se=Ee,{parserOpts:L,writerOpts:U}=ye,W=Oe(),K=Ce(W),C=Se(W);var E=(e=[])=>{let t=[...K,...e];return["@semantic-release/commit-analyzer",{config:"@jeromefitz/conventional-gitmoji",releaseRules:t}]};var S=e=>["@semantic-release/git",{assets:typeof e.gitAssets=="boolean"?!1:["package.json"].concat(e.gitAssets?e.gitAssets:[]).filter(t=>t),message:e.message?e.message:"\u{1F516}\uFE0F `${nextRelease.gitTag}` [skip ci] \n\n${nextRelease.notes}"}];var R=(e={})=>{let t=e&&Object.values(e).filter(a=>typeof a<"u").length===0;if(!e||t)return["@semantic-release/github",{addReleases:!1,labels:!1,releasedLabels:!1,successComment:!1}];let i=e,{githubAssets:o}=i,r=z(i,["githubAssets"]);return["@semantic-release/github",c({assets:o,addReleases:!1,labels:!1,releasedLabels:!1,successComment:!1},r)]};var I=e=>!e||typeof e.pkgRoot!="string"&&typeof e.npmPublish!="boolean"&&typeof e.tarballDir>"u"?"@semantic-release/npm":["@semantic-release/npm",c({},e)];var h=e=>{let o=c(c({},{enableGit:!1,enableGithub:!0,enableNpm:!0,enableReleaseNotes:!1,enableReleaseNotesCustom:!0,pkgRoot:"./dist"}),e),r=["@semantic-release/release-notes-generator",{config:"@jeromefitz/conventional-gitmoji",parserOpts:L,writerOpts:U}],i=["@jeromefitz/release-notes-generator",{config:"@jeromefitz/conventional-gitmoji"}],{npmPublish:a,pkgRoot:m,tarballDir:p}=o,n=I({npmPublish:a,pkgRoot:m,tarballDir:p}),{addReleases:s,assignees:d,failComment:u,failTitle:l,githubApiPathPrefix:f,githubAssets:v,githubUrl:b,labels:y,proxy:w,releasedLabels:k}=o,A=R({addReleases:s,assignees:d,failComment:u,failTitle:l,githubApiPathPrefix:f,githubAssets:v,githubUrl:b,labels:y,proxy:w,releasedLabels:k}),F=S(o);return[E(o.releaseRules),o.enableReleaseNotes?r:"",o.enableReleaseNotesCustom?i:"",o.enableNpm?n:"",o.enableGithub?A:"",o.enableGit?F:""].filter(V=>!!V)};var J=(e={})=>{let t=h(e);return c(c({},{branches:[{name:"main"},{name:"canary",prerelease:"canary"}],extends:["semantic-release-commit-filter"],plugins:t,tagFormat:"v${version}"}),e)};var tt=h(),ot=J();export{ot as config,J as getConfig,h as getPluginOptions,tt as plugins};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jeromefitz/semantic",
3
- "version": "9.1.0",
3
+ "version": "9.1.1",
4
4
  "description": "Semantic Versioning, Conventional Commits with CI/CD for GitHub Actions.",
5
5
  "author": {
6
6
  "name": "Jerome Fitzgerald",
@@ -51,7 +51,7 @@
51
51
  "@semantic-release/release-notes-generator": "10.0.3",
52
52
  "grapheme-splitter": "1.0.4",
53
53
  "lodash": "4.17.21",
54
- "semantic-release": "19.0.2",
54
+ "semantic-release": "19.0.3",
55
55
  "semantic-release-commit-filter": "1.0.2",
56
56
  "title": "3.4.4"
57
57
  },
@@ -1 +1 @@
1
- var te=Object.create;var v=Object.defineProperty;var oe=Object.getOwnPropertyDescriptor;var re=Object.getOwnPropertyNames,w=Object.getOwnPropertySymbols,ie=Object.getPrototypeOf,C=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable;var $=(e,t,o)=>t in e?v(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,m=(e,t)=>{for(var o in t||(t={}))C.call(t,o)&&$(e,o,t[o]);if(w)for(var o of w(t))H.call(t,o)&&$(e,o,t[o]);return e};var M=(e,t)=>{var o={};for(var r in e)C.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&w)for(var r of w(e))t.indexOf(r)<0&&H.call(e,r)&&(o[r]=e[r]);return o};var ne=(e,t)=>{for(var o in t)v(e,o,{get:t[o],enumerable:!0})},L=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of re(t))!C.call(e,i)&&i!==o&&v(e,i,{get:()=>t[i],enumerable:!(r=oe(t,i))||r.enumerable});return e};var U=(e,t,o)=>(o=e!=null?te(ie(e)):{},L(t||!e||!e.__esModule?v(o,"default",{value:e,enumerable:!0}):o,e)),se=e=>L(v({},"__esModule",{value:!0}),e);var We={};ne(We,{default:()=>Ue});module.exports=se(We);var J=U(require("grapheme-splitter"),1),R=U(require("lodash/pullAt.js"),1),ae=Object.create,K=Object.defineProperty,ce=Object.getOwnPropertyDescriptor,me=Object.getOwnPropertyNames,le=Object.getPrototypeOf,pe=Object.prototype.hasOwnProperty,de=(e,t)=>()=>(e&&(t=e(e=0)),t),k=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ue=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of me(t))!pe.call(e,i)&&i!==o&&K(e,i,{get:()=>t[i],enumerable:!(r=ce(t,i))||r.enumerable});return e},fe=(e,t,o)=>(o=e!=null?ae(le(e)):{},ue(t||!e||!e.__esModule?K(o,"default",{value:e,enumerable:!0}):o,e)),s=de(()=>{}),ge=k((e,t)=>{t.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}]}}),he=k((e,t)=>{s();var o=["for","and","nor","but","or","yet","so"],r=["a","an","the"],i=["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"];t.exports=new Set([...o,...r,...i])}),ve=k((e,t)=>{s();var o=["ZEIT","ZEIT Inc.","Vercel","Vercel Inc.","CLI","API","HTTP","HTTPS","JSX","DNS","URL","now.sh","now.json","vercel.app","vercel.json","CI","CD","CDN","package.json","package.lock","yarn.lock","GitHub","GitLab","CSS","Sass","JS","JavaScript","TypeScript","HTML","WordPress","JavaScript","Next.js","Node.js","Webpack","Docker","Bash","Kubernetes","SWR","TinaCMS","UI","UX","TS","TSX","iPhone","iPad","watchOS","iOS","iPadOS","macOS","PHP","composer.json","composer.lock","CMS"];t.exports=o}),be=k((e,t)=>{s();var o=he(),r=ve(),i=`[^\\s'\u2019\\(\\)!?;:"-]`,c=new RegExp(`(?:(?:(\\s?(?:^|[.\\(\\)!?;:"-])\\s*)(${i}))|(${i}))(${i}*[\u2019']*${i}*)`,"g"),p=n=>n.map(a=>[new RegExp(`\\b${a}\\b`,"gi"),a]);function u(n){let a=n[0];return/\s/.test(a)?n.substr(1):/[\(\)]/.test(a)?null:n}t.exports=(n,a={})=>{n=n.toLowerCase().replace(c,(d,h="",y,F,j,A,O)=>{let P=d.length+A>=O.length,x=u(d);if(!x)return d;if(!y){let T=F+j;if(o.has(T)&&!P)return x}return h+(F||y).toUpperCase()+j});let f=a.special||[],g=[...r,...f];return p(g).forEach(([d,h])=>{n=n.replace(d,h)}),n}});s();s();s();s();var ye={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"]},I=ye;s();s();var _=new J.default,Fe=(e,t)=>{let{type:o}=e,r=o,i=S.findIndex(({code:n,emoji:a,type:f,value:g})=>{if(r!==null)return r.replace(/\:/g,"")===n.replace(/\:/g,"")||r===f||r===g||r===a});if(i===-1&&(r=_.splitGraphemes(o)[0],i=S.findIndex(({emoji:n})=>{if(r!==null)return r[0]===n[0]||r[0]===_.splitGraphemes(n)[0]})),i===-1)return;let c=S[i];e.type=`${c.emoji} ${c.description}`,e.typeSpecIndex=i,e.typeSpec=c,typeof e.hash=="string"&&(e.hash=e.hash.substring(0,7));let p=_.splitGraphemes(e.subject),u=p[0]===c.emoji?e.subject.replace((0,R.default)(p,[0]),"").replace((0,R.default)(p,[0]),""):e.subject;return e.subject=u.trim(),e},je=Fe,xe={transform:(e,t)=>je(e,t),groupBy:"type",commitGroupsSort:["order","title"],commitsSort:["scope","subject"],noteGroupsSort:["title"],notesSort:["title"]},V=xe,we={parserOpts:I,writerOpts:V},ke=we;s();var Ae={parserOpts:I,whatBump:e=>{let t=2,o=0,r=0;return e.forEach(i=>{i.notes.length>0?(o+=i.notes.length,t=0):i.type==="feat"&&(r+=1,t===2&&(t=1))}),{level:t,reason:o===1?`There is ${o} BREAKING CHANGE and ${r} features`:`There are ${o} BREAKING CHANGES and ${r} features`}}},Oe=Ae;s();var Pe={format:"%B%n-hash-%n%H%n-gitTags-%n%d%n-committerDate-%n%ci%n-authorName-%n%an%n-authorEmail-%n%ae"},Ce=Pe,_e={conventionalChangelog:ke,parserOpts:I,recommendedBumpOpts:Oe,writerOpts:V,gitRawCommitsOpts:Ce},Ee=_e;s();s();var Se=[{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"}],Re=Se;s();var Ie={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"}},E=Ie,De=ge(),{gitmojis:Be}=De,Ge=()=>(Be.map(e=>{let t=Re.find(o=>(o==null?void 0:o.from)===e.name);if(t){let o=t.semver===void 0?(e==null?void 0:e.semver)||null:t.semver||(e==null?void 0:e.semver)||null;E[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:o?o.replace("fix","patch").replace("feature","minor").replace("breaking","major"):null}}else console.dir(`@todo(conventional-gitmoji) create rewrite for: ${e.name}`)}),Object.keys(E).sort().reduce((e,t)=>(e[t]=E[t],e),{})),Ne=Ge;s();var b=[],ze=e=>(Object.keys(e).map(t=>{let o=e[t];!!o&&!!o.semver&&(b.push({release:o.semver,type:o==null?void 0:o.code.replace(/(:[^:]*):/g,"$1")}),b.push({release:o.semver,type:o==null?void 0:o.code}),b.push({release:o.semver,type:o.commit}),b.push({release:o.semver,type:o.emoji}))}),b),Te=ze;s();var $e=fe(be(),1),W=[],He=e=>(Object.keys(e).map(t=>{W.push({code:e[t].code,description:(0,$e.default)(e[t].description.replace(".","")),emoji:e[t].emoji,semver:e[t].semver,type:e[t].commit,value:e[t].commit})}),W),Me=He,{parserOpts:X,writerOpts:Z}=Ee,q=Ne(),Q=Te(q),S=Me(q);var D=(e=[])=>{let t=[...Q,...e];return["@semantic-release/commit-analyzer",{config:"@jeromefitz/conventional-gitmoji",releaseRules:t}]};var B=e=>["@semantic-release/git",{assets:typeof e.gitAssets=="boolean"?!1:["package.json"].concat(e.gitAssets?e.gitAssets:[]).filter(t=>t),message:e.message?e.message:"\u{1F516}\uFE0F `${nextRelease.gitTag}` [skip ci] \n\n${nextRelease.notes}"}];var G=(e={})=>{let t=e&&Object.values(e).filter(c=>typeof c<"u").length===0;if(!e||t)return["@semantic-release/github",{addReleases:!1,labels:!1,releasedLabels:!1,successComment:!1}];let i=e,{githubAssets:o}=i,r=M(i,["githubAssets"]);return["@semantic-release/github",m({assets:o,addReleases:!1,labels:!1,releasedLabels:!1,successComment:!1},r)]};var N=e=>!e||typeof e.pkgRoot!="string"&&typeof e.npmPublish!="boolean"&&typeof e.tarballDir>"u"?"@semantic-release/npm":["@semantic-release/npm",m({},e)];var z=e=>{let o=m(m({},{enableGit:!1,enableGithub:!0,enableNpm:!0,enableReleaseNotes:!1,enableReleaseNotesCustom:!0,pkgRoot:"./dist"}),e),r=["@semantic-release/release-notes-generator",{config:"@jeromefitz/conventional-gitmoji",parserOpts:X,writerOpts:Z}],i=["@jeromefitz/release-notes-generator",{config:"@jeromefitz/conventional-gitmoji"}],{npmPublish:c,pkgRoot:p,tarballDir:u}=o,n=N({npmPublish:c,pkgRoot:p,tarballDir:u}),{addReleases:a,assignees:f,failComment:g,failTitle:d,githubApiPathPrefix:h,githubAssets:y,githubUrl:F,labels:j,proxy:A,releasedLabels:O}=o,P=G({addReleases:a,assignees:f,failComment:g,failTitle:d,githubApiPathPrefix:h,githubAssets:y,githubUrl:F,labels:j,proxy:A,releasedLabels:O}),x=B(o);return[D(o.releaseRules),o.enableReleaseNotes?r:"",o.enableReleaseNotesCustom?i:"",o.enableNpm?n:"",o.enableGithub?P:"",o.enableGit?x:""].filter(ee=>!!ee)};var Y=(e={})=>{let t=z(e);return m(m({},{branches:[{name:"main"},{name:"canary",prerelease:"canary"}],extends:["semantic-release-commit-filter"],plugins:t,tagFormat:"v${version}"}),e)};var Le=Y(),Ue=Le;0&&(module.exports={});
1
+ var Y=Object.create;var g=Object.defineProperty;var ee=Object.getOwnPropertyDescriptor;var te=Object.getOwnPropertyNames,j=Object.getOwnPropertySymbols,oe=Object.getPrototypeOf,P=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var z=(e,t,o)=>t in e?g(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,c=(e,t)=>{for(var o in t||(t={}))P.call(t,o)&&z(e,o,t[o]);if(j)for(var o of j(t))T.call(t,o)&&z(e,o,t[o]);return e};var $=(e,t)=>{var o={};for(var r in e)P.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&j)for(var r of j(e))t.indexOf(r)<0&&T.call(e,r)&&(o[r]=e[r]);return o};var re=(e,t)=>{for(var o in t)g(e,o,{get:t[o],enumerable:!0})},M=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of te(t))!P.call(e,i)&&i!==o&&g(e,i,{get:()=>t[i],enumerable:!(r=ee(t,i))||r.enumerable});return e};var H=(e,t,o)=>(o=e!=null?Y(oe(e)):{},M(t||!e||!e.__esModule?g(o,"default",{value:e,enumerable:!0}):o,e)),ie=e=>M(g({},"__esModule",{value:!0}),e);var He={};re(He,{default:()=>Me});module.exports=ie(He);var W=H(require("grapheme-splitter"),1),E=H(require("lodash/pullAt.js"),1),ne=Object.create,U=Object.defineProperty,se=Object.getOwnPropertyDescriptor,ae=Object.getOwnPropertyNames,ce=Object.getPrototypeOf,me=Object.prototype.hasOwnProperty,x=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),le=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ae(t))!me.call(e,i)&&i!==o&&U(e,i,{get:()=>t[i],enumerable:!(r=se(t,i))||r.enumerable});return e},pe=(e,t,o)=>(o=e!=null?ne(ce(e)):{},le(t||!e||!e.__esModule?U(o,"default",{value:e,enumerable:!0}):o,e)),de=x((e,t)=>{t.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}]}}),ue=x((e,t)=>{var o=["for","and","nor","but","or","yet","so"],r=["a","an","the"],i=["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"];t.exports=new Set([...o,...r,...i])}),fe=x((e,t)=>{var o=["ZEIT","ZEIT Inc.","Vercel","Vercel Inc.","CLI","API","HTTP","HTTPS","JSX","DNS","URL","now.sh","now.json","vercel.app","vercel.json","CI","CD","CDN","package.json","package.lock","yarn.lock","GitHub","GitLab","CSS","Sass","JS","JavaScript","TypeScript","HTML","WordPress","JavaScript","Next.js","Node.js","Webpack","Docker","Bash","Kubernetes","SWR","TinaCMS","UI","UX","TS","TSX","iPhone","iPad","watchOS","iOS","iPadOS","macOS","PHP","composer.json","composer.lock","CMS"];t.exports=o}),ge=x((e,t)=>{var o=ue(),r=fe(),i=`[^\\s'\u2019\\(\\)!?;:"-]`,a=new RegExp(`(?:(?:(\\s?(?:^|[.\\(\\)!?;:"-])\\s*)(${i}))|(${i}))(${i}*[\u2019']*${i}*)`,"g"),m=n=>n.map(s=>[new RegExp(`\\b${s}\\b`,"gi"),s]);function p(n){let s=n[0];return/\s/.test(s)?n.substr(1):/[\(\)]/.test(s)?null:n}t.exports=(n,s={})=>{n=n.toLowerCase().replace(a,(l,f="",v,b,y,w,k)=>{let A=l.length+w>=k.length,F=p(l);if(!F)return l;if(!v){let G=b+y;if(o.has(G)&&!A)return F}return f+(b||v).toUpperCase()+y});let d=s.special||[],u=[...r,...d];return m(u).forEach(([l,f])=>{n=n.replace(l,f)}),n}}),he={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"]},S=he,O=new W.default,ve=(e,t)=>{let{type:o}=e,r=o,i=_.findIndex(({code:n,emoji:s,type:d,value:u})=>{if(r!==null)return r.replace(/\:/g,"")===n.replace(/\:/g,"")||r===d||r===u||r===s});if(i===-1&&(r=O.splitGraphemes(o)[0],i=_.findIndex(({emoji:n})=>{if(r!==null)return r[0]===n[0]||r[0]===O.splitGraphemes(n)[0]})),i===-1)return;let a=_[i];e.type=`${a.emoji} ${a.description}`,e.typeSpecIndex=i,e.typeSpec=a,typeof e.hash=="string"&&(e.hash=e.hash.substring(0,7));let m=O.splitGraphemes(e.subject),p=m[0]===a.emoji?e.subject.replace((0,E.default)(m,[0]),"").replace((0,E.default)(m,[0]),""):e.subject;return e.subject=p.trim(),e},be=ve,ye={transform:(e,t)=>be(e,t),groupBy:"type",commitGroupsSort:["order","title"],commitsSort:["scope","subject"],noteGroupsSort:["title"],notesSort:["title"]},K=ye,Fe={parserOpts:S,writerOpts:K},je=Fe,xe={parserOpts:S,whatBump:e=>{let t=2,o=0,r=0;return e.forEach(i=>{i.notes.length>0?(o+=i.notes.length,t=0):i.type==="feat"&&(r+=1,t===2&&(t=1))}),{level:t,reason:o===1?`There is ${o} BREAKING CHANGE and ${r} features`:`There are ${o} BREAKING CHANGES and ${r} features`}}},we=xe,ke={format:"%B%n-hash-%n%H%n-gitTags-%n%d%n-committerDate-%n%ci%n-authorName-%n%an%n-authorEmail-%n%ae"},Ae=ke,Pe={conventionalChangelog:je,parserOpts:S,recommendedBumpOpts:we,writerOpts:K,gitRawCommitsOpts:Ae},Oe=Pe,Ce=[{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"}],_e=Ce,Ee={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"}},C=Ee,Se=de(),{gitmojis:Re}=Se,Ie=()=>(Re.map(e=>{let t=_e.find(o=>(o==null?void 0:o.from)===e.name);if(t){let o=t.semver===void 0?(e==null?void 0:e.semver)||null:t.semver||(e==null?void 0:e.semver)||null;C[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:o?o.replace("fix","patch").replace("feature","minor").replace("breaking","major"):null}}else console.dir(`@todo(conventional-gitmoji) create rewrite for: ${e.name}`)}),Object.keys(C).sort().reduce((e,t)=>(e[t]=C[t],e),{})),De=Ie,h=[],Be=e=>(Object.keys(e).map(t=>{let o=e[t];!!o&&!!o.semver&&(h.push({release:o.semver,type:o==null?void 0:o.code.replace(/(:[^:]*):/g,"$1")}),h.push({release:o.semver,type:o==null?void 0:o.code}),h.push({release:o.semver,type:o.commit}),h.push({release:o.semver,type:o.emoji}))}),h),Ne=Be,Ge=pe(ge(),1),L=[],ze=e=>(Object.keys(e).map(t=>{L.push({code:e[t].code,description:(0,Ge.default)(e[t].description.replace(".","")),emoji:e[t].emoji,semver:e[t].semver,type:e[t].commit,value:e[t].commit})}),L),Te=ze,{parserOpts:J,writerOpts:V}=Oe,X=De(),Z=Ne(X),_=Te(X);var R=(e=[])=>{let t=[...Z,...e];return["@semantic-release/commit-analyzer",{config:"@jeromefitz/conventional-gitmoji",releaseRules:t}]};var I=e=>["@semantic-release/git",{assets:typeof e.gitAssets=="boolean"?!1:["package.json"].concat(e.gitAssets?e.gitAssets:[]).filter(t=>t),message:e.message?e.message:"\u{1F516}\uFE0F `${nextRelease.gitTag}` [skip ci] \n\n${nextRelease.notes}"}];var D=(e={})=>{let t=e&&Object.values(e).filter(a=>typeof a<"u").length===0;if(!e||t)return["@semantic-release/github",{addReleases:!1,labels:!1,releasedLabels:!1,successComment:!1}];let i=e,{githubAssets:o}=i,r=$(i,["githubAssets"]);return["@semantic-release/github",c({assets:o,addReleases:!1,labels:!1,releasedLabels:!1,successComment:!1},r)]};var B=e=>!e||typeof e.pkgRoot!="string"&&typeof e.npmPublish!="boolean"&&typeof e.tarballDir>"u"?"@semantic-release/npm":["@semantic-release/npm",c({},e)];var N=e=>{let o=c(c({},{enableGit:!1,enableGithub:!0,enableNpm:!0,enableReleaseNotes:!1,enableReleaseNotesCustom:!0,pkgRoot:"./dist"}),e),r=["@semantic-release/release-notes-generator",{config:"@jeromefitz/conventional-gitmoji",parserOpts:J,writerOpts:V}],i=["@jeromefitz/release-notes-generator",{config:"@jeromefitz/conventional-gitmoji"}],{npmPublish:a,pkgRoot:m,tarballDir:p}=o,n=B({npmPublish:a,pkgRoot:m,tarballDir:p}),{addReleases:s,assignees:d,failComment:u,failTitle:l,githubApiPathPrefix:f,githubAssets:v,githubUrl:b,labels:y,proxy:w,releasedLabels:k}=o,A=D({addReleases:s,assignees:d,failComment:u,failTitle:l,githubApiPathPrefix:f,githubAssets:v,githubUrl:b,labels:y,proxy:w,releasedLabels:k}),F=I(o);return[R(o.releaseRules),o.enableReleaseNotes?r:"",o.enableReleaseNotesCustom?i:"",o.enableNpm?n:"",o.enableGithub?A:"",o.enableGit?F:""].filter(Q=>!!Q)};var q=(e={})=>{let t=N(e);return c(c({},{branches:[{name:"main"},{name:"canary",prerelease:"canary"}],extends:["semantic-release-commit-filter"],plugins:t,tagFormat:"v${version}"}),e)};var $e=q(),Me=$e;0&&(module.exports={});
package/release.config.js CHANGED
@@ -1 +1 @@
1
- var Q=Object.defineProperty;var w=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable;var z=(e,t,o)=>t in e?Q(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,m=(e,t)=>{for(var o in t||(t={}))T.call(t,o)&&z(e,o,t[o]);if(w)for(var o of w(t))$.call(t,o)&&z(e,o,t[o]);return e};var H=(e,t)=>{var o={};for(var r in e)T.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&w)for(var r of w(e))t.indexOf(r)<0&&$.call(e,r)&&(o[r]=e[r]);return o};import de from"grapheme-splitter";import M from"lodash/pullAt.js";var Y=Object.create,U=Object.defineProperty,ee=Object.getOwnPropertyDescriptor,te=Object.getOwnPropertyNames,oe=Object.getPrototypeOf,re=Object.prototype.hasOwnProperty,ie=(e,t)=>()=>(e&&(t=e(e=0)),t),k=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ne=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of te(t))!re.call(e,i)&&i!==o&&U(e,i,{get:()=>t[i],enumerable:!(r=ee(t,i))||r.enumerable});return e},se=(e,t,o)=>(o=e!=null?Y(oe(e)):{},ne(t||!e||!e.__esModule?U(o,"default",{value:e,enumerable:!0}):o,e)),s=ie(()=>{}),ae=k((e,t)=>{t.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}]}}),ce=k((e,t)=>{s();var o=["for","and","nor","but","or","yet","so"],r=["a","an","the"],i=["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"];t.exports=new Set([...o,...r,...i])}),me=k((e,t)=>{s();var o=["ZEIT","ZEIT Inc.","Vercel","Vercel Inc.","CLI","API","HTTP","HTTPS","JSX","DNS","URL","now.sh","now.json","vercel.app","vercel.json","CI","CD","CDN","package.json","package.lock","yarn.lock","GitHub","GitLab","CSS","Sass","JS","JavaScript","TypeScript","HTML","WordPress","JavaScript","Next.js","Node.js","Webpack","Docker","Bash","Kubernetes","SWR","TinaCMS","UI","UX","TS","TSX","iPhone","iPad","watchOS","iOS","iPadOS","macOS","PHP","composer.json","composer.lock","CMS"];t.exports=o}),le=k((e,t)=>{s();var o=ce(),r=me(),i=`[^\\s'\u2019\\(\\)!?;:"-]`,c=new RegExp(`(?:(?:(\\s?(?:^|[.\\(\\)!?;:"-])\\s*)(${i}))|(${i}))(${i}*[\u2019']*${i}*)`,"g"),d=n=>n.map(a=>[new RegExp(`\\b${a}\\b`,"gi"),a]);function f(n){let a=n[0];return/\s/.test(a)?n.substr(1):/[\(\)]/.test(a)?null:n}t.exports=(n,a={})=>{n=n.toLowerCase().replace(c,(u,v="",y,F,j,A,O)=>{let P=u.length+A>=O.length,x=f(u);if(!x)return u;if(!y){let N=F+j;if(o.has(N)&&!P)return x}return v+(F||y).toUpperCase()+j});let g=a.special||[],h=[...r,...g];return d(h).forEach(([u,v])=>{n=n.replace(u,v)}),n}});s();s();s();s();var pe={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"]},S=pe;s();s();var C=new de,ue=(e,t)=>{let{type:o}=e,r=o,i=E.findIndex(({code:n,emoji:a,type:g,value:h})=>{if(r!==null)return r.replace(/\:/g,"")===n.replace(/\:/g,"")||r===g||r===h||r===a});if(i===-1&&(r=C.splitGraphemes(o)[0],i=E.findIndex(({emoji:n})=>{if(r!==null)return r[0]===n[0]||r[0]===C.splitGraphemes(n)[0]})),i===-1)return;let c=E[i];e.type=`${c.emoji} ${c.description}`,e.typeSpecIndex=i,e.typeSpec=c,typeof e.hash=="string"&&(e.hash=e.hash.substring(0,7));let d=C.splitGraphemes(e.subject),f=d[0]===c.emoji?e.subject.replace(M(d,[0]),"").replace(M(d,[0]),""):e.subject;return e.subject=f.trim(),e},fe=ue,ge={transform:(e,t)=>fe(e,t),groupBy:"type",commitGroupsSort:["order","title"],commitsSort:["scope","subject"],noteGroupsSort:["title"],notesSort:["title"]},W=ge,he={parserOpts:S,writerOpts:W},ve=he;s();var be={parserOpts:S,whatBump:e=>{let t=2,o=0,r=0;return e.forEach(i=>{i.notes.length>0?(o+=i.notes.length,t=0):i.type==="feat"&&(r+=1,t===2&&(t=1))}),{level:t,reason:o===1?`There is ${o} BREAKING CHANGE and ${r} features`:`There are ${o} BREAKING CHANGES and ${r} features`}}},ye=be;s();var Fe={format:"%B%n-hash-%n%H%n-gitTags-%n%d%n-committerDate-%n%ci%n-authorName-%n%an%n-authorEmail-%n%ae"},je=Fe,xe={conventionalChangelog:ve,parserOpts:S,recommendedBumpOpts:ye,writerOpts:W,gitRawCommitsOpts:je},we=xe;s();s();var ke=[{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"}],Ae=ke;s();var Oe={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"}},_=Oe,Pe=ae(),{gitmojis:Ce}=Pe,_e=()=>(Ce.map(e=>{let t=Ae.find(o=>(o==null?void 0:o.from)===e.name);if(t){let o=t.semver===void 0?(e==null?void 0:e.semver)||null:t.semver||(e==null?void 0:e.semver)||null;_[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:o?o.replace("fix","patch").replace("feature","minor").replace("breaking","major"):null}}else console.dir(`@todo(conventional-gitmoji) create rewrite for: ${e.name}`)}),Object.keys(_).sort().reduce((e,t)=>(e[t]=_[t],e),{})),Ee=_e;s();var b=[],Se=e=>(Object.keys(e).map(t=>{let o=e[t];!!o&&!!o.semver&&(b.push({release:o.semver,type:o==null?void 0:o.code.replace(/(:[^:]*):/g,"$1")}),b.push({release:o.semver,type:o==null?void 0:o.code}),b.push({release:o.semver,type:o.commit}),b.push({release:o.semver,type:o.emoji}))}),b),Re=Se;s();var Ie=se(le(),1),L=[],De=e=>(Object.keys(e).map(t=>{L.push({code:e[t].code,description:(0,Ie.default)(e[t].description.replace(".","")),emoji:e[t].emoji,semver:e[t].semver,type:e[t].commit,value:e[t].commit})}),L),Be=De,{parserOpts:K,writerOpts:J}=we,V=Ee(),X=Re(V),E=Be(V);var R=(e=[])=>{let t=[...X,...e];return["@semantic-release/commit-analyzer",{config:"@jeromefitz/conventional-gitmoji",releaseRules:t}]};var I=e=>["@semantic-release/git",{assets:typeof e.gitAssets=="boolean"?!1:["package.json"].concat(e.gitAssets?e.gitAssets:[]).filter(t=>t),message:e.message?e.message:"\u{1F516}\uFE0F `${nextRelease.gitTag}` [skip ci] \n\n${nextRelease.notes}"}];var D=(e={})=>{let t=e&&Object.values(e).filter(c=>typeof c<"u").length===0;if(!e||t)return["@semantic-release/github",{addReleases:!1,labels:!1,releasedLabels:!1,successComment:!1}];let i=e,{githubAssets:o}=i,r=H(i,["githubAssets"]);return["@semantic-release/github",m({assets:o,addReleases:!1,labels:!1,releasedLabels:!1,successComment:!1},r)]};var B=e=>!e||typeof e.pkgRoot!="string"&&typeof e.npmPublish!="boolean"&&typeof e.tarballDir>"u"?"@semantic-release/npm":["@semantic-release/npm",m({},e)];var G=e=>{let o=m(m({},{enableGit:!1,enableGithub:!0,enableNpm:!0,enableReleaseNotes:!1,enableReleaseNotesCustom:!0,pkgRoot:"./dist"}),e),r=["@semantic-release/release-notes-generator",{config:"@jeromefitz/conventional-gitmoji",parserOpts:K,writerOpts:J}],i=["@jeromefitz/release-notes-generator",{config:"@jeromefitz/conventional-gitmoji"}],{npmPublish:c,pkgRoot:d,tarballDir:f}=o,n=B({npmPublish:c,pkgRoot:d,tarballDir:f}),{addReleases:a,assignees:g,failComment:h,failTitle:u,githubApiPathPrefix:v,githubAssets:y,githubUrl:F,labels:j,proxy:A,releasedLabels:O}=o,P=D({addReleases:a,assignees:g,failComment:h,failTitle:u,githubApiPathPrefix:v,githubAssets:y,githubUrl:F,labels:j,proxy:A,releasedLabels:O}),x=I(o);return[R(o.releaseRules),o.enableReleaseNotes?r:"",o.enableReleaseNotesCustom?i:"",o.enableNpm?n:"",o.enableGithub?P:"",o.enableGit?x:""].filter(q=>!!q)};var Z=(e={})=>{let t=G(e);return m(m({},{branches:[{name:"main"},{name:"canary",prerelease:"canary"}],extends:["semantic-release-commit-filter"],plugins:t,tagFormat:"v${version}"}),e)};var Ge=Z(),nt=Ge;export{nt as default};
1
+ var X=Object.defineProperty;var F=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable;var B=(e,t,o)=>t in e?X(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,c=(e,t)=>{for(var o in t||(t={}))N.call(t,o)&&B(e,o,t[o]);if(F)for(var o of F(t))G.call(t,o)&&B(e,o,t[o]);return e};var z=(e,t)=>{var o={};for(var r in e)N.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&F)for(var r of F(e))t.indexOf(r)<0&&G.call(e,r)&&(o[r]=e[r]);return o};import ce from"grapheme-splitter";import T from"lodash/pullAt.js";var Z=Object.create,M=Object.defineProperty,q=Object.getOwnPropertyDescriptor,Q=Object.getOwnPropertyNames,Y=Object.getPrototypeOf,ee=Object.prototype.hasOwnProperty,j=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),te=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Q(t))!ee.call(e,i)&&i!==o&&M(e,i,{get:()=>t[i],enumerable:!(r=q(t,i))||r.enumerable});return e},oe=(e,t,o)=>(o=e!=null?Z(Y(e)):{},te(t||!e||!e.__esModule?M(o,"default",{value:e,enumerable:!0}):o,e)),re=j((e,t)=>{t.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}]}}),ie=j((e,t)=>{var o=["for","and","nor","but","or","yet","so"],r=["a","an","the"],i=["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"];t.exports=new Set([...o,...r,...i])}),ne=j((e,t)=>{var o=["ZEIT","ZEIT Inc.","Vercel","Vercel Inc.","CLI","API","HTTP","HTTPS","JSX","DNS","URL","now.sh","now.json","vercel.app","vercel.json","CI","CD","CDN","package.json","package.lock","yarn.lock","GitHub","GitLab","CSS","Sass","JS","JavaScript","TypeScript","HTML","WordPress","JavaScript","Next.js","Node.js","Webpack","Docker","Bash","Kubernetes","SWR","TinaCMS","UI","UX","TS","TSX","iPhone","iPad","watchOS","iOS","iPadOS","macOS","PHP","composer.json","composer.lock","CMS"];t.exports=o}),se=j((e,t)=>{var o=ie(),r=ne(),i=`[^\\s'\u2019\\(\\)!?;:"-]`,a=new RegExp(`(?:(?:(\\s?(?:^|[.\\(\\)!?;:"-])\\s*)(${i}))|(${i}))(${i}*[\u2019']*${i}*)`,"g"),m=n=>n.map(s=>[new RegExp(`\\b${s}\\b`,"gi"),s]);function p(n){let s=n[0];return/\s/.test(s)?n.substr(1):/[\(\)]/.test(s)?null:n}t.exports=(n,s={})=>{n=n.toLowerCase().replace(a,(l,f="",h,v,b,x,w)=>{let k=l.length+x>=w.length,y=p(l);if(!y)return l;if(!h){let D=v+b;if(o.has(D)&&!k)return y}return f+(v||h).toUpperCase()+b});let d=s.special||[],u=[...r,...d];return m(u).forEach(([l,f])=>{n=n.replace(l,f)}),n}}),ae={headerPattern:/^(.*?)(?:\((.*)\))?:?\s(.*)$/,headerCorrespondence:["type","scope","subject","ticket"],noteKeywords:["BREAKING CHANGE","BREAKING CHANGES"],revertPattern:/^Revert\s"([\s\S]*)"\s*This reverts commit (\w*)\./,issuePrefixes:["1b9fe48b-292c-46e7-bfde-0599639d0ec0"],referenceActions:["b6db85c1-4860-4275-88e3-bd9917a0b29f"]},C=ae,A=new ce,me=(e,t)=>{let{type:o}=e,r=o,i=O.findIndex(({code:n,emoji:s,type:d,value:u})=>{if(r!==null)return r.replace(/\:/g,"")===n.replace(/\:/g,"")||r===d||r===u||r===s});if(i===-1&&(r=A.splitGraphemes(o)[0],i=O.findIndex(({emoji:n})=>{if(r!==null)return r[0]===n[0]||r[0]===A.splitGraphemes(n)[0]})),i===-1)return;let a=O[i];e.type=`${a.emoji} ${a.description}`,e.typeSpecIndex=i,e.typeSpec=a,typeof e.hash=="string"&&(e.hash=e.hash.substring(0,7));let m=A.splitGraphemes(e.subject),p=m[0]===a.emoji?e.subject.replace(T(m,[0]),"").replace(T(m,[0]),""):e.subject;return e.subject=p.trim(),e},le=me,pe={transform:(e,t)=>le(e,t),groupBy:"type",commitGroupsSort:["order","title"],commitsSort:["scope","subject"],noteGroupsSort:["title"],notesSort:["title"]},H=pe,de={parserOpts:C,writerOpts:H},ue=de,fe={parserOpts:C,whatBump:e=>{let t=2,o=0,r=0;return e.forEach(i=>{i.notes.length>0?(o+=i.notes.length,t=0):i.type==="feat"&&(r+=1,t===2&&(t=1))}),{level:t,reason:o===1?`There is ${o} BREAKING CHANGE and ${r} features`:`There are ${o} BREAKING CHANGES and ${r} features`}}},ge=fe,he={format:"%B%n-hash-%n%H%n-gitTags-%n%d%n-committerDate-%n%ci%n-authorName-%n%an%n-authorEmail-%n%ae"},ve=he,be={conventionalChangelog:ue,parserOpts:C,recommendedBumpOpts:ge,writerOpts:H,gitRawCommitsOpts:ve},ye=be,Fe=[{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"}],je=Fe,xe={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"}},P=xe,we=re(),{gitmojis:ke}=we,Ae=()=>(ke.map(e=>{let t=je.find(o=>(o==null?void 0:o.from)===e.name);if(t){let o=t.semver===void 0?(e==null?void 0:e.semver)||null:t.semver||(e==null?void 0:e.semver)||null;P[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:o?o.replace("fix","patch").replace("feature","minor").replace("breaking","major"):null}}else console.dir(`@todo(conventional-gitmoji) create rewrite for: ${e.name}`)}),Object.keys(P).sort().reduce((e,t)=>(e[t]=P[t],e),{})),Pe=Ae,g=[],Oe=e=>(Object.keys(e).map(t=>{let o=e[t];!!o&&!!o.semver&&(g.push({release:o.semver,type:o==null?void 0:o.code.replace(/(:[^:]*):/g,"$1")}),g.push({release:o.semver,type:o==null?void 0:o.code}),g.push({release:o.semver,type:o.commit}),g.push({release:o.semver,type:o.emoji}))}),g),Ce=Oe,_e=oe(se(),1),$=[],Ee=e=>(Object.keys(e).map(t=>{$.push({code:e[t].code,description:(0,_e.default)(e[t].description.replace(".","")),emoji:e[t].emoji,semver:e[t].semver,type:e[t].commit,value:e[t].commit})}),$),Se=Ee,{parserOpts:L,writerOpts:U}=ye,W=Pe(),K=Ce(W),O=Se(W);var _=(e=[])=>{let t=[...K,...e];return["@semantic-release/commit-analyzer",{config:"@jeromefitz/conventional-gitmoji",releaseRules:t}]};var E=e=>["@semantic-release/git",{assets:typeof e.gitAssets=="boolean"?!1:["package.json"].concat(e.gitAssets?e.gitAssets:[]).filter(t=>t),message:e.message?e.message:"\u{1F516}\uFE0F `${nextRelease.gitTag}` [skip ci] \n\n${nextRelease.notes}"}];var S=(e={})=>{let t=e&&Object.values(e).filter(a=>typeof a<"u").length===0;if(!e||t)return["@semantic-release/github",{addReleases:!1,labels:!1,releasedLabels:!1,successComment:!1}];let i=e,{githubAssets:o}=i,r=z(i,["githubAssets"]);return["@semantic-release/github",c({assets:o,addReleases:!1,labels:!1,releasedLabels:!1,successComment:!1},r)]};var R=e=>!e||typeof e.pkgRoot!="string"&&typeof e.npmPublish!="boolean"&&typeof e.tarballDir>"u"?"@semantic-release/npm":["@semantic-release/npm",c({},e)];var I=e=>{let o=c(c({},{enableGit:!1,enableGithub:!0,enableNpm:!0,enableReleaseNotes:!1,enableReleaseNotesCustom:!0,pkgRoot:"./dist"}),e),r=["@semantic-release/release-notes-generator",{config:"@jeromefitz/conventional-gitmoji",parserOpts:L,writerOpts:U}],i=["@jeromefitz/release-notes-generator",{config:"@jeromefitz/conventional-gitmoji"}],{npmPublish:a,pkgRoot:m,tarballDir:p}=o,n=R({npmPublish:a,pkgRoot:m,tarballDir:p}),{addReleases:s,assignees:d,failComment:u,failTitle:l,githubApiPathPrefix:f,githubAssets:h,githubUrl:v,labels:b,proxy:x,releasedLabels:w}=o,k=S({addReleases:s,assignees:d,failComment:u,failTitle:l,githubApiPathPrefix:f,githubAssets:h,githubUrl:v,labels:b,proxy:x,releasedLabels:w}),y=E(o);return[_(o.releaseRules),o.enableReleaseNotes?r:"",o.enableReleaseNotesCustom?i:"",o.enableNpm?n:"",o.enableGithub?k:"",o.enableGit?y:""].filter(V=>!!V)};var J=(e={})=>{let t=I(e);return c(c({},{branches:[{name:"main"},{name:"canary",prerelease:"canary"}],extends:["semantic-release-commit-filter"],plugins:t,tagFormat:"v${version}"}),e)};var Re=J(),tt=Re;export{tt as default};