renovate 41.19.0 → 41.20.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/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 +9 -1
- 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/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',
|