@js-utils-kit/constants 0.1.0 โ 0.2.0
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/dist/index.cjs +2 -2
- package/dist/index.d.cts +588 -1
- package/dist/index.d.mts +588 -1
- package/dist/index.mjs +2 -2
- package/package.json +4 -2
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=`abcdefghijklmnopqrstuvwxyz`,t=`ABCDEFGHIJKLMNOPQRSTUVWXYZ`,n=`0123456789`,r=e+t+n,i=[`GET`,`POST`,`PUT`,`PATCH`,`DELETE`,`HEAD`,`OPTIONS`,`CONNECT`,`TRACE`],a={CONTINUE:100,SWITCHING_PROTOCOLS:101,PROCESSING:102,EARLY_HINTS:103,OK:200,CREATED:201,ACCEPTED:202,NON_AUTHORITATIVE_INFORMATION:203,NO_CONTENT:204,RESET_CONTENT:205,PARTIAL_CONTENT:206,MULTI_STATUS:207,ALREADY_REPORTED:208,IM_USED:226,MULTIPLE_CHOICES:300,MOVED_PERMANENTLY:301,FOUND:302,SEE_OTHER:303,NOT_MODIFIED:304,USE_PROXY:305,TEMPORARY_REDIRECT:307,PERMANENT_REDIRECT:308,BAD_REQUEST:400,UNAUTHORIZED:401,PAYMENT_REQUIRED:402,FORBIDDEN:403,NOT_FOUND:404,METHOD_NOT_ALLOWED:405,NOT_ACCEPTABLE:406,PROXY_AUTH_REQUIRED:407,REQUEST_TIMEOUT:408,CONFLICT:409,GONE:410,LENGTH_REQUIRED:411,PRECONDITION_FAILED:412,PAYLOAD_TOO_LARGE:413,URI_TOO_LONG:414,UNSUPPORTED_MEDIA_TYPE:415,RANGE_NOT_SATISFIABLE:416,EXPECTATION_FAILED:417,IM_A_TEAPOT:418,MISDIRECTED_REQUEST:421,UNPROCESSABLE_ENTITY:422,LOCKED:423,FAILED_DEPENDENCY:424,TOO_EARLY:425,UPGRADE_REQUIRED:426,PRECONDITION_REQUIRED:428,TOO_MANY_REQUESTS:429,REQUEST_HEADER_FIELDS_TOO_LARGE:431,UNAVAILABLE_FOR_LEGAL_REASONS:451,INTERNAL_SERVER_ERROR:500,NOT_IMPLEMENTED:501,BAD_GATEWAY:502,SERVICE_UNAVAILABLE:503,GATEWAY_TIMEOUT:504,HTTP_VERSION_NOT_SUPPORTED:505,VARIANT_ALSO_NEGOTIATES:506,INSUFFICIENT_STORAGE:507,LOOP_DETECTED:508,BANDWIDTH_LIMIT_EXCEEDED:509,NOT_EXTENDED:510,NETWORK_AUTHENTICATION_REQUIRED:511},o=Math.PI,s=Math.PI*2,c=Math.E,l=Math.SQRT2,u=Math.SQRT1_2,d=Math.LN2,f=Math.LN10,p=Math.LOG2E,m=Math.LOG10E,h=2**53-1,g=-(2**53-1),_=Number.MAX_VALUE,v=Number.MIN_VALUE,y=2**-52,b=1e3,x=60*b,S=60*x,C=24*S;7*C,30.4375*C,365.25*C;const w=o/180,T=180/o;exports.ALPHANUMERIC=r,exports.CM_TO_MM=10,exports.DAY=C,exports.DEFAULT_RADIX=10,exports.DEG_TO_RAD=w,exports.DIGITS=n,exports.E=c,exports.EMPTY_STRING=``,exports.EPSILON=y,exports.GAS=8.314462618,exports.GRAVITY=9.80665,exports.HOUR=S,exports.HTTP_METHODS=i,exports.HTTP_STATUS=a,exports.KG_TO_G=1e3,exports.KM_TO_M=1e3,exports.LN_10=f,exports.LN_2=d,exports.LOG10_E=m,exports.LOG2_E=p,exports.LOWERCASE_ALPHABET=e,exports.MAX_SAFE_INT=h,exports.MAX_VALUE=_,exports.MINUTE=x,exports.MIN_SAFE_INT=g,exports.MIN_VALUE=v,exports.MONTH_AVG=26298e5,exports.M_TO_CM=100,exports.NEGATIVE_INFINITY=-1/0,exports.NEW_LINE=`
|
|
2
|
-
`,exports.PI=
|
|
1
|
+
const e={accessibility:`Accessibility improvements (a11y)`,ansible:`Ansible playbooks and automation`,api:`API implementation or contracts`,assets:`Static assets like images, fonts, media`,auth:`Authentication and authorization logic`,aws:`AWS-related configuration or services`,azure:`Azure-related configuration or services`,babel:`Babel configuration or transforms`,backend:`Backend services and server-side logic`,build:`Build system configuration`,"build-scripts":`Scripts related to building the project`,cache:`Caching mechanisms and logic`,cd:`Continuous deployment setup`,changelog:`Changelog generation and updates`,chore:`General maintenance tasks`,ci:`Continuous integration setup`,"ci-config":`CI configuration files`,"ci-tests":`Tests executed in CI pipelines`,cli:`Command-line interface`,client:`Client-side logic`,compliance:`Compliance, audits, or policy-related changes`,components:`Reusable components`,config:`Configuration files and settings`,contrib:`Community or contributor-related changes`,core:`Core application or library logic`,css:`CSS and styling changes`,db:`Database-related changes`,demo:`Demo or example implementations`,deploy:`Deployment configuration and scripts`,deps:`Production dependencies`,"deps-dev":`Development dependencies`,desktop:`Desktop application logic`,devops:`DevOps tooling and processes`,docker:`Dockerfiles and container configuration`,docs:`General documentation`,dotfiles:`Dotfiles and editor configuration`,e2e:`End-to-end tests`,eslint:`ESLint configuration and rules`,examples:`Example code and samples`,fixtures:`Test fixtures and sample data`,format:`Code formatting changes`,frontend:`Frontend application logic`,gcp:`Google Cloud Platform related changes`,helm:`Helm charts and Kubernetes packaging`,i18n:`Internationalization`,images:`Image assets`,infra:`Infrastructure configuration`,integration:`Integration-related logic`,jest:`Jest configuration or tests`,k8s:`Kubernetes resources`,l10n:`Localization and translations`,layout:`Layout-related UI changes`,lib:`Shared libraries`,lint:`Linting rules and fixes`,logging:`Logging-related changes`,metrics:`Metrics and monitoring data`,mobile:`Mobile application logic`,mocha:`Mocha configuration or tests`,mocks:`Mock data and utilities`,monorepo:`Monorepo configuration`,observability:`Observability tooling (logs, metrics, traces)`,ops:`Operational tooling and scripts`,orm:`ORM configuration or models`,packages:`Multiple or shared packages`,parcel:`Parcel bundler configuration`,perf:`Performance improvements`,permissions:`Permission and access control logic`,pkg:`Package-related changes`,prettier:`Prettier configuration`,profiling:`Profiling and performance analysis`,readme:`README documentation`,release:`Release preparation and metadata`,responsive:`Responsive design changes`,rollup:`Rollup bundler configuration`,scripts:`Automation and helper scripts`,sdk:`SDK implementation or changes`,security:`Security-related fixes or improvements`,server:`Server-side logic`,storage:`Storage systems and data persistence`,storybook:`Storybook configuration and stories`,styles:`Styling and theming`,terraform:`Terraform infrastructure code`,test:`General testing changes`,theme:`UI themes`,tsc:`TypeScript compiler configuration`,tutorials:`Tutorial content`,ui:`User interface changes`,unit:`Unit tests`,ux:`User experience improvements`,vite:`Vite tooling and configuration`,web:`Web-related functionality`,webpack:`Webpack configuration`,workspace:`Workspace or monorepo configuration`},t=Object.keys(e),n={feat:{type:`feat`,title:`Feature`,icon:`โจ`,description:`Introduce a new feature`,allowsBreakingChange:!0,defaultReleaseType:`minor`,isReleaseRelevant:!0,deprecated:!1},fix:{type:`fix`,title:`Bug Fix`,icon:`๐`,description:`Fix a bug`,allowsBreakingChange:!0,defaultReleaseType:`patch`,isReleaseRelevant:!0,deprecated:!1},docs:{type:`docs`,title:`Documentation`,icon:`๐`,description:`Documentation only changes`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},style:{type:`style`,title:`Style`,icon:`๐จ`,description:`Formatting or style changes that do not affect code behavior`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},refactor:{type:`refactor`,title:`Refactor`,icon:`๐งน`,description:`Code change that neither fixes a bug nor adds a feature`,allowsBreakingChange:!0,defaultReleaseType:`patch`,isReleaseRelevant:!0,deprecated:!1},perf:{type:`perf`,title:`Performance`,icon:`โก`,description:`Improve performance`,allowsBreakingChange:!0,defaultReleaseType:`patch`,isReleaseRelevant:!0,deprecated:!1},test:{type:`test`,title:`Tests`,icon:`๐งช`,description:`Add or update tests`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},build:{type:`build`,title:`Build`,icon:`๐๏ธ`,description:`Changes affecting build system or dependencies`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},ci:{type:`ci`,title:`CI`,icon:`๐ค`,description:`CI/CD related changes`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},chore:{type:`chore`,title:`Chore`,icon:`๐ง`,description:`Maintenance tasks`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},revert:{type:`revert`,title:`Revert`,icon:`โช`,description:`Revert a previous commit`,allowsBreakingChange:!1,defaultReleaseType:`patch`,isReleaseRelevant:!0,deprecated:!1},deps:{type:`deps`,title:`Dependencies`,icon:`๐ฆ`,description:`Update, add, or remove dependencies`,allowsBreakingChange:!1,defaultReleaseType:`patch`,isReleaseRelevant:!0,deprecated:!1},config:{type:`config`,title:`Configuration`,icon:`โ๏ธ`,description:`Configuration changes`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},security:{type:`security`,title:`Security`,icon:`๐`,description:`Security fixes or vulnerability mitigation`,allowsBreakingChange:!0,defaultReleaseType:`patch`,isReleaseRelevant:!0,deprecated:!1},types:{type:`types`,title:`Types`,icon:`๐`,description:`Type definitions or TypeScript-related changes`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},lint:{type:`lint`,title:`Lint`,icon:`๐งน`,description:`Linting rules or fixes`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},format:{type:`format`,title:`Format`,icon:`๐๏ธ`,description:`Code formatting changes (prettier, etc.)`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},release:{type:`release`,title:`Release`,icon:`๐ท๏ธ`,description:`Release-related changes (versioning, tags, changelog)`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},meta:{type:`meta`,title:`Meta`,icon:`๐งฉ`,description:`Repository metadata (README, templates, tooling)`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},infra:{type:`infra`,title:`Infrastructure`,icon:`๐ญ`,description:`Infrastructure or environment-related changes`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},hotfix:{type:`hotfix`,title:`Hotfix`,icon:`๐`,description:`Critical production fix applied quickly`,allowsBreakingChange:!0,defaultReleaseType:`patch`,isReleaseRelevant:!0,deprecated:!1},version:{type:`version`,title:`Version`,icon:`๐ข`,description:`Version bumps without code changes`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},workflow:{type:`workflow`,title:`Workflow`,icon:`๐`,description:`Workflow-related changes (GitHub Actions, hooks)`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},package:{type:`package`,title:`Package`,icon:`๐ฆ`,description:`Package-level changes in a monorepo`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},workspace:{type:`workspace`,title:`Workspace`,icon:`๐งฑ`,description:`Workspace or monorepo configuration changes`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},api:{type:`api`,title:`API`,icon:`๐`,description:`API surface or contract changes`,allowsBreakingChange:!0,defaultReleaseType:`major`,isReleaseRelevant:!0,deprecated:!1},"BREAKING CHANGE":{type:`BREAKING CHANGE`,title:`Breaking Change`,icon:`๐ฅ`,description:`An explicit breaking change as defined by the Conventional Commits specification`,allowsBreakingChange:!0,defaultReleaseType:`major`,isReleaseRelevant:!0,deprecated:!1},db:{type:`db`,title:`Database`,icon:`๐๏ธ`,description:`Database schema, migrations, or queries`,allowsBreakingChange:!0,defaultReleaseType:`major`,isReleaseRelevant:!0,deprecated:!1},data:{type:`data`,title:`Data`,icon:`๐`,description:`Data fixes, seeds, or transformations`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},ui:{type:`ui`,title:`UI`,icon:`๐จ`,description:`UI-related changes`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},ux:{type:`ux`,title:`UX`,icon:`๐ง `,description:`User experience improvements`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},accessibility:{type:`accessibility`,title:`Accessibility`,icon:`โฟ`,description:`Accessibility improvements (a11y)`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},backend:{type:`backend`,title:`Backend`,icon:`๐ฅ๏ธ`,description:`Backend logic changes`,allowsBreakingChange:!0,defaultReleaseType:`patch`,isReleaseRelevant:!0,deprecated:!1},frontend:{type:`frontend`,title:`Frontend`,icon:`๐`,description:`Frontend logic changes`,allowsBreakingChange:!1,defaultReleaseType:`patch`,isReleaseRelevant:!0,deprecated:!1},logging:{type:`logging`,title:`Logging`,icon:`๐`,description:`Logging changes or improvements`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},monitoring:{type:`monitoring`,title:`Monitoring`,icon:`๐ก`,description:`Monitoring, metrics, or tracing`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},stability:{type:`stability`,title:`Stability`,icon:`๐ก๏ธ`,description:`Stability and reliability improvements`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},optimization:{type:`optimization`,title:`Optimization`,icon:`๐`,description:`Code or runtime optimizations`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},dx:{type:`dx`,title:`Developer Experience`,icon:`๐งโ๐ป`,description:`Developer experience improvements`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},tooling:{type:`tooling`,title:`Tooling`,icon:`๐ ๏ธ`,description:`Developer tools or internal utilities`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},scripts:{type:`scripts`,title:`Scripts`,icon:`๐`,description:`Automation or helper script changes`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},cleanup:{type:`cleanup`,title:`Cleanup`,icon:`๐งฝ`,description:`Code cleanup without behavior changes`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},migration:{type:`migration`,title:`Migration`,icon:`๐`,description:`Migration-related changes`,allowsBreakingChange:!0,defaultReleaseType:`major`,isReleaseRelevant:!0,deprecated:!1},rollback:{type:`rollback`,title:`Rollback`,icon:`โฉ๏ธ`,description:`Rollback changes after a bad release`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1}},r=Object.keys(n),i=`abcdefghijklmnopqrstuvwxyz`,a=`ABCDEFGHIJKLMNOPQRSTUVWXYZ`,o=`0123456789`,s=i+a+o,c=[`GET`,`POST`,`PUT`,`PATCH`,`DELETE`,`HEAD`,`OPTIONS`,`CONNECT`,`TRACE`],l={CONTINUE:100,SWITCHING_PROTOCOLS:101,PROCESSING:102,EARLY_HINTS:103,OK:200,CREATED:201,ACCEPTED:202,NON_AUTHORITATIVE_INFORMATION:203,NO_CONTENT:204,RESET_CONTENT:205,PARTIAL_CONTENT:206,MULTI_STATUS:207,ALREADY_REPORTED:208,IM_USED:226,MULTIPLE_CHOICES:300,MOVED_PERMANENTLY:301,FOUND:302,SEE_OTHER:303,NOT_MODIFIED:304,USE_PROXY:305,TEMPORARY_REDIRECT:307,PERMANENT_REDIRECT:308,BAD_REQUEST:400,UNAUTHORIZED:401,PAYMENT_REQUIRED:402,FORBIDDEN:403,NOT_FOUND:404,METHOD_NOT_ALLOWED:405,NOT_ACCEPTABLE:406,PROXY_AUTH_REQUIRED:407,REQUEST_TIMEOUT:408,CONFLICT:409,GONE:410,LENGTH_REQUIRED:411,PRECONDITION_FAILED:412,PAYLOAD_TOO_LARGE:413,URI_TOO_LONG:414,UNSUPPORTED_MEDIA_TYPE:415,RANGE_NOT_SATISFIABLE:416,EXPECTATION_FAILED:417,IM_A_TEAPOT:418,MISDIRECTED_REQUEST:421,UNPROCESSABLE_ENTITY:422,LOCKED:423,FAILED_DEPENDENCY:424,TOO_EARLY:425,UPGRADE_REQUIRED:426,PRECONDITION_REQUIRED:428,TOO_MANY_REQUESTS:429,REQUEST_HEADER_FIELDS_TOO_LARGE:431,UNAVAILABLE_FOR_LEGAL_REASONS:451,INTERNAL_SERVER_ERROR:500,NOT_IMPLEMENTED:501,BAD_GATEWAY:502,SERVICE_UNAVAILABLE:503,GATEWAY_TIMEOUT:504,HTTP_VERSION_NOT_SUPPORTED:505,VARIANT_ALSO_NEGOTIATES:506,INSUFFICIENT_STORAGE:507,LOOP_DETECTED:508,BANDWIDTH_LIMIT_EXCEEDED:509,NOT_EXTENDED:510,NETWORK_AUTHENTICATION_REQUIRED:511},u=Math.PI,d=Math.PI*2,f=Math.E,p=Math.SQRT2,m=Math.SQRT1_2,h=Math.LN2,g=Math.LN10,_=Math.LOG2E,v=Math.LOG10E,y=2**53-1,b=-(2**53-1),x=Number.MAX_VALUE,S=Number.MIN_VALUE,C=2**-52,w=1e3,T=60*w,E=60*T,D=24*E;7*D,30.4375*D,365.25*D;const O=u/180,k=180/u;exports.ALPHANUMERIC=s,exports.CM_TO_MM=10,exports.COMMIT_SCOPES=e,exports.COMMIT_SCOPE_VALUES=t,exports.COMMIT_TYPES=n,exports.COMMIT_TYPE_VALUES=r,exports.DAY=D,exports.DEFAULT_RADIX=10,exports.DEG_TO_RAD=O,exports.DIGITS=o,exports.E=f,exports.EMPTY_STRING=``,exports.EPSILON=C,exports.GAS=8.314462618,exports.GRAVITY=9.80665,exports.HOUR=E,exports.HTTP_METHODS=c,exports.HTTP_STATUS=l,exports.KG_TO_G=1e3,exports.KM_TO_M=1e3,exports.LN_10=g,exports.LN_2=h,exports.LOG10_E=v,exports.LOG2_E=_,exports.LOWERCASE_ALPHABET=i,exports.MAX_SAFE_INT=y,exports.MAX_VALUE=x,exports.MINUTE=T,exports.MIN_SAFE_INT=b,exports.MIN_VALUE=S,exports.MONTH_AVG=26298e5,exports.M_TO_CM=100,exports.NEGATIVE_INFINITY=-1/0,exports.NEW_LINE=`
|
|
2
|
+
`,exports.PI=u,exports.PLANCK=662607015e-42,exports.POSITIVE_INFINITY=1/0,exports.RAD_TO_DEG=k,exports.SECOND=w,exports.SPACE=` `,exports.SPEED_OF_LIGHT=299792458,exports.SQRT_1_2=m,exports.SQRT_2=p,exports.TAB=` `,exports.TAU=d,exports.TON_TO_KG=1e3,exports.UPPERCASE_ALPHABET=a,exports.WEEK=6048e5,exports.YEAR=315576e5;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,590 @@
|
|
|
1
|
+
//#region src/commit/scope.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Map of supported commit scopes and their descriptions.
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* - Scopes provide additional context for a commit, typically used as: `type(scope): message`
|
|
7
|
+
* - Keys represent the allowed scope identifiers.
|
|
8
|
+
* - Values describe the area of the codebase the scope applies to.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* `feat(api): add pagination support`
|
|
12
|
+
*/
|
|
13
|
+
declare const COMMIT_SCOPES: {
|
|
14
|
+
readonly accessibility: "Accessibility improvements (a11y)";
|
|
15
|
+
readonly ansible: "Ansible playbooks and automation";
|
|
16
|
+
readonly api: "API implementation or contracts";
|
|
17
|
+
readonly assets: "Static assets like images, fonts, media";
|
|
18
|
+
readonly auth: "Authentication and authorization logic";
|
|
19
|
+
readonly aws: "AWS-related configuration or services";
|
|
20
|
+
readonly azure: "Azure-related configuration or services";
|
|
21
|
+
readonly babel: "Babel configuration or transforms";
|
|
22
|
+
readonly backend: "Backend services and server-side logic";
|
|
23
|
+
readonly build: "Build system configuration";
|
|
24
|
+
readonly 'build-scripts': "Scripts related to building the project";
|
|
25
|
+
readonly cache: "Caching mechanisms and logic";
|
|
26
|
+
readonly cd: "Continuous deployment setup";
|
|
27
|
+
readonly changelog: "Changelog generation and updates";
|
|
28
|
+
readonly chore: "General maintenance tasks";
|
|
29
|
+
readonly ci: "Continuous integration setup";
|
|
30
|
+
readonly 'ci-config': "CI configuration files";
|
|
31
|
+
readonly 'ci-tests': "Tests executed in CI pipelines";
|
|
32
|
+
readonly cli: "Command-line interface";
|
|
33
|
+
readonly client: "Client-side logic";
|
|
34
|
+
readonly compliance: "Compliance, audits, or policy-related changes";
|
|
35
|
+
readonly components: "Reusable components";
|
|
36
|
+
readonly config: "Configuration files and settings";
|
|
37
|
+
readonly contrib: "Community or contributor-related changes";
|
|
38
|
+
readonly core: "Core application or library logic";
|
|
39
|
+
readonly css: "CSS and styling changes";
|
|
40
|
+
readonly db: "Database-related changes";
|
|
41
|
+
readonly demo: "Demo or example implementations";
|
|
42
|
+
readonly deploy: "Deployment configuration and scripts";
|
|
43
|
+
readonly deps: "Production dependencies";
|
|
44
|
+
readonly 'deps-dev': "Development dependencies";
|
|
45
|
+
readonly desktop: "Desktop application logic";
|
|
46
|
+
readonly devops: "DevOps tooling and processes";
|
|
47
|
+
readonly docker: "Dockerfiles and container configuration";
|
|
48
|
+
readonly docs: "General documentation";
|
|
49
|
+
readonly dotfiles: "Dotfiles and editor configuration";
|
|
50
|
+
readonly e2e: "End-to-end tests";
|
|
51
|
+
readonly eslint: "ESLint configuration and rules";
|
|
52
|
+
readonly examples: "Example code and samples";
|
|
53
|
+
readonly fixtures: "Test fixtures and sample data";
|
|
54
|
+
readonly format: "Code formatting changes";
|
|
55
|
+
readonly frontend: "Frontend application logic";
|
|
56
|
+
readonly gcp: "Google Cloud Platform related changes";
|
|
57
|
+
readonly helm: "Helm charts and Kubernetes packaging";
|
|
58
|
+
readonly i18n: "Internationalization";
|
|
59
|
+
readonly images: "Image assets";
|
|
60
|
+
readonly infra: "Infrastructure configuration";
|
|
61
|
+
readonly integration: "Integration-related logic";
|
|
62
|
+
readonly jest: "Jest configuration or tests";
|
|
63
|
+
readonly k8s: "Kubernetes resources";
|
|
64
|
+
readonly l10n: "Localization and translations";
|
|
65
|
+
readonly layout: "Layout-related UI changes";
|
|
66
|
+
readonly lib: "Shared libraries";
|
|
67
|
+
readonly lint: "Linting rules and fixes";
|
|
68
|
+
readonly logging: "Logging-related changes";
|
|
69
|
+
readonly metrics: "Metrics and monitoring data";
|
|
70
|
+
readonly mobile: "Mobile application logic";
|
|
71
|
+
readonly mocha: "Mocha configuration or tests";
|
|
72
|
+
readonly mocks: "Mock data and utilities";
|
|
73
|
+
readonly monorepo: "Monorepo configuration";
|
|
74
|
+
readonly observability: "Observability tooling (logs, metrics, traces)";
|
|
75
|
+
readonly ops: "Operational tooling and scripts";
|
|
76
|
+
readonly orm: "ORM configuration or models";
|
|
77
|
+
readonly packages: "Multiple or shared packages";
|
|
78
|
+
readonly parcel: "Parcel bundler configuration";
|
|
79
|
+
readonly perf: "Performance improvements";
|
|
80
|
+
readonly permissions: "Permission and access control logic";
|
|
81
|
+
readonly pkg: "Package-related changes";
|
|
82
|
+
readonly prettier: "Prettier configuration";
|
|
83
|
+
readonly profiling: "Profiling and performance analysis";
|
|
84
|
+
readonly readme: "README documentation";
|
|
85
|
+
readonly release: "Release preparation and metadata";
|
|
86
|
+
readonly responsive: "Responsive design changes";
|
|
87
|
+
readonly rollup: "Rollup bundler configuration";
|
|
88
|
+
readonly scripts: "Automation and helper scripts";
|
|
89
|
+
readonly sdk: "SDK implementation or changes";
|
|
90
|
+
readonly security: "Security-related fixes or improvements";
|
|
91
|
+
readonly server: "Server-side logic";
|
|
92
|
+
readonly storage: "Storage systems and data persistence";
|
|
93
|
+
readonly storybook: "Storybook configuration and stories";
|
|
94
|
+
readonly styles: "Styling and theming";
|
|
95
|
+
readonly terraform: "Terraform infrastructure code";
|
|
96
|
+
readonly test: "General testing changes";
|
|
97
|
+
readonly theme: "UI themes";
|
|
98
|
+
readonly tsc: "TypeScript compiler configuration";
|
|
99
|
+
readonly tutorials: "Tutorial content";
|
|
100
|
+
readonly ui: "User interface changes";
|
|
101
|
+
readonly unit: "Unit tests";
|
|
102
|
+
readonly ux: "User experience improvements";
|
|
103
|
+
readonly vite: "Vite tooling and configuration";
|
|
104
|
+
readonly web: "Web-related functionality";
|
|
105
|
+
readonly webpack: "Webpack configuration";
|
|
106
|
+
readonly workspace: "Workspace or monorepo configuration";
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* Union type of all supported commit scopes.
|
|
110
|
+
*
|
|
111
|
+
* Derived from the keys of {@link COMMIT_SCOPES}.
|
|
112
|
+
*/
|
|
113
|
+
type CommitScope = keyof typeof COMMIT_SCOPES;
|
|
114
|
+
/**
|
|
115
|
+
* List of all supported commit scope values.
|
|
116
|
+
*
|
|
117
|
+
* Useful for validation, autocomplete, or CLI prompts.
|
|
118
|
+
*/
|
|
119
|
+
declare const COMMIT_SCOPE_VALUES: CommitScope[];
|
|
120
|
+
//#endregion
|
|
121
|
+
//#region src/commit/types.d.ts
|
|
122
|
+
/**
|
|
123
|
+
* Map of supported commit types and their metadata.
|
|
124
|
+
*
|
|
125
|
+
* @remarks
|
|
126
|
+
* Follows the Conventional Commits specification and extends it with additional metadata for:
|
|
127
|
+
* - release automation
|
|
128
|
+
* - changelog generation
|
|
129
|
+
* - UI / CLI display
|
|
130
|
+
*/
|
|
131
|
+
declare const COMMIT_TYPES: {
|
|
132
|
+
readonly feat: {
|
|
133
|
+
readonly type: "feat";
|
|
134
|
+
readonly title: "Feature";
|
|
135
|
+
readonly icon: "โจ";
|
|
136
|
+
readonly description: "Introduce a new feature";
|
|
137
|
+
readonly allowsBreakingChange: true;
|
|
138
|
+
readonly defaultReleaseType: "minor";
|
|
139
|
+
readonly isReleaseRelevant: true;
|
|
140
|
+
readonly deprecated: false;
|
|
141
|
+
};
|
|
142
|
+
readonly fix: {
|
|
143
|
+
readonly type: "fix";
|
|
144
|
+
readonly title: "Bug Fix";
|
|
145
|
+
readonly icon: "๐";
|
|
146
|
+
readonly description: "Fix a bug";
|
|
147
|
+
readonly allowsBreakingChange: true;
|
|
148
|
+
readonly defaultReleaseType: "patch";
|
|
149
|
+
readonly isReleaseRelevant: true;
|
|
150
|
+
readonly deprecated: false;
|
|
151
|
+
};
|
|
152
|
+
readonly docs: {
|
|
153
|
+
readonly type: "docs";
|
|
154
|
+
readonly title: "Documentation";
|
|
155
|
+
readonly icon: "๐";
|
|
156
|
+
readonly description: "Documentation only changes";
|
|
157
|
+
readonly allowsBreakingChange: false;
|
|
158
|
+
readonly defaultReleaseType: "none";
|
|
159
|
+
readonly isReleaseRelevant: false;
|
|
160
|
+
readonly deprecated: false;
|
|
161
|
+
};
|
|
162
|
+
readonly style: {
|
|
163
|
+
readonly type: "style";
|
|
164
|
+
readonly title: "Style";
|
|
165
|
+
readonly icon: "๐จ";
|
|
166
|
+
readonly description: "Formatting or style changes that do not affect code behavior";
|
|
167
|
+
readonly allowsBreakingChange: false;
|
|
168
|
+
readonly defaultReleaseType: "none";
|
|
169
|
+
readonly isReleaseRelevant: false;
|
|
170
|
+
readonly deprecated: false;
|
|
171
|
+
};
|
|
172
|
+
readonly refactor: {
|
|
173
|
+
readonly type: "refactor";
|
|
174
|
+
readonly title: "Refactor";
|
|
175
|
+
readonly icon: "๐งน";
|
|
176
|
+
readonly description: "Code change that neither fixes a bug nor adds a feature";
|
|
177
|
+
readonly allowsBreakingChange: true;
|
|
178
|
+
readonly defaultReleaseType: "patch";
|
|
179
|
+
readonly isReleaseRelevant: true;
|
|
180
|
+
readonly deprecated: false;
|
|
181
|
+
};
|
|
182
|
+
readonly perf: {
|
|
183
|
+
readonly type: "perf";
|
|
184
|
+
readonly title: "Performance";
|
|
185
|
+
readonly icon: "โก";
|
|
186
|
+
readonly description: "Improve performance";
|
|
187
|
+
readonly allowsBreakingChange: true;
|
|
188
|
+
readonly defaultReleaseType: "patch";
|
|
189
|
+
readonly isReleaseRelevant: true;
|
|
190
|
+
readonly deprecated: false;
|
|
191
|
+
};
|
|
192
|
+
readonly test: {
|
|
193
|
+
readonly type: "test";
|
|
194
|
+
readonly title: "Tests";
|
|
195
|
+
readonly icon: "๐งช";
|
|
196
|
+
readonly description: "Add or update tests";
|
|
197
|
+
readonly allowsBreakingChange: false;
|
|
198
|
+
readonly defaultReleaseType: "none";
|
|
199
|
+
readonly isReleaseRelevant: false;
|
|
200
|
+
readonly deprecated: false;
|
|
201
|
+
};
|
|
202
|
+
readonly build: {
|
|
203
|
+
readonly type: "build";
|
|
204
|
+
readonly title: "Build";
|
|
205
|
+
readonly icon: "๐๏ธ";
|
|
206
|
+
readonly description: "Changes affecting build system or dependencies";
|
|
207
|
+
readonly allowsBreakingChange: false;
|
|
208
|
+
readonly defaultReleaseType: "none";
|
|
209
|
+
readonly isReleaseRelevant: false;
|
|
210
|
+
readonly deprecated: false;
|
|
211
|
+
};
|
|
212
|
+
readonly ci: {
|
|
213
|
+
readonly type: "ci";
|
|
214
|
+
readonly title: "CI";
|
|
215
|
+
readonly icon: "๐ค";
|
|
216
|
+
readonly description: "CI/CD related changes";
|
|
217
|
+
readonly allowsBreakingChange: false;
|
|
218
|
+
readonly defaultReleaseType: "none";
|
|
219
|
+
readonly isReleaseRelevant: false;
|
|
220
|
+
readonly deprecated: false;
|
|
221
|
+
};
|
|
222
|
+
readonly chore: {
|
|
223
|
+
readonly type: "chore";
|
|
224
|
+
readonly title: "Chore";
|
|
225
|
+
readonly icon: "๐ง";
|
|
226
|
+
readonly description: "Maintenance tasks";
|
|
227
|
+
readonly allowsBreakingChange: false;
|
|
228
|
+
readonly defaultReleaseType: "none";
|
|
229
|
+
readonly isReleaseRelevant: false;
|
|
230
|
+
readonly deprecated: false;
|
|
231
|
+
};
|
|
232
|
+
readonly revert: {
|
|
233
|
+
readonly type: "revert";
|
|
234
|
+
readonly title: "Revert";
|
|
235
|
+
readonly icon: "โช";
|
|
236
|
+
readonly description: "Revert a previous commit";
|
|
237
|
+
readonly allowsBreakingChange: false;
|
|
238
|
+
readonly defaultReleaseType: "patch";
|
|
239
|
+
readonly isReleaseRelevant: true;
|
|
240
|
+
readonly deprecated: false;
|
|
241
|
+
};
|
|
242
|
+
readonly deps: {
|
|
243
|
+
readonly type: "deps";
|
|
244
|
+
readonly title: "Dependencies";
|
|
245
|
+
readonly icon: "๐ฆ";
|
|
246
|
+
readonly description: "Update, add, or remove dependencies";
|
|
247
|
+
readonly allowsBreakingChange: false;
|
|
248
|
+
readonly defaultReleaseType: "patch";
|
|
249
|
+
readonly isReleaseRelevant: true;
|
|
250
|
+
readonly deprecated: false;
|
|
251
|
+
};
|
|
252
|
+
readonly config: {
|
|
253
|
+
readonly type: "config";
|
|
254
|
+
readonly title: "Configuration";
|
|
255
|
+
readonly icon: "โ๏ธ";
|
|
256
|
+
readonly description: "Configuration changes";
|
|
257
|
+
readonly allowsBreakingChange: false;
|
|
258
|
+
readonly defaultReleaseType: "none";
|
|
259
|
+
readonly isReleaseRelevant: false;
|
|
260
|
+
readonly deprecated: false;
|
|
261
|
+
};
|
|
262
|
+
readonly security: {
|
|
263
|
+
readonly type: "security";
|
|
264
|
+
readonly title: "Security";
|
|
265
|
+
readonly icon: "๐";
|
|
266
|
+
readonly description: "Security fixes or vulnerability mitigation";
|
|
267
|
+
readonly allowsBreakingChange: true;
|
|
268
|
+
readonly defaultReleaseType: "patch";
|
|
269
|
+
readonly isReleaseRelevant: true;
|
|
270
|
+
readonly deprecated: false;
|
|
271
|
+
};
|
|
272
|
+
readonly types: {
|
|
273
|
+
readonly type: "types";
|
|
274
|
+
readonly title: "Types";
|
|
275
|
+
readonly icon: "๐";
|
|
276
|
+
readonly description: "Type definitions or TypeScript-related changes";
|
|
277
|
+
readonly allowsBreakingChange: false;
|
|
278
|
+
readonly defaultReleaseType: "none";
|
|
279
|
+
readonly isReleaseRelevant: false;
|
|
280
|
+
readonly deprecated: false;
|
|
281
|
+
};
|
|
282
|
+
readonly lint: {
|
|
283
|
+
readonly type: "lint";
|
|
284
|
+
readonly title: "Lint";
|
|
285
|
+
readonly icon: "๐งน";
|
|
286
|
+
readonly description: "Linting rules or fixes";
|
|
287
|
+
readonly allowsBreakingChange: false;
|
|
288
|
+
readonly defaultReleaseType: "none";
|
|
289
|
+
readonly isReleaseRelevant: false;
|
|
290
|
+
readonly deprecated: false;
|
|
291
|
+
};
|
|
292
|
+
readonly format: {
|
|
293
|
+
readonly type: "format";
|
|
294
|
+
readonly title: "Format";
|
|
295
|
+
readonly icon: "๐๏ธ";
|
|
296
|
+
readonly description: "Code formatting changes (prettier, etc.)";
|
|
297
|
+
readonly allowsBreakingChange: false;
|
|
298
|
+
readonly defaultReleaseType: "none";
|
|
299
|
+
readonly isReleaseRelevant: false;
|
|
300
|
+
readonly deprecated: false;
|
|
301
|
+
};
|
|
302
|
+
readonly release: {
|
|
303
|
+
readonly type: "release";
|
|
304
|
+
readonly title: "Release";
|
|
305
|
+
readonly icon: "๐ท๏ธ";
|
|
306
|
+
readonly description: "Release-related changes (versioning, tags, changelog)";
|
|
307
|
+
readonly allowsBreakingChange: false;
|
|
308
|
+
readonly defaultReleaseType: "none";
|
|
309
|
+
readonly isReleaseRelevant: false;
|
|
310
|
+
readonly deprecated: false;
|
|
311
|
+
};
|
|
312
|
+
readonly meta: {
|
|
313
|
+
readonly type: "meta";
|
|
314
|
+
readonly title: "Meta";
|
|
315
|
+
readonly icon: "๐งฉ";
|
|
316
|
+
readonly description: "Repository metadata (README, templates, tooling)";
|
|
317
|
+
readonly allowsBreakingChange: false;
|
|
318
|
+
readonly defaultReleaseType: "none";
|
|
319
|
+
readonly isReleaseRelevant: false;
|
|
320
|
+
readonly deprecated: false;
|
|
321
|
+
};
|
|
322
|
+
readonly infra: {
|
|
323
|
+
readonly type: "infra";
|
|
324
|
+
readonly title: "Infrastructure";
|
|
325
|
+
readonly icon: "๐ญ";
|
|
326
|
+
readonly description: "Infrastructure or environment-related changes";
|
|
327
|
+
readonly allowsBreakingChange: false;
|
|
328
|
+
readonly defaultReleaseType: "none";
|
|
329
|
+
readonly isReleaseRelevant: false;
|
|
330
|
+
readonly deprecated: false;
|
|
331
|
+
};
|
|
332
|
+
readonly hotfix: {
|
|
333
|
+
readonly type: "hotfix";
|
|
334
|
+
readonly title: "Hotfix";
|
|
335
|
+
readonly icon: "๐";
|
|
336
|
+
readonly description: "Critical production fix applied quickly";
|
|
337
|
+
readonly allowsBreakingChange: true;
|
|
338
|
+
readonly defaultReleaseType: "patch";
|
|
339
|
+
readonly isReleaseRelevant: true;
|
|
340
|
+
readonly deprecated: false;
|
|
341
|
+
};
|
|
342
|
+
readonly version: {
|
|
343
|
+
readonly type: "version";
|
|
344
|
+
readonly title: "Version";
|
|
345
|
+
readonly icon: "๐ข";
|
|
346
|
+
readonly description: "Version bumps without code changes";
|
|
347
|
+
readonly allowsBreakingChange: false;
|
|
348
|
+
readonly defaultReleaseType: "none";
|
|
349
|
+
readonly isReleaseRelevant: false;
|
|
350
|
+
readonly deprecated: false;
|
|
351
|
+
};
|
|
352
|
+
readonly workflow: {
|
|
353
|
+
readonly type: "workflow";
|
|
354
|
+
readonly title: "Workflow";
|
|
355
|
+
readonly icon: "๐";
|
|
356
|
+
readonly description: "Workflow-related changes (GitHub Actions, hooks)";
|
|
357
|
+
readonly allowsBreakingChange: false;
|
|
358
|
+
readonly defaultReleaseType: "none";
|
|
359
|
+
readonly isReleaseRelevant: false;
|
|
360
|
+
readonly deprecated: false;
|
|
361
|
+
};
|
|
362
|
+
readonly package: {
|
|
363
|
+
readonly type: "package";
|
|
364
|
+
readonly title: "Package";
|
|
365
|
+
readonly icon: "๐ฆ";
|
|
366
|
+
readonly description: "Package-level changes in a monorepo";
|
|
367
|
+
readonly allowsBreakingChange: false;
|
|
368
|
+
readonly defaultReleaseType: "none";
|
|
369
|
+
readonly isReleaseRelevant: false;
|
|
370
|
+
readonly deprecated: false;
|
|
371
|
+
};
|
|
372
|
+
readonly workspace: {
|
|
373
|
+
readonly type: "workspace";
|
|
374
|
+
readonly title: "Workspace";
|
|
375
|
+
readonly icon: "๐งฑ";
|
|
376
|
+
readonly description: "Workspace or monorepo configuration changes";
|
|
377
|
+
readonly allowsBreakingChange: false;
|
|
378
|
+
readonly defaultReleaseType: "none";
|
|
379
|
+
readonly isReleaseRelevant: false;
|
|
380
|
+
readonly deprecated: false;
|
|
381
|
+
};
|
|
382
|
+
readonly api: {
|
|
383
|
+
readonly type: "api";
|
|
384
|
+
readonly title: "API";
|
|
385
|
+
readonly icon: "๐";
|
|
386
|
+
readonly description: "API surface or contract changes";
|
|
387
|
+
readonly allowsBreakingChange: true;
|
|
388
|
+
readonly defaultReleaseType: "major";
|
|
389
|
+
readonly isReleaseRelevant: true;
|
|
390
|
+
readonly deprecated: false;
|
|
391
|
+
};
|
|
392
|
+
readonly 'BREAKING CHANGE': {
|
|
393
|
+
readonly type: "BREAKING CHANGE";
|
|
394
|
+
readonly title: "Breaking Change";
|
|
395
|
+
readonly icon: "๐ฅ";
|
|
396
|
+
readonly description: "An explicit breaking change as defined by the Conventional Commits specification";
|
|
397
|
+
readonly allowsBreakingChange: true;
|
|
398
|
+
readonly defaultReleaseType: "major";
|
|
399
|
+
readonly isReleaseRelevant: true;
|
|
400
|
+
readonly deprecated: false;
|
|
401
|
+
};
|
|
402
|
+
readonly db: {
|
|
403
|
+
readonly type: "db";
|
|
404
|
+
readonly title: "Database";
|
|
405
|
+
readonly icon: "๐๏ธ";
|
|
406
|
+
readonly description: "Database schema, migrations, or queries";
|
|
407
|
+
readonly allowsBreakingChange: true;
|
|
408
|
+
readonly defaultReleaseType: "major";
|
|
409
|
+
readonly isReleaseRelevant: true;
|
|
410
|
+
readonly deprecated: false;
|
|
411
|
+
};
|
|
412
|
+
readonly data: {
|
|
413
|
+
readonly type: "data";
|
|
414
|
+
readonly title: "Data";
|
|
415
|
+
readonly icon: "๐";
|
|
416
|
+
readonly description: "Data fixes, seeds, or transformations";
|
|
417
|
+
readonly allowsBreakingChange: false;
|
|
418
|
+
readonly defaultReleaseType: "none";
|
|
419
|
+
readonly isReleaseRelevant: false;
|
|
420
|
+
readonly deprecated: false;
|
|
421
|
+
};
|
|
422
|
+
readonly ui: {
|
|
423
|
+
readonly type: "ui";
|
|
424
|
+
readonly title: "UI";
|
|
425
|
+
readonly icon: "๐จ";
|
|
426
|
+
readonly description: "UI-related changes";
|
|
427
|
+
readonly allowsBreakingChange: false;
|
|
428
|
+
readonly defaultReleaseType: "none";
|
|
429
|
+
readonly isReleaseRelevant: false;
|
|
430
|
+
readonly deprecated: false;
|
|
431
|
+
};
|
|
432
|
+
readonly ux: {
|
|
433
|
+
readonly type: "ux";
|
|
434
|
+
readonly title: "UX";
|
|
435
|
+
readonly icon: "๐ง ";
|
|
436
|
+
readonly description: "User experience improvements";
|
|
437
|
+
readonly allowsBreakingChange: false;
|
|
438
|
+
readonly defaultReleaseType: "none";
|
|
439
|
+
readonly isReleaseRelevant: false;
|
|
440
|
+
readonly deprecated: false;
|
|
441
|
+
};
|
|
442
|
+
readonly accessibility: {
|
|
443
|
+
readonly type: "accessibility";
|
|
444
|
+
readonly title: "Accessibility";
|
|
445
|
+
readonly icon: "โฟ";
|
|
446
|
+
readonly description: "Accessibility improvements (a11y)";
|
|
447
|
+
readonly allowsBreakingChange: false;
|
|
448
|
+
readonly defaultReleaseType: "none";
|
|
449
|
+
readonly isReleaseRelevant: false;
|
|
450
|
+
readonly deprecated: false;
|
|
451
|
+
};
|
|
452
|
+
readonly backend: {
|
|
453
|
+
readonly type: "backend";
|
|
454
|
+
readonly title: "Backend";
|
|
455
|
+
readonly icon: "๐ฅ๏ธ";
|
|
456
|
+
readonly description: "Backend logic changes";
|
|
457
|
+
readonly allowsBreakingChange: true;
|
|
458
|
+
readonly defaultReleaseType: "patch";
|
|
459
|
+
readonly isReleaseRelevant: true;
|
|
460
|
+
readonly deprecated: false;
|
|
461
|
+
};
|
|
462
|
+
readonly frontend: {
|
|
463
|
+
readonly type: "frontend";
|
|
464
|
+
readonly title: "Frontend";
|
|
465
|
+
readonly icon: "๐";
|
|
466
|
+
readonly description: "Frontend logic changes";
|
|
467
|
+
readonly allowsBreakingChange: false;
|
|
468
|
+
readonly defaultReleaseType: "patch";
|
|
469
|
+
readonly isReleaseRelevant: true;
|
|
470
|
+
readonly deprecated: false;
|
|
471
|
+
};
|
|
472
|
+
readonly logging: {
|
|
473
|
+
readonly type: "logging";
|
|
474
|
+
readonly title: "Logging";
|
|
475
|
+
readonly icon: "๐";
|
|
476
|
+
readonly description: "Logging changes or improvements";
|
|
477
|
+
readonly allowsBreakingChange: false;
|
|
478
|
+
readonly defaultReleaseType: "none";
|
|
479
|
+
readonly isReleaseRelevant: false;
|
|
480
|
+
readonly deprecated: false;
|
|
481
|
+
};
|
|
482
|
+
readonly monitoring: {
|
|
483
|
+
readonly type: "monitoring";
|
|
484
|
+
readonly title: "Monitoring";
|
|
485
|
+
readonly icon: "๐ก";
|
|
486
|
+
readonly description: "Monitoring, metrics, or tracing";
|
|
487
|
+
readonly allowsBreakingChange: false;
|
|
488
|
+
readonly defaultReleaseType: "none";
|
|
489
|
+
readonly isReleaseRelevant: false;
|
|
490
|
+
readonly deprecated: false;
|
|
491
|
+
};
|
|
492
|
+
readonly stability: {
|
|
493
|
+
readonly type: "stability";
|
|
494
|
+
readonly title: "Stability";
|
|
495
|
+
readonly icon: "๐ก๏ธ";
|
|
496
|
+
readonly description: "Stability and reliability improvements";
|
|
497
|
+
readonly allowsBreakingChange: false;
|
|
498
|
+
readonly defaultReleaseType: "none";
|
|
499
|
+
readonly isReleaseRelevant: false;
|
|
500
|
+
readonly deprecated: false;
|
|
501
|
+
};
|
|
502
|
+
readonly optimization: {
|
|
503
|
+
readonly type: "optimization";
|
|
504
|
+
readonly title: "Optimization";
|
|
505
|
+
readonly icon: "๐";
|
|
506
|
+
readonly description: "Code or runtime optimizations";
|
|
507
|
+
readonly allowsBreakingChange: false;
|
|
508
|
+
readonly defaultReleaseType: "none";
|
|
509
|
+
readonly isReleaseRelevant: false;
|
|
510
|
+
readonly deprecated: false;
|
|
511
|
+
};
|
|
512
|
+
readonly dx: {
|
|
513
|
+
readonly type: "dx";
|
|
514
|
+
readonly title: "Developer Experience";
|
|
515
|
+
readonly icon: "๐งโ๐ป";
|
|
516
|
+
readonly description: "Developer experience improvements";
|
|
517
|
+
readonly allowsBreakingChange: false;
|
|
518
|
+
readonly defaultReleaseType: "none";
|
|
519
|
+
readonly isReleaseRelevant: false;
|
|
520
|
+
readonly deprecated: false;
|
|
521
|
+
};
|
|
522
|
+
readonly tooling: {
|
|
523
|
+
readonly type: "tooling";
|
|
524
|
+
readonly title: "Tooling";
|
|
525
|
+
readonly icon: "๐ ๏ธ";
|
|
526
|
+
readonly description: "Developer tools or internal utilities";
|
|
527
|
+
readonly allowsBreakingChange: false;
|
|
528
|
+
readonly defaultReleaseType: "none";
|
|
529
|
+
readonly isReleaseRelevant: false;
|
|
530
|
+
readonly deprecated: false;
|
|
531
|
+
};
|
|
532
|
+
readonly scripts: {
|
|
533
|
+
readonly type: "scripts";
|
|
534
|
+
readonly title: "Scripts";
|
|
535
|
+
readonly icon: "๐";
|
|
536
|
+
readonly description: "Automation or helper script changes";
|
|
537
|
+
readonly allowsBreakingChange: false;
|
|
538
|
+
readonly defaultReleaseType: "none";
|
|
539
|
+
readonly isReleaseRelevant: false;
|
|
540
|
+
readonly deprecated: false;
|
|
541
|
+
};
|
|
542
|
+
readonly cleanup: {
|
|
543
|
+
readonly type: "cleanup";
|
|
544
|
+
readonly title: "Cleanup";
|
|
545
|
+
readonly icon: "๐งฝ";
|
|
546
|
+
readonly description: "Code cleanup without behavior changes";
|
|
547
|
+
readonly allowsBreakingChange: false;
|
|
548
|
+
readonly defaultReleaseType: "none";
|
|
549
|
+
readonly isReleaseRelevant: false;
|
|
550
|
+
readonly deprecated: false;
|
|
551
|
+
};
|
|
552
|
+
readonly migration: {
|
|
553
|
+
readonly type: "migration";
|
|
554
|
+
readonly title: "Migration";
|
|
555
|
+
readonly icon: "๐";
|
|
556
|
+
readonly description: "Migration-related changes";
|
|
557
|
+
readonly allowsBreakingChange: true;
|
|
558
|
+
readonly defaultReleaseType: "major";
|
|
559
|
+
readonly isReleaseRelevant: true;
|
|
560
|
+
readonly deprecated: false;
|
|
561
|
+
};
|
|
562
|
+
readonly rollback: {
|
|
563
|
+
readonly type: "rollback";
|
|
564
|
+
readonly title: "Rollback";
|
|
565
|
+
readonly icon: "โฉ๏ธ";
|
|
566
|
+
readonly description: "Rollback changes after a bad release";
|
|
567
|
+
readonly allowsBreakingChange: false;
|
|
568
|
+
readonly defaultReleaseType: "none";
|
|
569
|
+
readonly isReleaseRelevant: false;
|
|
570
|
+
readonly deprecated: false;
|
|
571
|
+
};
|
|
572
|
+
};
|
|
573
|
+
/**
|
|
574
|
+
* Union type of all supported commit types.
|
|
575
|
+
*
|
|
576
|
+
* Includes standard types (feat, fix, etc.) and the special `BREAKING CHANGE` marker.
|
|
577
|
+
*
|
|
578
|
+
* Derived from the keys of {@link COMMIT_TYPES}.
|
|
579
|
+
*/
|
|
580
|
+
type CommitType = keyof typeof COMMIT_TYPES;
|
|
581
|
+
/**
|
|
582
|
+
* List of all supported commit type values.
|
|
583
|
+
*
|
|
584
|
+
* Useful for validation, selection prompts, and tooling.
|
|
585
|
+
*/
|
|
586
|
+
declare const COMMIT_TYPE_VALUES: CommitType[];
|
|
587
|
+
//#endregion
|
|
1
588
|
//#region src/charset.d.ts
|
|
2
589
|
/**
|
|
3
590
|
* Lowercase English alphabet.
|
|
@@ -278,4 +865,4 @@ declare const DEG_TO_RAD: number;
|
|
|
278
865
|
*/
|
|
279
866
|
declare const RAD_TO_DEG: number;
|
|
280
867
|
//#endregion
|
|
281
|
-
export { ALPHANUMERIC, CM_TO_MM, DAY, DEFAULT_RADIX, DEG_TO_RAD, DIGITS, E, EMPTY_STRING, EPSILON, GAS, GRAVITY, HOUR, HTTP_METHODS, HTTP_STATUS, KG_TO_G, KM_TO_M, LN_10, LN_2, LOG10_E, LOG2_E, LOWERCASE_ALPHABET, MAX_SAFE_INT, MAX_VALUE, MINUTE, MIN_SAFE_INT, MIN_VALUE, MONTH_AVG, M_TO_CM, NEGATIVE_INFINITY, NEW_LINE, PI, PLANCK, POSITIVE_INFINITY, RAD_TO_DEG, SECOND, SPACE, SPEED_OF_LIGHT, SQRT_1_2, SQRT_2, TAB, TAU, TON_TO_KG, UPPERCASE_ALPHABET, WEEK, YEAR };
|
|
868
|
+
export { ALPHANUMERIC, CM_TO_MM, COMMIT_SCOPES, COMMIT_SCOPE_VALUES, COMMIT_TYPES, COMMIT_TYPE_VALUES, CommitScope, CommitType, DAY, DEFAULT_RADIX, DEG_TO_RAD, DIGITS, E, EMPTY_STRING, EPSILON, GAS, GRAVITY, HOUR, HTTP_METHODS, HTTP_STATUS, KG_TO_G, KM_TO_M, LN_10, LN_2, LOG10_E, LOG2_E, LOWERCASE_ALPHABET, MAX_SAFE_INT, MAX_VALUE, MINUTE, MIN_SAFE_INT, MIN_VALUE, MONTH_AVG, M_TO_CM, NEGATIVE_INFINITY, NEW_LINE, PI, PLANCK, POSITIVE_INFINITY, RAD_TO_DEG, SECOND, SPACE, SPEED_OF_LIGHT, SQRT_1_2, SQRT_2, TAB, TAU, TON_TO_KG, UPPERCASE_ALPHABET, WEEK, YEAR };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,590 @@
|
|
|
1
|
+
//#region src/commit/scope.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Map of supported commit scopes and their descriptions.
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* - Scopes provide additional context for a commit, typically used as: `type(scope): message`
|
|
7
|
+
* - Keys represent the allowed scope identifiers.
|
|
8
|
+
* - Values describe the area of the codebase the scope applies to.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* `feat(api): add pagination support`
|
|
12
|
+
*/
|
|
13
|
+
declare const COMMIT_SCOPES: {
|
|
14
|
+
readonly accessibility: "Accessibility improvements (a11y)";
|
|
15
|
+
readonly ansible: "Ansible playbooks and automation";
|
|
16
|
+
readonly api: "API implementation or contracts";
|
|
17
|
+
readonly assets: "Static assets like images, fonts, media";
|
|
18
|
+
readonly auth: "Authentication and authorization logic";
|
|
19
|
+
readonly aws: "AWS-related configuration or services";
|
|
20
|
+
readonly azure: "Azure-related configuration or services";
|
|
21
|
+
readonly babel: "Babel configuration or transforms";
|
|
22
|
+
readonly backend: "Backend services and server-side logic";
|
|
23
|
+
readonly build: "Build system configuration";
|
|
24
|
+
readonly 'build-scripts': "Scripts related to building the project";
|
|
25
|
+
readonly cache: "Caching mechanisms and logic";
|
|
26
|
+
readonly cd: "Continuous deployment setup";
|
|
27
|
+
readonly changelog: "Changelog generation and updates";
|
|
28
|
+
readonly chore: "General maintenance tasks";
|
|
29
|
+
readonly ci: "Continuous integration setup";
|
|
30
|
+
readonly 'ci-config': "CI configuration files";
|
|
31
|
+
readonly 'ci-tests': "Tests executed in CI pipelines";
|
|
32
|
+
readonly cli: "Command-line interface";
|
|
33
|
+
readonly client: "Client-side logic";
|
|
34
|
+
readonly compliance: "Compliance, audits, or policy-related changes";
|
|
35
|
+
readonly components: "Reusable components";
|
|
36
|
+
readonly config: "Configuration files and settings";
|
|
37
|
+
readonly contrib: "Community or contributor-related changes";
|
|
38
|
+
readonly core: "Core application or library logic";
|
|
39
|
+
readonly css: "CSS and styling changes";
|
|
40
|
+
readonly db: "Database-related changes";
|
|
41
|
+
readonly demo: "Demo or example implementations";
|
|
42
|
+
readonly deploy: "Deployment configuration and scripts";
|
|
43
|
+
readonly deps: "Production dependencies";
|
|
44
|
+
readonly 'deps-dev': "Development dependencies";
|
|
45
|
+
readonly desktop: "Desktop application logic";
|
|
46
|
+
readonly devops: "DevOps tooling and processes";
|
|
47
|
+
readonly docker: "Dockerfiles and container configuration";
|
|
48
|
+
readonly docs: "General documentation";
|
|
49
|
+
readonly dotfiles: "Dotfiles and editor configuration";
|
|
50
|
+
readonly e2e: "End-to-end tests";
|
|
51
|
+
readonly eslint: "ESLint configuration and rules";
|
|
52
|
+
readonly examples: "Example code and samples";
|
|
53
|
+
readonly fixtures: "Test fixtures and sample data";
|
|
54
|
+
readonly format: "Code formatting changes";
|
|
55
|
+
readonly frontend: "Frontend application logic";
|
|
56
|
+
readonly gcp: "Google Cloud Platform related changes";
|
|
57
|
+
readonly helm: "Helm charts and Kubernetes packaging";
|
|
58
|
+
readonly i18n: "Internationalization";
|
|
59
|
+
readonly images: "Image assets";
|
|
60
|
+
readonly infra: "Infrastructure configuration";
|
|
61
|
+
readonly integration: "Integration-related logic";
|
|
62
|
+
readonly jest: "Jest configuration or tests";
|
|
63
|
+
readonly k8s: "Kubernetes resources";
|
|
64
|
+
readonly l10n: "Localization and translations";
|
|
65
|
+
readonly layout: "Layout-related UI changes";
|
|
66
|
+
readonly lib: "Shared libraries";
|
|
67
|
+
readonly lint: "Linting rules and fixes";
|
|
68
|
+
readonly logging: "Logging-related changes";
|
|
69
|
+
readonly metrics: "Metrics and monitoring data";
|
|
70
|
+
readonly mobile: "Mobile application logic";
|
|
71
|
+
readonly mocha: "Mocha configuration or tests";
|
|
72
|
+
readonly mocks: "Mock data and utilities";
|
|
73
|
+
readonly monorepo: "Monorepo configuration";
|
|
74
|
+
readonly observability: "Observability tooling (logs, metrics, traces)";
|
|
75
|
+
readonly ops: "Operational tooling and scripts";
|
|
76
|
+
readonly orm: "ORM configuration or models";
|
|
77
|
+
readonly packages: "Multiple or shared packages";
|
|
78
|
+
readonly parcel: "Parcel bundler configuration";
|
|
79
|
+
readonly perf: "Performance improvements";
|
|
80
|
+
readonly permissions: "Permission and access control logic";
|
|
81
|
+
readonly pkg: "Package-related changes";
|
|
82
|
+
readonly prettier: "Prettier configuration";
|
|
83
|
+
readonly profiling: "Profiling and performance analysis";
|
|
84
|
+
readonly readme: "README documentation";
|
|
85
|
+
readonly release: "Release preparation and metadata";
|
|
86
|
+
readonly responsive: "Responsive design changes";
|
|
87
|
+
readonly rollup: "Rollup bundler configuration";
|
|
88
|
+
readonly scripts: "Automation and helper scripts";
|
|
89
|
+
readonly sdk: "SDK implementation or changes";
|
|
90
|
+
readonly security: "Security-related fixes or improvements";
|
|
91
|
+
readonly server: "Server-side logic";
|
|
92
|
+
readonly storage: "Storage systems and data persistence";
|
|
93
|
+
readonly storybook: "Storybook configuration and stories";
|
|
94
|
+
readonly styles: "Styling and theming";
|
|
95
|
+
readonly terraform: "Terraform infrastructure code";
|
|
96
|
+
readonly test: "General testing changes";
|
|
97
|
+
readonly theme: "UI themes";
|
|
98
|
+
readonly tsc: "TypeScript compiler configuration";
|
|
99
|
+
readonly tutorials: "Tutorial content";
|
|
100
|
+
readonly ui: "User interface changes";
|
|
101
|
+
readonly unit: "Unit tests";
|
|
102
|
+
readonly ux: "User experience improvements";
|
|
103
|
+
readonly vite: "Vite tooling and configuration";
|
|
104
|
+
readonly web: "Web-related functionality";
|
|
105
|
+
readonly webpack: "Webpack configuration";
|
|
106
|
+
readonly workspace: "Workspace or monorepo configuration";
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* Union type of all supported commit scopes.
|
|
110
|
+
*
|
|
111
|
+
* Derived from the keys of {@link COMMIT_SCOPES}.
|
|
112
|
+
*/
|
|
113
|
+
type CommitScope = keyof typeof COMMIT_SCOPES;
|
|
114
|
+
/**
|
|
115
|
+
* List of all supported commit scope values.
|
|
116
|
+
*
|
|
117
|
+
* Useful for validation, autocomplete, or CLI prompts.
|
|
118
|
+
*/
|
|
119
|
+
declare const COMMIT_SCOPE_VALUES: CommitScope[];
|
|
120
|
+
//#endregion
|
|
121
|
+
//#region src/commit/types.d.ts
|
|
122
|
+
/**
|
|
123
|
+
* Map of supported commit types and their metadata.
|
|
124
|
+
*
|
|
125
|
+
* @remarks
|
|
126
|
+
* Follows the Conventional Commits specification and extends it with additional metadata for:
|
|
127
|
+
* - release automation
|
|
128
|
+
* - changelog generation
|
|
129
|
+
* - UI / CLI display
|
|
130
|
+
*/
|
|
131
|
+
declare const COMMIT_TYPES: {
|
|
132
|
+
readonly feat: {
|
|
133
|
+
readonly type: "feat";
|
|
134
|
+
readonly title: "Feature";
|
|
135
|
+
readonly icon: "โจ";
|
|
136
|
+
readonly description: "Introduce a new feature";
|
|
137
|
+
readonly allowsBreakingChange: true;
|
|
138
|
+
readonly defaultReleaseType: "minor";
|
|
139
|
+
readonly isReleaseRelevant: true;
|
|
140
|
+
readonly deprecated: false;
|
|
141
|
+
};
|
|
142
|
+
readonly fix: {
|
|
143
|
+
readonly type: "fix";
|
|
144
|
+
readonly title: "Bug Fix";
|
|
145
|
+
readonly icon: "๐";
|
|
146
|
+
readonly description: "Fix a bug";
|
|
147
|
+
readonly allowsBreakingChange: true;
|
|
148
|
+
readonly defaultReleaseType: "patch";
|
|
149
|
+
readonly isReleaseRelevant: true;
|
|
150
|
+
readonly deprecated: false;
|
|
151
|
+
};
|
|
152
|
+
readonly docs: {
|
|
153
|
+
readonly type: "docs";
|
|
154
|
+
readonly title: "Documentation";
|
|
155
|
+
readonly icon: "๐";
|
|
156
|
+
readonly description: "Documentation only changes";
|
|
157
|
+
readonly allowsBreakingChange: false;
|
|
158
|
+
readonly defaultReleaseType: "none";
|
|
159
|
+
readonly isReleaseRelevant: false;
|
|
160
|
+
readonly deprecated: false;
|
|
161
|
+
};
|
|
162
|
+
readonly style: {
|
|
163
|
+
readonly type: "style";
|
|
164
|
+
readonly title: "Style";
|
|
165
|
+
readonly icon: "๐จ";
|
|
166
|
+
readonly description: "Formatting or style changes that do not affect code behavior";
|
|
167
|
+
readonly allowsBreakingChange: false;
|
|
168
|
+
readonly defaultReleaseType: "none";
|
|
169
|
+
readonly isReleaseRelevant: false;
|
|
170
|
+
readonly deprecated: false;
|
|
171
|
+
};
|
|
172
|
+
readonly refactor: {
|
|
173
|
+
readonly type: "refactor";
|
|
174
|
+
readonly title: "Refactor";
|
|
175
|
+
readonly icon: "๐งน";
|
|
176
|
+
readonly description: "Code change that neither fixes a bug nor adds a feature";
|
|
177
|
+
readonly allowsBreakingChange: true;
|
|
178
|
+
readonly defaultReleaseType: "patch";
|
|
179
|
+
readonly isReleaseRelevant: true;
|
|
180
|
+
readonly deprecated: false;
|
|
181
|
+
};
|
|
182
|
+
readonly perf: {
|
|
183
|
+
readonly type: "perf";
|
|
184
|
+
readonly title: "Performance";
|
|
185
|
+
readonly icon: "โก";
|
|
186
|
+
readonly description: "Improve performance";
|
|
187
|
+
readonly allowsBreakingChange: true;
|
|
188
|
+
readonly defaultReleaseType: "patch";
|
|
189
|
+
readonly isReleaseRelevant: true;
|
|
190
|
+
readonly deprecated: false;
|
|
191
|
+
};
|
|
192
|
+
readonly test: {
|
|
193
|
+
readonly type: "test";
|
|
194
|
+
readonly title: "Tests";
|
|
195
|
+
readonly icon: "๐งช";
|
|
196
|
+
readonly description: "Add or update tests";
|
|
197
|
+
readonly allowsBreakingChange: false;
|
|
198
|
+
readonly defaultReleaseType: "none";
|
|
199
|
+
readonly isReleaseRelevant: false;
|
|
200
|
+
readonly deprecated: false;
|
|
201
|
+
};
|
|
202
|
+
readonly build: {
|
|
203
|
+
readonly type: "build";
|
|
204
|
+
readonly title: "Build";
|
|
205
|
+
readonly icon: "๐๏ธ";
|
|
206
|
+
readonly description: "Changes affecting build system or dependencies";
|
|
207
|
+
readonly allowsBreakingChange: false;
|
|
208
|
+
readonly defaultReleaseType: "none";
|
|
209
|
+
readonly isReleaseRelevant: false;
|
|
210
|
+
readonly deprecated: false;
|
|
211
|
+
};
|
|
212
|
+
readonly ci: {
|
|
213
|
+
readonly type: "ci";
|
|
214
|
+
readonly title: "CI";
|
|
215
|
+
readonly icon: "๐ค";
|
|
216
|
+
readonly description: "CI/CD related changes";
|
|
217
|
+
readonly allowsBreakingChange: false;
|
|
218
|
+
readonly defaultReleaseType: "none";
|
|
219
|
+
readonly isReleaseRelevant: false;
|
|
220
|
+
readonly deprecated: false;
|
|
221
|
+
};
|
|
222
|
+
readonly chore: {
|
|
223
|
+
readonly type: "chore";
|
|
224
|
+
readonly title: "Chore";
|
|
225
|
+
readonly icon: "๐ง";
|
|
226
|
+
readonly description: "Maintenance tasks";
|
|
227
|
+
readonly allowsBreakingChange: false;
|
|
228
|
+
readonly defaultReleaseType: "none";
|
|
229
|
+
readonly isReleaseRelevant: false;
|
|
230
|
+
readonly deprecated: false;
|
|
231
|
+
};
|
|
232
|
+
readonly revert: {
|
|
233
|
+
readonly type: "revert";
|
|
234
|
+
readonly title: "Revert";
|
|
235
|
+
readonly icon: "โช";
|
|
236
|
+
readonly description: "Revert a previous commit";
|
|
237
|
+
readonly allowsBreakingChange: false;
|
|
238
|
+
readonly defaultReleaseType: "patch";
|
|
239
|
+
readonly isReleaseRelevant: true;
|
|
240
|
+
readonly deprecated: false;
|
|
241
|
+
};
|
|
242
|
+
readonly deps: {
|
|
243
|
+
readonly type: "deps";
|
|
244
|
+
readonly title: "Dependencies";
|
|
245
|
+
readonly icon: "๐ฆ";
|
|
246
|
+
readonly description: "Update, add, or remove dependencies";
|
|
247
|
+
readonly allowsBreakingChange: false;
|
|
248
|
+
readonly defaultReleaseType: "patch";
|
|
249
|
+
readonly isReleaseRelevant: true;
|
|
250
|
+
readonly deprecated: false;
|
|
251
|
+
};
|
|
252
|
+
readonly config: {
|
|
253
|
+
readonly type: "config";
|
|
254
|
+
readonly title: "Configuration";
|
|
255
|
+
readonly icon: "โ๏ธ";
|
|
256
|
+
readonly description: "Configuration changes";
|
|
257
|
+
readonly allowsBreakingChange: false;
|
|
258
|
+
readonly defaultReleaseType: "none";
|
|
259
|
+
readonly isReleaseRelevant: false;
|
|
260
|
+
readonly deprecated: false;
|
|
261
|
+
};
|
|
262
|
+
readonly security: {
|
|
263
|
+
readonly type: "security";
|
|
264
|
+
readonly title: "Security";
|
|
265
|
+
readonly icon: "๐";
|
|
266
|
+
readonly description: "Security fixes or vulnerability mitigation";
|
|
267
|
+
readonly allowsBreakingChange: true;
|
|
268
|
+
readonly defaultReleaseType: "patch";
|
|
269
|
+
readonly isReleaseRelevant: true;
|
|
270
|
+
readonly deprecated: false;
|
|
271
|
+
};
|
|
272
|
+
readonly types: {
|
|
273
|
+
readonly type: "types";
|
|
274
|
+
readonly title: "Types";
|
|
275
|
+
readonly icon: "๐";
|
|
276
|
+
readonly description: "Type definitions or TypeScript-related changes";
|
|
277
|
+
readonly allowsBreakingChange: false;
|
|
278
|
+
readonly defaultReleaseType: "none";
|
|
279
|
+
readonly isReleaseRelevant: false;
|
|
280
|
+
readonly deprecated: false;
|
|
281
|
+
};
|
|
282
|
+
readonly lint: {
|
|
283
|
+
readonly type: "lint";
|
|
284
|
+
readonly title: "Lint";
|
|
285
|
+
readonly icon: "๐งน";
|
|
286
|
+
readonly description: "Linting rules or fixes";
|
|
287
|
+
readonly allowsBreakingChange: false;
|
|
288
|
+
readonly defaultReleaseType: "none";
|
|
289
|
+
readonly isReleaseRelevant: false;
|
|
290
|
+
readonly deprecated: false;
|
|
291
|
+
};
|
|
292
|
+
readonly format: {
|
|
293
|
+
readonly type: "format";
|
|
294
|
+
readonly title: "Format";
|
|
295
|
+
readonly icon: "๐๏ธ";
|
|
296
|
+
readonly description: "Code formatting changes (prettier, etc.)";
|
|
297
|
+
readonly allowsBreakingChange: false;
|
|
298
|
+
readonly defaultReleaseType: "none";
|
|
299
|
+
readonly isReleaseRelevant: false;
|
|
300
|
+
readonly deprecated: false;
|
|
301
|
+
};
|
|
302
|
+
readonly release: {
|
|
303
|
+
readonly type: "release";
|
|
304
|
+
readonly title: "Release";
|
|
305
|
+
readonly icon: "๐ท๏ธ";
|
|
306
|
+
readonly description: "Release-related changes (versioning, tags, changelog)";
|
|
307
|
+
readonly allowsBreakingChange: false;
|
|
308
|
+
readonly defaultReleaseType: "none";
|
|
309
|
+
readonly isReleaseRelevant: false;
|
|
310
|
+
readonly deprecated: false;
|
|
311
|
+
};
|
|
312
|
+
readonly meta: {
|
|
313
|
+
readonly type: "meta";
|
|
314
|
+
readonly title: "Meta";
|
|
315
|
+
readonly icon: "๐งฉ";
|
|
316
|
+
readonly description: "Repository metadata (README, templates, tooling)";
|
|
317
|
+
readonly allowsBreakingChange: false;
|
|
318
|
+
readonly defaultReleaseType: "none";
|
|
319
|
+
readonly isReleaseRelevant: false;
|
|
320
|
+
readonly deprecated: false;
|
|
321
|
+
};
|
|
322
|
+
readonly infra: {
|
|
323
|
+
readonly type: "infra";
|
|
324
|
+
readonly title: "Infrastructure";
|
|
325
|
+
readonly icon: "๐ญ";
|
|
326
|
+
readonly description: "Infrastructure or environment-related changes";
|
|
327
|
+
readonly allowsBreakingChange: false;
|
|
328
|
+
readonly defaultReleaseType: "none";
|
|
329
|
+
readonly isReleaseRelevant: false;
|
|
330
|
+
readonly deprecated: false;
|
|
331
|
+
};
|
|
332
|
+
readonly hotfix: {
|
|
333
|
+
readonly type: "hotfix";
|
|
334
|
+
readonly title: "Hotfix";
|
|
335
|
+
readonly icon: "๐";
|
|
336
|
+
readonly description: "Critical production fix applied quickly";
|
|
337
|
+
readonly allowsBreakingChange: true;
|
|
338
|
+
readonly defaultReleaseType: "patch";
|
|
339
|
+
readonly isReleaseRelevant: true;
|
|
340
|
+
readonly deprecated: false;
|
|
341
|
+
};
|
|
342
|
+
readonly version: {
|
|
343
|
+
readonly type: "version";
|
|
344
|
+
readonly title: "Version";
|
|
345
|
+
readonly icon: "๐ข";
|
|
346
|
+
readonly description: "Version bumps without code changes";
|
|
347
|
+
readonly allowsBreakingChange: false;
|
|
348
|
+
readonly defaultReleaseType: "none";
|
|
349
|
+
readonly isReleaseRelevant: false;
|
|
350
|
+
readonly deprecated: false;
|
|
351
|
+
};
|
|
352
|
+
readonly workflow: {
|
|
353
|
+
readonly type: "workflow";
|
|
354
|
+
readonly title: "Workflow";
|
|
355
|
+
readonly icon: "๐";
|
|
356
|
+
readonly description: "Workflow-related changes (GitHub Actions, hooks)";
|
|
357
|
+
readonly allowsBreakingChange: false;
|
|
358
|
+
readonly defaultReleaseType: "none";
|
|
359
|
+
readonly isReleaseRelevant: false;
|
|
360
|
+
readonly deprecated: false;
|
|
361
|
+
};
|
|
362
|
+
readonly package: {
|
|
363
|
+
readonly type: "package";
|
|
364
|
+
readonly title: "Package";
|
|
365
|
+
readonly icon: "๐ฆ";
|
|
366
|
+
readonly description: "Package-level changes in a monorepo";
|
|
367
|
+
readonly allowsBreakingChange: false;
|
|
368
|
+
readonly defaultReleaseType: "none";
|
|
369
|
+
readonly isReleaseRelevant: false;
|
|
370
|
+
readonly deprecated: false;
|
|
371
|
+
};
|
|
372
|
+
readonly workspace: {
|
|
373
|
+
readonly type: "workspace";
|
|
374
|
+
readonly title: "Workspace";
|
|
375
|
+
readonly icon: "๐งฑ";
|
|
376
|
+
readonly description: "Workspace or monorepo configuration changes";
|
|
377
|
+
readonly allowsBreakingChange: false;
|
|
378
|
+
readonly defaultReleaseType: "none";
|
|
379
|
+
readonly isReleaseRelevant: false;
|
|
380
|
+
readonly deprecated: false;
|
|
381
|
+
};
|
|
382
|
+
readonly api: {
|
|
383
|
+
readonly type: "api";
|
|
384
|
+
readonly title: "API";
|
|
385
|
+
readonly icon: "๐";
|
|
386
|
+
readonly description: "API surface or contract changes";
|
|
387
|
+
readonly allowsBreakingChange: true;
|
|
388
|
+
readonly defaultReleaseType: "major";
|
|
389
|
+
readonly isReleaseRelevant: true;
|
|
390
|
+
readonly deprecated: false;
|
|
391
|
+
};
|
|
392
|
+
readonly 'BREAKING CHANGE': {
|
|
393
|
+
readonly type: "BREAKING CHANGE";
|
|
394
|
+
readonly title: "Breaking Change";
|
|
395
|
+
readonly icon: "๐ฅ";
|
|
396
|
+
readonly description: "An explicit breaking change as defined by the Conventional Commits specification";
|
|
397
|
+
readonly allowsBreakingChange: true;
|
|
398
|
+
readonly defaultReleaseType: "major";
|
|
399
|
+
readonly isReleaseRelevant: true;
|
|
400
|
+
readonly deprecated: false;
|
|
401
|
+
};
|
|
402
|
+
readonly db: {
|
|
403
|
+
readonly type: "db";
|
|
404
|
+
readonly title: "Database";
|
|
405
|
+
readonly icon: "๐๏ธ";
|
|
406
|
+
readonly description: "Database schema, migrations, or queries";
|
|
407
|
+
readonly allowsBreakingChange: true;
|
|
408
|
+
readonly defaultReleaseType: "major";
|
|
409
|
+
readonly isReleaseRelevant: true;
|
|
410
|
+
readonly deprecated: false;
|
|
411
|
+
};
|
|
412
|
+
readonly data: {
|
|
413
|
+
readonly type: "data";
|
|
414
|
+
readonly title: "Data";
|
|
415
|
+
readonly icon: "๐";
|
|
416
|
+
readonly description: "Data fixes, seeds, or transformations";
|
|
417
|
+
readonly allowsBreakingChange: false;
|
|
418
|
+
readonly defaultReleaseType: "none";
|
|
419
|
+
readonly isReleaseRelevant: false;
|
|
420
|
+
readonly deprecated: false;
|
|
421
|
+
};
|
|
422
|
+
readonly ui: {
|
|
423
|
+
readonly type: "ui";
|
|
424
|
+
readonly title: "UI";
|
|
425
|
+
readonly icon: "๐จ";
|
|
426
|
+
readonly description: "UI-related changes";
|
|
427
|
+
readonly allowsBreakingChange: false;
|
|
428
|
+
readonly defaultReleaseType: "none";
|
|
429
|
+
readonly isReleaseRelevant: false;
|
|
430
|
+
readonly deprecated: false;
|
|
431
|
+
};
|
|
432
|
+
readonly ux: {
|
|
433
|
+
readonly type: "ux";
|
|
434
|
+
readonly title: "UX";
|
|
435
|
+
readonly icon: "๐ง ";
|
|
436
|
+
readonly description: "User experience improvements";
|
|
437
|
+
readonly allowsBreakingChange: false;
|
|
438
|
+
readonly defaultReleaseType: "none";
|
|
439
|
+
readonly isReleaseRelevant: false;
|
|
440
|
+
readonly deprecated: false;
|
|
441
|
+
};
|
|
442
|
+
readonly accessibility: {
|
|
443
|
+
readonly type: "accessibility";
|
|
444
|
+
readonly title: "Accessibility";
|
|
445
|
+
readonly icon: "โฟ";
|
|
446
|
+
readonly description: "Accessibility improvements (a11y)";
|
|
447
|
+
readonly allowsBreakingChange: false;
|
|
448
|
+
readonly defaultReleaseType: "none";
|
|
449
|
+
readonly isReleaseRelevant: false;
|
|
450
|
+
readonly deprecated: false;
|
|
451
|
+
};
|
|
452
|
+
readonly backend: {
|
|
453
|
+
readonly type: "backend";
|
|
454
|
+
readonly title: "Backend";
|
|
455
|
+
readonly icon: "๐ฅ๏ธ";
|
|
456
|
+
readonly description: "Backend logic changes";
|
|
457
|
+
readonly allowsBreakingChange: true;
|
|
458
|
+
readonly defaultReleaseType: "patch";
|
|
459
|
+
readonly isReleaseRelevant: true;
|
|
460
|
+
readonly deprecated: false;
|
|
461
|
+
};
|
|
462
|
+
readonly frontend: {
|
|
463
|
+
readonly type: "frontend";
|
|
464
|
+
readonly title: "Frontend";
|
|
465
|
+
readonly icon: "๐";
|
|
466
|
+
readonly description: "Frontend logic changes";
|
|
467
|
+
readonly allowsBreakingChange: false;
|
|
468
|
+
readonly defaultReleaseType: "patch";
|
|
469
|
+
readonly isReleaseRelevant: true;
|
|
470
|
+
readonly deprecated: false;
|
|
471
|
+
};
|
|
472
|
+
readonly logging: {
|
|
473
|
+
readonly type: "logging";
|
|
474
|
+
readonly title: "Logging";
|
|
475
|
+
readonly icon: "๐";
|
|
476
|
+
readonly description: "Logging changes or improvements";
|
|
477
|
+
readonly allowsBreakingChange: false;
|
|
478
|
+
readonly defaultReleaseType: "none";
|
|
479
|
+
readonly isReleaseRelevant: false;
|
|
480
|
+
readonly deprecated: false;
|
|
481
|
+
};
|
|
482
|
+
readonly monitoring: {
|
|
483
|
+
readonly type: "monitoring";
|
|
484
|
+
readonly title: "Monitoring";
|
|
485
|
+
readonly icon: "๐ก";
|
|
486
|
+
readonly description: "Monitoring, metrics, or tracing";
|
|
487
|
+
readonly allowsBreakingChange: false;
|
|
488
|
+
readonly defaultReleaseType: "none";
|
|
489
|
+
readonly isReleaseRelevant: false;
|
|
490
|
+
readonly deprecated: false;
|
|
491
|
+
};
|
|
492
|
+
readonly stability: {
|
|
493
|
+
readonly type: "stability";
|
|
494
|
+
readonly title: "Stability";
|
|
495
|
+
readonly icon: "๐ก๏ธ";
|
|
496
|
+
readonly description: "Stability and reliability improvements";
|
|
497
|
+
readonly allowsBreakingChange: false;
|
|
498
|
+
readonly defaultReleaseType: "none";
|
|
499
|
+
readonly isReleaseRelevant: false;
|
|
500
|
+
readonly deprecated: false;
|
|
501
|
+
};
|
|
502
|
+
readonly optimization: {
|
|
503
|
+
readonly type: "optimization";
|
|
504
|
+
readonly title: "Optimization";
|
|
505
|
+
readonly icon: "๐";
|
|
506
|
+
readonly description: "Code or runtime optimizations";
|
|
507
|
+
readonly allowsBreakingChange: false;
|
|
508
|
+
readonly defaultReleaseType: "none";
|
|
509
|
+
readonly isReleaseRelevant: false;
|
|
510
|
+
readonly deprecated: false;
|
|
511
|
+
};
|
|
512
|
+
readonly dx: {
|
|
513
|
+
readonly type: "dx";
|
|
514
|
+
readonly title: "Developer Experience";
|
|
515
|
+
readonly icon: "๐งโ๐ป";
|
|
516
|
+
readonly description: "Developer experience improvements";
|
|
517
|
+
readonly allowsBreakingChange: false;
|
|
518
|
+
readonly defaultReleaseType: "none";
|
|
519
|
+
readonly isReleaseRelevant: false;
|
|
520
|
+
readonly deprecated: false;
|
|
521
|
+
};
|
|
522
|
+
readonly tooling: {
|
|
523
|
+
readonly type: "tooling";
|
|
524
|
+
readonly title: "Tooling";
|
|
525
|
+
readonly icon: "๐ ๏ธ";
|
|
526
|
+
readonly description: "Developer tools or internal utilities";
|
|
527
|
+
readonly allowsBreakingChange: false;
|
|
528
|
+
readonly defaultReleaseType: "none";
|
|
529
|
+
readonly isReleaseRelevant: false;
|
|
530
|
+
readonly deprecated: false;
|
|
531
|
+
};
|
|
532
|
+
readonly scripts: {
|
|
533
|
+
readonly type: "scripts";
|
|
534
|
+
readonly title: "Scripts";
|
|
535
|
+
readonly icon: "๐";
|
|
536
|
+
readonly description: "Automation or helper script changes";
|
|
537
|
+
readonly allowsBreakingChange: false;
|
|
538
|
+
readonly defaultReleaseType: "none";
|
|
539
|
+
readonly isReleaseRelevant: false;
|
|
540
|
+
readonly deprecated: false;
|
|
541
|
+
};
|
|
542
|
+
readonly cleanup: {
|
|
543
|
+
readonly type: "cleanup";
|
|
544
|
+
readonly title: "Cleanup";
|
|
545
|
+
readonly icon: "๐งฝ";
|
|
546
|
+
readonly description: "Code cleanup without behavior changes";
|
|
547
|
+
readonly allowsBreakingChange: false;
|
|
548
|
+
readonly defaultReleaseType: "none";
|
|
549
|
+
readonly isReleaseRelevant: false;
|
|
550
|
+
readonly deprecated: false;
|
|
551
|
+
};
|
|
552
|
+
readonly migration: {
|
|
553
|
+
readonly type: "migration";
|
|
554
|
+
readonly title: "Migration";
|
|
555
|
+
readonly icon: "๐";
|
|
556
|
+
readonly description: "Migration-related changes";
|
|
557
|
+
readonly allowsBreakingChange: true;
|
|
558
|
+
readonly defaultReleaseType: "major";
|
|
559
|
+
readonly isReleaseRelevant: true;
|
|
560
|
+
readonly deprecated: false;
|
|
561
|
+
};
|
|
562
|
+
readonly rollback: {
|
|
563
|
+
readonly type: "rollback";
|
|
564
|
+
readonly title: "Rollback";
|
|
565
|
+
readonly icon: "โฉ๏ธ";
|
|
566
|
+
readonly description: "Rollback changes after a bad release";
|
|
567
|
+
readonly allowsBreakingChange: false;
|
|
568
|
+
readonly defaultReleaseType: "none";
|
|
569
|
+
readonly isReleaseRelevant: false;
|
|
570
|
+
readonly deprecated: false;
|
|
571
|
+
};
|
|
572
|
+
};
|
|
573
|
+
/**
|
|
574
|
+
* Union type of all supported commit types.
|
|
575
|
+
*
|
|
576
|
+
* Includes standard types (feat, fix, etc.) and the special `BREAKING CHANGE` marker.
|
|
577
|
+
*
|
|
578
|
+
* Derived from the keys of {@link COMMIT_TYPES}.
|
|
579
|
+
*/
|
|
580
|
+
type CommitType = keyof typeof COMMIT_TYPES;
|
|
581
|
+
/**
|
|
582
|
+
* List of all supported commit type values.
|
|
583
|
+
*
|
|
584
|
+
* Useful for validation, selection prompts, and tooling.
|
|
585
|
+
*/
|
|
586
|
+
declare const COMMIT_TYPE_VALUES: CommitType[];
|
|
587
|
+
//#endregion
|
|
1
588
|
//#region src/charset.d.ts
|
|
2
589
|
/**
|
|
3
590
|
* Lowercase English alphabet.
|
|
@@ -278,4 +865,4 @@ declare const DEG_TO_RAD: number;
|
|
|
278
865
|
*/
|
|
279
866
|
declare const RAD_TO_DEG: number;
|
|
280
867
|
//#endregion
|
|
281
|
-
export { ALPHANUMERIC, CM_TO_MM, DAY, DEFAULT_RADIX, DEG_TO_RAD, DIGITS, E, EMPTY_STRING, EPSILON, GAS, GRAVITY, HOUR, HTTP_METHODS, HTTP_STATUS, KG_TO_G, KM_TO_M, LN_10, LN_2, LOG10_E, LOG2_E, LOWERCASE_ALPHABET, MAX_SAFE_INT, MAX_VALUE, MINUTE, MIN_SAFE_INT, MIN_VALUE, MONTH_AVG, M_TO_CM, NEGATIVE_INFINITY, NEW_LINE, PI, PLANCK, POSITIVE_INFINITY, RAD_TO_DEG, SECOND, SPACE, SPEED_OF_LIGHT, SQRT_1_2, SQRT_2, TAB, TAU, TON_TO_KG, UPPERCASE_ALPHABET, WEEK, YEAR };
|
|
868
|
+
export { ALPHANUMERIC, CM_TO_MM, COMMIT_SCOPES, COMMIT_SCOPE_VALUES, COMMIT_TYPES, COMMIT_TYPE_VALUES, CommitScope, CommitType, DAY, DEFAULT_RADIX, DEG_TO_RAD, DIGITS, E, EMPTY_STRING, EPSILON, GAS, GRAVITY, HOUR, HTTP_METHODS, HTTP_STATUS, KG_TO_G, KM_TO_M, LN_10, LN_2, LOG10_E, LOG2_E, LOWERCASE_ALPHABET, MAX_SAFE_INT, MAX_VALUE, MINUTE, MIN_SAFE_INT, MIN_VALUE, MONTH_AVG, M_TO_CM, NEGATIVE_INFINITY, NEW_LINE, PI, PLANCK, POSITIVE_INFINITY, RAD_TO_DEG, SECOND, SPACE, SPEED_OF_LIGHT, SQRT_1_2, SQRT_2, TAB, TAU, TON_TO_KG, UPPERCASE_ALPHABET, WEEK, YEAR };
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=`abcdefghijklmnopqrstuvwxyz`,t=`ABCDEFGHIJKLMNOPQRSTUVWXYZ`,n=`0123456789`,r=e+t+n,i=[`GET`,`POST`,`PUT`,`PATCH`,`DELETE`,`HEAD`,`OPTIONS`,`CONNECT`,`TRACE`],a={CONTINUE:100,SWITCHING_PROTOCOLS:101,PROCESSING:102,EARLY_HINTS:103,OK:200,CREATED:201,ACCEPTED:202,NON_AUTHORITATIVE_INFORMATION:203,NO_CONTENT:204,RESET_CONTENT:205,PARTIAL_CONTENT:206,MULTI_STATUS:207,ALREADY_REPORTED:208,IM_USED:226,MULTIPLE_CHOICES:300,MOVED_PERMANENTLY:301,FOUND:302,SEE_OTHER:303,NOT_MODIFIED:304,USE_PROXY:305,TEMPORARY_REDIRECT:307,PERMANENT_REDIRECT:308,BAD_REQUEST:400,UNAUTHORIZED:401,PAYMENT_REQUIRED:402,FORBIDDEN:403,NOT_FOUND:404,METHOD_NOT_ALLOWED:405,NOT_ACCEPTABLE:406,PROXY_AUTH_REQUIRED:407,REQUEST_TIMEOUT:408,CONFLICT:409,GONE:410,LENGTH_REQUIRED:411,PRECONDITION_FAILED:412,PAYLOAD_TOO_LARGE:413,URI_TOO_LONG:414,UNSUPPORTED_MEDIA_TYPE:415,RANGE_NOT_SATISFIABLE:416,EXPECTATION_FAILED:417,IM_A_TEAPOT:418,MISDIRECTED_REQUEST:421,UNPROCESSABLE_ENTITY:422,LOCKED:423,FAILED_DEPENDENCY:424,TOO_EARLY:425,UPGRADE_REQUIRED:426,PRECONDITION_REQUIRED:428,TOO_MANY_REQUESTS:429,REQUEST_HEADER_FIELDS_TOO_LARGE:431,UNAVAILABLE_FOR_LEGAL_REASONS:451,INTERNAL_SERVER_ERROR:500,NOT_IMPLEMENTED:501,BAD_GATEWAY:502,SERVICE_UNAVAILABLE:503,GATEWAY_TIMEOUT:504,HTTP_VERSION_NOT_SUPPORTED:505,VARIANT_ALSO_NEGOTIATES:506,INSUFFICIENT_STORAGE:507,LOOP_DETECTED:508,BANDWIDTH_LIMIT_EXCEEDED:509,NOT_EXTENDED:510,NETWORK_AUTHENTICATION_REQUIRED:511},o=Math.PI,s=Math.PI*2,c=Math.E,l=Math.SQRT2,u=Math.SQRT1_2,d=Math.LN2,f=Math.LN10,p=Math.LOG2E,m=Math.LOG10E,h=2**53-1,g=-(2**53-1),_=Number.MAX_VALUE,v=Number.MIN_VALUE,y=2**-52,b=1/0,x=-1/0,S=10,C=299792458,w=9.80665,T=662607015e-42,E=8.314462618,D=`
|
|
2
|
-
`,
|
|
1
|
+
const e={accessibility:`Accessibility improvements (a11y)`,ansible:`Ansible playbooks and automation`,api:`API implementation or contracts`,assets:`Static assets like images, fonts, media`,auth:`Authentication and authorization logic`,aws:`AWS-related configuration or services`,azure:`Azure-related configuration or services`,babel:`Babel configuration or transforms`,backend:`Backend services and server-side logic`,build:`Build system configuration`,"build-scripts":`Scripts related to building the project`,cache:`Caching mechanisms and logic`,cd:`Continuous deployment setup`,changelog:`Changelog generation and updates`,chore:`General maintenance tasks`,ci:`Continuous integration setup`,"ci-config":`CI configuration files`,"ci-tests":`Tests executed in CI pipelines`,cli:`Command-line interface`,client:`Client-side logic`,compliance:`Compliance, audits, or policy-related changes`,components:`Reusable components`,config:`Configuration files and settings`,contrib:`Community or contributor-related changes`,core:`Core application or library logic`,css:`CSS and styling changes`,db:`Database-related changes`,demo:`Demo or example implementations`,deploy:`Deployment configuration and scripts`,deps:`Production dependencies`,"deps-dev":`Development dependencies`,desktop:`Desktop application logic`,devops:`DevOps tooling and processes`,docker:`Dockerfiles and container configuration`,docs:`General documentation`,dotfiles:`Dotfiles and editor configuration`,e2e:`End-to-end tests`,eslint:`ESLint configuration and rules`,examples:`Example code and samples`,fixtures:`Test fixtures and sample data`,format:`Code formatting changes`,frontend:`Frontend application logic`,gcp:`Google Cloud Platform related changes`,helm:`Helm charts and Kubernetes packaging`,i18n:`Internationalization`,images:`Image assets`,infra:`Infrastructure configuration`,integration:`Integration-related logic`,jest:`Jest configuration or tests`,k8s:`Kubernetes resources`,l10n:`Localization and translations`,layout:`Layout-related UI changes`,lib:`Shared libraries`,lint:`Linting rules and fixes`,logging:`Logging-related changes`,metrics:`Metrics and monitoring data`,mobile:`Mobile application logic`,mocha:`Mocha configuration or tests`,mocks:`Mock data and utilities`,monorepo:`Monorepo configuration`,observability:`Observability tooling (logs, metrics, traces)`,ops:`Operational tooling and scripts`,orm:`ORM configuration or models`,packages:`Multiple or shared packages`,parcel:`Parcel bundler configuration`,perf:`Performance improvements`,permissions:`Permission and access control logic`,pkg:`Package-related changes`,prettier:`Prettier configuration`,profiling:`Profiling and performance analysis`,readme:`README documentation`,release:`Release preparation and metadata`,responsive:`Responsive design changes`,rollup:`Rollup bundler configuration`,scripts:`Automation and helper scripts`,sdk:`SDK implementation or changes`,security:`Security-related fixes or improvements`,server:`Server-side logic`,storage:`Storage systems and data persistence`,storybook:`Storybook configuration and stories`,styles:`Styling and theming`,terraform:`Terraform infrastructure code`,test:`General testing changes`,theme:`UI themes`,tsc:`TypeScript compiler configuration`,tutorials:`Tutorial content`,ui:`User interface changes`,unit:`Unit tests`,ux:`User experience improvements`,vite:`Vite tooling and configuration`,web:`Web-related functionality`,webpack:`Webpack configuration`,workspace:`Workspace or monorepo configuration`},t=Object.keys(e),n={feat:{type:`feat`,title:`Feature`,icon:`โจ`,description:`Introduce a new feature`,allowsBreakingChange:!0,defaultReleaseType:`minor`,isReleaseRelevant:!0,deprecated:!1},fix:{type:`fix`,title:`Bug Fix`,icon:`๐`,description:`Fix a bug`,allowsBreakingChange:!0,defaultReleaseType:`patch`,isReleaseRelevant:!0,deprecated:!1},docs:{type:`docs`,title:`Documentation`,icon:`๐`,description:`Documentation only changes`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},style:{type:`style`,title:`Style`,icon:`๐จ`,description:`Formatting or style changes that do not affect code behavior`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},refactor:{type:`refactor`,title:`Refactor`,icon:`๐งน`,description:`Code change that neither fixes a bug nor adds a feature`,allowsBreakingChange:!0,defaultReleaseType:`patch`,isReleaseRelevant:!0,deprecated:!1},perf:{type:`perf`,title:`Performance`,icon:`โก`,description:`Improve performance`,allowsBreakingChange:!0,defaultReleaseType:`patch`,isReleaseRelevant:!0,deprecated:!1},test:{type:`test`,title:`Tests`,icon:`๐งช`,description:`Add or update tests`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},build:{type:`build`,title:`Build`,icon:`๐๏ธ`,description:`Changes affecting build system or dependencies`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},ci:{type:`ci`,title:`CI`,icon:`๐ค`,description:`CI/CD related changes`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},chore:{type:`chore`,title:`Chore`,icon:`๐ง`,description:`Maintenance tasks`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},revert:{type:`revert`,title:`Revert`,icon:`โช`,description:`Revert a previous commit`,allowsBreakingChange:!1,defaultReleaseType:`patch`,isReleaseRelevant:!0,deprecated:!1},deps:{type:`deps`,title:`Dependencies`,icon:`๐ฆ`,description:`Update, add, or remove dependencies`,allowsBreakingChange:!1,defaultReleaseType:`patch`,isReleaseRelevant:!0,deprecated:!1},config:{type:`config`,title:`Configuration`,icon:`โ๏ธ`,description:`Configuration changes`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},security:{type:`security`,title:`Security`,icon:`๐`,description:`Security fixes or vulnerability mitigation`,allowsBreakingChange:!0,defaultReleaseType:`patch`,isReleaseRelevant:!0,deprecated:!1},types:{type:`types`,title:`Types`,icon:`๐`,description:`Type definitions or TypeScript-related changes`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},lint:{type:`lint`,title:`Lint`,icon:`๐งน`,description:`Linting rules or fixes`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},format:{type:`format`,title:`Format`,icon:`๐๏ธ`,description:`Code formatting changes (prettier, etc.)`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},release:{type:`release`,title:`Release`,icon:`๐ท๏ธ`,description:`Release-related changes (versioning, tags, changelog)`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},meta:{type:`meta`,title:`Meta`,icon:`๐งฉ`,description:`Repository metadata (README, templates, tooling)`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},infra:{type:`infra`,title:`Infrastructure`,icon:`๐ญ`,description:`Infrastructure or environment-related changes`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},hotfix:{type:`hotfix`,title:`Hotfix`,icon:`๐`,description:`Critical production fix applied quickly`,allowsBreakingChange:!0,defaultReleaseType:`patch`,isReleaseRelevant:!0,deprecated:!1},version:{type:`version`,title:`Version`,icon:`๐ข`,description:`Version bumps without code changes`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},workflow:{type:`workflow`,title:`Workflow`,icon:`๐`,description:`Workflow-related changes (GitHub Actions, hooks)`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},package:{type:`package`,title:`Package`,icon:`๐ฆ`,description:`Package-level changes in a monorepo`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},workspace:{type:`workspace`,title:`Workspace`,icon:`๐งฑ`,description:`Workspace or monorepo configuration changes`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},api:{type:`api`,title:`API`,icon:`๐`,description:`API surface or contract changes`,allowsBreakingChange:!0,defaultReleaseType:`major`,isReleaseRelevant:!0,deprecated:!1},"BREAKING CHANGE":{type:`BREAKING CHANGE`,title:`Breaking Change`,icon:`๐ฅ`,description:`An explicit breaking change as defined by the Conventional Commits specification`,allowsBreakingChange:!0,defaultReleaseType:`major`,isReleaseRelevant:!0,deprecated:!1},db:{type:`db`,title:`Database`,icon:`๐๏ธ`,description:`Database schema, migrations, or queries`,allowsBreakingChange:!0,defaultReleaseType:`major`,isReleaseRelevant:!0,deprecated:!1},data:{type:`data`,title:`Data`,icon:`๐`,description:`Data fixes, seeds, or transformations`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},ui:{type:`ui`,title:`UI`,icon:`๐จ`,description:`UI-related changes`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},ux:{type:`ux`,title:`UX`,icon:`๐ง `,description:`User experience improvements`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},accessibility:{type:`accessibility`,title:`Accessibility`,icon:`โฟ`,description:`Accessibility improvements (a11y)`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},backend:{type:`backend`,title:`Backend`,icon:`๐ฅ๏ธ`,description:`Backend logic changes`,allowsBreakingChange:!0,defaultReleaseType:`patch`,isReleaseRelevant:!0,deprecated:!1},frontend:{type:`frontend`,title:`Frontend`,icon:`๐`,description:`Frontend logic changes`,allowsBreakingChange:!1,defaultReleaseType:`patch`,isReleaseRelevant:!0,deprecated:!1},logging:{type:`logging`,title:`Logging`,icon:`๐`,description:`Logging changes or improvements`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},monitoring:{type:`monitoring`,title:`Monitoring`,icon:`๐ก`,description:`Monitoring, metrics, or tracing`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},stability:{type:`stability`,title:`Stability`,icon:`๐ก๏ธ`,description:`Stability and reliability improvements`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},optimization:{type:`optimization`,title:`Optimization`,icon:`๐`,description:`Code or runtime optimizations`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},dx:{type:`dx`,title:`Developer Experience`,icon:`๐งโ๐ป`,description:`Developer experience improvements`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},tooling:{type:`tooling`,title:`Tooling`,icon:`๐ ๏ธ`,description:`Developer tools or internal utilities`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},scripts:{type:`scripts`,title:`Scripts`,icon:`๐`,description:`Automation or helper script changes`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},cleanup:{type:`cleanup`,title:`Cleanup`,icon:`๐งฝ`,description:`Code cleanup without behavior changes`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1},migration:{type:`migration`,title:`Migration`,icon:`๐`,description:`Migration-related changes`,allowsBreakingChange:!0,defaultReleaseType:`major`,isReleaseRelevant:!0,deprecated:!1},rollback:{type:`rollback`,title:`Rollback`,icon:`โฉ๏ธ`,description:`Rollback changes after a bad release`,allowsBreakingChange:!1,defaultReleaseType:`none`,isReleaseRelevant:!1,deprecated:!1}},r=Object.keys(n),i=`abcdefghijklmnopqrstuvwxyz`,a=`ABCDEFGHIJKLMNOPQRSTUVWXYZ`,o=`0123456789`,s=i+a+o,c=[`GET`,`POST`,`PUT`,`PATCH`,`DELETE`,`HEAD`,`OPTIONS`,`CONNECT`,`TRACE`],l={CONTINUE:100,SWITCHING_PROTOCOLS:101,PROCESSING:102,EARLY_HINTS:103,OK:200,CREATED:201,ACCEPTED:202,NON_AUTHORITATIVE_INFORMATION:203,NO_CONTENT:204,RESET_CONTENT:205,PARTIAL_CONTENT:206,MULTI_STATUS:207,ALREADY_REPORTED:208,IM_USED:226,MULTIPLE_CHOICES:300,MOVED_PERMANENTLY:301,FOUND:302,SEE_OTHER:303,NOT_MODIFIED:304,USE_PROXY:305,TEMPORARY_REDIRECT:307,PERMANENT_REDIRECT:308,BAD_REQUEST:400,UNAUTHORIZED:401,PAYMENT_REQUIRED:402,FORBIDDEN:403,NOT_FOUND:404,METHOD_NOT_ALLOWED:405,NOT_ACCEPTABLE:406,PROXY_AUTH_REQUIRED:407,REQUEST_TIMEOUT:408,CONFLICT:409,GONE:410,LENGTH_REQUIRED:411,PRECONDITION_FAILED:412,PAYLOAD_TOO_LARGE:413,URI_TOO_LONG:414,UNSUPPORTED_MEDIA_TYPE:415,RANGE_NOT_SATISFIABLE:416,EXPECTATION_FAILED:417,IM_A_TEAPOT:418,MISDIRECTED_REQUEST:421,UNPROCESSABLE_ENTITY:422,LOCKED:423,FAILED_DEPENDENCY:424,TOO_EARLY:425,UPGRADE_REQUIRED:426,PRECONDITION_REQUIRED:428,TOO_MANY_REQUESTS:429,REQUEST_HEADER_FIELDS_TOO_LARGE:431,UNAVAILABLE_FOR_LEGAL_REASONS:451,INTERNAL_SERVER_ERROR:500,NOT_IMPLEMENTED:501,BAD_GATEWAY:502,SERVICE_UNAVAILABLE:503,GATEWAY_TIMEOUT:504,HTTP_VERSION_NOT_SUPPORTED:505,VARIANT_ALSO_NEGOTIATES:506,INSUFFICIENT_STORAGE:507,LOOP_DETECTED:508,BANDWIDTH_LIMIT_EXCEEDED:509,NOT_EXTENDED:510,NETWORK_AUTHENTICATION_REQUIRED:511},u=Math.PI,d=Math.PI*2,f=Math.E,p=Math.SQRT2,m=Math.SQRT1_2,h=Math.LN2,g=Math.LN10,_=Math.LOG2E,v=Math.LOG10E,y=2**53-1,b=-(2**53-1),x=Number.MAX_VALUE,S=Number.MIN_VALUE,C=2**-52,w=1/0,T=-1/0,E=10,D=299792458,O=9.80665,k=662607015e-42,A=8.314462618,j=`
|
|
2
|
+
`,M=` `,N=` `,P=``,F=1e3,I=60*F,L=60*I,R=24*L,z=7*R,B=30.4375*R,V=365.25*R,H=1e3,U=100,W=10,G=1e3,K=1e3,q=u/180,J=180/u;export{s as ALPHANUMERIC,W as CM_TO_MM,e as COMMIT_SCOPES,t as COMMIT_SCOPE_VALUES,n as COMMIT_TYPES,r as COMMIT_TYPE_VALUES,R as DAY,E as DEFAULT_RADIX,q as DEG_TO_RAD,o as DIGITS,f as E,P as EMPTY_STRING,C as EPSILON,A as GAS,O as GRAVITY,L as HOUR,c as HTTP_METHODS,l as HTTP_STATUS,G as KG_TO_G,H as KM_TO_M,g as LN_10,h as LN_2,v as LOG10_E,_ as LOG2_E,i as LOWERCASE_ALPHABET,y as MAX_SAFE_INT,x as MAX_VALUE,I as MINUTE,b as MIN_SAFE_INT,S as MIN_VALUE,B as MONTH_AVG,U as M_TO_CM,T as NEGATIVE_INFINITY,j as NEW_LINE,u as PI,k as PLANCK,w as POSITIVE_INFINITY,J as RAD_TO_DEG,F as SECOND,N as SPACE,D as SPEED_OF_LIGHT,m as SQRT_1_2,p as SQRT_2,M as TAB,d as TAU,K as TON_TO_KG,a as UPPERCASE_ALPHABET,z as WEEK,V as YEAR};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@js-utils-kit/constants",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Commonly used constants utilities",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "MIT",
|
|
@@ -34,7 +34,9 @@
|
|
|
34
34
|
"import": "./dist/index.mjs"
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
|
-
"dependencies": {
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"@js-utils-kit/types": "1.3.0"
|
|
39
|
+
},
|
|
38
40
|
"scripts": {
|
|
39
41
|
"build": "tsdown"
|
|
40
42
|
}
|