conventional-changelog 6.0.0 → 7.0.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/README.md +236 -35
- package/dist/ConventionalChangelog.d.ts +120 -0
- package/dist/ConventionalChangelog.d.ts.map +1 -0
- package/dist/ConventionalChangelog.js +429 -0
- package/dist/cli/cli.d.ts +82 -0
- package/dist/cli/cli.d.ts.map +1 -0
- package/dist/cli/cli.js +161 -0
- package/dist/cli/index.d.ts +3 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +36 -0
- package/dist/cli/options.d.ts +6 -0
- package/dist/cli/options.d.ts.map +1 -0
- package/dist/cli/options.js +47 -0
- package/dist/cli/utils.d.ts +3 -0
- package/dist/cli/utils.d.ts.map +1 -0
- package/dist/cli/utils.js +25 -0
- package/dist/hostedGitInfo.d.ts +3 -0
- package/dist/hostedGitInfo.d.ts.map +1 -0
- package/dist/hostedGitInfo.js +118 -0
- package/dist/hostedGitInfo.mock.d.ts +2496 -0
- package/dist/hostedGitInfo.mock.d.ts.map +1 -0
- package/dist/hostedGitInfo.mock.js +4161 -0
- package/dist/hosts/bitbucket.d.ts +7 -0
- package/dist/hosts/bitbucket.d.ts.map +1 -0
- package/dist/hosts/bitbucket.js +20 -0
- package/dist/hosts/github.d.ts +7 -0
- package/dist/hosts/github.d.ts.map +1 -0
- package/dist/hosts/github.js +17 -0
- package/dist/hosts/gitlab.d.ts +7 -0
- package/dist/hosts/gitlab.d.ts.map +1 -0
- package/dist/hosts/gitlab.js +16 -0
- package/dist/hosts/index.d.ts +3 -0
- package/dist/hosts/index.d.ts.map +1 -0
- package/dist/hosts/index.js +9 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -0
- package/dist/types.d.ts +82 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +2 -0
- package/dist/utils.d.ts +10 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +59 -0
- package/package.json +23 -15
- package/index.js +0 -22
package/README.md
CHANGED
|
@@ -1,66 +1,267 @@
|
|
|
1
|
-
#
|
|
1
|
+
# conventional-changelog
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[![ESM-only package][package]][package-url]
|
|
4
|
+
[![NPM version][npm]][npm-url]
|
|
5
|
+
[![Node version][node]][node-url]
|
|
6
|
+
[![Dependencies status][deps]][deps-url]
|
|
7
|
+
[![Install size][size]][size-url]
|
|
8
|
+
[![Build status][build]][build-url]
|
|
9
|
+
[![Coverage status][coverage]][coverage-url]
|
|
4
10
|
|
|
11
|
+
[package]: https://img.shields.io/badge/package-ESM--only-ffe536.svg
|
|
12
|
+
[package-url]: https://nodejs.org/api/esm.html
|
|
13
|
+
|
|
14
|
+
[npm]: https://img.shields.io/npm/v/conventional-changelog.svg
|
|
15
|
+
[npm-url]: https://npmjs.com/package/conventional-changelog
|
|
16
|
+
|
|
17
|
+
[node]: https://img.shields.io/node/v/conventional-changelog.svg
|
|
18
|
+
[node-url]: https://nodejs.org
|
|
19
|
+
|
|
20
|
+
[deps]: https://img.shields.io/librariesio/release/npm/conventional-changelog
|
|
21
|
+
[deps-url]: https://libraries.io/npm/conventional-changelog/tree
|
|
22
|
+
|
|
23
|
+
[size]: https://packagephobia.com/badge?p=conventional-changelog
|
|
24
|
+
[size-url]: https://packagephobia.com/result?p=conventional-changelog
|
|
25
|
+
|
|
26
|
+
[build]: https://img.shields.io/github/actions/workflow/status/conventional-changelog/conventional-changelog/tests.yaml?branch=master
|
|
27
|
+
[build-url]: https://github.com/conventional-changelog/conventional-changelog/actions
|
|
28
|
+
|
|
29
|
+
[coverage]: https://coveralls.io/repos/github/conventional-changelog/conventional-changelog/badge.svg?branch=master
|
|
30
|
+
[coverage-url]: https://coveralls.io/github/conventional-changelog/conventional-changelog?branch=master
|
|
31
|
+
|
|
32
|
+
Generate a changelog from git metadata.
|
|
33
|
+
|
|
34
|
+
*[Changelog?](https://speakerdeck.com/stevemao/compose-a-changelog)*
|
|
35
|
+
|
|
36
|
+
> [!NOTE]
|
|
37
|
+
> You don't have to use the angular commit convention. For the best result of the tool to tokenize your commit and produce flexible output, it's recommended to use a commit convention.
|
|
38
|
+
|
|
39
|
+
<hr />
|
|
40
|
+
<a href="#install">Install</a>
|
|
41
|
+
<span> • </span>
|
|
42
|
+
<a href="#usage">Usage</a>
|
|
43
|
+
<span> • </span>
|
|
44
|
+
<a href="#recommended-workflow">Recommended workflow</a>
|
|
45
|
+
<span> • </span>
|
|
46
|
+
<a href="#why">Why</a>
|
|
47
|
+
<span> • </span>
|
|
48
|
+
<a href="#presets">Presets</a>
|
|
49
|
+
<span> • </span>
|
|
50
|
+
<a href="#js-api">JS API</a>
|
|
51
|
+
<br />
|
|
52
|
+
<hr />
|
|
53
|
+
|
|
54
|
+
## Install
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
# pnpm
|
|
58
|
+
pnpm add conventional-changelog
|
|
59
|
+
# yarn
|
|
60
|
+
yarn add conventional-changelog
|
|
61
|
+
# npm
|
|
62
|
+
npm i conventional-changelog
|
|
63
|
+
```
|
|
5
64
|
|
|
6
65
|
## Usage
|
|
7
66
|
|
|
8
|
-
|
|
67
|
+
```sh
|
|
68
|
+
conventional-changelog -p angular
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
This will *not* overwrite any previous changelogs. The above generates a changelog based on commits since the last semver tag that matches the pattern of "Feature", "Fix", "Performance Improvement" or "Breaking Changes".
|
|
72
|
+
|
|
73
|
+
If this is your first time using this tool and you want to generate all previous changelogs, you could do
|
|
9
74
|
|
|
10
75
|
```sh
|
|
11
|
-
|
|
76
|
+
conventional-changelog -p angular -r 0
|
|
12
77
|
```
|
|
13
78
|
|
|
14
|
-
|
|
15
|
-
|
|
79
|
+
This *will* overwrite any previous changelogs if they exist.
|
|
80
|
+
|
|
81
|
+
All available command line parameters can be listed using CLI: `conventional-changelog --help`.
|
|
82
|
+
|
|
83
|
+
> [!TIP]
|
|
84
|
+
> You can alias your command or add it to your package.json. EG: `"changelog": "conventional-changelog -p angular -r 0"`.
|
|
85
|
+
|
|
86
|
+
## Recommended workflow
|
|
87
|
+
|
|
88
|
+
1. Make changes
|
|
89
|
+
2. Commit those changes
|
|
90
|
+
3. Make sure Travis turns green
|
|
91
|
+
4. Bump version in `package.json`
|
|
92
|
+
5. `conventional-changelog`
|
|
93
|
+
6. Commit `package.json` and `CHANGELOG.md` files
|
|
94
|
+
7. Tag
|
|
95
|
+
8. Push
|
|
16
96
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
97
|
+
The reason why you should commit and tag after `conventional-changelog` is that the CHANGELOG should be included in the new release, hence `commits.from` defaults to the latest semver tag.
|
|
98
|
+
|
|
99
|
+
### With `npm version`
|
|
100
|
+
|
|
101
|
+
Using the npm scripts to our advantage with the following hooks:
|
|
102
|
+
|
|
103
|
+
```json
|
|
104
|
+
{
|
|
105
|
+
"scripts": {
|
|
106
|
+
"version": "conventional-changelog -p angular && git add CHANGELOG.md"
|
|
107
|
+
}
|
|
108
|
+
}
|
|
21
109
|
```
|
|
22
110
|
|
|
23
|
-
|
|
111
|
+
You could follow the following workflow
|
|
112
|
+
|
|
113
|
+
1. Make changes
|
|
114
|
+
2. Commit those changes
|
|
115
|
+
3. Pull all the tags
|
|
116
|
+
4. Run the [`npm version [patch|minor|major]`](https://docs.npmjs.com/cli/version) command
|
|
117
|
+
5. Push
|
|
118
|
+
|
|
119
|
+
You could optionally add a `preversion` script to package your project or running a full suit of test.
|
|
120
|
+
And a `postversion` script to clean your system and push your release and tags.
|
|
121
|
+
|
|
122
|
+
By adding a `.npmrc` you could also automate your commit message and set your tag prefix as such:
|
|
123
|
+
|
|
124
|
+
```
|
|
125
|
+
tag-version-prefix=""
|
|
126
|
+
message="chore(release): %s :tada:"
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
## Why
|
|
130
|
+
|
|
131
|
+
- Easy fully automate changelog generation. You could still add more points on top of it.
|
|
132
|
+
- Ignoring reverted commits, templating with [handlebars.js](https://github.com/handlebars-lang/handlebars.js) and links to references, etc.
|
|
133
|
+
- Intelligently setup defaults but yet fully configurable with presets of [popular projects](#presets).
|
|
134
|
+
- Everything internally or externally is pluggable.
|
|
135
|
+
- A lot of tests and actively maintained.
|
|
136
|
+
|
|
137
|
+
## Presets
|
|
138
|
+
|
|
139
|
+
- [angular](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-angular)
|
|
140
|
+
- [atom](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-atom)
|
|
141
|
+
- [codemirror](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-codemirror)
|
|
142
|
+
- [conventionalcommits](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-conventionalcommits)
|
|
143
|
+
- [ember](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-ember)
|
|
144
|
+
- [eslint](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-eslint)
|
|
145
|
+
- [express](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-express)
|
|
146
|
+
- [jquery](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-jquery)
|
|
147
|
+
- [jshint](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-jshint)
|
|
148
|
+
|
|
149
|
+
## JS API
|
|
24
150
|
|
|
25
151
|
```js
|
|
26
|
-
import
|
|
27
|
-
|
|
152
|
+
import { ConventionalChangelog } from 'conventional-changelog'
|
|
153
|
+
|
|
154
|
+
const generator = new ConventionalChangelog()
|
|
155
|
+
.readPackage()
|
|
156
|
+
.loadPreset('angular')
|
|
157
|
+
|
|
158
|
+
generator
|
|
159
|
+
.writeStream()
|
|
160
|
+
.pipe(process.stdout)
|
|
161
|
+
|
|
162
|
+
// or
|
|
28
163
|
|
|
29
|
-
|
|
30
|
-
.
|
|
164
|
+
for await (const chunk of generator.write()) {
|
|
165
|
+
console.log(chunk)
|
|
166
|
+
}
|
|
31
167
|
```
|
|
32
168
|
|
|
33
|
-
|
|
169
|
+
### `new ConventionalChangelog(cwdOrGitClient: string | ConventionalGitClient = process.cwd())`
|
|
170
|
+
|
|
171
|
+
Create a new instance of conventional-changelog generator. `cwdOrGitClient` is the current working directory or a `ConventionalGitClient` instance.
|
|
172
|
+
|
|
173
|
+
#### `generator.loadPreset(preset: PresetParams): this`
|
|
174
|
+
|
|
175
|
+
Load and set necessary params from a preset.
|
|
176
|
+
|
|
177
|
+
#### `generator.config(config: Preset | Promise<Preset>): this`
|
|
178
|
+
|
|
179
|
+
Set the config directly.
|
|
180
|
+
|
|
181
|
+
#### `generator.readPackage(transform?: PackageTransform): this`
|
|
182
|
+
|
|
183
|
+
Find `package.json` up the directory tree and read it. Optionally transform the package data.
|
|
184
|
+
|
|
185
|
+
#### `generator.readPackage(path: string, transform?: PackageTransform): this`
|
|
186
|
+
|
|
187
|
+
Read a `package.json` file from a specific path. Optionally transform the package data.
|
|
188
|
+
|
|
189
|
+
#### `generator.package(pkg: Record<string, unknown>): this`
|
|
190
|
+
|
|
191
|
+
Set the package data directly.
|
|
192
|
+
|
|
193
|
+
#### `generator.readRepository(): this`
|
|
34
194
|
|
|
35
|
-
|
|
195
|
+
Read and parse the repository URL from current git repository.
|
|
36
196
|
|
|
37
|
-
|
|
197
|
+
#### `generator.repository(infoOrGitUrl: string | Partial<HostedGitInfo>): this`
|
|
38
198
|
|
|
39
|
-
|
|
199
|
+
Set the repository info directly.
|
|
40
200
|
|
|
41
|
-
|
|
201
|
+
#### `generator.options(options: Options): this`
|
|
42
202
|
|
|
43
|
-
|
|
203
|
+
Set conventional-changelog options.
|
|
44
204
|
|
|
45
|
-
|
|
205
|
+
| Name | Type | Default | Description |
|
|
206
|
+
| --- | --- | --- | --- |
|
|
207
|
+
| reset | `boolean` | `false` | Whether to reset the changelog or not. |
|
|
208
|
+
| append | `boolean` | `false` | Should the log be appended to existing data. |
|
|
209
|
+
| releaseCount | `number` | 1 | How many releases of changelog you want to generate. It counts from the upcoming release. Useful when you forgot to generate any previous changelog. Set to `0` to regenerate all. |
|
|
210
|
+
| outputUnreleased | `boolean` | `true` if a different version than last release is given. Otherwise `false` | If this value is `true` and `context.version` equals last release then `context.version` will be changed to `'Unreleased'`. |
|
|
211
|
+
| transformCommit | `(commit: Commit, params: Params) => Partial<Commit> \| Promise<Partial<Commit> \| null> \| null` | | A transform function that applies after the parser and before the writer. |
|
|
212
|
+
| warn | `function` | | Logger for warnings |
|
|
213
|
+
| debug | `function` | | Logger for debug messages |
|
|
214
|
+
| fromatDate | `(date: Date) => string` | | Custom date formatter function. |
|
|
46
215
|
|
|
47
|
-
|
|
216
|
+
#### `generator.context(context: Context): this`
|
|
48
217
|
|
|
49
|
-
|
|
218
|
+
Set the [writer context](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-writer#context).
|
|
50
219
|
|
|
51
|
-
|
|
220
|
+
#### `generator.tags(params: GetSemverTagsParams): this`
|
|
52
221
|
|
|
53
|
-
|
|
222
|
+
Set params to get semver tags.
|
|
223
|
+
|
|
224
|
+
| Name | Type | Default | Description |
|
|
225
|
+
| --- | --- | --- | --- |
|
|
226
|
+
| prefix | `string \| RegExp` | | Specify a prefix for the git tag that will be taken into account during the comparison. |
|
|
227
|
+
| skipUnstable | `boolean` | `false` | If set, unstable release tags will be skipped, e.g. x.x.x-rc. |
|
|
228
|
+
| clean | `boolean` | `false` | Clean version from prefix and trash. |
|
|
229
|
+
|
|
230
|
+
If you want to take package-prefixed tags, for example lerna-style tags, you should use `packagePrefix` utility function:
|
|
231
|
+
|
|
232
|
+
```js
|
|
233
|
+
import {
|
|
234
|
+
ConventionalChangelog,
|
|
235
|
+
packagePrefix
|
|
236
|
+
} from 'conventional-changelog'
|
|
237
|
+
|
|
238
|
+
const generator = new ConventionalChangelog()
|
|
239
|
+
.readPackage()
|
|
240
|
+
.loadPreset('angular')
|
|
241
|
+
.tags({
|
|
242
|
+
prefix: packagePrefix('foo-package')
|
|
243
|
+
})
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
#### `generator.commits(params: GetCommitsParams, parserOptions?: ParserStreamOptions): this`
|
|
247
|
+
|
|
248
|
+
Set params to get commits.
|
|
249
|
+
|
|
250
|
+
- [GetCommitsParams](https://github.com/conventional-changelog/conventional-changelog/blob/master/packages/git-client/src/types.ts#L1-L41)
|
|
251
|
+
- [ParserStreamOptions](https://github.com/conventional-changelog/conventional-changelog/blob/master/packages/conventional-commits-parser/src/types.ts#L1-L68)
|
|
252
|
+
|
|
253
|
+
#### `generator.writer(params: WriterOptions): this`
|
|
254
|
+
|
|
255
|
+
Set [writer options](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-writer#options).
|
|
256
|
+
|
|
257
|
+
#### `generator.write(includeDetails?: boolean): AsyncGenerator<string | Details<Commit>, void>`
|
|
258
|
+
|
|
259
|
+
Generate changelog.
|
|
260
|
+
|
|
261
|
+
#### `generator.writeStream(includeDetails?: boolean): Readable`
|
|
262
|
+
|
|
263
|
+
Generate changelog stream.
|
|
54
264
|
|
|
55
265
|
## License
|
|
56
266
|
|
|
57
267
|
MIT
|
|
58
|
-
|
|
59
|
-
[npm-image]: https://badge.fury.io/js/conventional-changelog.svg
|
|
60
|
-
[npm-url]: https://npmjs.org/package/conventional-changelog
|
|
61
|
-
[travis-image]: https://travis-ci.org/conventional-changelog/conventional-changelog.svg?branch=master
|
|
62
|
-
[travis-url]: https://travis-ci.org/conventional-changelog/conventional-changelog
|
|
63
|
-
[daviddm-image]: https://david-dm.org/conventional-changelog/conventional-changelog.svg?theme=shields.io
|
|
64
|
-
[daviddm-url]: https://david-dm.org/conventional-changelog/conventional-changelog
|
|
65
|
-
[coverage-image]: https://coveralls.io/repos/github/conventional-changelog/conventional-changelog/badge.svg?branch=master
|
|
66
|
-
[coverage-url]: https://coveralls.io/github/conventional-changelog/conventional-changelog?branch=master
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/// <reference types="node" resolution-mode="require"/>
|
|
2
|
+
import { Readable } from 'stream';
|
|
3
|
+
import type { ParserStreamOptions, Commit } from 'conventional-commits-parser';
|
|
4
|
+
import { type GetSemverTagsParams, type GetCommitsParams, ConventionalGitClient, packagePrefix } from '@conventional-changelog/git-client';
|
|
5
|
+
import { type Options as WriterOptions, type Context, type Details } from 'conventional-changelog-writer';
|
|
6
|
+
import { type UnknownPresetCreatorParams, type PresetParams } from 'conventional-changelog-preset-loader';
|
|
7
|
+
import type { HostedGitInfo, PackageTransform, Options, Preset } from './types.js';
|
|
8
|
+
export { packagePrefix };
|
|
9
|
+
/**
|
|
10
|
+
* Conventional changelog generator
|
|
11
|
+
*/
|
|
12
|
+
export declare class ConventionalChangelog {
|
|
13
|
+
private readonly gitClient;
|
|
14
|
+
private params;
|
|
15
|
+
constructor(cwdOrGitClient?: string | ConventionalGitClient);
|
|
16
|
+
private composeParams;
|
|
17
|
+
private finalizeContext;
|
|
18
|
+
private finalizeWriterOptions;
|
|
19
|
+
private getSemverTags;
|
|
20
|
+
private getCommits;
|
|
21
|
+
private transformCommits;
|
|
22
|
+
private getPackageJson;
|
|
23
|
+
/**
|
|
24
|
+
* Load configs from a preset
|
|
25
|
+
* @param preset
|
|
26
|
+
* @returns this
|
|
27
|
+
*/
|
|
28
|
+
loadPreset<PresetCreatorParams extends UnknownPresetCreatorParams = UnknownPresetCreatorParams>(preset: PresetParams<PresetCreatorParams>): this;
|
|
29
|
+
/**
|
|
30
|
+
* Set the config directly
|
|
31
|
+
* @param config - Config object
|
|
32
|
+
* @returns this
|
|
33
|
+
*/
|
|
34
|
+
config(config: Preset | Promise<Preset>): this;
|
|
35
|
+
/**
|
|
36
|
+
* Find package.json and read it
|
|
37
|
+
* @param transform - Optional transform function
|
|
38
|
+
* @returns this
|
|
39
|
+
*/
|
|
40
|
+
readPackage(transform?: PackageTransform): this;
|
|
41
|
+
/**
|
|
42
|
+
* Read package.json from a specified path
|
|
43
|
+
* @param path - Path to package.json
|
|
44
|
+
* @param transform - Optional transform function
|
|
45
|
+
* @returns this
|
|
46
|
+
*/
|
|
47
|
+
readPackage(path?: string, transform?: PackageTransform): this;
|
|
48
|
+
/**
|
|
49
|
+
* Set package.json data
|
|
50
|
+
* @param pkg - Package.json data
|
|
51
|
+
* @returns this
|
|
52
|
+
*/
|
|
53
|
+
package(pkg: Record<string, unknown>): this;
|
|
54
|
+
/**
|
|
55
|
+
* Read repository info from the current git repository
|
|
56
|
+
* @returns this
|
|
57
|
+
*/
|
|
58
|
+
readRepository(): this;
|
|
59
|
+
/**
|
|
60
|
+
* Set repository info
|
|
61
|
+
* @param infoOrGitUrl - Hosted git info or git url
|
|
62
|
+
* @returns this
|
|
63
|
+
*/
|
|
64
|
+
repository(infoOrGitUrl: string | Partial<HostedGitInfo>): this;
|
|
65
|
+
/**
|
|
66
|
+
* Set conventional-changelog options
|
|
67
|
+
* @param options - Generator options
|
|
68
|
+
* @returns this
|
|
69
|
+
*/
|
|
70
|
+
options(options: Options): this;
|
|
71
|
+
/**
|
|
72
|
+
* Set writer context data
|
|
73
|
+
* @param context - Writer context data
|
|
74
|
+
* @returns this
|
|
75
|
+
*/
|
|
76
|
+
context(context: Context): this;
|
|
77
|
+
/**
|
|
78
|
+
* Set params to get semver tags
|
|
79
|
+
* @param params - Params to get the last semver tag
|
|
80
|
+
* @returns this
|
|
81
|
+
*/
|
|
82
|
+
tags(params: GetSemverTagsParams): this;
|
|
83
|
+
/**
|
|
84
|
+
* Set params to get commits
|
|
85
|
+
* @param params - Params to get commits since last release
|
|
86
|
+
* @param parserOptions - Parser options
|
|
87
|
+
* @returns this
|
|
88
|
+
*/
|
|
89
|
+
commits(params: GetCommitsParams, parserOptions?: ParserStreamOptions): this;
|
|
90
|
+
/**
|
|
91
|
+
* Set writer options
|
|
92
|
+
* @param params - Writer options
|
|
93
|
+
* @returns this
|
|
94
|
+
*/
|
|
95
|
+
writer(params: WriterOptions): this;
|
|
96
|
+
/**
|
|
97
|
+
* Generate changelog
|
|
98
|
+
* @param includeDetails - Generate data objects instead of strings
|
|
99
|
+
* @returns Changelog generator
|
|
100
|
+
*/
|
|
101
|
+
write(includeDetails?: false): AsyncGenerator<string, void>;
|
|
102
|
+
/**
|
|
103
|
+
* Generate changelog data objects
|
|
104
|
+
* @param includeDetails - Generate data objects instead of strings
|
|
105
|
+
*/
|
|
106
|
+
write(includeDetails: true): AsyncGenerator<Details<Commit>, void>;
|
|
107
|
+
/**
|
|
108
|
+
* Generate changelog
|
|
109
|
+
* @param includeDetails - Generate data objects instead of strings
|
|
110
|
+
* @returns Changelog generator
|
|
111
|
+
*/
|
|
112
|
+
write(includeDetails?: boolean): AsyncGenerator<string | Details<Commit>, void>;
|
|
113
|
+
/**
|
|
114
|
+
* Generate changelog to stream
|
|
115
|
+
* @param includeDetails - Generate data objects instead of strings
|
|
116
|
+
* @returns Changelog stream
|
|
117
|
+
*/
|
|
118
|
+
writeStream(includeDetails?: boolean): Readable;
|
|
119
|
+
}
|
|
120
|
+
//# sourceMappingURL=ConventionalChangelog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConventionalChangelog.d.ts","sourceRoot":"","sources":["../src/ConventionalChangelog.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAA;AACjC,OAAO,KAAK,EACV,mBAAmB,EACnB,MAAM,EACP,MAAM,6BAA6B,CAAA;AACpC,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,qBAAqB,EACrB,aAAa,EACd,MAAM,oCAAoC,CAAA;AAC3C,OAAO,EACL,KAAK,OAAO,IAAI,aAAa,EAC7B,KAAK,OAAO,EACZ,KAAK,OAAO,EAIb,MAAM,+BAA+B,CAAA;AACtC,OAAO,EACL,KAAK,0BAA0B,EAC/B,KAAK,YAAY,EAElB,MAAM,sCAAsC,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