renovate 44.238.2 → 44.239.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/migrated-content.js +29 -0
- package/dist/config/migrated-content.js.map +1 -0
- package/dist/config/options/index.js +1 -1
- package/dist/config/options/index.js.map +1 -1
- package/dist/config/parse.js +1 -1
- package/dist/config-validator.js +60 -9
- package/dist/config-validator.js.map +1 -1
- package/dist/global-config-option-defaults.generated.js +1 -1
- package/dist/global-config-option-defaults.generated.js.map +1 -1
- package/dist/modules/datasource/apk/index.js +1 -1
- package/dist/modules/datasource/deb/packages.js +1 -1
- package/dist/modules/datasource/rpm/providers/common.js +1 -1
- package/dist/modules/manager/cocoapods/artifacts.js +1 -1
- package/dist/modules/manager/copier/artifacts.js +1 -1
- package/dist/modules/manager/deno/artifacts.js +1 -1
- package/dist/modules/manager/gomod/artifacts.js +1 -1
- package/dist/modules/manager/gradle/artifacts.js +1 -1
- package/dist/modules/manager/gradle-wrapper/artifacts.js +1 -1
- package/dist/modules/manager/helmv3/common.js +1 -1
- package/dist/modules/manager/hermit/artifacts.js +1 -1
- package/dist/modules/manager/kustomize/artifacts.js +1 -1
- package/dist/modules/manager/maven-wrapper/artifacts.js +1 -1
- package/dist/modules/manager/mise/artifacts.js +1 -1
- package/dist/modules/manager/npm/artifacts.js +1 -1
- package/dist/modules/manager/npm/post-update/npm.js +1 -1
- package/dist/modules/manager/npm/post-update/pnpm.js +1 -1
- package/dist/modules/manager/npm/post-update/yarn.js +1 -1
- package/dist/modules/manager/nuget/artifacts.js +1 -1
- package/dist/modules/manager/pep621/processors/uv.js +1 -1
- package/dist/modules/manager/pip-compile/artifacts.js +1 -1
- package/dist/modules/manager/pip-compile/common.js +1 -1
- package/dist/modules/manager/terraform/lockfile/hash.js +1 -1
- package/dist/util/cache/package/impl/file.js +1 -1
- package/dist/util/fs/index.js +1 -1
- package/dist/util/git/index.js +1 -1
- package/dist/workers/global/initialize.js +1 -1
- package/dist/workers/repository/config-migration/branch/migrated-data.js +3 -16
- package/dist/workers/repository/config-migration/branch/migrated-data.js.map +1 -1
- package/dist/workers/repository/process/vulnerabilities.js +1 -1
- package/dist/workers/repository/update/branch/execute-post-upgrade-commands.js +1 -1
- package/package.json +5 -5
- package/renovate-schema.json +2 -2
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { logger } from "../logger/index.js";
|
|
2
|
+
import detectIndent from "detect-indent";
|
|
3
|
+
import JSON5 from "json5";
|
|
4
|
+
import { weave } from "jsonc-weaver";
|
|
5
|
+
// lib/config/migrated-content.ts
|
|
6
|
+
/**
|
|
7
|
+
* Serializes a migrated config for `filename`, preserving the comments and indentation of its `raw` content where possible.
|
|
8
|
+
*/
|
|
9
|
+
function stringifyMigratedConfig(filename, raw, migratedConfig) {
|
|
10
|
+
const indent = detectIndent(raw ?? "");
|
|
11
|
+
const indentSpace = indent.indent ?? " ";
|
|
12
|
+
let content;
|
|
13
|
+
if (filename.endsWith(".json5")) content = JSON5.stringify(migratedConfig, void 0, indentSpace);
|
|
14
|
+
else if (raw) try {
|
|
15
|
+
content = weave(raw, migratedConfig);
|
|
16
|
+
} catch (err) {
|
|
17
|
+
logger.warn({ err }, "Error weaving JSONC to preserve comments, falling back to JSON.stringify");
|
|
18
|
+
content = JSON.stringify(migratedConfig, void 0, indentSpace);
|
|
19
|
+
}
|
|
20
|
+
else content = JSON.stringify(migratedConfig, void 0, indentSpace);
|
|
21
|
+
if (!content.endsWith("\n")) content += "\n";
|
|
22
|
+
return {
|
|
23
|
+
content,
|
|
24
|
+
indent
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export { stringifyMigratedConfig };
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=migrated-content.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migrated-content.js","names":[],"sources":["../../lib/config/migrated-content.ts"],"sourcesContent":["import type { Indent } from 'detect-indent';\nimport detectIndent from 'detect-indent';\nimport JSON5 from 'json5';\nimport { weave } from 'jsonc-weaver';\nimport { logger } from '../logger/index.ts';\nimport type { RenovateConfig } from './types.ts';\n\nexport interface MigratedContent {\n content: string;\n indent: Indent;\n}\n\n/**\n * Serializes a migrated config for `filename`, preserving the comments and indentation of its `raw` content where possible.\n */\nexport function stringifyMigratedConfig(\n filename: string,\n raw: string | null,\n migratedConfig: RenovateConfig,\n): MigratedContent {\n const indent = detectIndent(raw ?? '');\n // indent defaults to 2 spaces\n const indentSpace = indent.indent ?? ' ';\n let content: string;\n\n if (filename.endsWith('.json5')) {\n content = JSON5.stringify(migratedConfig, undefined, indentSpace);\n } else if (raw) {\n try {\n content = weave(raw, migratedConfig);\n } catch (err) {\n logger.warn(\n { err },\n 'Error weaving JSONC to preserve comments, falling back to JSON.stringify',\n );\n content = JSON.stringify(migratedConfig, undefined, indentSpace);\n }\n } else {\n content = JSON.stringify(migratedConfig, undefined, indentSpace);\n }\n\n if (!content.endsWith('\\n')) {\n content += '\\n';\n }\n\n return { content, indent };\n}\n"],"mappings":";;;;;;;;AAeA,SAAgB,wBACd,UACA,KACA,gBACiB;CACjB,MAAM,SAAS,aAAa,OAAO,EAAE;CAErC,MAAM,cAAc,OAAO,UAAU;CACrC,IAAI;CAEJ,IAAI,SAAS,SAAS,QAAQ,GAC5B,UAAU,MAAM,UAAU,gBAAgB,KAAA,GAAW,WAAW;MAC3D,IAAI,KACT,IAAI;EACF,UAAU,MAAM,KAAK,cAAc;CACrC,SAAS,KAAK;EACZ,OAAO,KACL,EAAE,IAAI,GACN,0EACF;EACA,UAAU,KAAK,UAAU,gBAAgB,KAAA,GAAW,WAAW;CACjE;MAEA,UAAU,KAAK,UAAU,gBAAgB,KAAA,GAAW,WAAW;CAGjE,IAAI,CAAC,QAAQ,SAAS,IAAI,GACxB,WAAW;CAGb,OAAO;EAAE;EAAS;CAAO;AAC3B"}
|
|
@@ -767,7 +767,7 @@ const options = [
|
|
|
767
767
|
name: "dockerSidecarImage",
|
|
768
768
|
description: "Change this value to override the default Renovate sidecar image.",
|
|
769
769
|
type: "string",
|
|
770
|
-
default: "ghcr.io/renovatebot/base-image:13.166.
|
|
770
|
+
default: "ghcr.io/renovatebot/base-image:13.166.4",
|
|
771
771
|
globalOnly: true,
|
|
772
772
|
deprecationMsg: "The usage of `binarySource=docker` is deprecated, and will be removed in the future"
|
|
773
773
|
},
|