renovate 41.18.4 → 41.20.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/dist/config/defaults.js +1 -1
- package/dist/config/defaults.js.map +1 -1
- package/dist/config/options/index.d.ts +1 -1
- package/dist/config/options/index.js +11 -3
- package/dist/config/options/index.js.map +1 -1
- package/dist/config/types.d.ts +3 -1
- package/dist/config/types.js +13 -1
- package/dist/config/types.js.map +1 -1
- package/dist/modules/manager/fingerprint.generated.js +1 -1
- package/dist/modules/manager/fingerprint.generated.js.map +1 -1
- package/dist/modules/manager/npm/artifacts.js +8 -3
- package/dist/modules/manager/npm/artifacts.js.map +1 -1
- package/dist/modules/manager/npm/post-update/pnpm.js +8 -3
- package/dist/modules/manager/npm/post-update/pnpm.js.map +1 -1
- package/dist/modules/manager/pre-commit/extract.js +18 -1
- package/dist/modules/manager/pre-commit/extract.js.map +1 -1
- package/dist/modules/platform/gerrit/client.d.ts +1 -0
- package/dist/modules/platform/gerrit/client.js +5 -0
- package/dist/modules/platform/gerrit/client.js.map +1 -1
- package/dist/modules/platform/gerrit/index.js +2 -2
- package/dist/modules/platform/gerrit/index.js.map +1 -1
- package/dist/modules/platform/gerrit/scm.js +7 -1
- package/dist/modules/platform/gerrit/scm.js.map +1 -1
- package/dist/modules/platform/gerrit/types.d.ts +1 -0
- package/dist/modules/platform/gerrit/types.js.map +1 -1
- package/dist/modules/platform/gerrit/utils.js +1 -0
- package/dist/modules/platform/gerrit/utils.js.map +1 -1
- package/dist/util/git/index.d.ts +1 -1
- package/dist/util/git/index.js +7 -4
- package/dist/util/git/index.js.map +1 -1
- package/dist/util/git/types.d.ts +3 -0
- package/dist/util/git/types.js.map +1 -1
- package/package.json +1 -1
- package/renovate-schema.json +811 -10
package/dist/config/defaults.js
CHANGED
@@ -23,7 +23,7 @@ function getConfig() {
|
|
23
23
|
const options = (0, options_1.getOptions)();
|
24
24
|
const config = {};
|
25
25
|
options.forEach((option) => {
|
26
|
-
if (!option.parents) {
|
26
|
+
if (!option.parents || option.parents.includes('.')) {
|
27
27
|
config[option.name] = getDefault(option);
|
28
28
|
}
|
29
29
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"defaults.js","sourceRoot":"","sources":["../../lib/config/defaults.ts"],"names":[],"mappings":";;AAeA,gCAIC;AAED,8BASC;AA9BD,uCAAuC;AAGvC,iFAAiF;AACjF,oFAAoF;AACpF,8FAA8F;AAC9F,yEAAyE;AACzE,MAAM,qBAAqB,GAAG;IAC5B,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI;IACnB,KAAK,EAAE,GAAG,EAAE,CAAC,EAAE;IACf,MAAM,EAAE,GAAG,EAAE,CAAC,IAAI;IAClB,MAAM,EAAE,GAAG,EAAE,CAAC,IAAI;IAClB,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI;CACX,CAAC;AAEX,SAAgB,UAAU,CAAC,MAAuB;IAChD,OAAO,MAAM,CAAC,OAAO,KAAK,SAAS;QACjC,CAAC,CAAC,qBAAqB,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE;QACtC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC;AACrB,CAAC;AAED,SAAgB,SAAS;IACvB,MAAM,OAAO,GAAG,IAAA,oBAAU,GAAE,CAAC;IAC7B,MAAM,MAAM,GAAc,EAAE,CAAC;IAC7B,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE;QACzB,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;
|
1
|
+
{"version":3,"file":"defaults.js","sourceRoot":"","sources":["../../lib/config/defaults.ts"],"names":[],"mappings":";;AAeA,gCAIC;AAED,8BASC;AA9BD,uCAAuC;AAGvC,iFAAiF;AACjF,oFAAoF;AACpF,8FAA8F;AAC9F,yEAAyE;AACzE,MAAM,qBAAqB,GAAG;IAC5B,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI;IACnB,KAAK,EAAE,GAAG,EAAE,CAAC,EAAE;IACf,MAAM,EAAE,GAAG,EAAE,CAAC,IAAI;IAClB,MAAM,EAAE,GAAG,EAAE,CAAC,IAAI;IAClB,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI;CACX,CAAC;AAEX,SAAgB,UAAU,CAAC,MAAuB;IAChD,OAAO,MAAM,CAAC,OAAO,KAAK,SAAS;QACjC,CAAC,CAAC,qBAAqB,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE;QACtC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC;AACrB,CAAC;AAED,SAAgB,SAAS;IACvB,MAAM,OAAO,GAAG,IAAA,oBAAU,GAAE,CAAC;IAC7B,MAAM,MAAM,GAAc,EAAE,CAAC;IAC7B,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE;QACzB,IAAI,CAAC,MAAM,CAAC,OAAO,IAAI,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YACpD,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC;QAC3C,CAAC;IACH,CAAC,CAAC,CAAC;IACH,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["import { getOptions } from './options';\nimport type { AllConfig, RenovateOptions } from './types';\n\n// Use functions instead of direct values to avoid introducing global references.\n// In particular, we want a new array instance every time we request a default array\n// instead of sharing a single instance - mutation of this value could cause serious problems.\n// See https://github.com/mend/renovate-on-prem/issues/290 for an example\nconst defaultValueFactories = {\n boolean: () => true,\n array: () => [],\n string: () => null,\n object: () => null,\n integer: () => null,\n} as const;\n\nexport function getDefault(option: RenovateOptions): any {\n return option.default === undefined\n ? defaultValueFactories[option.type]()\n : option.default;\n}\n\nexport function getConfig(): AllConfig {\n const options = getOptions();\n const config: AllConfig = {};\n options.forEach((option) => {\n if (!option.parents || option.parents.includes('.')) {\n config[option.name] = getDefault(option);\n }\n });\n return config;\n}\n"]}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import type
|
1
|
+
import { type RenovateOptions } from '../types';
|
2
2
|
export declare function getOptions(): RenovateOptions[];
|
@@ -7,6 +7,7 @@ const custom_1 = require("../../modules/manager/custom");
|
|
7
7
|
const platform_1 = require("../../modules/platform");
|
8
8
|
const versioning_1 = require("../../modules/versioning");
|
9
9
|
const merge_confidence_1 = require("../presets/internal/merge-confidence");
|
10
|
+
const types_1 = require("../types");
|
10
11
|
const options = [
|
11
12
|
{
|
12
13
|
name: 'mode',
|
@@ -341,10 +342,17 @@ const options = [
|
|
341
342
|
},
|
342
343
|
{
|
343
344
|
name: 'enabled',
|
344
|
-
description: `Enable or disable
|
345
|
+
description: `Enable or disable corresponding functionality.`,
|
345
346
|
stage: 'package',
|
346
347
|
type: 'boolean',
|
347
348
|
default: true,
|
349
|
+
parents: [
|
350
|
+
'.',
|
351
|
+
'packageRules',
|
352
|
+
...manager_list_generated_1.AllManagersListLiteral,
|
353
|
+
'hostRules',
|
354
|
+
...types_1.UpdateTypesOptions,
|
355
|
+
],
|
348
356
|
},
|
349
357
|
{
|
350
358
|
name: 'constraintsFiltering',
|
@@ -1719,7 +1727,7 @@ const options = [
|
|
1719
1727
|
name: 'keepUpdatedLabel',
|
1720
1728
|
description: 'If set, users can add this label to PRs to request they be kept updated with the base branch.',
|
1721
1729
|
type: 'string',
|
1722
|
-
supportedPlatforms: ['azure', 'gitea', 'github', 'gitlab'],
|
1730
|
+
supportedPlatforms: ['azure', 'gitea', 'github', 'gitlab', 'gerrit'],
|
1723
1731
|
},
|
1724
1732
|
{
|
1725
1733
|
name: 'rollbackPrs',
|
@@ -1758,7 +1766,7 @@ const options = [
|
|
1758
1766
|
description: 'Label to make Renovate stop updating a PR.',
|
1759
1767
|
type: 'string',
|
1760
1768
|
default: 'stop-updating',
|
1761
|
-
supportedPlatforms: ['azure', 'gitea', 'github', 'gitlab'],
|
1769
|
+
supportedPlatforms: ['azure', 'gitea', 'github', 'gitlab', 'gerrit'],
|
1762
1770
|
},
|
1763
1771
|
{
|
1764
1772
|
name: 'minimumReleaseAge',
|