standard-changelog 2.0.26 → 3.0.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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Standard CHANGELOG
2
2
 
3
- [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url] [![Coverage Status][coveralls-image]][coveralls-url]
3
+ [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url] [![Coverage Status][coverage-image]][coverage-url]
4
4
 
5
5
  > An opinionated approach to CHANGELOG generation using angular commit conventions.
6
6
 
@@ -60,5 +60,5 @@ MIT
60
60
  [travis-url]: https://travis-ci.org/conventional-changelog/standard-changelog
61
61
  [daviddm-image]: https://david-dm.org/conventional-changelog/standard-changelog.svg?theme=shields.io
62
62
  [daviddm-url]: https://david-dm.org/conventional-changelog/standard-changelog
63
- [coveralls-image]: https://coveralls.io/repos/conventional-changelog/standard-changelog/badge.svg
64
- [coveralls-url]: https://coveralls.io/r/conventional-changelog/standard-changelog
63
+ [coverage-image]: https://coveralls.io/repos/github/conventional-changelog/conventional-changelog/badge.svg?branch=master
64
+ [coverage-url]: https://coveralls.io/github/conventional-changelog/conventional-changelog?branch=master
package/cli.js CHANGED
@@ -1,17 +1,16 @@
1
1
  #!/usr/bin/env node
2
2
  'use strict'
3
- var addStream = require('add-stream')
4
- var chalk = require('chalk')
5
- var standardChangelog = require('./')
6
- var fs = require('fs')
7
- var meow = require('meow')
8
- var tempfile = require('tempfile')
9
- var _ = require('lodash')
10
- var resolve = require('path').resolve
11
- var Readable = require('stream').Readable
12
- var rimraf = require('rimraf')
3
+ const addStream = require('add-stream')
4
+ const chalk = require('chalk')
5
+ const standardChangelog = require('./')
6
+ const fs = require('fs')
7
+ const meow = require('meow')
8
+ const tempfile = require('tempfile')
9
+ const resolve = require('path').resolve
10
+ const Readable = require('stream').Readable
11
+ const rimraf = require('rimraf')
13
12
 
