renovate 39.257.2 → 39.257.4
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/modules/datasource/docker/schema.d.ts +72 -96
- package/dist/modules/datasource/packagist/schema.d.ts +7 -7
- package/dist/modules/manager/argocd/schema.d.ts +12 -12
- package/dist/modules/manager/bazel-module/parser/maven.d.ts +6 -52
- package/dist/modules/manager/bazel-module/parser/oci.d.ts +3 -26
- package/dist/modules/manager/bazel-module/rules.d.ts +15 -125
- package/dist/modules/manager/cargo/schema.d.ts +3 -3
- package/dist/modules/manager/circleci/schema.d.ts +3 -3
- package/dist/modules/manager/composer/schema.d.ts +6 -8
- package/dist/modules/manager/flux/schema.d.ts +36 -60
- package/dist/modules/manager/gomod/update.js +1 -1
- package/dist/modules/manager/gomod/update.js.map +1 -1
- package/dist/modules/manager/sveltos/schema.d.ts +18 -30
- package/dist/modules/manager/vendir/schema.d.ts +3 -3
- package/dist/modules/platform/bitbucket/schema.d.ts +3 -3
- package/dist/modules/platform/github/issue.d.ts +6 -6
- package/dist/modules/platform/github/schema.d.ts +52 -52
- package/package.json +3 -3
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../../lib/modules/manager/gomod/update.ts"],"names":[],"mappings":";;AAeA,4CAsJC;AArKD,uBAAuB;AACvB,4CAAyC;AACzC,+CAA0D;AAG1D,SAAS,oBAAoB,CAAC,IAAY;IACxC,0CAA0C;IAC1C,IAAI,aAAa,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;IAChD,6FAA6F;IAC7F,IAAI,aAAa,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,CAAC;QACzC,aAAa,GAAG,aAAa,CAAC,OAAO,CAAC,IAAA,aAAK,EAAC,SAAS,CAAC,EAAE,EAAE,CAAC,CAAC;IAC9D,CAAC;IACD,OAAO,aAAa,CAAC;AACvB,CAAC;AAED,SAA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,KAAK,CAAC,GAAG,CAAC,CAAC;oBAChD,OAAO,GAAG,OAAO,CAAC,OAAO,CACvB,IAAA,aAAK,EAAC,IAAI,IAAI,QAAQ,EAAE,SAAS,EAAE,KAAK,CAAC,EACzC,KAAK,OAAO,CAAC,QAAQ,IAAI,CAC1B,CAAC;gBACJ,CAAC;YACH,CAAC;QACH,CAAC;QACD,IACE,YAAY,CAAC,QAAQ,CAAC,eAAe,CAAC;YACtC,CAAC,OAAO,CAAC,QAAQ,EAAE,QAAQ,CAAC,eAAe,CAAC,EAC5C,CAAC;YACD,IAAI,KAAK,GAAG,eAAe,CAAC;YAE5B,IAAI,OAAO,CAAC,UAAU,KAAK,OAAO,IAAI,OAAO,CAAC,QAAS,IAAI,CAAC,EAAE,CAAC;gBAC7D,KAAK,GAAG,EAAE,CAAC;YACb,CAAC;YACD,OAAO,IAAI,KAAK,CAAC;QACnB,CAAC;QACD,IAAI,OAAO,KAAK,YAAY,EAAE,CAAC;YAC7B,eAAM,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC;YACrC,OAAO,WAAW,CAAC;QACrB,CAAC;QAED,IAAI,OAAO,KAAK,UAAU,EAAE,CAAC;YAC3B,OAAO,GAAG,OAAO,CAAC,OAAO,CACvB,IAAA,aAAK,EAAC,sCAAsC,CAAC,EAC7C,cAAc,CACf,CAAC;QACJ,CAAC;QAED,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,UAAU,CAAC,GAAG,OAAO,CAAC;QAChD,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,eAAM,CAAC,KAAK,CAAC,EAAE,GAAG,EAAE,EAAE,kCAAkC,CAAC,CAAC;QAC1D,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC","sourcesContent":["// TODO: types (#22198)\nimport { logger } from '../../../logger';\nimport { newlineRegex, regEx } from '../../../util/regex';\nimport type { UpdateDependencyConfig } from '../types';\n\nfunction getNameWithNoVersion(name: string): string {\n // remove version suffixes like /v1 or /v2\n let nameNoVersion = name.replace(/\\/v\\d+$/, '');\n // gopkg.in is a special case where the major version is added with a dot rather than a slash\n if (nameNoVersion.startsWith('gopkg.in')) {\n nameNoVersion = nameNoVersion.replace(regEx(/\\.v\\d+$/), '');\n }\n return nameNoVersion;\n}\n\nexport function updateDependency({\n fileContent,\n upgrade,\n}: UpdateDependencyConfig): string | null {\n try {\n logger.debug(`gomod.updateDependency: ${upgrade.newValue}`);\n const { depType, updateType } = upgrade;\n const currentName = upgrade.depName;\n if (updateType === 'replacement') {\n logger.warn('gomod manager does not support replacement updates yet');\n return null;\n }\n /* v8 ignore next 3 -- should never happen */\n if (!currentName || !upgrade.managerData) {\n return null;\n }\n const currentNameNoVersion = getNameWithNoVersion(currentName);\n const lines = fileContent.split(newlineRegex);\n /* v8 ignore next 4 -- hard to test */\n if (lines.length <= upgrade.managerData.lineNumber) {\n logger.warn('go.mod current line no longer exists after update');\n return null;\n }\n const lineToChange = lines[upgrade.managerData.lineNumber];\n logger.trace({ upgrade, lineToChange }, 'go.mod current line');\n if (\n !lineToChange.includes(currentNameNoVersion) &&\n !lineToChange.includes('rethinkdb/rethinkdb-go.v5')\n ) {\n logger.debug(\n { lineToChange, depName: currentName },\n \"go.mod current line doesn't contain dependency\",\n );\n return null;\n }\n let updateLineExp: RegExp | undefined;\n\n if (depType === 'golang' || depType === 'toolchain') {\n updateLineExp = regEx(\n /(?<depPart>(?:toolchain )?go)(?<divider>\\s*)([^\\s]+|[\\w]+)/,\n );\n }\n if (depType === 'replace') {\n if (upgrade.managerData.multiLine) {\n updateLineExp = regEx(\n /^(?<depPart>\\s+[^\\s]+[\\s]+[=][>]+\\s+)(?<divider>[^\\s]+\\s+)[^\\s]+/,\n );\n } else {\n updateLineExp = regEx(\n /^(?<depPart>replace\\s+[^\\s]+[\\s]+[=][>]+\\s+)(?<divider>[^\\s]+\\s+)[^\\s]+/,\n );\n }\n } else if (depType === 'require' || depType === 'indirect') {\n if (upgrade.managerData.multiLine) {\n updateLineExp = regEx(/^(?<depPart>\\s+[^\\s]+)(?<divider>\\s+)[^\\s]+/);\n } else {\n updateLineExp = regEx(\n /^(?<depPart>require\\s+[^\\s]+)(?<divider>\\s+)[^\\s]+/,\n );\n }\n }\n if (updateLineExp && !updateLineExp.test(lineToChange)) {\n logger.debug('No line found to update');\n return null;\n }\n let newLine: string;\n if (upgrade.updateType === 'digest') {\n const newDigestRightSized = upgrade.newDigest!.substring(\n 0,\n upgrade.currentDigest!.length,\n );\n if (lineToChange.includes(newDigestRightSized)) {\n return fileContent;\n }\n logger.debug(\n { depName: currentName, lineToChange, newDigestRightSized },\n 'gomod: need to update digest',\n );\n newLine = lineToChange.replace(\n // TODO: can be undefined? (#22198)\n updateLineExp!,\n `$<depPart>$<divider>${newDigestRightSized}`,\n );\n } else {\n newLine = lineToChange.replace(\n // TODO: can be undefined? (#22198)\n updateLineExp!,\n `$<depPart>$<divider>${upgrade.newValue}`,\n );\n }\n if (upgrade.updateType === 'major') {\n logger.debug(`gomod: major update for ${currentName}`);\n if (currentName.startsWith('gopkg.in/')) {\n const oldV = currentName.split('.').pop();\n newLine = newLine.replace(`.${oldV}`, `.v${upgrade.newMajor}`);\n // Package renames - I couldn't think of a better place to do this\n newLine = newLine.replace(\n 'gorethink/gorethink.v5',\n 'rethinkdb/rethinkdb-go.v5',\n );\n } else if (\n upgrade.newMajor! > 1 &&\n !newLine.includes(`/v${upgrade.newMajor}`) &&\n !upgrade.newValue!.endsWith('+incompatible')\n ) {\n if (currentName === currentNameNoVersion) {\n // If package currently has no version, pin to latest one.\n newLine = newLine.replace(\n currentName,\n `${currentName}/v${upgrade.newMajor}`,\n );\n } else {\n // Replace version\n const [oldV] = upgrade.currentValue!.split('.');\n newLine = newLine.replace(\n regEx(`/${oldV}(\\\\s+)`, undefined, false),\n `/v${upgrade.newMajor}$1`,\n );\n }\n }\n }\n if (\n lineToChange.endsWith('+incompatible') &&\n !upgrade.newValue?.endsWith('+incompatible')\n ) {\n let toAdd = '+incompatible';\n\n if (upgrade.updateType === 'major' && upgrade.newMajor! >= 2) {\n toAdd = '';\n }\n newLine += toAdd;\n }\n if (newLine === lineToChange) {\n logger.debug('No changes necessary');\n return fileContent;\n }\n\n if (depType === 'indirect') {\n newLine = newLine.replace(\n regEx(/\\s*(?:\\/\\/\\s*indirect(?:\\s*;)?\\s*)*$/),\n ' // indirect',\n );\n }\n\n lines[upgrade.managerData.lineNumber] = newLine;\n return lines.join('\\n');\n } catch (err) {\n logger.debug({ err }, 'Error setting new go.mod version');\n return null;\n }\n}\n"]}
|
1
|
+
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../../lib/modules/manager/gomod/update.ts"],"names":[],"mappings":";;AAeA,4CAsJC;AArKD,uBAAuB;AACvB,4CAAyC;AACzC,+CAA0D;AAG1D,SAAS,oBAAoB,CAAC,IAAY;IACxC,0CAA0C;IAC1C,IAAI,aAAa,GAAG,IAAI,CAAC,OAAO,CAAC,IAAA,aAAK,EAAC,SAAS,CAAC,EAAE,EAAE,CAAC,CAAC;IACvD,6FAA6F;IAC7F,IAAI,aAAa,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,CAAC;QACzC,aAAa,GAAG,aAAa,CAAC,OAAO,CAAC,IAAA,aAAK,EAAC,SAAS,CAAC,EAAE,EAAE,CAAC,CAAC;IAC9D,CAAC;IACD,OAAO,aAAa,CAAC;AACvB,CAAC;AAED,SAAgB,gBAAgB,CAAC,EAC/B,WAAW,EACX,OAAO,GACgB;IACvB,IAAI,CAAC;QACH,eAAM,CAAC,KAAK,CAAC,2BAA2B,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC5D,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC;QACxC,MAAM,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC;QACpC,IAAI,UAAU,KAAK,aAAa,EAAE,CAAC;YACjC,eAAM,CAAC,IAAI,CA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CAAC,eAAe,CAAC,EAC5C,CAAC;YACD,IAAI,KAAK,GAAG,eAAe,CAAC;YAE5B,IAAI,OAAO,CAAC,UAAU,KAAK,OAAO,IAAI,OAAO,CAAC,QAAS,IAAI,CAAC,EAAE,CAAC;gBAC7D,KAAK,GAAG,EAAE,CAAC;YACb,CAAC;YACD,OAAO,IAAI,KAAK,CAAC;QACnB,CAAC;QACD,IAAI,OAAO,KAAK,YAAY,EAAE,CAAC;YAC7B,eAAM,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC;YACrC,OAAO,WAAW,CAAC;QACrB,CAAC;QAED,IAAI,OAAO,KAAK,UAAU,EAAE,CAAC;YAC3B,OAAO,GAAG,OAAO,CAAC,OAAO,CACvB,IAAA,aAAK,EAAC,sCAAsC,CAAC,EAC7C,cAAc,CACf,CAAC;QACJ,CAAC;QAED,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,UAAU,CAAC,GAAG,OAAO,CAAC;QAChD,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,eAAM,CAAC,KAAK,CAAC,EAAE,GAAG,EAAE,EAAE,kCAAkC,CAAC,CAAC;QAC1D,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC","sourcesContent":["// TODO: types (#22198)\nimport { logger } from '../../../logger';\nimport { newlineRegex, regEx } from '../../../util/regex';\nimport type { UpdateDependencyConfig } from '../types';\n\nfunction getNameWithNoVersion(name: string): string {\n // remove version suffixes like /v1 or /v2\n let nameNoVersion = name.replace(regEx(/\\/v\\d+$/), '');\n // gopkg.in is a special case where the major version is added with a dot rather than a slash\n if (nameNoVersion.startsWith('gopkg.in')) {\n nameNoVersion = nameNoVersion.replace(regEx(/\\.v\\d+$/), '');\n }\n return nameNoVersion;\n}\n\nexport function updateDependency({\n fileContent,\n upgrade,\n}: UpdateDependencyConfig): string | null {\n try {\n logger.debug(`gomod.updateDependency: ${upgrade.newValue}`);\n const { depType, updateType } = upgrade;\n const currentName = upgrade.depName;\n if (updateType === 'replacement') {\n logger.warn('gomod manager does not support replacement updates yet');\n return null;\n }\n /* v8 ignore next 3 -- should never happen */\n if (!currentName || !upgrade.managerData) {\n return null;\n }\n const currentNameNoVersion = getNameWithNoVersion(currentName);\n const lines = fileContent.split(newlineRegex);\n /* v8 ignore next 4 -- hard to test */\n if (lines.length <= upgrade.managerData.lineNumber) {\n logger.warn('go.mod current line no longer exists after update');\n return null;\n }\n const lineToChange = lines[upgrade.managerData.lineNumber];\n logger.trace({ upgrade, lineToChange }, 'go.mod current line');\n if (\n !lineToChange.includes(currentNameNoVersion) &&\n !lineToChange.includes('rethinkdb/rethinkdb-go.v5')\n ) {\n logger.debug(\n { lineToChange, depName: currentName },\n \"go.mod current line doesn't contain dependency\",\n );\n return null;\n }\n let updateLineExp: RegExp | undefined;\n\n if (depType === 'golang' || depType === 'toolchain') {\n updateLineExp = regEx(\n /(?<depPart>(?:toolchain )?go)(?<divider>\\s*)([^\\s]+|[\\w]+)/,\n );\n }\n if (depType === 'replace') {\n if (upgrade.managerData.multiLine) {\n updateLineExp = regEx(\n /^(?<depPart>\\s+[^\\s]+[\\s]+[=][>]+\\s+)(?<divider>[^\\s]+\\s+)[^\\s]+/,\n );\n } else {\n updateLineExp = regEx(\n /^(?<depPart>replace\\s+[^\\s]+[\\s]+[=][>]+\\s+)(?<divider>[^\\s]+\\s+)[^\\s]+/,\n );\n }\n } else if (depType === 'require' || depType === 'indirect') {\n if (upgrade.managerData.multiLine) {\n updateLineExp = regEx(/^(?<depPart>\\s+[^\\s]+)(?<divider>\\s+)[^\\s]+/);\n } else {\n updateLineExp = regEx(\n /^(?<depPart>require\\s+[^\\s]+)(?<divider>\\s+)[^\\s]+/,\n );\n }\n }\n if (updateLineExp && !updateLineExp.test(lineToChange)) {\n logger.debug('No line found to update');\n return null;\n }\n let newLine: string;\n if (upgrade.updateType === 'digest') {\n const newDigestRightSized = upgrade.newDigest!.substring(\n 0,\n upgrade.currentDigest!.length,\n );\n if (lineToChange.includes(newDigestRightSized)) {\n return fileContent;\n }\n logger.debug(\n { depName: currentName, lineToChange, newDigestRightSized },\n 'gomod: need to update digest',\n );\n newLine = lineToChange.replace(\n // TODO: can be undefined? (#22198)\n updateLineExp!,\n `$<depPart>$<divider>${newDigestRightSized}`,\n );\n } else {\n newLine = lineToChange.replace(\n // TODO: can be undefined? (#22198)\n updateLineExp!,\n `$<depPart>$<divider>${upgrade.newValue}`,\n );\n }\n if (upgrade.updateType === 'major') {\n logger.debug(`gomod: major update for ${currentName}`);\n if (currentName.startsWith('gopkg.in/')) {\n const oldV = currentName.split('.').pop();\n newLine = newLine.replace(`.${oldV}`, `.v${upgrade.newMajor}`);\n // Package renames - I couldn't think of a better place to do this\n newLine = newLine.replace(\n 'gorethink/gorethink.v5',\n 'rethinkdb/rethinkdb-go.v5',\n );\n } else if (\n upgrade.newMajor! > 1 &&\n !newLine.includes(`/v${upgrade.newMajor}`) &&\n !upgrade.newValue!.endsWith('+incompatible')\n ) {\n if (currentName === currentNameNoVersion) {\n // If package currently has no version, pin to latest one.\n newLine = newLine.replace(\n currentName,\n `${currentName}/v${upgrade.newMajor}`,\n );\n } else {\n // Replace version\n const [oldV] = upgrade.currentValue!.split('.');\n newLine = newLine.replace(\n regEx(`/${oldV}(\\\\s+)`, undefined, false),\n `/v${upgrade.newMajor}$1`,\n );\n }\n }\n }\n if (\n lineToChange.endsWith('+incompatible') &&\n !upgrade.newValue?.endsWith('+incompatible')\n ) {\n let toAdd = '+incompatible';\n\n if (upgrade.updateType === 'major' && upgrade.newMajor! >= 2) {\n toAdd = '';\n }\n newLine += toAdd;\n }\n if (newLine === lineToChange) {\n logger.debug('No changes necessary');\n return fileContent;\n }\n\n if (depType === 'indirect') {\n newLine = newLine.replace(\n regEx(/\\s*(?:\\/\\/\\s*indirect(?:\\s*;)?\\s*)*$/),\n ' // indirect',\n );\n }\n\n lines[upgrade.managerData.lineNumber] = newLine;\n return lines.join('\\n');\n } catch (err) {\n logger.debug({ err }, 'Error setting new go.mod version');\n return null;\n }\n}\n"]}
|
@@ -34,9 +34,7 @@ export declare const SveltosHelmSpec: z.ZodObject<{
|
|
34
34
|
helmCharts?: any[] | undefined;
|
35
35
|
}>;
|
36
36
|
export type SveltosHelmSpec = z.infer<typeof SveltosHelmSpec>;
|
37
|
-
export declare const ClusterProfile: z.ZodObject<
|
38
|
-
apiVersion: z.ZodString;
|
39
|
-
kind: z.ZodString;
|
37
|
+
export declare const ClusterProfile: z.ZodObject<{
|
40
38
|
metadata: z.ZodObject<{
|
41
39
|
name: z.ZodString;
|
42
40
|
namespace: z.ZodOptional<z.ZodString>;
|
@@ -47,7 +45,7 @@ export declare const ClusterProfile: z.ZodObject<z.objectUtil.extendShape<{
|
|
47
45
|
name: string;
|
48
46
|
namespace?: string | undefined;
|
49
47
|
}>;
|
50
|
-
}
|
48
|
+
} & {
|
51
49
|
apiVersion: z.ZodString;
|
52
50
|
kind: z.ZodLiteral<"ClusterProfile">;
|
53
51
|
spec: z.ZodObject<{
|
@@ -67,7 +65,7 @@ export declare const ClusterProfile: z.ZodObject<z.objectUtil.extendShape<{
|
|
67
65
|
}, {
|
68
66
|
helmCharts?: any[] | undefined;
|
69
67
|
}>;
|
70
|
-
}
|
68
|
+
}, "strip", z.ZodTypeAny, {
|
71
69
|
apiVersion: string;
|
72
70
|
metadata: {
|
73
71
|
name: string;
|
@@ -93,9 +91,7 @@ export declare const ClusterProfile: z.ZodObject<z.objectUtil.extendShape<{
|
|
93
91
|
helmCharts?: any[] | undefined;
|
94
92
|
};
|
95
93
|
}>;
|
96
|
-
export declare const Profile: z.ZodObject<
|
97
|
-
apiVersion: z.ZodString;
|
98
|
-
kind: z.ZodString;
|
94
|
+
export declare const Profile: z.ZodObject<{
|
99
95
|
metadata: z.ZodObject<{
|
100
96
|
name: z.ZodString;
|
101
97
|
namespace: z.ZodOptional<z.ZodString>;
|
@@ -106,7 +102,7 @@ export declare const Profile: z.ZodObject<z.objectUtil.extendShape<{
|
|
106
102
|
name: string;
|
107
103
|
namespace?: string | undefined;
|
108
104
|
}>;
|
109
|
-
}
|
105
|
+
} & {
|
110
106
|
apiVersion: z.ZodString;
|
111
107
|
kind: z.ZodLiteral<"Profile">;
|
112
108
|
spec: z.ZodObject<{
|
@@ -126,7 +122,7 @@ export declare const Profile: z.ZodObject<z.objectUtil.extendShape<{
|
|
126
122
|
}, {
|
127
123
|
helmCharts?: any[] | undefined;
|
128
124
|
}>;
|
129
|
-
}
|
125
|
+
}, "strip", z.ZodTypeAny, {
|
130
126
|
apiVersion: string;
|
131
127
|
metadata: {
|
132
128
|
name: string;
|
@@ -152,9 +148,7 @@ export declare const Profile: z.ZodObject<z.objectUtil.extendShape<{
|
|
152
148
|
helmCharts?: any[] | undefined;
|
153
149
|
};
|
154
150
|
}>;
|
155
|
-
export declare const EventTrigger: z.ZodObject<
|
156
|
-
apiVersion: z.ZodString;
|
157
|
-
kind: z.ZodString;
|
151
|
+
export declare const EventTrigger: z.ZodObject<{
|
158
152
|
metadata: z.ZodObject<{
|
159
153
|
name: z.ZodString;
|
160
154
|
namespace: z.ZodOptional<z.ZodString>;
|
@@ -165,7 +159,7 @@ export declare const EventTrigger: z.ZodObject<z.objectUtil.extendShape<{
|
|
165
159
|
name: string;
|
166
160
|
namespace?: string | undefined;
|
167
161
|
}>;
|
168
|
-
}
|
162
|
+
} & {
|
169
163
|
apiVersion: z.ZodString;
|
170
164
|
kind: z.ZodLiteral<"EventTrigger">;
|
171
165
|
spec: z.ZodObject<{
|
@@ -185,7 +179,7 @@ export declare const EventTrigger: z.ZodObject<z.objectUtil.extendShape<{
|
|
185
179
|
}, {
|
186
180
|
helmCharts?: any[] | undefined;
|
187
181
|
}>;
|
188
|
-
}
|
182
|
+
}, "strip", z.ZodTypeAny, {
|
189
183
|
apiVersion: string;
|
190
184
|
metadata: {
|
191
185
|
name: string;
|
@@ -211,9 +205,7 @@ export declare const EventTrigger: z.ZodObject<z.objectUtil.extendShape<{
|
|
211
205
|
helmCharts?: any[] | undefined;
|
212
206
|
};
|
213
207
|
}>;
|
214
|
-
export declare const ProfileDefinition: z.ZodUnion<[z.ZodObject<
|
215
|
-
apiVersion: z.ZodString;
|
216
|
-
kind: z.ZodString;
|
208
|
+
export declare const ProfileDefinition: z.ZodUnion<[z.ZodObject<{
|
217
209
|
metadata: z.ZodObject<{
|
218
210
|
name: z.ZodString;
|
219
211
|
namespace: z.ZodOptional<z.ZodString>;
|
@@ -224,7 +216,7 @@ export declare const ProfileDefinition: z.ZodUnion<[z.ZodObject<z.objectUtil.ext
|
|
224
216
|
name: string;
|
225
217
|
namespace?: string | undefined;
|
226
218
|
}>;
|
227
|
-
}
|
219
|
+
} & {
|
228
220
|
apiVersion: z.ZodString;
|
229
221
|
kind: z.ZodLiteral<"Profile">;
|
230
222
|
spec: z.ZodObject<{
|
@@ -244,7 +236,7 @@ export declare const ProfileDefinition: z.ZodUnion<[z.ZodObject<z.objectUtil.ext
|
|
244
236
|
}, {
|
245
237
|
helmCharts?: any[] | undefined;
|
246
238
|
}>;
|
247
|
-
}
|
239
|
+
}, "strip", z.ZodTypeAny, {
|
248
240
|
apiVersion: string;
|
249
241
|
metadata: {
|
250
242
|
name: string;
|
@@ -269,9 +261,7 @@ export declare const ProfileDefinition: z.ZodUnion<[z.ZodObject<z.objectUtil.ext
|
|
269
261
|
spec: {
|
270
262
|
helmCharts?: any[] | undefined;
|
271
263
|
};
|
272
|
-
}>, z.ZodObject<
|
273
|
-
apiVersion: z.ZodString;
|
274
|
-
kind: z.ZodString;
|
264
|
+
}>, z.ZodObject<{
|
275
265
|
metadata: z.ZodObject<{
|
276
266
|
name: z.ZodString;
|
277
267
|
namespace: z.ZodOptional<z.ZodString>;
|
@@ -282,7 +272,7 @@ export declare const ProfileDefinition: z.ZodUnion<[z.ZodObject<z.objectUtil.ext
|
|
282
272
|
name: string;
|
283
273
|
namespace?: string | undefined;
|
284
274
|
}>;
|
285
|
-
}
|
275
|
+
} & {
|
286
276
|
apiVersion: z.ZodString;
|
287
277
|
kind: z.ZodLiteral<"ClusterProfile">;
|
288
278
|
spec: z.ZodObject<{
|
@@ -302,7 +292,7 @@ export declare const ProfileDefinition: z.ZodUnion<[z.ZodObject<z.objectUtil.ext
|
|
302
292
|
}, {
|
303
293
|
helmCharts?: any[] | undefined;
|
304
294
|
}>;
|
305
|
-
}
|
295
|
+
}, "strip", z.ZodTypeAny, {
|
306
296
|
apiVersion: string;
|
307
297
|
metadata: {
|
308
298
|
name: string;
|
@@ -327,9 +317,7 @@ export declare const ProfileDefinition: z.ZodUnion<[z.ZodObject<z.objectUtil.ext
|
|
327
317
|
spec: {
|
328
318
|
helmCharts?: any[] | undefined;
|
329
319
|
};
|
330
|
-
}>, z.ZodObject<
|
331
|
-
apiVersion: z.ZodString;
|
332
|
-
kind: z.ZodString;
|
320
|
+
}>, z.ZodObject<{
|
333
321
|
metadata: z.ZodObject<{
|
334
322
|
name: z.ZodString;
|
335
323
|
namespace: z.ZodOptional<z.ZodString>;
|
@@ -340,7 +328,7 @@ export declare const ProfileDefinition: z.ZodUnion<[z.ZodObject<z.objectUtil.ext
|
|
340
328
|
name: string;
|
341
329
|
namespace?: string | undefined;
|
342
330
|
}>;
|
343
|
-
}
|
331
|
+
} & {
|
344
332
|
apiVersion: z.ZodString;
|
345
333
|
kind: z.ZodLiteral<"EventTrigger">;
|
346
334
|
spec: z.ZodObject<{
|
@@ -360,7 +348,7 @@ export declare const ProfileDefinition: z.ZodUnion<[z.ZodObject<z.objectUtil.ext
|
|
360
348
|
}, {
|
361
349
|
helmCharts?: any[] | undefined;
|
362
350
|
}>;
|
363
|
-
}
|
351
|
+
}, "strip", z.ZodTypeAny, {
|
364
352
|
apiVersion: string;
|
365
353
|
metadata: {
|
366
354
|
name: string;
|
@@ -251,10 +251,10 @@ export declare const Contents: z.ZodUnion<[z.ZodObject<{
|
|
251
251
|
slug: string;
|
252
252
|
};
|
253
253
|
}>]>;
|
254
|
-
export declare const Vendir: z.ZodObject<
|
254
|
+
export declare const Vendir: z.ZodObject<{
|
255
255
|
apiVersion: z.ZodLiteral<"vendir.k14s.io/v1alpha1">;
|
256
256
|
kind: z.ZodLiteral<"Config">;
|
257
|
-
}
|
257
|
+
} & {
|
258
258
|
directories: z.ZodArray<z.ZodObject<{
|
259
259
|
path: z.ZodString;
|
260
260
|
contents: z.ZodEffects<z.ZodArray<z.ZodAny, "many">, ({
|
@@ -309,7 +309,7 @@ export declare const Vendir: z.ZodObject<z.objectUtil.extendShape<{
|
|
309
309
|
path: string;
|
310
310
|
contents: any[];
|
311
311
|
}>, "many">;
|
312
|
-
}
|
312
|
+
}, "strip", z.ZodTypeAny, {
|
313
313
|
apiVersion: "vendir.k14s.io/v1alpha1";
|
314
314
|
kind: "Config";
|
315
315
|
directories: {
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { z } from 'zod';
|
2
|
-
export declare const PagedSourceResultsSchema: z.ZodObject<
|
2
|
+
export declare const PagedSourceResultsSchema: z.ZodObject<{
|
3
3
|
page: z.ZodOptional<z.ZodNumber>;
|
4
4
|
pagelen: z.ZodNumber;
|
5
5
|
size: z.ZodOptional<z.ZodNumber>;
|
6
6
|
next: z.ZodOptional<z.ZodString>;
|
7
|
-
}
|
7
|
+
} & {
|
8
8
|
values: z.ZodArray<z.ZodObject<{
|
9
9
|
path: z.ZodString;
|
10
10
|
type: z.ZodEnum<["commit_directory", "commit_file"]>;
|
@@ -28,7 +28,7 @@ export declare const PagedSourceResultsSchema: z.ZodObject<z.objectUtil.extendSh
|
|
28
28
|
};
|
29
29
|
type: "commit_directory" | "commit_file";
|
30
30
|
}>, "many">;
|
31
|
-
}
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
32
32
|
values: {
|
33
33
|
path: string;
|
34
34
|
commit: {
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import { z } from 'zod';
|
2
|
-
export declare const GithubIssue: z.ZodUnion<[z.ZodEffects<z.ZodObject<
|
2
|
+
export declare const GithubIssue: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
3
3
|
number: z.ZodNumber;
|
4
4
|
state: z.ZodEffects<z.ZodString, string, string>;
|
5
5
|
title: z.ZodString;
|
6
6
|
body: z.ZodString;
|
7
|
-
}
|
7
|
+
} & {
|
8
8
|
updatedAt: z.ZodString;
|
9
|
-
}
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
10
10
|
number: number;
|
11
11
|
body: string;
|
12
12
|
state: string;
|
@@ -30,14 +30,14 @@ export declare const GithubIssue: z.ZodUnion<[z.ZodEffects<z.ZodObject<z.objectU
|
|
30
30
|
state: string;
|
31
31
|
updatedAt: string;
|
32
32
|
title: string;
|
33
|
-
}>, z.ZodEffects<z.ZodObject<
|
33
|
+
}>, z.ZodEffects<z.ZodObject<{
|
34
34
|
number: z.ZodNumber;
|
35
35
|
state: z.ZodEffects<z.ZodString, string, string>;
|
36
36
|
title: z.ZodString;
|
37
37
|
body: z.ZodString;
|
38
|
-
}
|
38
|
+
} & {
|
39
39
|
updated_at: z.ZodString;
|
40
|
-
}
|
40
|
+
}, "strip", z.ZodTypeAny, {
|
41
41
|
number: number;
|
42
42
|
body: string;
|
43
43
|
state: string;
|
@@ -25,12 +25,12 @@ export declare const VulnerabilityAlertSchema: z.ZodEffects<z.ZodArray<z.ZodAny,
|
|
25
25
|
};
|
26
26
|
dismissed_reason?: string | null | undefined;
|
27
27
|
}[], any[]>;
|
28
|
-
export declare const GithubFileMeta: z.ZodObject<
|
28
|
+
export declare const GithubFileMeta: z.ZodObject<{
|
29
29
|
name: z.ZodString;
|
30
30
|
path: z.ZodString;
|
31
|
-
}
|
31
|
+
} & {
|
32
32
|
type: z.ZodLiteral<"file">;
|
33
|
-
}
|
33
|
+
}, "strip", z.ZodTypeAny, {
|
34
34
|
path: string;
|
35
35
|
type: "file";
|
36
36
|
name: string;
|
@@ -40,15 +40,15 @@ export declare const GithubFileMeta: z.ZodObject<z.objectUtil.extendShape<{
|
|
40
40
|
name: string;
|
41
41
|
}>;
|
42
42
|
export type GithubFileMeta = z.infer<typeof GithubFileMeta>;
|
43
|
-
export declare const GithubFile: z.ZodObject<
|
43
|
+
export declare const GithubFile: z.ZodObject<{
|
44
44
|
name: z.ZodString;
|
45
45
|
path: z.ZodString;
|
46
|
-
}
|
46
|
+
} & {
|
47
47
|
type: z.ZodLiteral<"file">;
|
48
|
-
}
|
48
|
+
} & {
|
49
49
|
content: z.ZodString;
|
50
50
|
encoding: z.ZodString;
|
51
|
-
}
|
51
|
+
}, "strip", z.ZodTypeAny, {
|
52
52
|
path: string;
|
53
53
|
type: "file";
|
54
54
|
name: string;
|
@@ -62,12 +62,12 @@ export declare const GithubFile: z.ZodObject<z.objectUtil.extendShape<z.objectUt
|
|
62
62
|
content: string;
|
63
63
|
}>;
|
64
64
|
export type GithubFile = z.infer<typeof GithubFile>;
|
65
|
-
export declare const GithubDirectory: z.ZodObject<
|
65
|
+
export declare const GithubDirectory: z.ZodObject<{
|
66
66
|
name: z.ZodString;
|
67
67
|
path: z.ZodString;
|
68
|
-
}
|
68
|
+
} & {
|
69
69
|
type: z.ZodLiteral<"dir">;
|
70
|
-
}
|
70
|
+
}, "strip", z.ZodTypeAny, {
|
71
71
|
path: string;
|
72
72
|
type: "dir";
|
73
73
|
name: string;
|
@@ -77,12 +77,12 @@ export declare const GithubDirectory: z.ZodObject<z.objectUtil.extendShape<{
|
|
77
77
|
name: string;
|
78
78
|
}>;
|
79
79
|
export type GithubDirectory = z.infer<typeof GithubDirectory>;
|
80
|
-
export declare const GithubOtherContent: z.ZodObject<
|
80
|
+
export declare const GithubOtherContent: z.ZodObject<{
|
81
81
|
name: z.ZodString;
|
82
82
|
path: z.ZodString;
|
83
|
-
}
|
83
|
+
} & {
|
84
84
|
type: z.ZodUnion<[z.ZodLiteral<"symlink">, z.ZodLiteral<"submodule">]>;
|
85
|
-
}
|
85
|
+
}, "strip", z.ZodTypeAny, {
|
86
86
|
path: string;
|
87
87
|
type: "symlink" | "submodule";
|
88
88
|
name: string;
|
@@ -92,15 +92,15 @@ export declare const GithubOtherContent: z.ZodObject<z.objectUtil.extendShape<{
|
|
92
92
|
name: string;
|
93
93
|
}>;
|
94
94
|
export type GithubOtherContent = z.infer<typeof GithubOtherContent>;
|
95
|
-
export declare const GithubElement: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<
|
95
|
+
export declare const GithubElement: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
96
96
|
name: z.ZodString;
|
97
97
|
path: z.ZodString;
|
98
|
-
}
|
98
|
+
} & {
|
99
99
|
type: z.ZodLiteral<"file">;
|
100
|
-
}
|
100
|
+
} & {
|
101
101
|
content: z.ZodString;
|
102
102
|
encoding: z.ZodString;
|
103
|
-
}
|
103
|
+
}, "strip", z.ZodTypeAny, {
|
104
104
|
path: string;
|
105
105
|
type: "file";
|
106
106
|
name: string;
|
@@ -112,12 +112,12 @@ export declare const GithubElement: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObj
|
|
112
112
|
name: string;
|
113
113
|
encoding: string;
|
114
114
|
content: string;
|
115
|
-
}>, z.ZodObject<
|
115
|
+
}>, z.ZodObject<{
|
116
116
|
name: z.ZodString;
|
117
117
|
path: z.ZodString;
|
118
|
-
}
|
118
|
+
} & {
|
119
119
|
type: z.ZodLiteral<"file">;
|
120
|
-
}
|
120
|
+
}, "strip", z.ZodTypeAny, {
|
121
121
|
path: string;
|
122
122
|
type: "file";
|
123
123
|
name: string;
|
@@ -125,12 +125,12 @@ export declare const GithubElement: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObj
|
|
125
125
|
path: string;
|
126
126
|
type: "file";
|
127
127
|
name: string;
|
128
|
-
}>]>, z.ZodObject<
|
128
|
+
}>]>, z.ZodObject<{
|
129
129
|
name: z.ZodString;
|
130
130
|
path: z.ZodString;
|
131
|
-
}
|
131
|
+
} & {
|
132
132
|
type: z.ZodLiteral<"dir">;
|
133
|
-
}
|
133
|
+
}, "strip", z.ZodTypeAny, {
|
134
134
|
path: string;
|
135
135
|
type: "dir";
|
136
136
|
name: string;
|
@@ -138,12 +138,12 @@ export declare const GithubElement: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObj
|
|
138
138
|
path: string;
|
139
139
|
type: "dir";
|
140
140
|
name: string;
|
141
|
-
}>]>, z.ZodObject<
|
141
|
+
}>]>, z.ZodObject<{
|
142
142
|
name: z.ZodString;
|
143
143
|
path: z.ZodString;
|
144
|
-
}
|
144
|
+
} & {
|
145
145
|
type: z.ZodUnion<[z.ZodLiteral<"symlink">, z.ZodLiteral<"submodule">]>;
|
146
|
-
}
|
146
|
+
}, "strip", z.ZodTypeAny, {
|
147
147
|
path: string;
|
148
148
|
type: "symlink" | "submodule";
|
149
149
|
name: string;
|
@@ -153,15 +153,15 @@ export declare const GithubElement: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObj
|
|
153
153
|
name: string;
|
154
154
|
}>]>;
|
155
155
|
export type GithubElement = z.infer<typeof GithubElement>;
|
156
|
-
export declare const GithubContentResponse: z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<
|
156
|
+
export declare const GithubContentResponse: z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
157
157
|
name: z.ZodString;
|
158
158
|
path: z.ZodString;
|
159
|
-
}
|
159
|
+
} & {
|
160
160
|
type: z.ZodLiteral<"file">;
|
161
|
-
}
|
161
|
+
} & {
|
162
162
|
content: z.ZodString;
|
163
163
|
encoding: z.ZodString;
|
164
|
-
}
|
164
|
+
}, "strip", z.ZodTypeAny, {
|
165
165
|
path: string;
|
166
166
|
type: "file";
|
167
167
|
name: string;
|
@@ -173,12 +173,12 @@ export declare const GithubContentResponse: z.ZodUnion<[z.ZodArray<z.ZodUnion<[z
|
|
173
173
|
name: string;
|
174
174
|
encoding: string;
|
175
175
|
content: string;
|
176
|
-
}>, z.ZodObject<
|
176
|
+
}>, z.ZodObject<{
|
177
177
|
name: z.ZodString;
|
178
178
|
path: z.ZodString;
|
179
|
-
}
|
179
|
+
} & {
|
180
180
|
type: z.ZodLiteral<"file">;
|
181
|
-
}
|
181
|
+
}, "strip", z.ZodTypeAny, {
|
182
182
|
path: string;
|
183
183
|
type: "file";
|
184
184
|
name: string;
|
@@ -186,12 +186,12 @@ export declare const GithubContentResponse: z.ZodUnion<[z.ZodArray<z.ZodUnion<[z
|
|
186
186
|
path: string;
|
187
187
|
type: "file";
|
188
188
|
name: string;
|
189
|
-
}>]>, z.ZodObject<
|
189
|
+
}>]>, z.ZodObject<{
|
190
190
|
name: z.ZodString;
|
191
191
|
path: z.ZodString;
|
192
|
-
}
|
192
|
+
} & {
|
193
193
|
type: z.ZodLiteral<"dir">;
|
194
|
-
}
|
194
|
+
}, "strip", z.ZodTypeAny, {
|
195
195
|
path: string;
|
196
196
|
type: "dir";
|
197
197
|
name: string;
|
@@ -199,12 +199,12 @@ export declare const GithubContentResponse: z.ZodUnion<[z.ZodArray<z.ZodUnion<[z
|
|
199
199
|
path: string;
|
200
200
|
type: "dir";
|
201
201
|
name: string;
|
202
|
-
}>]>, z.ZodObject<
|
202
|
+
}>]>, z.ZodObject<{
|
203
203
|
name: z.ZodString;
|
204
204
|
path: z.ZodString;
|
205
|
-
}
|
205
|
+
} & {
|
206
206
|
type: z.ZodUnion<[z.ZodLiteral<"symlink">, z.ZodLiteral<"submodule">]>;
|
207
|
-
}
|
207
|
+
}, "strip", z.ZodTypeAny, {
|
208
208
|
path: string;
|
209
209
|
type: "symlink" | "submodule";
|
210
210
|
name: string;
|
@@ -212,15 +212,15 @@ export declare const GithubContentResponse: z.ZodUnion<[z.ZodArray<z.ZodUnion<[z
|
|
212
212
|
path: string;
|
213
213
|
type: "symlink" | "submodule";
|
214
214
|
name: string;
|
215
|
-
}>]>, "many">, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<
|
215
|
+
}>]>, "many">, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
216
216
|
name: z.ZodString;
|
217
217
|
path: z.ZodString;
|
218
|
-
}
|
218
|
+
} & {
|
219
219
|
type: z.ZodLiteral<"file">;
|
220
|
-
}
|
220
|
+
} & {
|
221
221
|
content: z.ZodString;
|
222
222
|
encoding: z.ZodString;
|
223
|
-
}
|
223
|
+
}, "strip", z.ZodTypeAny, {
|
224
224
|
path: string;
|
225
225
|
type: "file";
|
226
226
|
name: string;
|
@@ -232,12 +232,12 @@ export declare const GithubContentResponse: z.ZodUnion<[z.ZodArray<z.ZodUnion<[z
|
|
232
232
|
name: string;
|
233
233
|
encoding: string;
|
234
234
|
content: string;
|
235
|
-
}>, z.ZodObject<
|
235
|
+
}>, z.ZodObject<{
|
236
236
|
name: z.ZodString;
|
237
237
|
path: z.ZodString;
|
238
|
-
}
|
238
|
+
} & {
|
239
239
|
type: z.ZodLiteral<"file">;
|
240
|
-
}
|
240
|
+
}, "strip", z.ZodTypeAny, {
|
241
241
|
path: string;
|
242
242
|
type: "file";
|
243
243
|
name: string;
|
@@ -245,12 +245,12 @@ export declare const GithubContentResponse: z.ZodUnion<[z.ZodArray<z.ZodUnion<[z
|
|
245
245
|
path: string;
|
246
246
|
type: "file";
|
247
247
|
name: string;
|
248
|
-
}>]>, z.ZodObject<
|
248
|
+
}>]>, z.ZodObject<{
|
249
249
|
name: z.ZodString;
|
250
250
|
path: z.ZodString;
|
251
|
-
}
|
251
|
+
} & {
|
252
252
|
type: z.ZodLiteral<"dir">;
|
253
|
-
}
|
253
|
+
}, "strip", z.ZodTypeAny, {
|
254
254
|
path: string;
|
255
255
|
type: "dir";
|
256
256
|
name: string;
|
@@ -258,12 +258,12 @@ export declare const GithubContentResponse: z.ZodUnion<[z.ZodArray<z.ZodUnion<[z
|
|
258
258
|
path: string;
|
259
259
|
type: "dir";
|
260
260
|
name: string;
|
261
|
-
}>]>, z.ZodObject<
|
261
|
+
}>]>, z.ZodObject<{
|
262
262
|
name: z.ZodString;
|
263
263
|
path: z.ZodString;
|
264
|
-
}
|
264
|
+
} & {
|
265
265
|
type: z.ZodUnion<[z.ZodLiteral<"symlink">, z.ZodLiteral<"submodule">]>;
|
266
|
-
}
|
266
|
+
}, "strip", z.ZodTypeAny, {
|
267
267
|
path: string;
|
268
268
|
type: "symlink" | "submodule";
|
269
269
|
name: string;
|
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": "39.257.
|
4
|
+
"version": "39.257.4",
|
5
5
|
"type": "commonjs",
|
6
6
|
"bin": {
|
7
7
|
"renovate": "dist/renovate.js",
|
@@ -260,7 +260,7 @@
|
|
260
260
|
"vuln-vects": "1.1.0",
|
261
261
|
"xmldoc": "1.3.0",
|
262
262
|
"yaml": "2.7.1",
|
263
|
-
"zod": "3.24.
|
263
|
+
"zod": "3.24.3"
|
264
264
|
},
|
265
265
|
"optionalDependencies": {
|
266
266
|
"better-sqlite3": "11.9.1",
|
@@ -348,7 +348,7 @@
|
|
348
348
|
"typescript": "5.8.3",
|
349
349
|
"typescript-eslint": "8.30.1",
|
350
350
|
"unified": "9.2.2",
|
351
|
-
"vite": "6.3.
|
351
|
+
"vite": "6.3.1",
|
352
352
|
"vite-tsconfig-paths": "5.1.4",
|
353
353
|
"vitest": "3.1.1",
|
354
354
|
"vitest-mock-extended": "3.1.0"
|