release-it 19.0.0-next.5 → 19.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 +4 -3
- package/lib/config.js +0 -4
- package/lib/plugin/github/util.js +1 -0
- package/lib/util.js +4 -0
- package/package.json +10 -10
- package/test/config.js +0 -7
- package/test/tasks.interactive.js +2 -2
package/README.md
CHANGED
|
@@ -44,7 +44,7 @@ npm install -D release-it
|
|
|
44
44
|
"release": "release-it"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"release-it": "^
|
|
47
|
+
"release-it": "^19.0.0"
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
```
|
|
@@ -99,7 +99,7 @@ Here's a quick example `.release-it.json`:
|
|
|
99
99
|
|
|
100
100
|
```json
|
|
101
101
|
{
|
|
102
|
-
"$schema": "https://unpkg.com/release-it@
|
|
102
|
+
"$schema": "https://unpkg.com/release-it@19/schema/release-it.json",
|
|
103
103
|
"git": {
|
|
104
104
|
"commitMessage": "chore: release v${version}"
|
|
105
105
|
},
|
|
@@ -346,10 +346,11 @@ release-it programmatically][54] for example code.
|
|
|
346
346
|
|
|
347
347
|
## Node.js version support
|
|
348
348
|
|
|
349
|
-
The latest major version is
|
|
349
|
+
The latest major version is v19, supporting Node.js 20 and up:
|
|
350
350
|
|
|
351
351
|
| release-it | Node.js |
|
|
352
352
|
| :--------: | :-----: |
|
|
353
|
+
| v19 | v20 |
|
|
353
354
|
| v18 | v20 |
|
|
354
355
|
| v17 | v18 |
|
|
355
356
|
| v16 | v16 |
|
package/lib/config.js
CHANGED
|
@@ -153,10 +153,6 @@ async function loadLocalConfig(constructorConfig) {
|
|
|
153
153
|
throw new Error(`Invalid configuration file at ${file}`);
|
|
154
154
|
});
|
|
155
155
|
|
|
156
|
-
if (Object.keys(resolvedConfig.config).length === 0) {
|
|
157
|
-
throw new Error(`no such file ${resolvedConfig.configFile}`);
|
|
158
|
-
}
|
|
159
|
-
|
|
160
156
|
debug('Loaded local config', resolvedConfig.config);
|
|
161
157
|
return isObjectStrict(resolvedConfig.config) ? resolvedConfig.config : {};
|
|
162
158
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// Totally much borrowed from https://github.com/semantic-release/github/blob/master/lib/success.js
|
|
2
2
|
import issueParser from 'issue-parser';
|
|
3
3
|
|
|
4
|
+
/** @internal */
|
|
4
5
|
export const getSearchQueries = (base, commits, separator = '+') => {
|
|
5
6
|
const encodedSeparator = encodeURIComponent(separator);
|
|
6
7
|
|
package/lib/util.js
CHANGED
|
@@ -17,7 +17,9 @@ const eta = new Eta({
|
|
|
17
17
|
rmWhitespace: false,
|
|
18
18
|
autoTrim: false
|
|
19
19
|
});
|
|
20
|
+
|
|
20
21
|
const wait = ms => new Promise(resolve => setTimeout(resolve, ms));
|
|
22
|
+
|
|
21
23
|
const before = (n, func) => {
|
|
22
24
|
var result;
|
|
23
25
|
if (typeof func != 'function') {
|
|
@@ -43,6 +45,7 @@ const tryStatFile = filePath => {
|
|
|
43
45
|
}
|
|
44
46
|
};
|
|
45
47
|
|
|
48
|
+
/** @internal */
|
|
46
49
|
export const execOpts = {
|
|
47
50
|
stdio: process.env.NODE_DEBUG && process.env.NODE_DEBUG.indexOf('release-it') === 0 ? 'pipe' : []
|
|
48
51
|
};
|
|
@@ -135,6 +138,7 @@ export const e = (message, docs, fail = true) => {
|
|
|
135
138
|
return error;
|
|
136
139
|
};
|
|
137
140
|
|
|
141
|
+
/** @internal */
|
|
138
142
|
export const touch = (path, callback) => {
|
|
139
143
|
const stat = tryStatFile(path);
|
|
140
144
|
if (stat && stat.isDirectory()) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "release-it",
|
|
3
|
-
"version": "19.0.
|
|
3
|
+
"version": "19.0.1",
|
|
4
4
|
"description": "Generic CLI tool to automate versioning and package publishing-related tasks.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"build",
|
|
@@ -80,19 +80,19 @@
|
|
|
80
80
|
"dependencies": {
|
|
81
81
|
"@nodeutils/defaults-deep": "1.1.0",
|
|
82
82
|
"@octokit/rest": "21.1.1",
|
|
83
|
-
"@phun-ky/typeof": "1.2.
|
|
83
|
+
"@phun-ky/typeof": "1.2.5",
|
|
84
84
|
"async-retry": "1.3.3",
|
|
85
|
-
"c12": "
|
|
85
|
+
"c12": "3.0.3",
|
|
86
86
|
"ci-info": "^4.2.0",
|
|
87
87
|
"eta": "3.5.0",
|
|
88
|
-
"git-url-parse": "16.0
|
|
88
|
+
"git-url-parse": "16.1.0",
|
|
89
89
|
"inquirer": "12.5.2",
|
|
90
90
|
"issue-parser": "7.0.1",
|
|
91
91
|
"lodash.get": "4.4.2",
|
|
92
92
|
"lodash.merge": "4.6.2",
|
|
93
93
|
"mime-types": "3.0.1",
|
|
94
94
|
"new-github-release-url": "2.0.0",
|
|
95
|
-
"open": "10.1.
|
|
95
|
+
"open": "10.1.1",
|
|
96
96
|
"ora": "8.2.0",
|
|
97
97
|
"os-name": "6.0.0",
|
|
98
98
|
"proxy-agent": "6.5.0",
|
|
@@ -108,19 +108,19 @@
|
|
|
108
108
|
"@eslint/compat": "1.2.8",
|
|
109
109
|
"@eslint/eslintrc": "3.3.1",
|
|
110
110
|
"@eslint/js": "9.24.0",
|
|
111
|
-
"@octokit/request-error": "6.1.
|
|
112
|
-
"@types/node": "20.17.
|
|
111
|
+
"@octokit/request-error": "6.1.8",
|
|
112
|
+
"@types/node": "20.17.30",
|
|
113
113
|
"eslint": "9.24.0",
|
|
114
|
-
"eslint-plugin-import-x": "4.10.
|
|
114
|
+
"eslint-plugin-import-x": "4.10.5",
|
|
115
115
|
"globals": "16.0.0",
|
|
116
116
|
"installed-check": "9.3.0",
|
|
117
|
-
"knip": "5.
|
|
117
|
+
"knip": "5.50.5",
|
|
118
118
|
"mentoss": "0.9.2",
|
|
119
119
|
"mock-stdio": "1.0.3",
|
|
120
120
|
"prettier": "3.5.3",
|
|
121
121
|
"remark-cli": "12.0.1",
|
|
122
122
|
"remark-preset-webpro": "1.1.1",
|
|
123
|
-
"tar": "
|
|
123
|
+
"tar": "7.4.3",
|
|
124
124
|
"typescript": "5.8.3"
|
|
125
125
|
},
|
|
126
126
|
"overrides": {
|
package/test/config.js
CHANGED
|
@@ -83,13 +83,6 @@ describe('config', async () => {
|
|
|
83
83
|
assert.deepEqual(config.options.foo, { bar: 1 });
|
|
84
84
|
});
|
|
85
85
|
|
|
86
|
-
test('should throw if provided config file is not found', async () => {
|
|
87
|
-
await assert.rejects(async () => {
|
|
88
|
-
const config = new Config({ config: 'nofile' });
|
|
89
|
-
await config.init();
|
|
90
|
-
}, /no such file.+nofile/);
|
|
91
|
-
});
|
|
92
|
-
|
|
93
86
|
test('should throw if provided config file is invalid (cosmiconfig exception)', async () => {
|
|
94
87
|
await assert.rejects(async () => {
|
|
95
88
|
const config = new Config({ config: './test/stub/config/invalid-config-txt' });
|
|
@@ -112,7 +112,7 @@ describe('tasks.interactive', () => {
|
|
|
112
112
|
});
|
|
113
113
|
|
|
114
114
|
const config = {
|
|
115
|
-
$schema: 'https://unpkg.com/release-it@
|
|
115
|
+
$schema: 'https://unpkg.com/release-it@19/schema/release-it.json',
|
|
116
116
|
extends: 'github:release-it/release-it-configuration',
|
|
117
117
|
config: true
|
|
118
118
|
};
|
|
@@ -136,7 +136,7 @@ describe('tasks.interactive', () => {
|
|
|
136
136
|
renameSync('.git', 'foo');
|
|
137
137
|
|
|
138
138
|
const config = {
|
|
139
|
-
$schema: 'https://unpkg.com/release-it@
|
|
139
|
+
$schema: 'https://unpkg.com/release-it@19/schema/release-it.json',
|
|
140
140
|
extends: false
|
|
141
141
|
};
|
|
142
142
|
|