14
- var cli = meow(`
13
+ const cli = meow(`
15
14
  Usage
16
15
  standard-changelog
17
16
 
@@ -83,14 +82,14 @@ var cli = meow(`
83
82
  }
84
83
  })
85
84
 
86
- var flags = cli.flags
87
- var infile = flags.infile
88
- var sameFile = flags.sameFile
89
- var outfile = sameFile ? (flags.outfile || infile) : flags.outfile
90
- var append = flags.append
91
- var releaseCount = flags.firstRelease ? 0 : flags.releaseCount
85
+ const flags = cli.flags
86
+ const infile = flags.infile
87
+ const sameFile = flags.sameFile
88
+ const outfile = sameFile ? (flags.outfile || infile) : flags.outfile
89
+ const append = flags.append
90
+ const releaseCount = flags.firstRelease ? 0 : flags.releaseCount
92
91
 
93
- var options = _.omitBy({
92
+ const options = {
94
93
  preset: flags.preset,
95
94
  pkg: {
96
95
  path: flags.pkg
@@ -98,13 +97,13 @@ var options = _.omitBy({
98
97
  append: append,
99
98
  releaseCount: releaseCount,
100
99
  lernaPackage: flags.lernaPackage
101
- }, _.isUndefined)
100
+ }
102
101
 
103
102
  if (flags.verbose) {
104
103
  options.warn = console.warn.bind(console)
105
104
  }
106
105
 
107
- var templateContext
106
+ let templateContext
108
107
 
109
108
  function outputError (err) {
110
109
  if (flags.verbose) {
@@ -123,14 +122,14 @@ try {
123
122
  outputError(err)
124
123
  }
125
124
 
126
- var changelogStream = standardChangelog(options, templateContext, flags.commitPath ? { path: flags.commitPath } : {})
125
+ const changelogStream = standardChangelog(options, templateContext, flags.commitPath ? { path: flags.commitPath } : {})
127
126
  .on('error', function (err) {
128
127
  outputError(err)
129
128
  })
130
129
 
131
130
  standardChangelog.createIfMissing(infile)
132
131
 
133
- var readStream = null
132
+ let readStream = null
134
133
  if (releaseCount !== 0) {
135
134
  readStream = fs.createReadStream(infile)
136
135
  .on('error', function (err) {
@@ -150,7 +149,7 @@ if (options.append) {
150
149
  standardChangelog.checkpoint('appended changes to %s', [outfile])
151
150
  })
152
151
  } else {
153
- var tmp = tempfile()
152
+ const tmp = tempfile()
154
153
 
155
154
  changelogStream
156
155
  .pipe(addStream(readStream))
package/index.js CHANGED
@@ -1,12 +1,12 @@
1
1
  'use strict'
2
2
 
3
- var conventionalChangelogCore = require('conventional-changelog-core')
4
- var angular = require('conventional-changelog-angular')
5
- var fs = require('fs')
6
- var accessSync = require('fs-access').sync
7
- var chalk = require('chalk')
8
- var figures = require('figures')
9
- var sprintf = require('sprintf-js').sprintf
3
+ const conventionalChangelogCore = require('conventional-changelog-core')
4
+ const angular = require('conventional-changelog-angular')
5
+ const fs = require('fs')
6
+ const accessSync = require('fs-access').sync
7
+ const chalk = require('chalk')
8
+ const figures = require('figures')
9
+ const sprintf = require('sprintf-js').sprintf
10
10
 
11
11
  function conventionalChangelog (options, context, gitRawCommitsOpts, parserOpts, writerOpts) {
12
12
  options = options || {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "standard-changelog",
3
- "version": "2.0.26",
3
+ "version": "3.0.0",
4
4
  "description": "Generate a changelog from git metadata with Angular commit convention",
5
5
  "bugs": {
6
6
  "url": "https://github.com/conventional-changelog/conventional-changelog/issues"
@@ -19,7 +19,7 @@
19
19
  ],
20
20
  "license": "MIT",
21
21
  "engines": {
22
- "node": ">=10"
22
+ "node": ">=14"
23
23
  },
24
24
  "files": [
25
25
  "index.js",
@@ -27,20 +27,18 @@
27
27
  ],
28
28
  "dependencies": {
29
29
  "add-stream": "^1.0.0",
30
- "chalk": "^4.0.0",
31
- "conventional-changelog-angular": "^5.0.11",
32
- "conventional-changelog-core": "^4.2.0",
33
- "figures": "^3.0.0",
34
- "fs-access": "^1.0.0",
35
- "lodash": "^4.17.15",
36
- "meow": "^7.0.0",
37
- "rimraf": "^3.0.0",
38
- "sprintf-js": "^1.1.1",
30
+ "chalk": "^4.1.2",
31
+ "conventional-changelog-angular": "^6.0.0",
32
+ "conventional-changelog-core": "^5.0.0",
33
+ "figures": "^3.2.0",
34
+ "fs-access": "^1.0.1",
35
+ "meow": "^8.1.2",
36
+ "rimraf": "^3.0.2",
37
+ "sprintf-js": "^1.1.2",
39
38
  "tempfile": "^3.0.0"
40
39
  },
40
+ "bin": "cli.js",
41
41
  "scripts": {
42
42
  "test-windows": "echo 'make work on windows'"
43
- },
44
- "bin": "cli.js",
45
- "gitHead": "be1246c68f5dc4e6f28996129951a75bbf1cf307"
46
- }
43
+ }
44
+ }
package/CHANGELOG.md DELETED
@@ -1,357 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- ## [2.0.26](https://github.com/conventional-changelog/conventional-changelog/compare/standard-changelog@2.0.25...standard-changelog@2.0.26) (2020-08-12)
7
-
8
- **Note:** Version bump only for package standard-changelog
9
-
10
-
11
-
12
-
13
-
14
- ## [2.0.25](https://github.com/conventional-changelog/conventional-changelog/compare/standard-changelog@2.0.24...standard-changelog@2.0.25) (2020-06-20)
15
-
16
- **Note:** Version bump only for package standard-changelog
17
-
18
-
19
-
20
-
21
-
22
- ## [2.0.24](https://github.com/conventional-changelog/conventional-changelog/compare/standard-changelog@2.0.23...standard-changelog@2.0.24) (2020-05-08)
23
-
24
- **Note:** Version bump only for package standard-changelog
25
-
26
-
27
-
28
-
29
-
30
- ## [2.0.23](https://github.com/conventional-changelog/conventional-changelog/compare/standard-changelog@2.0.19...standard-changelog@2.0.23) (2020-05-08)
31
-
32
-
33
- ### Bug Fixes
34
-
35
- * **deps:** update yargs-parser to move off a flagged-vulnerable version. ([#635](https://github.com/conventional-changelog/conventional-changelog/issues/635)) ([aafc0f0](https://github.com/conventional-changelog/conventional-changelog/commit/aafc0f00412c3e4b23b8418300e5a570a48fe24d))
36
-
37
-
38
-
39
-
40
-
41
- ## [2.0.19](https://github.com/conventional-changelog/conventional-changelog/compare/standard-changelog@2.0.18...standard-changelog@2.0.19) (2019-11-21)
42
-
43
- **Note:** Version bump only for package standard-changelog
44
-
45
-
46
-
47
-
48
-
49
- ## [2.0.18](https://github.com/conventional-changelog/conventional-changelog/compare/standard-changelog@2.0.17...standard-changelog@2.0.18) (2019-11-14)
50
-
51
-
52
- ### Bug Fixes
53
-
54
- * add types for cli flags ([#551](https://github.com/conventional-changelog/conventional-changelog/issues/551)) ([bf1d64a](https://github.com/conventional-changelog/conventional-changelog/commit/bf1d64aeaf8f262d4b2beec02d2aebb78df7343b))
55
-
56
-
57
-
58
-
59
-
60
- ## [2.0.17](https://github.com/conventional-changelog/conventional-changelog/compare/standard-changelog@2.0.16...standard-changelog@2.0.17) (2019-11-07)
61
-
62
- **Note:** Version bump only for package standard-changelog
63
-
64
-
65
-
66
-
67
-
68
- ## [2.0.16](https://github.com/conventional-changelog/conventional-changelog/compare/standard-changelog@2.0.15...standard-changelog@2.0.16) (2019-10-24)
69
-
70
-
71
- ### Bug Fixes
72
-
73
- * **deps:** update dependency rimraf to v3 ([#514](https://github.com/conventional-changelog/conventional-changelog/issues/514)) ([c7e1706](https://github.com/conventional-changelog/conventional-changelog/commit/c7e17062a7a38a194164c47d0e88fcbe3fb6490c))
74
- * **deps:** update lodash to fix security issues ([#535](https://github.com/conventional-changelog/conventional-changelog/issues/535)) ([ac43f51](https://github.com/conventional-changelog/conventional-changelog/commit/ac43f51de1f3b597c32f7f8442917a2d06199018))
75
-
76
-
77
-
78
-
79
-
80
- ## [2.0.14](https://github.com/conventional-changelog/conventional-changelog/compare/standard-changelog@2.0.13...standard-changelog@2.0.14) (2019-10-02)
81
-
82
-
83
- ### Bug Fixes
84
-
85
- * **deps:** update dependency tempfile to v3 ([#459](https://github.com/conventional-changelog/conventional-changelog/issues/459)) ([c0bac28](https://github.com/conventional-changelog/conventional-changelog/commit/c0bac28))
86
-
87
-
88
-
89
-
90
-
91
- ## [2.0.13](https://github.com/conventional-changelog/conventional-changelog/compare/standard-changelog@2.0.12...standard-changelog@2.0.13) (2019-07-29)
92
-
93
- **Note:** Version bump only for package standard-changelog
94
-
95
-
96
-
97
-
98
-
99
- ## [2.0.12](https://github.com/conventional-changelog/conventional-changelog/compare/standard-changelog@2.0.11...standard-changelog@2.0.12) (2019-05-18)
100
-
101
-
102
- ### Bug Fixes
103
-
104
- * **deps:** update dependency figures to v3 ([#453](https://github.com/conventional-changelog/conventional-changelog/issues/453)) ([099b5b5](https://github.com/conventional-changelog/conventional-changelog/commit/099b5b5))
105
-
106
-
107
-
108
-
109
-
110
- ## [2.0.11](https://github.com/conventional-changelog/conventional-changelog/compare/standard-changelog@2.0.10...standard-changelog@2.0.11) (2019-05-05)
111
-
112
- **Note:** Version bump only for package standard-changelog
113
-
114
-
115
-
116
-
117
-
118
- ## [2.0.10](https://github.com/conventional-changelog/conventional-changelog/compare/standard-changelog@2.0.9...standard-changelog@2.0.10) (2019-04-11)
119
-
120
- **Note:** Version bump only for package standard-changelog
121
-
122
-
123
-
124
-
125
-
126
- ## [2.0.9](https://github.com/conventional-changelog/conventional-changelog/compare/standard-changelog@2.0.8...standard-changelog@2.0.9) (2019-04-11)
127
-
128
- **Note:** Version bump only for package standard-changelog
129
-
130
-
131
-
132
-
133
-
134
- ## [2.0.8](https://github.com/conventional-changelog/conventional-changelog/compare/standard-changelog@2.0.7...standard-changelog@2.0.8) (2019-04-10)
135
-
136
- **Note:** Version bump only for package standard-changelog
137
-
138
-
139
-
140
-
141
-
142
- ## [2.0.7](https://github.com/conventional-changelog/conventional-changelog/compare/standard-changelog@2.0.6...standard-changelog@2.0.7) (2019-02-14)
143
-
144
- **Note:** Version bump only for package standard-changelog
145
-
146
-
147
-
148
-
149
-
150
- ## [2.0.6](https://github.com/conventional-changelog/conventional-changelog/compare/standard-changelog@2.0.5...standard-changelog@2.0.6) (2018-11-01)
151
-
152
- **Note:** Version bump only for package standard-changelog
153
-
154
-
155
-
156
-
157
-
158
- ## [2.0.5](https://github.com/conventional-changelog/conventional-changelog/compare/standard-changelog@2.0.4...standard-changelog@2.0.5) (2018-11-01)
159
-
160
- **Note:** Version bump only for package standard-changelog
161
-
162
-
163
-
164
-
165
-
166
- ## [2.0.4](https://github.com/conventional-changelog/conventional-changelog/compare/standard-changelog@2.0.3...standard-changelog@2.0.4) (2018-11-01)
167
-
168
- **Note:** Version bump only for package standard-changelog
169
-
170
-
171
-
172
-
173
-
174
- ## [2.0.3](https://github.com/conventional-changelog/conventional-changelog/compare/standard-changelog@2.0.2...standard-changelog@2.0.3) (2018-11-01)
175
-
176
- **Note:** Version bump only for package standard-changelog
177
-
178
-
179
-
180
-
181
-
182
- ## [2.0.2](https://github.com/conventional-changelog/conventional-changelog/compare/standard-changelog@2.0.1...standard-changelog@2.0.2) (2018-11-01)
183
-
184
-
185
- ### Bug Fixes
186
-
187
- * Upgrade to Lerna 3, fix Node.js v11 error ([#385](https://github.com/conventional-changelog/conventional-changelog/issues/385)) ([cdef282](https://github.com/conventional-changelog/conventional-changelog/commit/cdef282))
188
-
189
-
190
-
191
-
192
-
193
- <a name="2.0.1"></a>
194
- ## [2.0.1](https://github.com/conventional-changelog/conventional-changelog/compare/standard-changelog@2.0.0...standard-changelog@2.0.1) (2018-08-21)
195
-
196
-
197
-
198
-
199
- **Note:** Version bump only for package standard-changelog
200
-
201
- <a name="2.0.0"></a>
202
- # [2.0.0](https://github.com/conventional-changelog/conventional-changelog/compare/standard-changelog@1.0.19...standard-changelog@2.0.0) (2018-05-29)
203
-
204
-
205
- ### Chores
206
-
207
- * **package:** set Node requirement to oldest supported LTS ([#329](https://github.com/conventional-changelog/conventional-changelog/issues/329)) ([cae2fe0](https://github.com/conventional-changelog/conventional-changelog/commit/cae2fe0))
208
-
209
-
210
- ### BREAKING CHANGES
211
-
212
- * **package:** Set the package's minimum required Node version to be the oldest LTS
213
- currently supported by the Node Release working group. At this time,
214
- that is Node 6 (which is in its Maintenance LTS phase).
215
-
216
-
217
-
218
-
219
- <a name="1.0.19"></a>
220
- ## [1.0.19](https://github.com/conventional-changelog/conventional-changelog/compare/standard-changelog@1.0.18...standard-changelog@1.0.19) (2018-04-16)
221
-
222
-
223
-
224
-
225
- **Note:** Version bump only for package standard-changelog
226
-
227
- <a name="1.0.18"></a>
228
- ## [1.0.18](https://github.com/conventional-changelog/conventional-changelog/compare/standard-changelog@1.0.17...standard-changelog@1.0.18) (2018-03-28)
229
-
230
-
231
-
232
-
233
- **Note:** Version bump only for package standard-changelog
234
-
235
- <a name="1.0.17"></a>
236
- ## [1.0.17](https://github.com/conventional-changelog/conventional-changelog/compare/standard-changelog@1.0.16...standard-changelog@1.0.17) (2018-03-27)
237
-
238
-
239
-
240
-
241
- **Note:** Version bump only for package standard-changelog
242
-
243
- <a name="1.0.16"></a>
244
- ## [1.0.16](https://github.com/conventional-changelog/conventional-changelog/compare/standard-changelog@1.0.15...standard-changelog@1.0.16) (2018-03-27)
245
-
246
-
247
-
248
-
249
- **Note:** Version bump only for package standard-changelog
250
-
251
- <a name="1.0.15"></a>
252
- ## [1.0.15](https://github.com/conventional-changelog/conventional-changelog/compare/standard-changelog@1.0.14...standard-changelog@1.0.15) (2018-03-27)
253
-
254
-
255
-
256
-
257
- **Note:** Version bump only for package standard-changelog
258
-
259
- <a name="1.0.14"></a>
260
- ## [1.0.14](https://github.com/conventional-changelog/conventional-changelog/compare/standard-changelog@1.0.13...standard-changelog@1.0.14) (2018-03-22)
261
-
262
-
263
-
264
-
265
- **Note:** Version bump only for package standard-changelog
266
-
267
- <a name="1.0.13"></a>
268
- ## [1.0.13](https://github.com/conventional-changelog/conventional-changelog/compare/standard-changelog@1.0.12...standard-changelog@1.0.13) (2018-02-24)
269
-
270
-
271
-
272
-
273
- **Note:** Version bump only for package standard-changelog
274
-
275
- <a name="1.0.12"></a>
276
- ## [1.0.12](https://github.com/conventional-changelog/conventional-changelog/compare/standard-changelog@1.0.11...standard-changelog@1.0.12) (2018-02-20)
277
-
278
-
279
-
280
-
281
- **Note:** Version bump only for package standard-changelog
282
-
283
- <a name="1.0.11"></a>
284
- ## [1.0.11](https://github.com/stevemao/standard-changelog/compare/standard-changelog@1.0.10...standard-changelog@1.0.11) (2018-02-13)
285
-
286
-
287
-
288
-
289
- **Note:** Version bump only for package standard-changelog
290
-
291
- <a name="1.0.10"></a>
292
- ## [1.0.10](https://github.com/stevemao/standard-changelog/compare/standard-changelog@1.0.9...standard-changelog@1.0.10) (2018-02-13)
293
-
294
-
295
-
296
-
297
- **Note:** Version bump only for package standard-changelog
298
-
299
- <a name="1.0.9"></a>
300
- ## [1.0.9](https://github.com/stevemao/standard-changelog/compare/standard-changelog@1.0.8...standard-changelog@1.0.9) (2018-02-05)
301
-
302
-
303
-
304
-
305
- **Note:** Version bump only for package standard-changelog
306
-
307
- <a name="1.0.8"></a>
308
- ## [1.0.8](https://github.com/stevemao/standard-changelog/compare/standard-changelog@1.0.7...standard-changelog@1.0.8) (2018-01-29)
309
-
310
-
311
-
312
-
313
- **Note:** Version bump only for package standard-changelog
314
-
315
- <a name="1.0.7"></a>
316
- ## [1.0.7](https://github.com/stevemao/standard-changelog/compare/standard-changelog@1.0.6...standard-changelog@1.0.7) (2017-12-18)
317
-
318
-
319
-
320
-
321
- **Note:** Version bump only for package standard-changelog
322
-
323
- <a name="1.0.6"></a>
324
- ## [1.0.6](https://github.com/stevemao/standard-changelog/compare/standard-changelog@1.0.5...standard-changelog@1.0.6) (2017-12-08)
325
-
326
-
327
-
328
-
329
- **Note:** Version bump only for package standard-changelog
330
-
331
- <a name="1.0.5"></a>
332
- ## [1.0.5](https://github.com/stevemao/standard-changelog/compare/standard-changelog@1.0.4...standard-changelog@1.0.5) (2017-11-13)
333
-
334
-
335
-
336
-
337
- **Note:** Version bump only for package standard-changelog
338
-
339
- <a name="1.0.4"></a>
340
- ## [1.0.4](https://github.com/stevemao/standard-changelog/compare/standard-changelog@1.0.3...standard-changelog@1.0.4) (2017-10-01)
341
-
342
- <a name="1.0.3"></a>
343
- ## [1.0.3](https://github.com/stevemao/standard-changelog/compare/standard-changelog@1.0.2...standard-changelog@1.0.3) (2017-09-01)
344
-
345
- <a name="1.0.2"></a>
346
- ## [1.0.2](https://github.com/stevemao/standard-changelog/compare/standard-changelog@1.0.1...standard-changelog@1.0.2) (2017-07-17)
347
-
348
- <a name="1.0.1"></a>
349
- ## [1.0.1](https://github.com/stevemao/standard-changelog/compare/standard-changelog@1.0.0...standard-changelog@1.0.1) (2017-03-11)
350
-
351
- <a name="0.0.1"></a>
352
- ## 0.0.1 (2016-01-30)
353
-
354
-
355
- ### Features
356
-
357
- * init ([df41edb](https://github.com/stevemao/standard-changelog/commit/df41edb)), closes [ajoslin/conventional-changelog#84](https://github.com/ajoslin/conventional-changelog/issues/84)