renovate 42.29.3 → 42.29.5

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.
@@ -1,6 +1,6 @@
1
1
  import type { RenovateConfig, RepoGlobalConfig } from './types';
2
2
  export declare class GlobalConfig {
3
- private static readonly OPTIONS;
3
+ static OPTIONS: readonly (keyof RepoGlobalConfig)[];
4
4
  private static config;
5
5
  static get(): RepoGlobalConfig;
6
6
  static get<Key extends keyof RepoGlobalConfig>(key: Key): RepoGlobalConfig[Key];
@@ -4,14 +4,14 @@ exports.GlobalConfig = void 0;
4
4
  class GlobalConfig {
5
5
  // TODO: once global config work is complete, add a test to make sure this list includes all options with globalOnly=true (#9603)
6
6
  static OPTIONS = [
7
- 'allowedCommands',
8
- 'allowedEnv',
9
7
  'allowCustomCrateRegistries',
10
- 'allowedHeaders',
11
8
  'allowPlugins',
12
9
  'allowScripts',
13
- 'autodiscoverRepoSort',
10
+ 'allowedCommands',
11
+ 'allowedEnv',
12
+ 'allowedHeaders',
14
13
  'autodiscoverRepoOrder',
14
+ 'autodiscoverRepoSort',
15
15
  'binarySource',
16
16
  'cacheDir',
17
17
  'cacheHardTtlMinutes',
@@ -27,10 +27,10 @@ class GlobalConfig {
27
27
  'dryRun',
28
28
  'encryptedWarning',
29
29
  'endpoint',
30
- 'exposeAllEnv',
31
30
  'executionTimeout',
32
- 'githubTokenWarn',
31
+ 'exposeAllEnv',
33
32
  'gitTimeout',
33
+ 'githubTokenWarn',
34
34
  'httpCacheTtlDays',
35
35
  'ignorePrAuthor',
36
36
  'includeMirrors',
@@ -1 +1 @@
1
- {"version":3,"file":"global.js","sourceRoot":"","sources":["../../lib/config/global.ts"],"names":[],"mappings":";;;AAEA,MAAa,YAAY;IACvB,iIAAiI;IACzH,MAAM,CAAU,OAAO,GAA+B;QAC5D,iBAAiB;QACjB,YAAY;QACZ,4BAA4B;QAC5B,gBAAgB;QAChB,cAAc;QACd,cAAc;QACd,sBAAsB;QACtB,uBAAuB;QACvB,cAAc;QACd,UAAU;QACV,qBAAqB;QACrB,sBAAsB;QACtB,kBAAkB;QAClB,kBAAkB;QAClB,oBAAoB;QACpB,mBAAmB;QACnB,kBAAkB;QAClB,gBAAgB;QAChB,oBAAoB;QACpB,YAAY;QACZ,QAAQ;QACR,kBAAkB;QAClB,UAAU;QACV,cAAc;QACd,kBAAkB;QAClB,iBAAiB;QACjB,YAAY;QACZ,kBAAkB;QAClB,gBAAgB;QAChB,gBAAgB;QAChB,UAAU;QACV,gBAAgB;QAChB,UAAU;QACV,wBAAwB;QACxB,YAAY;QACZ,aAAa;QACb,WAAW;KACZ,CAAC;IAEM,MAAM,CAAC,MAAM,GAAqB,EAAE,CAAC;IAU7C,MAAM,CAAC,GAAG,CACR,GAAS,EACT,YAAoC;QAEpC,OAAO,GAAG;YACR,CAAC,CAAC,CAAC,YAAY,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,YAAY,CAAC;YAC5C,CAAC,CAAC,YAAY,CAAC,MAAM,CAAC;IAC1B,CAAC;IAED,MAAM,CAAC,GAAG,CAAC,MAAyC;QAClD,YAAY,CAAC,KAAK,EAAE,CAAC;QAErB,MAAM,MAAM,GAAG,EAAE,GAAG,MAAM,EAAE,CAAC;QAC7B,KAAK,MAAM,MAAM,IAAI,YAAY,CAAC,OAAO,EAAE,CAAC;YAC1C,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,CAAU,CAAC;YACtD,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;QACxB,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,MAAM,CAAC,KAAK;QACV,YAAY,CAAC,MAAM,GAAG,EAAE,CAAC;IAC3B,CAAC;;AA3EH,oCA4EC","sourcesContent":["import type { RenovateConfig, RepoGlobalConfig } from './types';\n\nexport class GlobalConfig {\n // TODO: once global config work is complete, add a test to make sure this list includes all options with globalOnly=true (#9603)\n private static readonly OPTIONS: (keyof RepoGlobalConfig)[] = [\n 'allowedCommands',\n 'allowedEnv',\n 'allowCustomCrateRegistries',\n 'allowedHeaders',\n 'allowPlugins',\n 'allowScripts',\n 'autodiscoverRepoSort',\n 'autodiscoverRepoOrder',\n 'binarySource',\n 'cacheDir',\n 'cacheHardTtlMinutes',\n 'cachePrivatePackages',\n 'cacheTtlOverride',\n 'containerbaseDir',\n 'customEnvVariables',\n 'dockerChildPrefix',\n 'dockerCliOptions',\n 'dockerMaxPages',\n 'dockerSidecarImage',\n 'dockerUser',\n 'dryRun',\n 'encryptedWarning',\n 'endpoint',\n 'exposeAllEnv',\n 'executionTimeout',\n 'githubTokenWarn',\n 'gitTimeout',\n 'httpCacheTtlDays',\n 'ignorePrAuthor',\n 'includeMirrors',\n 'localDir',\n 'migratePresets',\n 'platform',\n 'presetCachePersistence',\n 's3Endpoint',\n 's3PathStyle',\n 'userAgent',\n ];\n\n private static config: RepoGlobalConfig = {};\n\n static get(): RepoGlobalConfig;\n static get<Key extends keyof RepoGlobalConfig>(\n key: Key,\n ): RepoGlobalConfig[Key];\n static get<Key extends keyof RepoGlobalConfig>(\n key: Key,\n defaultValue: Required<RepoGlobalConfig>[Key],\n ): Required<RepoGlobalConfig>[Key];\n static get<Key extends keyof RepoGlobalConfig>(\n key?: Key,\n defaultValue?: RepoGlobalConfig[Key],\n ): RepoGlobalConfig | RepoGlobalConfig[Key] {\n return key\n ? (GlobalConfig.config[key] ?? defaultValue)\n : GlobalConfig.config;\n }\n\n static set(config: RenovateConfig & RepoGlobalConfig): RenovateConfig {\n GlobalConfig.reset();\n\n const result = { ...config };\n for (const option of GlobalConfig.OPTIONS) {\n GlobalConfig.config[option] = config[option] as never;\n delete result[option];\n }\n\n return result;\n }\n\n static reset(): void {\n GlobalConfig.config = {};\n }\n}\n"]}
1
+ {"version":3,"file":"global.js","sourceRoot":"","sources":["../../lib/config/global.ts"],"names":[],"mappings":";;;AAEA,MAAa,YAAY;IACvB,iIAAiI;IACjI,MAAM,CAAC,O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oGlobalConfig } from './types';\n\nexport class GlobalConfig {\n // TODO: once global config work is complete, add a test to make sure this list includes all options with globalOnly=true (#9603)\n static OPTIONS: readonly (keyof RepoGlobalConfig)[] = [\n 'allowCustomCrateRegistries',\n 'allowPlugins',\n 'allowScripts',\n 'allowedCommands',\n 'allowedEnv',\n 'allowedHeaders',\n 'autodiscoverRepoOrder',\n 'autodiscoverRepoSort',\n 'binarySource',\n 'cacheDir',\n 'cacheHardTtlMinutes',\n 'cachePrivatePackages',\n 'cacheTtlOverride',\n 'containerbaseDir',\n 'customEnvVariables',\n 'dockerChildPrefix',\n 'dockerCliOptions',\n 'dockerMaxPages',\n 'dockerSidecarImage',\n 'dockerUser',\n 'dryRun',\n 'encryptedWarning',\n 'endpoint',\n 'executionTimeout',\n 'exposeAllEnv',\n 'gitTimeout',\n 'githubTokenWarn',\n 'httpCacheTtlDays',\n 'ignorePrAuthor',\n 'includeMirrors',\n 'localDir',\n 'migratePresets',\n 'platform',\n 'presetCachePersistence',\n 's3Endpoint',\n 's3PathStyle',\n 'userAgent',\n ];\n\n private static config: RepoGlobalConfig = {};\n\n static get(): RepoGlobalConfig;\n static get<Key extends keyof RepoGlobalConfig>(\n key: Key,\n ): RepoGlobalConfig[Key];\n static get<Key extends keyof RepoGlobalConfig>(\n key: Key,\n defaultValue: Required<RepoGlobalConfig>[Key],\n ): Required<RepoGlobalConfig>[Key];\n static get<Key extends keyof RepoGlobalConfig>(\n key?: Key,\n defaultValue?: RepoGlobalConfig[Key],\n ): RepoGlobalConfig | RepoGlobalConfig[Key] {\n return key\n ? (GlobalConfig.config[key] ?? defaultValue)\n : GlobalConfig.config;\n }\n\n static set(config: RenovateConfig & RepoGlobalConfig): RenovateConfig {\n GlobalConfig.reset();\n\n const result = { ...config };\n for (const option of GlobalConfig.OPTIONS) {\n GlobalConfig.config[option] = config[option] as never;\n delete result[option];\n }\n\n return result;\n }\n\n static reset(): void {\n GlobalConfig.config = {};\n }\n}\n"]}
@@ -59,9 +59,14 @@ export declare const ATTR_RENOVATE_SPLIT = "renovate.split";
59
59
  * the Git Version Control System (VCS)'s Operation Type
60
60
  *
61
61
  * @see GitOperationType
62
+ * @see https://opentelemetry.io/docs/specs/semconv/registry/attributes/vcs/
62
63
  *
63
64
  */
64
65
  export declare const ATTR_VCS_GIT_OPERATION_TYPE = "vcs.git.operation.type";
65
- /** the Git Version Control System (VCS)'s subcommand */
66
+ /**
67
+ * the Git Version Control System (VCS)'s subcommand
68
+ *
69
+ * @see https://opentelemetry.io/docs/specs/semconv/registry/attributes/vcs/
70
+ * */
66
71
  export declare const ATTR_VCS_GIT_SUBCOMMAND = "vcs.git.subcommand";
67
72
  export {};
@@ -6,9 +6,14 @@ exports.ATTR_RENOVATE_SPLIT = 'renovate.split';
6
6
  * the Git Version Control System (VCS)'s Operation Type
7
7
  *
8
8
  * @see GitOperationType
9
+ * @see https://opentelemetry.io/docs/specs/semconv/registry/attributes/vcs/
9
10
  *
10
11
  */
11
12
  exports.ATTR_VCS_GIT_OPERATION_TYPE = 'vcs.git.operation.type';
12
- /** the Git Version Control System (VCS)'s subcommand */
13
+ /**
14
+ * the Git Version Control System (VCS)'s subcommand
15
+ *
16
+ * @see https://opentelemetry.io/docs/specs/semconv/registry/attributes/vcs/
17
+ * */
13
18
  exports.ATTR_VCS_GIT_SUBCOMMAND = 'vcs.git.subcommand';
14
19
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../lib/instrumentation/types.ts"],"names":[],"mappings":";;;AAoEa,QAAA,mBAAmB,GAAG,gBAAgB,CAAC;AAEpD;;;;;GAKG;AACU,QAAA,2BAA2B,GAAG,wBAAwB,CAAC;AAEpE,wDAAwD;AAC3C,QAAA,uBAAuB,GAAG,oBAAoB,CAAC","sourcesContent":["import type { Attributes, SpanKind, SpanOptions } from '@opentelemetry/api';\nimport type { RenovateSplit } from '../config/types';\nimport type { BunyanRecord } from '../logger/types';\nimport type { PackageFile } from '../modules/manager/types';\nimport type { BranchCache } from '../util/cache/repository/types';\nimport type { GitOperationType } from '../util/git/types';\n\nexport type RenovateSpanOptions = {\n attributes?: RenovateSpanAttributes;\n} & SpanOptions;\n\nexport type RenovateSpanAttributes = {\n [ATTR_RENOVATE_SPLIT]?: RenovateSplit;\n [ATTR_VCS_GIT_OPERATION_TYPE]?: GitOperationType;\n} & Attributes;\n\n/**\n * The instrumentation decorator parameters.\n */\nexport interface SpanParameters {\n /**\n * The name of the span\n */\n name: string;\n\n /**\n * Attributes which should be added to the span\n */\n attributes?: Attributes | undefined;\n\n /**\n * Should this span be added to the root span or to the current active span\n */\n ignoreParentSpan?: boolean;\n\n /**\n * Type of span this represents. Default: SpanKind.Internal\n */\n kind?: SpanKind;\n}\n\nexport interface Report {\n problems: BunyanRecord[];\n repositories: Record<string, RepoReport>;\n}\n\ninterface RepoReport {\n problems: BunyanRecord[];\n branches: Partial<BranchCache>[];\n packageFiles: Record<string, PackageFile[]>;\n libYearsWithStatus?: LibYearsWithStatus;\n}\n\nexport interface LibYearsWithStatus {\n libYears: LibYears;\n dependencyStatus: DependencyStatus;\n}\n\nexport interface LibYears {\n total: number;\n managers: Record<string, number>;\n}\n\nexport interface DependencyStatus {\n outdated: number;\n total: number;\n}\n\nexport const ATTR_RENOVATE_SPLIT = 'renovate.split';\n\n/**\n * the Git Version Control System (VCS)'s Operation Type\n *\n * @see GitOperationType\n *\n */\nexport const ATTR_VCS_GIT_OPERATION_TYPE = 'vcs.git.operation.type';\n\n/** the Git Version Control System (VCS)'s subcommand */\nexport const ATTR_VCS_GIT_SUBCOMMAND = 'vcs.git.subcommand';\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../lib/instrumentation/types.ts"],"names":[],"mappings":";;;AAoEa,QAAA,mBAAmB,GAAG,gBAAgB,CAAC;AAEpD;;;;;;GAMG;AACU,QAAA,2BAA2B,GAAG,wBAAwB,CAAC;AAEpE;;;;KAIK;AACQ,QAAA,uBAAuB,GAAG,oBAAoB,CAAC","sourcesContent":["import type { Attributes, SpanKind, SpanOptions } from '@opentelemetry/api';\nimport type { RenovateSplit } from '../config/types';\nimport type { BunyanRecord } from '../logger/types';\nimport type { PackageFile } from '../modules/manager/types';\nimport type { BranchCache } from '../util/cache/repository/types';\nimport type { GitOperationType } from '../util/git/types';\n\nexport type RenovateSpanOptions = {\n attributes?: RenovateSpanAttributes;\n} & SpanOptions;\n\nexport type RenovateSpanAttributes = {\n [ATTR_RENOVATE_SPLIT]?: RenovateSplit;\n [ATTR_VCS_GIT_OPERATION_TYPE]?: GitOperationType;\n} & Attributes;\n\n/**\n * The instrumentation decorator parameters.\n */\nexport interface SpanParameters {\n /**\n * The name of the span\n */\n name: string;\n\n /**\n * Attributes which should be added to the span\n */\n attributes?: Attributes | undefined;\n\n /**\n * Should this span be added to the root span or to the current active span\n */\n ignoreParentSpan?: boolean;\n\n /**\n * Type of span this represents. Default: SpanKind.Internal\n */\n kind?: SpanKind;\n}\n\nexport interface Report {\n problems: BunyanRecord[];\n repositories: Record<string, RepoReport>;\n}\n\ninterface RepoReport {\n problems: BunyanRecord[];\n branches: Partial<BranchCache>[];\n packageFiles: Record<string, PackageFile[]>;\n libYearsWithStatus?: LibYearsWithStatus;\n}\n\nexport interface LibYearsWithStatus {\n libYears: LibYears;\n dependencyStatus: DependencyStatus;\n}\n\nexport interface LibYears {\n total: number;\n managers: Record<string, number>;\n}\n\nexport interface DependencyStatus {\n outdated: number;\n total: number;\n}\n\nexport const ATTR_RENOVATE_SPLIT = 'renovate.split';\n\n/**\n * the Git Version Control System (VCS)'s Operation Type\n *\n * @see GitOperationType\n * @see https://opentelemetry.io/docs/specs/semconv/registry/attributes/vcs/\n *\n */\nexport const ATTR_VCS_GIT_OPERATION_TYPE = 'vcs.git.operation.type';\n\n/**\n * the Git Version Control System (VCS)'s subcommand\n *\n * @see https://opentelemetry.io/docs/specs/semconv/registry/attributes/vcs/\n * */\nexport const ATTR_VCS_GIT_SUBCOMMAND = 'vcs.git.subcommand';\n"]}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "renovate",
3
3
  "description": "Automated dependency updates. Flexible so you don't need to be.",
4
- "version": "42.29.3",
4
+ "version": "42.29.5",
5
5
  "type": "commonjs",
6
6
  "bin": {
7
7
  "renovate": "dist/renovate.js",
@@ -1,7 +1,7 @@
1
1
  {
2
- "title": "JSON schema for Renovate 42.29.3 config files (https://renovatebot.com/)",
2
+ "title": "JSON schema for Renovate 42.29.5 config files (https://renovatebot.com/)",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
- "x-renovate-version": "42.29.3",
4
+ "x-renovate-version": "42.29.5",
5
5
  "allowComments": true,
6
6
  "type": "object",
7
7
  "properties": {