@soybeanjs/changelog 0.3.25 → 0.4.0-beta.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/dist/index.d.cts DELETED
@@ -1,139 +0,0 @@
1
- /** The commit author */
2
- interface GitCommitAuthor {
3
- /** The author name */
4
- name: string;
5
- /** The author email */
6
- email: string;
7
- }
8
- /** The raw git commit */
9
- interface RawGitCommit {
10
- /** The commit message */
11
- message: string;
12
- /** The commit body */
13
- body: string;
14
- /** The commit hash */
15
- shortHash: string;
16
- /** The commit author */
17
- author: GitCommitAuthor;
18
- }
19
- /** The reference of the commit */
20
- interface Reference {
21
- /** The reference type */
22
- type: 'hash' | 'issue' | 'pull-request';
23
- /** The reference value */
24
- value: string;
25
- }
26
- /** The resolved github author */
27
- interface ResolvedAuthor extends GitCommitAuthor {
28
- /** The git commit of the author */
29
- commits: string[];
30
- /** The github logged username of the author */
31
- login: string;
32
- }
33
- /** Git commit config */
34
- interface GitCommit extends RawGitCommit {
35
- /** The commit description */
36
- description: string;
37
- /** The commit scope type */
38
- type: string;
39
- /** The commit scope */
40
- scope: string;
41
- /** The commit references */
42
- references: Reference[];
43
- /** The commit authors */
44
- authors: GitCommitAuthor[];
45
- /** The resolved authors */
46
- resolvedAuthors: ResolvedAuthor[];
47
- /** The commit breaking changes */
48
- isBreaking: boolean;
49
- }
50
- /** Github config */
51
- interface GithubConfig {
52
- /**
53
- * The github repository name
54
- *
55
- * @example
56
- * soybeanjs / changelog;
57
- */
58
- repo: string;
59
- /** The github token */
60
- token: string;
61
- }
62
- interface ChangelogOption {
63
- /**
64
- * The directory of the project
65
- *
66
- * @default process.cwd()
67
- */
68
- cwd: string;
69
- /** The commit scope types */
70
- types: Record<string, string>;
71
- /** Github config */
72
- github: GithubConfig;
73
- /** The commit hash or tag */
74
- from: string;
75
- /** The commit hash or tag */
76
- to: string;
77
- /** The whole commit tags */
78
- tags: string[];
79
- /** The commit tag and date map */
80
- tagDateMap: Map<string, string>;
81
- /** Whether to capitalize the first letter of the commit type */
82
- capitalize: boolean;
83
- /**
84
- * Use emojis in section titles
85
- *
86
- * @default true
87
- */
88
- emoji: boolean;
89
- /** The section titles */
90
- titles: {
91
- /** The title of breaking changes section */
92
- breakingChanges: string;
93
- };
94
- /** The output file path of the changelog */
95
- output: string;
96
- /**
97
- * Whether to regenerate the changelog if it already exists
98
- *
99
- * @example
100
- * the changelog already exists the content of v0.0.1, but you want to regenerate it
101
- */
102
- regenerate: boolean;
103
- /** Mark the release as prerelease */
104
- prerelease?: boolean;
105
- }
106
-
107
- /**
108
- * Get the changelog markdown by two git tags
109
- *
110
- * @param options The changelog options
111
- * @param showTitle Whither show the title
112
- */
113
- declare function getChangelogMarkdown(options?: Partial<ChangelogOption>, showTitle?: boolean): Promise<{
114
- markdown: string;
115
- commits: GitCommit[];
116
- options: ChangelogOption;
117
- }>;
118
- /**
119
- * Get the changelog markdown by the total git tags
120
- *
121
- * @param options The changelog options
122
- * @param showProgress Whither show the progress bar
123
- */
124
- declare function getTotalChangelogMarkdown(options?: Partial<ChangelogOption>, showProgress?: boolean): Promise<string>;
125
- /**
126
- * Generate the changelog markdown by two git tags
127
- *
128
- * @param options The changelog options
129
- */
130
- declare function generateChangelog(options?: Partial<ChangelogOption>): Promise<void>;
131
- /**
132
- * Generate the changelog markdown by the total git tags
133
- *
134
- * @param options The changelog options
135
- * @param showProgress Whither show the progress bar
136
- */
137
- declare function generateTotalChangelog(options?: Partial<ChangelogOption>, showProgress?: boolean): Promise<void>;
138
-
139
- export { type ChangelogOption, generateChangelog, generateTotalChangelog, getChangelogMarkdown, getTotalChangelogMarkdown };