git-raw-commits 2.0.0 → 2.0.8
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/CHANGELOG.md +52 -0
- package/cli.js +3 -3
- package/index.js +16 -16
- package/package.json +7 -12
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,58 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.0.8](https://github.com/conventional-changelog/conventional-changelog/compare/git-raw-commits@2.0.7...git-raw-commits@2.0.8) (2020-11-05)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **deps:** update dependency through2 to v4 ([#657](https://github.com/conventional-changelog/conventional-changelog/issues/657)) ([7ae618c](https://github.com/conventional-changelog/conventional-changelog/commit/7ae618c81491841e5b1d796d3933aac0c54bc312))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [2.0.7](https://github.com/conventional-changelog/conventional-changelog/compare/git-raw-commits@2.0.3...git-raw-commits@2.0.7) (2020-05-08)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **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))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
## [2.0.3](https://github.com/conventional-changelog/conventional-changelog/compare/git-raw-commits@2.0.2...git-raw-commits@2.0.3) (2019-11-14)
|
|
29
|
+
|
|
30
|
+
**Note:** Version bump only for package git-raw-commits
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
## [2.0.2](https://github.com/conventional-changelog/conventional-changelog/compare/git-raw-commits@2.0.1...git-raw-commits@2.0.2) (2019-04-10)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Bug Fixes
|
|
40
|
+
|
|
41
|
+
* **deps:** update dependency through2 to v3 ([#392](https://github.com/conventional-changelog/conventional-changelog/issues/392)) ([26fe91f](https://github.com/conventional-changelog/conventional-changelog/commit/26fe91f))
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
## [2.0.1](https://github.com/conventional-changelog/conventional-changelog/compare/git-raw-commits@2.0.0...git-raw-commits@2.0.1) (2018-11-01)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
### Bug Fixes
|
|
51
|
+
|
|
52
|
+
* 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))
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
6
58
|
<a name="2.0.0"></a>
|
|
7
59
|
# [2.0.0](https://github.com/conventional-changelog/conventional-changelog/compare/git-raw-commits@1.3.6...git-raw-commits@2.0.0) (2018-05-29)
|
|
8
60
|
|
package/cli.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
'use strict'
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
const meow = require('meow')
|
|
4
|
+
const gitRawCommits = require('./')
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
const cli = meow(`
|
|
7
7
|
Usage
|
|
8
8
|
git-raw-commits [<git-log(1)-options>]
|
|
9
9
|
|
package/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
const dargs = require('dargs')
|
|
4
|
+
const execFile = require('child_process').execFile
|
|
5
|
+
const split = require('split2')
|
|
6
|
+
const stream = require('stream')
|
|
7
|
+
const template = require('lodash.template')
|
|
8
|
+
const through = require('through2')
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
const DELIMITER = '------------------------ >8 ------------------------'
|
|
11
11
|
|
|
12
12
|
function normalizeExecOpts (execOpts) {
|
|
13
13
|
execOpts = execOpts || {}
|
|
@@ -24,10 +24,10 @@ function normalizeGitOpts (gitOpts) {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
function getGitArgs (gitOpts) {
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
const gitFormat = template('--format=<%= format %>%n' + DELIMITER)(gitOpts)
|
|
28
|
+
const gitFromTo = [gitOpts.from, gitOpts.to].filter(Boolean).join('..')
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
const gitArgs = ['log', gitFormat, gitFromTo]
|
|
31
31
|
|
|
32
32
|
// allow commits to focus on a single directory
|
|
33
33
|
// this is useful for monorepos.
|
|
@@ -41,20 +41,20 @@ function getGitArgs (gitOpts) {
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
function gitRawCommits (rawGitOpts, rawExecOpts) {
|
|
44
|
-
|
|
44
|
+
const readable = new stream.Readable()
|
|
45
45
|
readable._read = function () {}
|
|
46
46
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
const gitOpts = normalizeGitOpts(rawGitOpts)
|
|
48
|
+
const execOpts = normalizeExecOpts(rawExecOpts)
|
|
49
|
+
const args = getGitArgs(gitOpts)
|
|
50
50
|
|
|
51
51
|
if (gitOpts.debug) {
|
|
52
52
|
gitOpts.debug('Your git-log command is:\ngit ' + args.join(' '))
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
let isError = false
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
const child = execFile('git', args, {
|
|
58
58
|
cwd: execOpts.cwd,
|
|
59
59
|
maxBuffer: Infinity
|
|
60
60
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "git-raw-commits",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.8",
|
|
4
4
|
"description": "Get raw git commits out of your repository using git-log(1)",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/conventional-changelog/conventional-changelog/issues"
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
"license": "MIT",
|
|
19
19
|
"engines": {
|
|
20
|
-
"node": ">=
|
|
20
|
+
"node": ">=10"
|
|
21
21
|
},
|
|
22
22
|
"files": [
|
|
23
23
|
"index.js",
|
|
@@ -33,22 +33,17 @@
|
|
|
33
33
|
"git-log"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"dargs": "^
|
|
36
|
+
"dargs": "^7.0.0",
|
|
37
37
|
"lodash.template": "^4.0.2",
|
|
38
|
-
"meow": "^
|
|
38
|
+
"meow": "^8.0.0",
|
|
39
39
|
"split2": "^2.0.0",
|
|
40
|
-
"through2": "^
|
|
41
|
-
},
|
|
42
|
-
"devDependencies": {
|
|
43
|
-
"mkdirp": "^0.5.1",
|
|
44
|
-
"shelljs": "^0.8.0"
|
|
40
|
+
"through2": "^4.0.0"
|
|
45
41
|
},
|
|
46
42
|
"scripts": {
|
|
47
|
-
"lint": "eslint --fix .",
|
|
48
|
-
"test": "npm run-script lint && mocha --timeout 30000",
|
|
49
43
|
"test-windows": "mocha --timeout 30000"
|
|
50
44
|
},
|
|
51
45
|
"bin": {
|
|
52
46
|
"git-raw-commits": "cli.js"
|
|
53
|
-
}
|
|
47
|
+
},
|
|
48
|
+
"gitHead": "cc567b98facf71315f4b1620d81ce01d155efaca"
|
|
54
49
|
}
|