release-it 14.14.1 → 14.14.2
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/lib/plugin/gitlab/GitLab.js +6 -5
- package/package.json +7 -4
- package/CHANGELOG.md +0 -102
|
@@ -29,7 +29,7 @@ class GitLab extends Release {
|
|
|
29
29
|
const { tokenHeader } = this.options;
|
|
30
30
|
const { baseUrl } = this.getContext();
|
|
31
31
|
this._client = got.extend({
|
|
32
|
-
|
|
32
|
+
baseUrl,
|
|
33
33
|
method: 'POST',
|
|
34
34
|
headers: {
|
|
35
35
|
'user-agent': 'webpro/release-it',
|
|
@@ -128,7 +128,7 @@ class GitLab extends Release {
|
|
|
128
128
|
const requests = releaseMilestones.map(milestone => {
|
|
129
129
|
const options = {
|
|
130
130
|
method: 'GET',
|
|
131
|
-
|
|
131
|
+
query: {
|
|
132
132
|
title: milestone,
|
|
133
133
|
include_parent_milestones: true
|
|
134
134
|
}
|
|
@@ -210,7 +210,8 @@ class GitLab extends Release {
|
|
|
210
210
|
|
|
211
211
|
const endpoint = `projects/${id}/releases`;
|
|
212
212
|
const options = {
|
|
213
|
-
json:
|
|
213
|
+
json: true,
|
|
214
|
+
body: {
|
|
214
215
|
name,
|
|
215
216
|
tag_name: tagName,
|
|
216
217
|
description
|
|
@@ -218,13 +219,13 @@ class GitLab extends Release {
|
|
|
218
219
|
};
|
|
219
220
|
|
|
220
221
|
if (this.assets.length) {
|
|
221
|
-
options.
|
|
222
|
+
options.body.assets = {
|
|
222
223
|
links: this.assets
|
|
223
224
|
};
|
|
224
225
|
}
|
|
225
226
|
|
|
226
227
|
if (releaseMilestones.length) {
|
|
227
|
-
options.
|
|
228
|
+
options.body.milestones = releaseMilestones;
|
|
228
229
|
}
|
|
229
230
|
|
|
230
231
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "release-it",
|
|
3
|
-
"version": "14.14.
|
|
3
|
+
"version": "14.14.2",
|
|
4
4
|
"description": "Generic CLI tool to automate versioning and package publishing related tasks.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"build",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"form-data": "4.0.0",
|
|
66
66
|
"git-url-parse": "11.6.0",
|
|
67
67
|
"globby": "11.0.4",
|
|
68
|
-
"got": "
|
|
68
|
+
"got": "9.6.0",
|
|
69
69
|
"import-cwd": "3.0.0",
|
|
70
70
|
"inquirer": "8.2.0",
|
|
71
71
|
"is-ci": "3.0.1",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"os-name": "4.0.1",
|
|
78
78
|
"parse-json": "5.2.0",
|
|
79
79
|
"promise.allsettled": "1.0.5",
|
|
80
|
-
"semver": "7.3.
|
|
80
|
+
"semver": "7.3.5",
|
|
81
81
|
"shelljs": "0.8.5",
|
|
82
82
|
"update-notifier": "5.1.0",
|
|
83
83
|
"url-join": "4.0.1",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"ava": "3.15.0",
|
|
92
92
|
"eslint": "7.32.0",
|
|
93
93
|
"eslint-config-prettier": "8.5.0",
|
|
94
|
-
"eslint-plugin-ava": "
|
|
94
|
+
"eslint-plugin-ava": "12.0.0",
|
|
95
95
|
"eslint-plugin-import": "2.26.0",
|
|
96
96
|
"eslint-plugin-prettier": "4.0.0",
|
|
97
97
|
"markdown-toc": "1.2.0",
|
|
@@ -106,5 +106,8 @@
|
|
|
106
106
|
},
|
|
107
107
|
"engines": {
|
|
108
108
|
"node": ">=10"
|
|
109
|
+
},
|
|
110
|
+
"resolutions": {
|
|
111
|
+
"lru-cache": "6.0.0"
|
|
109
112
|
}
|
|
110
113
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
This document lists breaking changes for each major release.
|
|
4
|
-
|
|
5
|
-
See the GitHub Releases page for detailed changelogs:
|
|
6
|
-
[https://github.com/release-it/release-it/releases](https://github.com/release-it/release-it/releases)
|
|
7
|
-
|
|
8
|
-
## v14
|
|
9
|
-
|
|
10
|
-
- Removed `global` property from plugins. Use `this.config[key]` instead.
|
|
11
|
-
- Removed deprecated `npm.access` option. Set this in `package.json` instead.
|
|
12
|
-
|
|
13
|
-
## v13
|
|
14
|
-
|
|
15
|
-
- Dropped support for Node v8
|
|
16
|
-
- Dropped support for GitLab v11.6 and lower.
|
|
17
|
-
- Deprecated `scripts` are removed (in favor of [hooks](https://github.com/release-it/release-it#hooks)).
|
|
18
|
-
- Removed deprecated `--non-interactive` (`-n`) argument. Use `--ci` instead.
|
|
19
|
-
- Removed old `%s` and `[REV_RANGE]` syntax in command substitutions. Use `${version}` and `${latestTag}` instead.
|
|
20
|
-
|
|
21
|
-
## v12
|
|
22
|
-
|
|
23
|
-
- The `--follow-tags` argument for `git push` has been moved to the default configuration. This is only a breaking
|
|
24
|
-
change if `git.pushArgs` was not empty (it was empty by default).
|
|
25
|
-
|
|
26
|
-
## v11
|
|
27
|
-
|
|
28
|
-
- The custom `conventional-changelog` increment (e.g. `"increment": "conventional:angular"`) with additional script
|
|
29
|
-
configuration is replaced with a plugin. Please see
|
|
30
|
-
[conventional changelog](https://github.com/release-it/release-it/blob/master/docs/changelog.md#conventional-changelog)
|
|
31
|
-
how to use this plugin.
|
|
32
|
-
- The `pkgFiles` option has been removed. If there's a need to bump other files than what `npm version` bumps, it should
|
|
33
|
-
be (part of) a plugin.
|
|
34
|
-
- By default, the latest version was derived from the latest Git tag. From v11, if the repo has a `package.json` then
|
|
35
|
-
that `version` is used instead. The `use` option has been removed. Also see
|
|
36
|
-
[latest version](https://github.com/release-it/release-it#latest-version).
|
|
37
|
-
- `scripts.changelog` has been moved to `git.changelog`
|
|
38
|
-
|
|
39
|
-
## v10
|
|
40
|
-
|
|
41
|
-
- Dropped support for Node v6
|
|
42
|
-
- Deprecated options from v9 are removed, the `dist.repo` config in particular (also see
|
|
43
|
-
[distribution repository](https://github.com/release-it/release-it/blob/master/docs/recipes/distribution-repo.md) for
|
|
44
|
-
alternatives).
|
|
45
|
-
- Drop the `--debug` flag. `DEBUG=release-it:* ...` still works.
|
|
46
|
-
|
|
47
|
-
## v9
|
|
48
|
-
|
|
49
|
-
There should be no breaking changes, but there have been major internal refactorings and an improved UI. A bunch of new
|
|
50
|
-
features and bug fixes have been implemented. Last but not least, the configuration structure is changed significantly.
|
|
51
|
-
For this (backwards compatible) change, deprecation warnings are shown, and configurations must be migrated with the
|
|
52
|
-
next major release (v10).
|
|
53
|
-
|
|
54
|
-
- All "command hooks" have been moved to `scripts.*`, and some have been renamed.
|
|
55
|
-
- All `src.*` options have been moved to `git.*` (and `scripts.*`).
|
|
56
|
-
- The `dist.repo` configuration and functionality has been removed.
|
|
57
|
-
|
|
58
|
-
## v8
|
|
59
|
-
|
|
60
|
-
- Drop the `--force` flag. It's only use was to move a Git tag.
|
|
61
|
-
|
|
62
|
-
## v7
|
|
63
|
-
|
|
64
|
-
- No longer adds untracked files to release commit. (#230)
|
|
65
|
-
|
|
66
|
-
## v6
|
|
67
|
-
|
|
68
|
-
- Default value for `requireCleanWorkingDir` is now `true` (previously: `false`). (#173)
|
|
69
|
-
- Skip prompt (interactive) if corresponding task (non-interactive) is disabled. E.g. `npm.publish: false` will also not
|
|
70
|
-
show "publish" prompt.
|
|
71
|
-
|
|
72
|
-
## v5
|
|
73
|
-
|
|
74
|
-
- Drop support for Node v4.
|
|
75
|
-
|
|
76
|
-
[Release notes for v5](https://github.com/release-it/release-it/releases/tag/5.0.0-beta.0)
|
|
77
|
-
|
|
78
|
-
## v4
|
|
79
|
-
|
|
80
|
-
- Use `shell.exec` for build commands by default (previously this required a `!` prefix).
|
|
81
|
-
|
|
82
|
-
[Release notes for v4](https://github.com/release-it/release-it/releases/tag/4.0.0-rc.0)
|
|
83
|
-
|
|
84
|
-
## v3
|
|
85
|
-
|
|
86
|
-
- Configuration filename must be `.release-it.json` (previously `.release.json`).
|
|
87
|
-
- Refactored configuration structure in this file (and the CLI arguments with it).
|
|
88
|
-
|
|
89
|
-
[Release notes for v3](https://github.com/release-it/release-it/releases/tag/3.0.0)
|
|
90
|
-
|
|
91
|
-
## v2
|
|
92
|
-
|
|
93
|
-
- Build command is executed before git commit/push.
|
|
94
|
-
- Configuration options are better organized. Most of them are backwards compatible with a deprecation notice.
|
|
95
|
-
|
|
96
|
-
[Release notes for v2](https://github.com/release-it/release-it/releases/tag/2.0.0)
|
|
97
|
-
|
|
98
|
-
## v1
|
|
99
|
-
|
|
100
|
-
Initial major release.
|
|
101
|
-
|
|
102
|
-
[Release notes for v1](https://github.com/release-it/release-it/releases/tag/1.0.0)
|