@jeromefitz/conventional-gitmoji 4.0.8 → 4.0.10

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/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
- export { ICommit } from './types/commit.types.js';
2
- import { IReleaseRule, IReleaseRuleProps } from './types/releaseRule.types.js';
1
+ import { ICommit } from './types/commit.types.js';
2
+ import { IReleaseRuleProps } from './types/releaseRule.types.js';
3
+ export { IReleaseRule } from './types/releaseRule.types.js';
3
4
 
4
5
  declare const parserOpts: {
5
6
  headerCorrespondence: string[];
@@ -17,7 +18,7 @@ declare const writerOpts: {
17
18
  notesSort: string[];
18
19
  transform: (commit: any, context: any) => any;
19
20
  };
20
- declare const types: IReleaseRule;
21
+ declare const types: Partial<Record<ICommit, IReleaseRuleProps>>;
21
22
  declare const releaseRules: {
22
23
  message?: null | string;
23
24
  release?: null | string;
@@ -80,4 +81,4 @@ declare const _default: () => {
80
81
  };
81
82
  };
82
83
 
83
- export { IReleaseRule, IReleaseRuleProps, _default as default, parserOpts, releaseRules, typeSpecs, types, writerOpts };
84
+ export { ICommit, IReleaseRuleProps, _default as default, parserOpts, releaseRules, typeSpecs, types, writerOpts };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jeromefitz/conventional-gitmoji",
3
- "version": "4.0.8",
3
+ "version": "4.0.10",
4
4
  "type": "module",
5
5
  "description": "Helper package for dual gitmoji / conventional commits",
6
6
  "repository": "jeromefitz/packages.git",
@@ -41,7 +41,7 @@
41
41
  "title": "3.5.3"
42
42
  },
43
43
  "devDependencies": {
44
- "@types/lodash": "4.17.10",
44
+ "@types/lodash": "4.17.13",
45
45
  "@types/title": "3.4.3",
46
46
  "gitmojis": "3.14.0",
47
47
  "lodash": "4.17.21"
@@ -12,8 +12,6 @@ type IReleaseRuleProps = {
12
12
  type?: ICommit;
13
13
  value?: ICommit;
14
14
  };
15
- type IReleaseRule = {
16
- [key in ICommit]?: IReleaseRuleProps;
17
- };
15
+ type IReleaseRule = Partial<Record<ICommit, IReleaseRuleProps>>;
18
16
 
19
17
  export type { IReleaseRule, IReleaseRuleProps };