npm-update-package 0.58.0 → 0.58.3
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
|
@@ -77,6 +77,7 @@ User names to assign to pull request.
|
|
|
77
77
|
|cli|`--assignees`|
|
|
78
78
|
|type|string[]|
|
|
79
79
|
|required|false|
|
|
80
|
+
|added version|v0.46.0|
|
|
80
81
|
|
|
81
82
|
Example:
|
|
82
83
|
|
|
@@ -95,6 +96,7 @@ How many members to be assigned to assignees.
|
|
|
95
96
|
|cli|`--assignees-sample-size`|
|
|
96
97
|
|type|number|
|
|
97
98
|
|required|false|
|
|
99
|
+
|added version|v0.56.0|
|
|
98
100
|
|
|
99
101
|
Example:
|
|
100
102
|
|
|
@@ -115,6 +117,7 @@ Commit message template.
|
|
|
115
117
|
|type|string|
|
|
116
118
|
|required|false|
|
|
117
119
|
|default|`chore(deps): {{{level}}} update {{{packageName}}} to v{{{newVersion}}}`|
|
|
120
|
+
|added version|v0.5.0|
|
|
118
121
|
|
|
119
122
|
Available variables:
|
|
120
123
|
|
|
@@ -144,6 +147,7 @@ Whether to fetch release notes.
|
|
|
144
147
|
|type|boolean|
|
|
145
148
|
|required|false|
|
|
146
149
|
|default|`true`|
|
|
150
|
+
|added version|v0.51.0|
|
|
147
151
|
|
|
148
152
|
Example:
|
|
149
153
|
|
|
@@ -163,6 +167,7 @@ Sleep time between fetching (ms).
|
|
|
163
167
|
|type|number|
|
|
164
168
|
|required|false|
|
|
165
169
|
|default|`1000`|
|
|
170
|
+
|added version|v0.50.0|
|
|
166
171
|
|
|
167
172
|
Example:
|
|
168
173
|
|
|
@@ -181,6 +186,7 @@ Git user email.
|
|
|
181
186
|
|cli|`--git-user-email`|
|
|
182
187
|
|type|string|
|
|
183
188
|
|required|false|
|
|
189
|
+
|added version|v0.53.0|
|
|
184
190
|
|
|
185
191
|
Example:
|
|
186
192
|
|
|
@@ -199,6 +205,7 @@ Git user name.
|
|
|
199
205
|
|cli|`--git-user-name`|
|
|
200
206
|
|type|string|
|
|
201
207
|
|required|false|
|
|
208
|
+
|added version|v0.53.0|
|
|
202
209
|
|
|
203
210
|
Example:
|
|
204
211
|
|
|
@@ -217,6 +224,7 @@ npx npm-update-package \
|
|
|
217
224
|
|cli|`--github-token`|
|
|
218
225
|
|type|string|
|
|
219
226
|
|required|true|
|
|
227
|
+
|added version|v0.1.0|
|
|
220
228
|
|
|
221
229
|
### ignorePackages
|
|
222
230
|
|
|
@@ -227,6 +235,7 @@ Package names to ignore.
|
|
|
227
235
|
|cli|`--ignore-packages`|
|
|
228
236
|
|type|string[]|
|
|
229
237
|
|required|false|
|
|
238
|
+
|added version|v0.43.0|
|
|
230
239
|
|
|
231
240
|
Example:
|
|
232
241
|
|
|
@@ -246,6 +255,7 @@ Log level to show.
|
|
|
246
255
|
|type|string|
|
|
247
256
|
|required|false|
|
|
248
257
|
|default|`info`|
|
|
258
|
+
|added version|v0.1.0|
|
|
249
259
|
|
|
250
260
|
Allowed values:
|
|
251
261
|
|
|
@@ -277,13 +287,14 @@ What to do when outdated pull requests exist.
|
|
|
277
287
|
|type|string|
|
|
278
288
|
|required|false|
|
|
279
289
|
|default|`recreate`|
|
|
290
|
+
|added version|v0.58.0|
|
|
280
291
|
|
|
281
292
|
Allowed values:
|
|
282
293
|
|
|
283
294
|
|Value|Description|
|
|
284
295
|
|---|---|
|
|
285
296
|
|`create`|Create new pull request.|
|
|
286
|
-
|`recreate`|Close
|
|
297
|
+
|`recreate`|Close outdated pull requests and create new pull request.|
|
|
287
298
|
|`skip`|Skip creating pull request.|
|
|
288
299
|
|
|
289
300
|
Example:
|
|
@@ -304,6 +315,7 @@ Since npm-update-package automatically determines which package manager to use,
|
|
|
304
315
|
|cli|`--package-manager`|
|
|
305
316
|
|type|string|
|
|
306
317
|
|required|false|
|
|
318
|
+
|added version|v0.1.0|
|
|
307
319
|
|
|
308
320
|
Allowed values:
|
|
309
321
|
|
|
@@ -330,6 +342,7 @@ GitHub host of pull request body.
|
|
|
330
342
|
|type|string|
|
|
331
343
|
|required|false|
|
|
332
344
|
|default|`togithub.com`|
|
|
345
|
+
|added version|v0.55.0|
|
|
333
346
|
|
|
334
347
|
Example:
|
|
335
348
|
|
|
@@ -348,6 +361,7 @@ Additional notes for Pull request body.
|
|
|
348
361
|
|cli|`--pr-body-notes`|
|
|
349
362
|
|type|string|
|
|
350
363
|
|required|false|
|
|
364
|
+
|added version|v0.45.0|
|
|
351
365
|
|
|
352
366
|
Example:
|
|
353
367
|
|
|
@@ -367,6 +381,7 @@ Pull request title template.
|
|
|
367
381
|
|type|string|
|
|
368
382
|
|required|false|
|
|
369
383
|
|default|`chore(deps): {{{level}}} update {{{packageName}}} to v{{{newVersion}}}`|
|
|
384
|
+
|added version|v0.44.0|
|
|
370
385
|
|
|
371
386
|
Available variables:
|
|
372
387
|
|
|
@@ -395,6 +410,7 @@ User names to request reviews.
|
|
|
395
410
|
|cli|`--reviewers`|
|
|
396
411
|
|type|string[]|
|
|
397
412
|
|required|false|
|
|
413
|
+
|added version|v0.26.0|
|
|
398
414
|
|
|
399
415
|
Example:
|
|
400
416
|
|
|
@@ -413,6 +429,7 @@ How many members to be assigned to reviewers.
|
|
|
413
429
|
|cli|`--reviewers-sample-size`|
|
|
414
430
|
|type|number|
|
|
415
431
|
|required|false|
|
|
432
|
+
|added version|v0.57.0|
|
|
416
433
|
|
|
417
434
|
Example:
|
|
418
435
|
|
|
@@ -550,6 +567,8 @@ The following shows the process flow of npm-update-package.
|
|
|
550
567
|
```plantuml
|
|
551
568
|
@startuml
|
|
552
569
|
start
|
|
570
|
+
group bin
|
|
571
|
+
:Initialize options;
|
|
553
572
|
group main
|
|
554
573
|
:Get outdated packages;
|
|
555
574
|
|
|
@@ -566,29 +585,48 @@ if (Label does not exist) then (yes)
|
|
|
566
585
|
else (no)
|
|
567
586
|
endif
|
|
568
587
|
|
|
588
|
+
:Initialize Git config;
|
|
569
589
|
group OutdatedPackagesProcessor
|
|
590
|
+
|
|
570
591
|
while (Package exists) is (yes)
|
|
571
592
|
group OutdatedPackageProcessor
|
|
572
593
|
if (Remote branch does not exist) then (yes)
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
594
|
+
switch (outdatedPrStrategy)
|
|
595
|
+
case (create)
|
|
596
|
+
:Create branch;
|
|
597
|
+
:Update package;
|
|
598
|
+
:Create pull request;
|
|
599
|
+
:Remove branch;
|
|
600
|
+
case (recreate)
|
|
601
|
+
:Create branch;
|
|
602
|
+
:Update package;
|
|
603
|
+
:Create pull request;
|
|
604
|
+
:Close outdated pull requests;
|
|
605
|
+
:Remove branch;
|
|
606
|
+
case (skip)
|
|
607
|
+
if (Outdated pull requests don't exist) then (yes)
|
|
608
|
+
:Create branch;
|
|
609
|
+
:Update package;
|
|
610
|
+
:Create pull request;
|
|
611
|
+
:Remove branch;
|
|
612
|
+
else (no)
|
|
613
|
+
endif
|
|
614
|
+
endswitch
|
|
578
615
|
else (no)
|
|
579
616
|
endif
|
|
580
617
|
end group
|
|
581
618
|
endwhile (no)
|
|
582
619
|
|
|
583
|
-
end group
|
|
584
|
-
|
|
585
|
-
end group
|
|
620
|
+
end group /' OutdatedPackagesProcessor '/
|
|
621
|
+
:Show results;
|
|
622
|
+
end group /' main '/
|
|
623
|
+
end group /' bin '/
|
|
586
624
|
end
|
|
587
625
|
@enduml
|
|
588
626
|
```
|
|
589
627
|
-->
|
|
590
628
|
|
|
591
|
-
[](http://www.plantuml.com/plantuml/uml/hLD1Rjim4Bpp5NEpV0Xojoyf0ZGeK211Wpw0bjOM4OghagkwwUlhZIYsHAtsaej4xevsECFHNH8RPHgyULkOK-HfnC45i_iKd3ZhtKy2Z-8uf7rk3rRx3oJWIJehr66qxOizqGLYt17D1-zB2JOIfl56-4QnMqXF0SqhfQq1A7I6V28qWRVcidD7OtOVITeUaGOMmY7QqFOwEzV7oNj4-ZPHaeNnipsGHyUK45X0FroIcWgx-qXM25wX-xzOAyKFJj1oEBhJ8lenIttAifuYjvGIHsFElVE49dTcxhI5IuNwweZV4m2LyELFkV-M0gIpKoiQNcR6PubMwFGwzrkhwjetnNEb690PzalrwwWJbllQr-3AxDBJetwl1cN2I9aIxyvvxpbHILmTWlyVBBsuSV51pNwyEWSTXysAvUjorWMjIre_Br2IcVTpFlDgldXJep92ttFMDDCQoummfG7SRjQpZCsjsJttV4QaD7arjlvIVtq5rTL3APgxosCQ_2y0)
|
|
592
630
|
|
|
593
631
|
## FAQ
|
|
594
632
|
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "npm-update-package",
|
|
3
|
-
"version": "0.58.
|
|
3
|
+
"version": "0.58.3",
|
|
4
4
|
"description": "CLI tool for creating pull requests to update npm packages",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsc --project tsconfig.build.json",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@types/node-fetch": "2.6.1",
|
|
41
41
|
"@types/parse-github-url": "1.0.0",
|
|
42
42
|
"@types/semver": "7.3.9",
|
|
43
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
43
|
+
"@typescript-eslint/eslint-plugin": "5.19.0",
|
|
44
44
|
"eslint": "8.13.0",
|
|
45
45
|
"eslint-config-standard-with-typescript": "21.0.1",
|
|
46
46
|
"eslint-plugin-import": "2.26.0",
|
|
@@ -5,7 +5,6 @@ const Create_1 = require("./Create");
|
|
|
5
5
|
const OutdatedPullRequestStrategy_1 = require("./OutdatedPullRequestStrategy");
|
|
6
6
|
const Recreate_1 = require("./Recreate");
|
|
7
7
|
const Skip_1 = require("./Skip");
|
|
8
|
-
// TODO: Add test
|
|
9
8
|
class OutdatedPackageProcessorCreator {
|
|
10
9
|
constructor(options) {
|
|
11
10
|
this.options = options;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "npm-update-package",
|
|
3
|
-
"version": "0.58.
|
|
3
|
+
"version": "0.58.3",
|
|
4
4
|
"description": "CLI tool for creating pull requests to update npm packages",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsc --project tsconfig.build.json",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@types/node-fetch": "2.6.1",
|
|
41
41
|
"@types/parse-github-url": "1.0.0",
|
|
42
42
|
"@types/semver": "7.3.9",
|
|
43
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
43
|
+
"@typescript-eslint/eslint-plugin": "5.19.0",
|
|
44
44
|
"eslint": "8.13.0",
|
|
45
45
|
"eslint-config-standard-with-typescript": "21.0.1",
|
|
46
46
|
"eslint-plugin-import": "2.26.0",
|