renovate 40.0.0-next.9 → 40.0.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.
Files changed (816) hide show
  1. package/dist/config/decrypt/legacy.js +0 -1
  2. package/dist/config/decrypt/legacy.js.map +1 -1
  3. package/dist/config/decrypt.d.ts +3 -1
  4. package/dist/config/decrypt.js +56 -13
  5. package/dist/config/decrypt.js.map +1 -1
  6. package/dist/config/global.js +0 -1
  7. package/dist/config/global.js.map +1 -1
  8. package/dist/config/migrate-validate.js +3 -2
  9. package/dist/config/migrate-validate.js.map +1 -1
  10. package/dist/config/migration.js +2 -1
  11. package/dist/config/migration.js.map +1 -1
  12. package/dist/config/migrations/custom/rebase-stale-prs-migration.js +1 -1
  13. package/dist/config/migrations/custom/rebase-stale-prs-migration.js.map +1 -1
  14. package/dist/config/migrations/migrations-service.js +3 -2
  15. package/dist/config/migrations/migrations-service.js.map +1 -1
  16. package/dist/config/options/index.js +18 -11
  17. package/dist/config/options/index.js.map +1 -1
  18. package/dist/config/parse.js +2 -2
  19. package/dist/config/parse.js.map +1 -1
  20. package/dist/config/presets/common.js +1 -0
  21. package/dist/config/presets/common.js.map +1 -1
  22. package/dist/config/presets/gitea/index.js +0 -1
  23. package/dist/config/presets/gitea/index.js.map +1 -1
  24. package/dist/config/presets/github/index.js +4 -2
  25. package/dist/config/presets/github/index.js.map +1 -1
  26. package/dist/config/presets/gitlab/index.js +1 -1
  27. package/dist/config/presets/gitlab/index.js.map +1 -1
  28. package/dist/config/presets/http/index.js +2 -2
  29. package/dist/config/presets/http/index.js.map +1 -1
  30. package/dist/config/presets/index.js +0 -7
  31. package/dist/config/presets/index.js.map +1 -1
  32. package/dist/config/presets/internal/custom-managers.js +18 -4
  33. package/dist/config/presets/internal/custom-managers.js.map +1 -1
  34. package/dist/config/presets/internal/group.js +30 -1
  35. package/dist/config/presets/internal/group.js.map +1 -1
  36. package/dist/config/presets/internal/index.js +1 -3
  37. package/dist/config/presets/internal/index.js.map +1 -1
  38. package/dist/config/presets/internal/workarounds.js +1 -0
  39. package/dist/config/presets/internal/workarounds.js.map +1 -1
  40. package/dist/config/presets/npm/index.js +4 -1
  41. package/dist/config/presets/npm/index.js.map +1 -1
  42. package/dist/config/presets/parse.js +2 -1
  43. package/dist/config/presets/parse.js.map +1 -1
  44. package/dist/config/schema.d.ts +2 -2
  45. package/dist/config/types.d.ts +4 -2
  46. package/dist/config/types.js.map +1 -1
  47. package/dist/config/validation.js +3 -5
  48. package/dist/config/validation.js.map +1 -1
  49. package/dist/config-validator.js +0 -1
  50. package/dist/config-validator.js.map +1 -1
  51. package/dist/constants/category.js +0 -1
  52. package/dist/constants/category.js.map +1 -1
  53. package/dist/constants/platforms.js +5 -1
  54. package/dist/constants/platforms.js.map +1 -1
  55. package/dist/data/monorepo.json +9 -2
  56. package/dist/data/replacements.json +13 -0
  57. package/dist/data/source-urls.json +1 -0
  58. package/dist/data-files.generated.js +2 -2
  59. package/dist/data-files.generated.js.map +1 -1
  60. package/dist/instrumentation/index.js +39 -15
  61. package/dist/instrumentation/index.js.map +1 -1
  62. package/dist/instrumentation/utils.js +1 -1
  63. package/dist/instrumentation/utils.js.map +1 -1
  64. package/dist/logger/cmd-serializer.js +0 -1
  65. package/dist/logger/cmd-serializer.js.map +1 -1
  66. package/dist/logger/config-serializer.js +0 -1
  67. package/dist/logger/config-serializer.js.map +1 -1
  68. package/dist/logger/index.js +1 -4
  69. package/dist/logger/index.js.map +1 -1
  70. package/dist/logger/once.js +4 -2
  71. package/dist/logger/once.js.map +1 -1
  72. package/dist/logger/pretty-stdout.js +0 -1
  73. package/dist/logger/pretty-stdout.js.map +1 -1
  74. package/dist/logger/renovate-logger.js +1 -1
  75. package/dist/logger/renovate-logger.js.map +1 -1
  76. package/dist/logger/utils.js +5 -10
  77. package/dist/logger/utils.js.map +1 -1
  78. package/dist/modules/datasource/api.js +4 -0
  79. package/dist/modules/datasource/api.js.map +1 -1
  80. package/dist/modules/datasource/artifactory/index.js +1 -2
  81. package/dist/modules/datasource/artifactory/index.js.map +1 -1
  82. package/dist/modules/datasource/aws-eks-addon/index.d.ts +11 -0
  83. package/dist/modules/datasource/aws-eks-addon/index.js +75 -0
  84. package/dist/modules/datasource/aws-eks-addon/index.js.map +1 -0
  85. package/dist/modules/datasource/aws-eks-addon/schema.d.ts +40 -0
  86. package/dist/modules/datasource/aws-eks-addon/schema.js +31 -0
  87. package/dist/modules/datasource/aws-eks-addon/schema.js.map +1 -0
  88. package/dist/modules/datasource/aws-machine-image/index.js +6 -5
  89. package/dist/modules/datasource/aws-machine-image/index.js.map +1 -1
  90. package/dist/modules/datasource/azure-pipelines-tasks/index.js +15 -1
  91. package/dist/modules/datasource/azure-pipelines-tasks/index.js.map +1 -1
  92. package/dist/modules/datasource/azure-pipelines-tasks/schema.d.ts +24 -0
  93. package/dist/modules/datasource/azure-pipelines-tasks/schema.js +3 -0
  94. package/dist/modules/datasource/azure-pipelines-tasks/schema.js.map +1 -1
  95. package/dist/modules/datasource/bazel/index.js +18 -2
  96. package/dist/modules/datasource/bazel/index.js.map +1 -1
  97. package/dist/modules/datasource/bazel/schema.d.ts +1 -0
  98. package/dist/modules/datasource/bazel/schema.js.map +1 -1
  99. package/dist/modules/datasource/bitbucket-server-tags/index.d.ts +19 -0
  100. package/dist/modules/datasource/bitbucket-server-tags/index.js +133 -0
  101. package/dist/modules/datasource/bitbucket-server-tags/index.js.map +1 -0
  102. package/dist/modules/datasource/bitbucket-server-tags/schema.d.ts +28 -0
  103. package/dist/modules/datasource/bitbucket-server-tags/schema.js +13 -0
  104. package/dist/modules/datasource/bitbucket-server-tags/schema.js.map +1 -0
  105. package/dist/modules/datasource/bitrise/index.js +1 -1
  106. package/dist/modules/datasource/bitrise/index.js.map +1 -1
  107. package/dist/modules/datasource/cdnjs/schema.d.ts +2 -2
  108. package/dist/modules/datasource/conda/index.js +18 -1
  109. package/dist/modules/datasource/conda/index.js.map +1 -1
  110. package/dist/modules/datasource/conda/prefix-dev.d.ts +3 -0
  111. package/dist/modules/datasource/conda/prefix-dev.js +81 -0
  112. package/dist/modules/datasource/conda/prefix-dev.js.map +1 -0
  113. package/dist/modules/datasource/conda/schema/prefix-dev.d.ts +189 -0
  114. package/dist/modules/datasource/conda/schema/prefix-dev.js +31 -0
  115. package/dist/modules/datasource/conda/schema/prefix-dev.js.map +1 -0
  116. package/dist/modules/datasource/conda/types.d.ts +1 -20
  117. package/dist/modules/datasource/conda/types.js.map +1 -1
  118. package/dist/modules/datasource/cpan/index.js +2 -4
  119. package/dist/modules/datasource/cpan/index.js.map +1 -1
  120. package/dist/modules/datasource/crate/index.js +3 -3
  121. package/dist/modules/datasource/crate/index.js.map +1 -1
  122. package/dist/modules/datasource/custom/formats/html.js +1 -1
  123. package/dist/modules/datasource/custom/formats/html.js.map +1 -1
  124. package/dist/modules/datasource/custom/formats/yaml.js +1 -1
  125. package/dist/modules/datasource/custom/formats/yaml.js.map +1 -1
  126. package/dist/modules/datasource/custom/index.js +4 -2
  127. package/dist/modules/datasource/custom/index.js.map +1 -1
  128. package/dist/modules/datasource/custom/schema.d.ts +22 -22
  129. package/dist/modules/datasource/custom/utils.js +1 -0
  130. package/dist/modules/datasource/custom/utils.js.map +1 -1
  131. package/dist/modules/datasource/dart/index.js +1 -1
  132. package/dist/modules/datasource/dart/index.js.map +1 -1
  133. package/dist/modules/datasource/dart-version/index.js +1 -1
  134. package/dist/modules/datasource/dart-version/index.js.map +1 -1
  135. package/dist/modules/datasource/datasource.js +0 -1
  136. package/dist/modules/datasource/datasource.js.map +1 -1
  137. package/dist/modules/datasource/deb/index.d.ts +4 -5
  138. package/dist/modules/datasource/deb/index.js +10 -11
  139. package/dist/modules/datasource/deb/index.js.map +1 -1
  140. package/dist/modules/datasource/deb/url.d.ts +3 -3
  141. package/dist/modules/datasource/deb/url.js +17 -13
  142. package/dist/modules/datasource/deb/url.js.map +1 -1
  143. package/dist/modules/datasource/deno/index.js +1 -1
  144. package/dist/modules/datasource/deno/index.js.map +1 -1
  145. package/dist/modules/datasource/deno/schema.d.ts +1 -1
  146. package/dist/modules/datasource/devbox/index.js +0 -1
  147. package/dist/modules/datasource/devbox/index.js.map +1 -1
  148. package/dist/modules/datasource/docker/common.js +5 -2
  149. package/dist/modules/datasource/docker/common.js.map +1 -1
  150. package/dist/modules/datasource/docker/index.js +8 -6
  151. package/dist/modules/datasource/docker/index.js.map +1 -1
  152. package/dist/modules/datasource/docker/schema.d.ts +77 -101
  153. package/dist/modules/datasource/docker/schema.js +2 -1
  154. package/dist/modules/datasource/docker/schema.js.map +1 -1
  155. package/dist/modules/datasource/flutter-version/index.js +1 -1
  156. package/dist/modules/datasource/flutter-version/index.js.map +1 -1
  157. package/dist/modules/datasource/galaxy/schema.d.ts +1 -1
  158. package/dist/modules/datasource/galaxy-collection/schema.d.ts +8 -8
  159. package/dist/modules/datasource/git-refs/index.js +1 -1
  160. package/dist/modules/datasource/git-refs/index.js.map +1 -1
  161. package/dist/modules/datasource/gitea-releases/schema.d.ts +6 -6
  162. package/dist/modules/datasource/gitea-tags/schema.d.ts +4 -4
  163. package/dist/modules/datasource/github-release-attachments/index.js +2 -2
  164. package/dist/modules/datasource/github-release-attachments/index.js.map +1 -1
  165. package/dist/modules/datasource/github-runners/index.js +2 -2
  166. package/dist/modules/datasource/github-runners/index.js.map +1 -1
  167. package/dist/modules/datasource/github-tags/index.js +4 -1
  168. package/dist/modules/datasource/github-tags/index.js.map +1 -1
  169. package/dist/modules/datasource/gitlab-packages/index.js +1 -1
  170. package/dist/modules/datasource/gitlab-packages/index.js.map +1 -1
  171. package/dist/modules/datasource/gitlab-releases/index.js +1 -3
  172. package/dist/modules/datasource/gitlab-releases/index.js.map +1 -1
  173. package/dist/modules/datasource/go/base.js +1 -1
  174. package/dist/modules/datasource/go/base.js.map +1 -1
  175. package/dist/modules/datasource/go/index.js +1 -1
  176. package/dist/modules/datasource/go/index.js.map +1 -1
  177. package/dist/modules/datasource/go/releases-direct.js +7 -4
  178. package/dist/modules/datasource/go/releases-direct.js.map +1 -1
  179. package/dist/modules/datasource/go/releases-goproxy.js +1 -1
  180. package/dist/modules/datasource/go/releases-goproxy.js.map +1 -1
  181. package/dist/modules/datasource/golang-version/index.js +2 -2
  182. package/dist/modules/datasource/golang-version/index.js.map +1 -1
  183. package/dist/modules/datasource/gradle-version/index.js +1 -1
  184. package/dist/modules/datasource/gradle-version/index.js.map +1 -1
  185. package/dist/modules/datasource/helm/index.js +1 -1
  186. package/dist/modules/datasource/helm/index.js.map +1 -1
  187. package/dist/modules/datasource/hex/index.js +1 -1
  188. package/dist/modules/datasource/hex/index.js.map +1 -1
  189. package/dist/modules/datasource/hex/schema.d.ts +11 -11
  190. package/dist/modules/datasource/hexpm-bob/index.js +1 -1
  191. package/dist/modules/datasource/hexpm-bob/index.js.map +1 -1
  192. package/dist/modules/datasource/index.js +46 -5
  193. package/dist/modules/datasource/index.js.map +1 -1
  194. package/dist/modules/datasource/java-version/index.js +0 -1
  195. package/dist/modules/datasource/java-version/index.js.map +1 -1
  196. package/dist/modules/datasource/jenkins-plugins/index.js +1 -1
  197. package/dist/modules/datasource/jenkins-plugins/index.js.map +1 -1
  198. package/dist/modules/datasource/maven/index.d.ts +2 -2
  199. package/dist/modules/datasource/maven/index.js +56 -33
  200. package/dist/modules/datasource/maven/index.js.map +1 -1
  201. package/dist/modules/datasource/maven/types.d.ts +7 -6
  202. package/dist/modules/datasource/maven/types.js.map +1 -1
  203. package/dist/modules/datasource/maven/util.d.ts +4 -5
  204. package/dist/modules/datasource/maven/util.js +94 -157
  205. package/dist/modules/datasource/maven/util.js.map +1 -1
  206. package/dist/modules/datasource/metadata.js +9 -1
  207. package/dist/modules/datasource/metadata.js.map +1 -1
  208. package/dist/modules/datasource/node-version/index.js +1 -1
  209. package/dist/modules/datasource/node-version/index.js.map +1 -1
  210. package/dist/modules/datasource/npm/get.d.ts +0 -1
  211. package/dist/modules/datasource/npm/get.js +14 -68
  212. package/dist/modules/datasource/npm/get.js.map +1 -1
  213. package/dist/modules/datasource/npm/index.js +1 -1
  214. package/dist/modules/datasource/npm/index.js.map +1 -1
  215. package/dist/modules/datasource/npm/npmrc.js +1 -1
  216. package/dist/modules/datasource/npm/npmrc.js.map +1 -1
  217. package/dist/modules/datasource/npm/types.d.ts +0 -8
  218. package/dist/modules/datasource/npm/types.js.map +1 -1
  219. package/dist/modules/datasource/nuget/index.js +1 -1
  220. package/dist/modules/datasource/nuget/index.js.map +1 -1
  221. package/dist/modules/datasource/nuget/v2.js +1 -1
  222. package/dist/modules/datasource/nuget/v2.js.map +1 -1
  223. package/dist/modules/datasource/nuget/v3.js +8 -6
  224. package/dist/modules/datasource/nuget/v3.js.map +1 -1
  225. package/dist/modules/datasource/orb/index.js +1 -1
  226. package/dist/modules/datasource/orb/index.js.map +1 -1
  227. package/dist/modules/datasource/packagist/index.js +2 -2
  228. package/dist/modules/datasource/packagist/index.js.map +1 -1
  229. package/dist/modules/datasource/packagist/schema.d.ts +32 -32
  230. package/dist/modules/datasource/pod/index.js +2 -2
  231. package/dist/modules/datasource/pod/index.js.map +1 -1
  232. package/dist/modules/datasource/postprocess-release.js +1 -1
  233. package/dist/modules/datasource/postprocess-release.js.map +1 -1
  234. package/dist/modules/datasource/pypi/index.js +1 -1
  235. package/dist/modules/datasource/pypi/index.js.map +1 -1
  236. package/dist/modules/datasource/python-version/index.js +1 -1
  237. package/dist/modules/datasource/python-version/index.js.map +1 -1
  238. package/dist/modules/datasource/repology/index.js +1 -1
  239. package/dist/modules/datasource/repology/index.js.map +1 -1
  240. package/dist/modules/datasource/ruby-version/index.js +1 -1
  241. package/dist/modules/datasource/ruby-version/index.js.map +1 -1
  242. package/dist/modules/datasource/rubygems/index.js +2 -2
  243. package/dist/modules/datasource/rubygems/index.js.map +1 -1
  244. package/dist/modules/datasource/rubygems/versions-endpoint-cache.js +2 -2
  245. package/dist/modules/datasource/rubygems/versions-endpoint-cache.js.map +1 -1
  246. package/dist/modules/datasource/sbt-package/index.js +1 -1
  247. package/dist/modules/datasource/sbt-package/index.js.map +1 -1
  248. package/dist/modules/datasource/sbt-plugin/index.js +1 -1
  249. package/dist/modules/datasource/sbt-plugin/index.js.map +1 -1
  250. package/dist/modules/datasource/schema.d.ts +4 -4
  251. package/dist/modules/datasource/terraform-module/index.js +1 -1
  252. package/dist/modules/datasource/terraform-module/index.js.map +1 -1
  253. package/dist/modules/datasource/terraform-provider/index.js +2 -3
  254. package/dist/modules/datasource/terraform-provider/index.js.map +1 -1
  255. package/dist/modules/datasource/types.d.ts +2 -0
  256. package/dist/modules/datasource/types.js.map +1 -1
  257. package/dist/modules/manager/api.js +2 -0
  258. package/dist/modules/manager/api.js.map +1 -1
  259. package/dist/modules/manager/argocd/extract.js +1 -1
  260. package/dist/modules/manager/argocd/extract.js.map +1 -1
  261. package/dist/modules/manager/argocd/schema.d.ts +22 -22
  262. package/dist/modules/manager/asdf/upgradeable-tooling.js +94 -0
  263. package/dist/modules/manager/asdf/upgradeable-tooling.js.map +1 -1
  264. package/dist/modules/manager/azure-pipelines/schema.d.ts +32 -32
  265. package/dist/modules/manager/batect/schema.d.ts +4 -4
  266. package/dist/modules/manager/batect-wrapper/artifacts.js +1 -1
  267. package/dist/modules/manager/batect-wrapper/artifacts.js.map +1 -1
  268. package/dist/modules/manager/bazel/rules/docker.d.ts +6 -6
  269. package/dist/modules/manager/bazel/rules/git.d.ts +10 -10
  270. package/dist/modules/manager/bazel/rules/git.js +9 -2
  271. package/dist/modules/manager/bazel/rules/git.js.map +1 -1
  272. package/dist/modules/manager/bazel/rules/go.d.ts +5 -5
  273. package/dist/modules/manager/bazel/rules/maven.d.ts +7 -7
  274. package/dist/modules/manager/bazel/rules/oci.d.ts +6 -6
  275. package/dist/modules/manager/bazel-module/parser/fragments.d.ts +40 -40
  276. package/dist/modules/manager/bazel-module/parser/maven.d.ts +44 -90
  277. package/dist/modules/manager/bazel-module/parser/oci.d.ts +19 -42
  278. package/dist/modules/manager/bazel-module/rules.d.ts +50 -160
  279. package/dist/modules/manager/buildpacks/extract.d.ts +6 -1
  280. package/dist/modules/manager/buildpacks/extract.js +24 -14
  281. package/dist/modules/manager/buildpacks/extract.js.map +1 -1
  282. package/dist/modules/manager/bun/artifacts.js +0 -1
  283. package/dist/modules/manager/bun/artifacts.js.map +1 -1
  284. package/dist/modules/manager/bun/extract.d.ts +1 -0
  285. package/dist/modules/manager/bun/extract.js +53 -27
  286. package/dist/modules/manager/bun/extract.js.map +1 -1
  287. package/dist/modules/manager/bun/index.js +1 -1
  288. package/dist/modules/manager/bun/index.js.map +1 -1
  289. package/dist/modules/manager/bun/utils.d.ts +2 -0
  290. package/dist/modules/manager/bun/utils.js +22 -0
  291. package/dist/modules/manager/bun/utils.js.map +1 -0
  292. package/dist/modules/manager/bundler/artifacts.js +0 -1
  293. package/dist/modules/manager/bundler/artifacts.js.map +1 -1
  294. package/dist/modules/manager/bundler/extract.js +2 -1
  295. package/dist/modules/manager/bundler/extract.js.map +1 -1
  296. package/dist/modules/manager/cake/index.js +4 -2
  297. package/dist/modules/manager/cake/index.js.map +1 -1
  298. package/dist/modules/manager/cargo/artifacts.js +5 -7
  299. package/dist/modules/manager/cargo/artifacts.js.map +1 -1
  300. package/dist/modules/manager/cargo/schema.d.ts +166 -166
  301. package/dist/modules/manager/circleci/extract.js +21 -30
  302. package/dist/modules/manager/circleci/extract.js.map +1 -1
  303. package/dist/modules/manager/circleci/schema.d.ts +33 -144
  304. package/dist/modules/manager/circleci/schema.js +21 -17
  305. package/dist/modules/manager/circleci/schema.js.map +1 -1
  306. package/dist/modules/manager/cocoapods/artifacts.js +1 -2
  307. package/dist/modules/manager/cocoapods/artifacts.js.map +1 -1
  308. package/dist/modules/manager/composer/artifacts.js +1 -2
  309. package/dist/modules/manager/composer/artifacts.js.map +1 -1
  310. package/dist/modules/manager/composer/schema.d.ts +32 -34
  311. package/dist/modules/manager/composer/schema.js +1 -1
  312. package/dist/modules/manager/composer/schema.js.map +1 -1
  313. package/dist/modules/manager/composer/utils.d.ts +1 -0
  314. package/dist/modules/manager/composer/utils.js +18 -6
  315. package/dist/modules/manager/composer/utils.js.map +1 -1
  316. package/dist/modules/manager/conan/artifacts.d.ts +2 -0
  317. package/dist/modules/manager/conan/artifacts.js +76 -0
  318. package/dist/modules/manager/conan/artifacts.js.map +1 -0
  319. package/dist/modules/manager/conan/index.d.ts +2 -0
  320. package/dist/modules/manager/conan/index.js +4 -1
  321. package/dist/modules/manager/conan/index.js.map +1 -1
  322. package/dist/modules/manager/copier/artifacts.js +0 -1
  323. package/dist/modules/manager/copier/artifacts.js.map +1 -1
  324. package/dist/modules/manager/crossplane/schema.d.ts +2 -2
  325. package/dist/modules/manager/custom/jsonata/schema.d.ts +21 -21
  326. package/dist/modules/manager/custom/regex/index.js +2 -0
  327. package/dist/modules/manager/custom/regex/index.js.map +1 -1
  328. package/dist/modules/manager/deps-edn/extract.js +2 -1
  329. package/dist/modules/manager/deps-edn/extract.js.map +1 -1
  330. package/dist/modules/manager/devbox/artifacts.d.ts +1 -1
  331. package/dist/modules/manager/devbox/artifacts.js +35 -11
  332. package/dist/modules/manager/devbox/artifacts.js.map +1 -1
  333. package/dist/modules/manager/devbox/schema.js +1 -1
  334. package/dist/modules/manager/devbox/schema.js.map +1 -1
  335. package/dist/modules/manager/devcontainer/extract.js +43 -1
  336. package/dist/modules/manager/devcontainer/extract.js.map +1 -1
  337. package/dist/modules/manager/devcontainer/index.js +11 -1
  338. package/dist/modules/manager/devcontainer/index.js.map +1 -1
  339. package/dist/modules/manager/devcontainer/schema.d.ts +7 -3
  340. package/dist/modules/manager/devcontainer/schema.js +3 -1
  341. package/dist/modules/manager/devcontainer/schema.js.map +1 -1
  342. package/dist/modules/manager/docker-compose/schema.d.ts +6 -6
  343. package/dist/modules/manager/dockerfile/extract.js +2 -6
  344. package/dist/modules/manager/dockerfile/extract.js.map +1 -1
  345. package/dist/modules/manager/fingerprint.generated.js +86 -85
  346. package/dist/modules/manager/fingerprint.generated.js.map +1 -1
  347. package/dist/modules/manager/fleet/schema.d.ts +4 -4
  348. package/dist/modules/manager/flux/artifacts.js +0 -1
  349. package/dist/modules/manager/flux/artifacts.js.map +1 -1
  350. package/dist/modules/manager/flux/extract.js +27 -24
  351. package/dist/modules/manager/flux/extract.js.map +1 -1
  352. package/dist/modules/manager/flux/schema.d.ts +130 -154
  353. package/dist/modules/manager/github-actions/extract.js +60 -39
  354. package/dist/modules/manager/github-actions/extract.js.map +1 -1
  355. package/dist/modules/manager/github-actions/schema.d.ts +66 -0
  356. package/dist/modules/manager/github-actions/schema.js +38 -0
  357. package/dist/modules/manager/github-actions/schema.js.map +1 -0
  358. package/dist/modules/manager/gitlabci/extract.d.ts +1 -5
  359. package/dist/modules/manager/gitlabci/extract.js +27 -126
  360. package/dist/modules/manager/gitlabci/extract.js.map +1 -1
  361. package/dist/modules/manager/gitlabci/schema.d.ts +55 -0
  362. package/dist/modules/manager/gitlabci/schema.js +63 -0
  363. package/dist/modules/manager/gitlabci/schema.js.map +1 -0
  364. package/dist/modules/manager/gitlabci-include/extract.js +6 -54
  365. package/dist/modules/manager/gitlabci-include/extract.js.map +1 -1
  366. package/dist/modules/manager/gitlabci-include/schema.d.ts +13 -0
  367. package/dist/modules/manager/gitlabci-include/schema.js +46 -0
  368. package/dist/modules/manager/gitlabci-include/schema.js.map +1 -0
  369. package/dist/modules/manager/glasskube/schema.d.ts +8 -8
  370. package/dist/modules/manager/gomod/artifacts-extra.js +12 -4
  371. package/dist/modules/manager/gomod/artifacts-extra.js.map +1 -1
  372. package/dist/modules/manager/gomod/artifacts.js +24 -10
  373. package/dist/modules/manager/gomod/artifacts.js.map +1 -1
  374. package/dist/modules/manager/gomod/extract.js +23 -0
  375. package/dist/modules/manager/gomod/extract.js.map +1 -1
  376. package/dist/modules/manager/gomod/line-parser.js +16 -0
  377. package/dist/modules/manager/gomod/line-parser.js.map +1 -1
  378. package/dist/modules/manager/gomod/update.js +5 -3
  379. package/dist/modules/manager/gomod/update.js.map +1 -1
  380. package/dist/modules/manager/gradle/artifacts.js +0 -1
  381. package/dist/modules/manager/gradle/artifacts.js.map +1 -1
  382. package/dist/modules/manager/gradle/extract/catalog.js +1 -1
  383. package/dist/modules/manager/gradle/extract/catalog.js.map +1 -1
  384. package/dist/modules/manager/gradle/extract.js +8 -13
  385. package/dist/modules/manager/gradle/extract.js.map +1 -1
  386. package/dist/modules/manager/gradle/parser/assignments.js +2 -2
  387. package/dist/modules/manager/gradle/parser/assignments.js.map +1 -1
  388. package/dist/modules/manager/gradle/parser/handlers.d.ts +1 -2
  389. package/dist/modules/manager/gradle/parser/handlers.js +17 -24
  390. package/dist/modules/manager/gradle/parser/handlers.js.map +1 -1
  391. package/dist/modules/manager/gradle/parser/registry-urls.js +46 -12
  392. package/dist/modules/manager/gradle/parser/registry-urls.js.map +1 -1
  393. package/dist/modules/manager/gradle/types.d.ts +1 -0
  394. package/dist/modules/manager/gradle/types.js.map +1 -1
  395. package/dist/modules/manager/gradle-wrapper/artifacts.js +1 -2
  396. package/dist/modules/manager/gradle-wrapper/artifacts.js.map +1 -1
  397. package/dist/modules/manager/helmfile/artifacts.js +0 -1
  398. package/dist/modules/manager/helmfile/artifacts.js.map +1 -1
  399. package/dist/modules/manager/helmfile/extract.js +4 -0
  400. package/dist/modules/manager/helmfile/extract.js.map +1 -1
  401. package/dist/modules/manager/helmfile/schema.d.ts +9 -9
  402. package/dist/modules/manager/helmv3/artifacts.js +0 -1
  403. package/dist/modules/manager/helmv3/artifacts.js.map +1 -1
  404. package/dist/modules/manager/helmv3/utils.js +3 -1
  405. package/dist/modules/manager/helmv3/utils.js.map +1 -1
  406. package/dist/modules/manager/hermit/artifacts.js +0 -1
  407. package/dist/modules/manager/hermit/artifacts.js.map +1 -1
  408. package/dist/modules/manager/homebrew/extract.js +0 -1
  409. package/dist/modules/manager/homebrew/extract.js.map +1 -1
  410. package/dist/modules/manager/jsonnet-bundler/artifacts.js +0 -1
  411. package/dist/modules/manager/jsonnet-bundler/artifacts.js.map +1 -1
  412. package/dist/modules/manager/kustomize/artifacts.d.ts +2 -0
  413. package/dist/modules/manager/kustomize/artifacts.js +154 -0
  414. package/dist/modules/manager/kustomize/artifacts.js.map +1 -0
  415. package/dist/modules/manager/kustomize/common.d.ts +3 -0
  416. package/dist/modules/manager/kustomize/common.js +22 -0
  417. package/dist/modules/manager/kustomize/common.js.map +1 -0
  418. package/dist/modules/manager/kustomize/index.d.ts +1 -0
  419. package/dist/modules/manager/kustomize/index.js +3 -1
  420. package/dist/modules/manager/kustomize/index.js.map +1 -1
  421. package/dist/modules/manager/kustomize/types.d.ts +4 -0
  422. package/dist/modules/manager/kustomize/types.js.map +1 -1
  423. package/dist/modules/manager/maven/extract.d.ts +2 -2
  424. package/dist/modules/manager/maven/extract.js +14 -9
  425. package/dist/modules/manager/maven/extract.js.map +1 -1
  426. package/dist/modules/manager/maven-wrapper/artifacts.js +0 -1
  427. package/dist/modules/manager/maven-wrapper/artifacts.js.map +1 -1
  428. package/dist/modules/manager/mise/extract.js +1 -1
  429. package/dist/modules/manager/mise/extract.js.map +1 -1
  430. package/dist/modules/manager/mix/artifacts.js +64 -14
  431. package/dist/modules/manager/mix/artifacts.js.map +1 -1
  432. package/dist/modules/manager/mix/index.d.ts +1 -0
  433. package/dist/modules/manager/mix/index.js +2 -1
  434. package/dist/modules/manager/mix/index.js.map +1 -1
  435. package/dist/modules/manager/nix/artifacts.js +0 -1
  436. package/dist/modules/manager/nix/artifacts.js.map +1 -1
  437. package/dist/modules/manager/nix/extract.js +1 -1
  438. package/dist/modules/manager/nix/extract.js.map +1 -1
  439. package/dist/modules/manager/nix/schema.d.ts +20 -20
  440. package/dist/modules/manager/nix/schema.js +1 -0
  441. package/dist/modules/manager/nix/schema.js.map +1 -1
  442. package/dist/modules/manager/npm/artifacts.js +0 -1
  443. package/dist/modules/manager/npm/artifacts.js.map +1 -1
  444. package/dist/modules/manager/npm/extract/common/package-file.js +1 -0
  445. package/dist/modules/manager/npm/extract/common/package-file.js.map +1 -1
  446. package/dist/modules/manager/npm/extract/yarn.js +2 -2
  447. package/dist/modules/manager/npm/extract/yarn.js.map +1 -1
  448. package/dist/modules/manager/npm/post-update/npm.js +0 -1
  449. package/dist/modules/manager/npm/post-update/npm.js.map +1 -1
  450. package/dist/modules/manager/npm/post-update/pnpm.js +13 -2
  451. package/dist/modules/manager/npm/post-update/pnpm.js.map +1 -1
  452. package/dist/modules/manager/npm/post-update/rules.js +11 -1
  453. package/dist/modules/manager/npm/post-update/rules.js.map +1 -1
  454. package/dist/modules/manager/npm/post-update/yarn.js +0 -1
  455. package/dist/modules/manager/npm/post-update/yarn.js.map +1 -1
  456. package/dist/modules/manager/npm/schema.d.ts +13 -13
  457. package/dist/modules/manager/npm/update/dependency/index.js +1 -1
  458. package/dist/modules/manager/npm/update/dependency/index.js.map +1 -1
  459. package/dist/modules/manager/nuget/artifacts.js +1 -2
  460. package/dist/modules/manager/nuget/artifacts.js.map +1 -1
  461. package/dist/modules/manager/nuget/extract.js +21 -18
  462. package/dist/modules/manager/nuget/extract.js.map +1 -1
  463. package/dist/modules/manager/nuget/package-tree.js +4 -0
  464. package/dist/modules/manager/nuget/package-tree.js.map +1 -1
  465. package/dist/modules/manager/nuget/schema.d.ts +8 -8
  466. package/dist/modules/manager/nuget/util.js +4 -1
  467. package/dist/modules/manager/nuget/util.js.map +1 -1
  468. package/dist/modules/manager/ocb/schema.d.ts +6 -6
  469. package/dist/modules/manager/pep621/extract.js +19 -3
  470. package/dist/modules/manager/pep621/extract.js.map +1 -1
  471. package/dist/modules/manager/pep621/processors/pdm.js +3 -2
  472. package/dist/modules/manager/pep621/processors/pdm.js.map +1 -1
  473. package/dist/modules/manager/pep621/processors/uv.js +4 -1
  474. package/dist/modules/manager/pep621/processors/uv.js.map +1 -1
  475. package/dist/modules/manager/pep621/schema.d.ts +341 -49
  476. package/dist/modules/manager/pep621/schema.js +3 -1
  477. package/dist/modules/manager/pep621/schema.js.map +1 -1
  478. package/dist/modules/manager/pep621/utils.js +1 -1
  479. package/dist/modules/manager/pep621/utils.js.map +1 -1
  480. package/dist/modules/manager/pip-compile/common.js +0 -1
  481. package/dist/modules/manager/pip-compile/common.js.map +1 -1
  482. package/dist/modules/manager/pip_requirements/artifacts.js +0 -1
  483. package/dist/modules/manager/pip_requirements/artifacts.js.map +1 -1
  484. package/dist/modules/manager/pip_requirements/common.js +2 -6
  485. package/dist/modules/manager/pip_requirements/common.js.map +1 -1
  486. package/dist/modules/manager/pipenv/artifacts.js +0 -1
  487. package/dist/modules/manager/pipenv/artifacts.js.map +1 -1
  488. package/dist/modules/manager/pixi/artifacts.d.ts +3 -0
  489. package/dist/modules/manager/pixi/artifacts.js +78 -0
  490. package/dist/modules/manager/pixi/artifacts.js.map +1 -0
  491. package/dist/modules/manager/pixi/extract.d.ts +4 -0
  492. package/dist/modules/manager/pixi/extract.js +131 -0
  493. package/dist/modules/manager/pixi/extract.js.map +1 -0
  494. package/dist/modules/manager/pixi/index.d.ts +10 -0
  495. package/dist/modules/manager/pixi/index.js +20 -0
  496. package/dist/modules/manager/pixi/index.js.map +1 -0
  497. package/dist/modules/manager/pixi/schema.d.ts +405 -0
  498. package/dist/modules/manager/pixi/schema.js +147 -0
  499. package/dist/modules/manager/pixi/schema.js.map +1 -0
  500. package/dist/modules/manager/poetry/artifacts.js +3 -4
  501. package/dist/modules/manager/poetry/artifacts.js.map +1 -1
  502. package/dist/modules/manager/poetry/extract.js +2 -1
  503. package/dist/modules/manager/poetry/extract.js.map +1 -1
  504. package/dist/modules/manager/poetry/schema.d.ts +44 -44
  505. package/dist/modules/manager/pub/artifacts.js +0 -1
  506. package/dist/modules/manager/pub/artifacts.js.map +1 -1
  507. package/dist/modules/manager/pub/schema.d.ts +8 -8
  508. package/dist/modules/manager/scalafmt/extract.js +1 -1
  509. package/dist/modules/manager/scalafmt/extract.js.map +1 -1
  510. package/dist/modules/manager/sveltos/schema.d.ts +30 -42
  511. package/dist/modules/manager/terraform/lockfile/hash.d.ts +1 -1
  512. package/dist/modules/manager/terraform/util.js +1 -3
  513. package/dist/modules/manager/terraform/util.js.map +1 -1
  514. package/dist/modules/manager/types.d.ts +6 -2
  515. package/dist/modules/manager/types.js.map +1 -1
  516. package/dist/modules/manager/vendir/schema.d.ts +7 -7
  517. package/dist/modules/platform/api.d.ts +1 -1
  518. package/dist/modules/platform/azure/azure-helper.js +2 -2
  519. package/dist/modules/platform/azure/azure-helper.js.map +1 -1
  520. package/dist/modules/platform/azure/index.js +14 -14
  521. package/dist/modules/platform/azure/index.js.map +1 -1
  522. package/dist/modules/platform/bitbucket/comments.js +4 -4
  523. package/dist/modules/platform/bitbucket/comments.js.map +1 -1
  524. package/dist/modules/platform/bitbucket/index.js +49 -44
  525. package/dist/modules/platform/bitbucket/index.js.map +1 -1
  526. package/dist/modules/platform/bitbucket/schema.d.ts +14 -14
  527. package/dist/modules/platform/bitbucket/utils.js +3 -3
  528. package/dist/modules/platform/bitbucket/utils.js.map +1 -1
  529. package/dist/modules/platform/bitbucket-server/index.d.ts +2 -2
  530. package/dist/modules/platform/bitbucket-server/index.js +81 -81
  531. package/dist/modules/platform/bitbucket-server/index.js.map +1 -1
  532. package/dist/modules/platform/bitbucket-server/pr-cache.d.ts +23 -0
  533. package/dist/modules/platform/bitbucket-server/pr-cache.js +125 -0
  534. package/dist/modules/platform/bitbucket-server/pr-cache.js.map +1 -0
  535. package/dist/modules/platform/bitbucket-server/schema.d.ts +76 -0
  536. package/dist/modules/platform/bitbucket-server/schema.js +15 -1
  537. package/dist/modules/platform/bitbucket-server/schema.js.map +1 -1
  538. package/dist/modules/platform/bitbucket-server/types.d.ts +8 -2
  539. package/dist/modules/platform/bitbucket-server/types.js.map +1 -1
  540. package/dist/modules/platform/bitbucket-server/utils.d.ts +0 -2
  541. package/dist/modules/platform/bitbucket-server/utils.js +6 -52
  542. package/dist/modules/platform/bitbucket-server/utils.js.map +1 -1
  543. package/dist/modules/platform/codecommit/codecommit-client.js +6 -6
  544. package/dist/modules/platform/codecommit/codecommit-client.js.map +1 -1
  545. package/dist/modules/platform/codecommit/index.js +24 -24
  546. package/dist/modules/platform/codecommit/index.js.map +1 -1
  547. package/dist/modules/platform/gerrit/client.d.ts +0 -3
  548. package/dist/modules/platform/gerrit/client.js +20 -29
  549. package/dist/modules/platform/gerrit/client.js.map +1 -1
  550. package/dist/modules/platform/gerrit/index.js +0 -6
  551. package/dist/modules/platform/gerrit/index.js.map +1 -1
  552. package/dist/modules/platform/gerrit/scm.js +5 -6
  553. package/dist/modules/platform/gerrit/scm.js.map +1 -1
  554. package/dist/modules/platform/gerrit/types.d.ts +1 -4
  555. package/dist/modules/platform/gerrit/types.js.map +1 -1
  556. package/dist/modules/platform/gerrit/utils.d.ts +3 -2
  557. package/dist/modules/platform/gerrit/utils.js +4 -8
  558. package/dist/modules/platform/gerrit/utils.js.map +1 -1
  559. package/dist/modules/platform/gitea/gitea-helper.d.ts +1 -0
  560. package/dist/modules/platform/gitea/gitea-helper.js +16 -0
  561. package/dist/modules/platform/gitea/gitea-helper.js.map +1 -1
  562. package/dist/modules/platform/gitea/index.js +22 -16
  563. package/dist/modules/platform/gitea/index.js.map +1 -1
  564. package/dist/modules/platform/gitea/schema.d.ts +8 -8
  565. package/dist/modules/platform/gitea/types.d.ts +1 -1
  566. package/dist/modules/platform/gitea/types.js.map +1 -1
  567. package/dist/modules/platform/github/common.d.ts +2 -0
  568. package/dist/modules/platform/github/common.js +16 -0
  569. package/dist/modules/platform/github/common.js.map +1 -1
  570. package/dist/modules/platform/github/index.d.ts +1 -1
  571. package/dist/modules/platform/github/index.js +87 -82
  572. package/dist/modules/platform/github/index.js.map +1 -1
  573. package/dist/modules/platform/github/issue.d.ts +18 -18
  574. package/dist/modules/platform/github/massage-markdown-links.js +2 -2
  575. package/dist/modules/platform/github/massage-markdown-links.js.map +1 -1
  576. package/dist/modules/platform/github/pr.js +3 -3
  577. package/dist/modules/platform/github/pr.js.map +1 -1
  578. package/dist/modules/platform/github/schema.d.ts +128 -128
  579. package/dist/modules/platform/github/schema.js +3 -1
  580. package/dist/modules/platform/github/schema.js.map +1 -1
  581. package/dist/modules/platform/gitlab/index.js +63 -49
  582. package/dist/modules/platform/gitlab/index.js.map +1 -1
  583. package/dist/modules/platform/index.js +0 -1
  584. package/dist/modules/platform/index.js.map +1 -1
  585. package/dist/modules/platform/scm.d.ts +1 -1
  586. package/dist/modules/versioning/api.js +2 -0
  587. package/dist/modules/versioning/api.js.map +1 -1
  588. package/dist/modules/versioning/composer/index.js +10 -0
  589. package/dist/modules/versioning/composer/index.js.map +1 -1
  590. package/dist/modules/versioning/conda/index.d.ts +41 -0
  591. package/dist/modules/versioning/conda/index.js +178 -0
  592. package/dist/modules/versioning/conda/index.js.map +1 -0
  593. package/dist/modules/versioning/distro.js +1 -3
  594. package/dist/modules/versioning/distro.js.map +1 -1
  595. package/dist/modules/versioning/hashicorp/convertor.d.ts +2 -1
  596. package/dist/modules/versioning/hashicorp/convertor.js +13 -8
  597. package/dist/modules/versioning/hashicorp/convertor.js.map +1 -1
  598. package/dist/modules/versioning/hex/index.js +3 -3
  599. package/dist/modules/versioning/hex/index.js.map +1 -1
  600. package/dist/modules/versioning/npm/index.js +2 -1
  601. package/dist/modules/versioning/npm/index.js.map +1 -1
  602. package/dist/modules/versioning/types.d.ts +4 -0
  603. package/dist/modules/versioning/types.js.map +1 -1
  604. package/dist/proxy.js +2 -1
  605. package/dist/proxy.js.map +1 -1
  606. package/dist/renovate.js +2 -2
  607. package/dist/renovate.js.map +1 -1
  608. package/dist/util/cache/package/redis.js +0 -1
  609. package/dist/util/cache/package/redis.js.map +1 -1
  610. package/dist/util/cache/package/types.d.ts +1 -1
  611. package/dist/util/cache/package/types.js.map +1 -1
  612. package/dist/util/cache/repository/impl/base.d.ts +1 -1
  613. package/dist/util/cache/repository/impl/base.js +4 -0
  614. package/dist/util/cache/repository/impl/base.js.map +1 -1
  615. package/dist/util/cache/repository/schema.d.ts +4 -4
  616. package/dist/util/cache/repository/types.d.ts +3 -0
  617. package/dist/util/cache/repository/types.js.map +1 -1
  618. package/dist/util/common.d.ts +4 -2
  619. package/dist/util/common.js +17 -3
  620. package/dist/util/common.js.map +1 -1
  621. package/dist/util/env.d.ts +4 -0
  622. package/dist/util/env.js +22 -0
  623. package/dist/util/env.js.map +1 -0
  624. package/dist/util/exec/containerbase.js +19 -14
  625. package/dist/util/exec/containerbase.js.map +1 -1
  626. package/dist/util/exec/index.js +5 -2
  627. package/dist/util/exec/index.js.map +1 -1
  628. package/dist/util/exec/types.d.ts +0 -2
  629. package/dist/util/exec/types.js.map +1 -1
  630. package/dist/util/exec/utils.d.ts +1 -1
  631. package/dist/util/exec/utils.js +6 -5
  632. package/dist/util/exec/utils.js.map +1 -1
  633. package/dist/util/git/auth.js +8 -5
  634. package/dist/util/git/auth.js.map +1 -1
  635. package/dist/util/git/author.js +1 -1
  636. package/dist/util/git/author.js.map +1 -1
  637. package/dist/util/git/config.js +0 -1
  638. package/dist/util/git/config.js.map +1 -1
  639. package/dist/util/git/error.js +4 -2
  640. package/dist/util/git/error.js.map +1 -1
  641. package/dist/util/git/index.js +75 -52
  642. package/dist/util/git/index.js.map +1 -1
  643. package/dist/util/git/private-key.js +2 -4
  644. package/dist/util/git/private-key.js.map +1 -1
  645. package/dist/util/git/types.d.ts +2 -0
  646. package/dist/util/git/types.js.map +1 -1
  647. package/dist/util/git/url.js +1 -1
  648. package/dist/util/git/url.js.map +1 -1
  649. package/dist/util/github/graphql/datasource-fetcher.js +3 -5
  650. package/dist/util/github/graphql/datasource-fetcher.js.map +1 -1
  651. package/dist/util/github/graphql/query-adapters/releases-query-adapter.d.ts +2 -2
  652. package/dist/util/github/graphql/query-adapters/tags-query-adapter.d.ts +2 -2
  653. package/dist/util/http/auth.js +0 -1
  654. package/dist/util/http/auth.js.map +1 -1
  655. package/dist/util/http/bitbucket-server.d.ts +7 -5
  656. package/dist/util/http/bitbucket-server.js +26 -23
  657. package/dist/util/http/bitbucket-server.js.map +1 -1
  658. package/dist/util/http/bitbucket.d.ts +6 -5
  659. package/dist/util/http/bitbucket.js +34 -31
  660. package/dist/util/http/bitbucket.js.map +1 -1
  661. package/dist/util/http/cache/abstract-http-cache-provider.js +2 -2
  662. package/dist/util/http/cache/abstract-http-cache-provider.js.map +1 -1
  663. package/dist/util/http/cache/memory-http-cache-provider.d.ts +10 -0
  664. package/dist/util/http/cache/memory-http-cache-provider.js +29 -0
  665. package/dist/util/http/cache/memory-http-cache-provider.js.map +1 -0
  666. package/dist/util/http/cache/package-http-cache-provider.d.ts +23 -0
  667. package/dist/util/http/cache/package-http-cache-provider.js +80 -0
  668. package/dist/util/http/cache/package-http-cache-provider.js.map +1 -0
  669. package/dist/util/http/cache/schema.d.ts +2 -2
  670. package/dist/util/http/errors.d.ts +2 -0
  671. package/dist/util/http/errors.js +8 -0
  672. package/dist/util/http/errors.js.map +1 -0
  673. package/dist/util/http/gerrit.d.ts +6 -4
  674. package/dist/util/http/gerrit.js +11 -12
  675. package/dist/util/http/gerrit.js.map +1 -1
  676. package/dist/util/http/gitea.d.ts +5 -4
  677. package/dist/util/http/gitea.js +14 -13
  678. package/dist/util/http/gitea.js.map +1 -1
  679. package/dist/util/http/github.d.ts +14 -8
  680. package/dist/util/http/github.js +65 -60
  681. package/dist/util/http/github.js.map +1 -1
  682. package/dist/util/http/gitlab.d.ts +7 -5
  683. package/dist/util/http/gitlab.js +58 -46
  684. package/dist/util/http/gitlab.js.map +1 -1
  685. package/dist/util/http/got.d.ts +9 -0
  686. package/dist/util/http/got.js +54 -0
  687. package/dist/util/http/got.js.map +1 -0
  688. package/dist/util/http/host-rules.d.ts +2 -1
  689. package/dist/util/http/host-rules.js +17 -4
  690. package/dist/util/http/host-rules.js.map +1 -1
  691. package/dist/util/http/http.d.ts +93 -0
  692. package/dist/util/http/http.js +346 -0
  693. package/dist/util/http/http.js.map +1 -0
  694. package/dist/util/http/index.d.ts +6 -74
  695. package/dist/util/http/index.js +5 -359
  696. package/dist/util/http/index.js.map +1 -1
  697. package/dist/util/http/legacy.js +4 -1
  698. package/dist/util/http/legacy.js.map +1 -1
  699. package/dist/util/http/types.d.ts +9 -16
  700. package/dist/util/http/types.js.map +1 -1
  701. package/dist/util/schema-utils.d.ts +1 -0
  702. package/dist/util/schema-utils.js +43 -8
  703. package/dist/util/schema-utils.js.map +1 -1
  704. package/dist/util/stats.d.ts +10 -0
  705. package/dist/util/stats.js +45 -1
  706. package/dist/util/stats.js.map +1 -1
  707. package/dist/util/string.d.ts +16 -0
  708. package/dist/util/string.js +79 -0
  709. package/dist/util/string.js.map +1 -1
  710. package/dist/util/toml.d.ts +1 -0
  711. package/dist/util/toml.js +6 -0
  712. package/dist/util/toml.js.map +1 -1
  713. package/dist/util/url.js +3 -8
  714. package/dist/util/url.js.map +1 -1
  715. package/dist/util/yaml.js +3 -8
  716. package/dist/util/yaml.js.map +1 -1
  717. package/dist/workers/global/autodiscover.js +1 -19
  718. package/dist/workers/global/autodiscover.js.map +1 -1
  719. package/dist/workers/global/config/parse/env.js +3 -3
  720. package/dist/workers/global/config/parse/env.js.map +1 -1
  721. package/dist/workers/global/config/parse/file.js +18 -8
  722. package/dist/workers/global/config/parse/file.js.map +1 -1
  723. package/dist/workers/global/config/parse/host-rules-from-env.js +6 -2
  724. package/dist/workers/global/config/parse/host-rules-from-env.js.map +1 -1
  725. package/dist/workers/global/config/parse/index.js +15 -0
  726. package/dist/workers/global/config/parse/index.js.map +1 -1
  727. package/dist/workers/global/index.js +4 -2
  728. package/dist/workers/global/index.js.map +1 -1
  729. package/dist/workers/repository/cache.js +1 -2
  730. package/dist/workers/repository/cache.js.map +1 -1
  731. package/dist/workers/repository/config-migration/branch/migrated-data.js +2 -0
  732. package/dist/workers/repository/config-migration/branch/migrated-data.js.map +1 -1
  733. package/dist/workers/repository/index.js +1 -0
  734. package/dist/workers/repository/index.js.map +1 -1
  735. package/dist/workers/repository/init/merge.js +6 -3
  736. package/dist/workers/repository/init/merge.js.map +1 -1
  737. package/dist/workers/repository/onboarding/pr/config-description.js +3 -1
  738. package/dist/workers/repository/onboarding/pr/config-description.js.map +1 -1
  739. package/dist/workers/repository/onboarding/pr/index.js +4 -0
  740. package/dist/workers/repository/onboarding/pr/index.js.map +1 -1
  741. package/dist/workers/repository/process/extract-update.js +0 -1
  742. package/dist/workers/repository/process/extract-update.js.map +1 -1
  743. package/dist/workers/repository/process/fingerprint-fields.js +0 -1
  744. package/dist/workers/repository/process/fingerprint-fields.js.map +1 -1
  745. package/dist/workers/repository/process/libyear.js +2 -2
  746. package/dist/workers/repository/process/libyear.js.map +1 -1
  747. package/dist/workers/repository/process/lookup/index.js +15 -4
  748. package/dist/workers/repository/process/lookup/index.js.map +1 -1
  749. package/dist/workers/repository/process/lookup/timestamps.d.ts +18 -0
  750. package/dist/workers/repository/process/lookup/timestamps.js +69 -0
  751. package/dist/workers/repository/process/lookup/timestamps.js.map +1 -0
  752. package/dist/workers/repository/process/lookup/types.d.ts +1 -0
  753. package/dist/workers/repository/process/lookup/types.js.map +1 -1
  754. package/dist/workers/repository/process/lookup/utils.js +20 -9
  755. package/dist/workers/repository/process/lookup/utils.js.map +1 -1
  756. package/dist/workers/repository/process/sort.js +1 -1
  757. package/dist/workers/repository/process/sort.js.map +1 -1
  758. package/dist/workers/repository/process/vulnerabilities.js +1 -1
  759. package/dist/workers/repository/process/vulnerabilities.js.map +1 -1
  760. package/dist/workers/repository/process/write.js +1 -8
  761. package/dist/workers/repository/process/write.js.map +1 -1
  762. package/dist/workers/repository/reconfigure/utils.d.ts +2 -0
  763. package/dist/workers/repository/reconfigure/utils.js +16 -0
  764. package/dist/workers/repository/reconfigure/utils.js.map +1 -1
  765. package/dist/workers/repository/reconfigure/validate.js +6 -17
  766. package/dist/workers/repository/reconfigure/validate.js.map +1 -1
  767. package/dist/workers/repository/update/branch/auto-replace.js +25 -5
  768. package/dist/workers/repository/update/branch/auto-replace.js.map +1 -1
  769. package/dist/workers/repository/update/branch/commit.js +2 -0
  770. package/dist/workers/repository/update/branch/commit.js.map +1 -1
  771. package/dist/workers/repository/update/branch/execute-post-upgrade-commands.js +17 -8
  772. package/dist/workers/repository/update/branch/execute-post-upgrade-commands.js.map +1 -1
  773. package/dist/workers/repository/update/pr/body/config-description.js +26 -1
  774. package/dist/workers/repository/update/pr/body/config-description.js.map +1 -1
  775. package/dist/workers/repository/update/pr/body/index.js +21 -14
  776. package/dist/workers/repository/update/pr/body/index.js.map +1 -1
  777. package/dist/workers/repository/update/pr/changelog/api.js +8 -6
  778. package/dist/workers/repository/update/pr/changelog/api.js.map +1 -1
  779. package/dist/workers/repository/update/pr/changelog/bitbucket/index.js +1 -1
  780. package/dist/workers/repository/update/pr/changelog/bitbucket/index.js.map +1 -1
  781. package/dist/workers/repository/update/pr/changelog/bitbucket-server/index.d.ts +3 -0
  782. package/dist/workers/repository/update/pr/changelog/bitbucket-server/index.js +39 -0
  783. package/dist/workers/repository/update/pr/changelog/bitbucket-server/index.js.map +1 -0
  784. package/dist/workers/repository/update/pr/changelog/bitbucket-server/source.d.ts +8 -0
  785. package/dist/workers/repository/update/pr/changelog/bitbucket-server/source.js +31 -0
  786. package/dist/workers/repository/update/pr/changelog/bitbucket-server/source.js.map +1 -0
  787. package/dist/workers/repository/update/pr/changelog/github/index.js +6 -3
  788. package/dist/workers/repository/update/pr/changelog/github/index.js.map +1 -1
  789. package/dist/workers/repository/update/pr/changelog/gitlab/index.js +1 -1
  790. package/dist/workers/repository/update/pr/changelog/gitlab/index.js.map +1 -1
  791. package/dist/workers/repository/update/pr/changelog/release-notes.js +12 -8
  792. package/dist/workers/repository/update/pr/changelog/release-notes.js.map +1 -1
  793. package/dist/workers/repository/update/pr/changelog/source.d.ts +1 -1
  794. package/dist/workers/repository/update/pr/changelog/source.js +1 -0
  795. package/dist/workers/repository/update/pr/changelog/source.js.map +1 -1
  796. package/dist/workers/repository/update/pr/changelog/types.d.ts +1 -1
  797. package/dist/workers/repository/update/pr/changelog/types.js.map +1 -1
  798. package/dist/workers/repository/update/pr/index.js +2 -4
  799. package/dist/workers/repository/update/pr/index.js.map +1 -1
  800. package/dist/workers/repository/updates/flatten.js +8 -4
  801. package/dist/workers/repository/updates/flatten.js.map +1 -1
  802. package/dist/workers/repository/updates/generate.js +3 -2
  803. package/dist/workers/repository/updates/generate.js.map +1 -1
  804. package/dist/workers/types.d.ts +1 -4
  805. package/dist/workers/types.js.map +1 -1
  806. package/package.json +86 -83
  807. package/renovate-schema.json +25 -10
  808. package/dist/modules/manager/github-actions/types.d.ts +0 -30
  809. package/dist/modules/manager/github-actions/types.js +0 -3
  810. package/dist/modules/manager/github-actions/types.js.map +0 -1
  811. package/dist/modules/manager/gitlabci/common.d.ts +0 -6
  812. package/dist/modules/manager/gitlabci/common.js +0 -30
  813. package/dist/modules/manager/gitlabci/common.js.map +0 -1
  814. package/dist/modules/manager/gitlabci/types.d.ts +0 -35
  815. package/dist/modules/manager/gitlabci/types.js +0 -3
  816. package/dist/modules/manager/gitlabci/types.js.map +0 -1
@@ -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<z.objectUtil.extendShape<{
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,13 +65,13 @@ export declare const ClusterProfile: z.ZodObject<z.objectUtil.extendShape<{
67
65
  }, {
68
66
  helmCharts?: any[] | undefined;
69
67
  }>;
70
- }>, "strip", z.ZodTypeAny, {
68
+ }, "strip", z.ZodTypeAny, {
71
69
  metadata: {
72
70
  name: string;
73
71
  namespace?: string | undefined;
74
72
  };
75
- kind: "ClusterProfile";
76
73
  apiVersion: string;
74
+ kind: "ClusterProfile";
77
75
  spec: {
78
76
  helmCharts?: {
79
77
  repositoryName: string;
@@ -87,15 +85,13 @@ export declare const ClusterProfile: z.ZodObject<z.objectUtil.extendShape<{
87
85
  name: string;
88
86
  namespace?: string | undefined;
89
87
  };
90
- kind: "ClusterProfile";
91
88
  apiVersion: string;
89
+ kind: "ClusterProfile";
92
90
  spec: {
93
91
  helmCharts?: any[] | undefined;
94
92
  };
95
93
  }>;
96
- export declare const Profile: z.ZodObject<z.objectUtil.extendShape<{
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,13 +122,13 @@ export declare const Profile: z.ZodObject<z.objectUtil.extendShape<{
126
122
  }, {
127
123
  helmCharts?: any[] | undefined;
128
124
  }>;
129
- }>, "strip", z.ZodTypeAny, {
125
+ }, "strip", z.ZodTypeAny, {
130
126
  metadata: {
131
127
  name: string;
132
128
  namespace?: string | undefined;
133
129
  };
134
- kind: "Profile";
135
130
  apiVersion: string;
131
+ kind: "Profile";
136
132
  spec: {
137
133
  helmCharts?: {
138
134
  repositoryName: string;
@@ -146,15 +142,13 @@ export declare const Profile: z.ZodObject<z.objectUtil.extendShape<{
146
142
  name: string;
147
143
  namespace?: string | undefined;
148
144
  };
149
- kind: "Profile";
150
145
  apiVersion: string;
146
+ kind: "Profile";
151
147
  spec: {
152
148
  helmCharts?: any[] | undefined;
153
149
  };
154
150
  }>;
155
- export declare const EventTrigger: z.ZodObject<z.objectUtil.extendShape<{
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,13 +179,13 @@ export declare const EventTrigger: z.ZodObject<z.objectUtil.extendShape<{
185
179
  }, {
186
180
  helmCharts?: any[] | undefined;
187
181
  }>;
188
- }>, "strip", z.ZodTypeAny, {
182
+ }, "strip", z.ZodTypeAny, {
189
183
  metadata: {
190
184
  name: string;
191
185
  namespace?: string | undefined;
192
186
  };
193
- kind: "EventTrigger";
194
187
  apiVersion: string;
188
+ kind: "EventTrigger";
195
189
  spec: {
196
190
  helmCharts?: {
197
191
  repositoryName: string;
@@ -205,15 +199,13 @@ export declare const EventTrigger: z.ZodObject<z.objectUtil.extendShape<{
205
199
  name: string;
206
200
  namespace?: string | undefined;
207
201
  };
208
- kind: "EventTrigger";
209
202
  apiVersion: string;
203
+ kind: "EventTrigger";
210
204
  spec: {
211
205
  helmCharts?: any[] | undefined;
212
206
  };
213
207
  }>;
214
- export declare const ProfileDefinition: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
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,13 +236,13 @@ export declare const ProfileDefinition: z.ZodUnion<[z.ZodObject<z.objectUtil.ext
244
236
  }, {
245
237
  helmCharts?: any[] | undefined;
246
238
  }>;
247
- }>, "strip", z.ZodTypeAny, {
239
+ }, "strip", z.ZodTypeAny, {
248
240
  metadata: {
249
241
  name: string;
250
242
  namespace?: string | undefined;
251
243
  };
252
- kind: "Profile";
253
244
  apiVersion: string;
245
+ kind: "Profile";
254
246
  spec: {
255
247
  helmCharts?: {
256
248
  repositoryName: string;
@@ -264,14 +256,12 @@ export declare const ProfileDefinition: z.ZodUnion<[z.ZodObject<z.objectUtil.ext
264
256
  name: string;
265
257
  namespace?: string | undefined;
266
258
  };
267
- kind: "Profile";
268
259
  apiVersion: string;
260
+ kind: "Profile";
269
261
  spec: {
270
262
  helmCharts?: any[] | undefined;
271
263
  };
272
- }>, z.ZodObject<z.objectUtil.extendShape<{
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,13 +292,13 @@ export declare const ProfileDefinition: z.ZodUnion<[z.ZodObject<z.objectUtil.ext
302
292
  }, {
303
293
  helmCharts?: any[] | undefined;
304
294
  }>;
305
- }>, "strip", z.ZodTypeAny, {
295
+ }, "strip", z.ZodTypeAny, {
306
296
  metadata: {
307
297
  name: string;
308
298
  namespace?: string | undefined;
309
299
  };
310
- kind: "ClusterProfile";
311
300
  apiVersion: string;
301
+ kind: "ClusterProfile";
312
302
  spec: {
313
303
  helmCharts?: {
314
304
  repositoryName: string;
@@ -322,14 +312,12 @@ export declare const ProfileDefinition: z.ZodUnion<[z.ZodObject<z.objectUtil.ext
322
312
  name: string;
323
313
  namespace?: string | undefined;
324
314
  };
325
- kind: "ClusterProfile";
326
315
  apiVersion: string;
316
+ kind: "ClusterProfile";
327
317
  spec: {
328
318
  helmCharts?: any[] | undefined;
329
319
  };
330
- }>, z.ZodObject<z.objectUtil.extendShape<{
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,13 +348,13 @@ export declare const ProfileDefinition: z.ZodUnion<[z.ZodObject<z.objectUtil.ext
360
348
  }, {
361
349
  helmCharts?: any[] | undefined;
362
350
  }>;
363
- }>, "strip", z.ZodTypeAny, {
351
+ }, "strip", z.ZodTypeAny, {
364
352
  metadata: {
365
353
  name: string;
366
354
  namespace?: string | undefined;
367
355
  };
368
- kind: "EventTrigger";
369
356
  apiVersion: string;
357
+ kind: "EventTrigger";
370
358
  spec: {
371
359
  helmCharts?: {
372
360
  repositoryName: string;
@@ -380,8 +368,8 @@ export declare const ProfileDefinition: z.ZodUnion<[z.ZodObject<z.objectUtil.ext
380
368
  name: string;
381
369
  namespace?: string | undefined;
382
370
  };
383
- kind: "EventTrigger";
384
371
  apiVersion: string;
372
+ kind: "EventTrigger";
385
373
  spec: {
386
374
  helmCharts?: any[] | undefined;
387
375
  };
@@ -2,7 +2,7 @@ import { Http } from '../../../../util/http';
2
2
  import { TerraformProviderDatasource } from '../../../datasource/terraform-provider';
3
3
  import type { TerraformBuild } from '../../../datasource/terraform-provider/types';
4
4
  export declare class TerraformProviderHash {
5
- static http: Http<import("../../../../util/http/types").HttpOptions>;
5
+ static http: Http;
6
6
  static terraformDatasource: TerraformProviderDatasource;
7
7
  static hashCacheTTL: number;
8
8
  private static hashElementList;
@@ -19,9 +19,7 @@ function checkIfStringIsPath(path) {
19
19
  return !!match;
20
20
  }
21
21
  function massageProviderLookupName(dep) {
22
- if (!dep.packageName) {
23
- dep.packageName = dep.depName;
24
- }
22
+ dep.packageName ??= dep.depName;
25
23
  // TODO #22198
26
24
  if (!dep.packageName.includes('/')) {
27
25
  dep.packageName = `hashicorp/${dep.packageName}`;
@@ -1 +1 @@
1
- {"version":3,"file":"util.js","sourceRoot":"","sources":["../../../../lib/modules/manager/terraform/util.ts"],"names":[],"mappings":";;AAOA,kEAKC;AAGD,kDAGC;AAED,8DAaC;AAED,4CAgBC;AAED,gEAeC;;AApED,kEAAkC;AAClC,+CAA4C;AAC5C,4EAAkF;AAGlF,0CAA2E;AAE3E,SAAgB,2BAA2B,CACzC,OAAe,EACf,SAAmB;IAEnB,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;AAC5D,CAAC;AAED,MAAM,eAAe,GAAG,IAAA,aAAK,EAAC,kBAAkB,CAAC,CAAC;AAClD,SAAgB,mBAAmB,CAAC,IAAY;IAC9C,MAAM,KAAK,GAAG,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACzC,OAAO,CAAC,CAAC,KAAK,CAAC;AACjB,CAAC;AAED,SAAgB,yBAAyB,CAAC,GAAsB;IAC9D,IAAI,CAAC,GAAG,CAAC,WAAW,EAAE,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C;gBACrC,KAAK,CAAC,IAAI,CAAC,GAAG,cAAc,CAAC,CAAC;YAChC,CAAC;QACH,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC","sourcesContent":["import is from '@sindresorhus/is';\nimport { regEx } from '../../../util/regex';\nimport { TerraformProviderDatasource } from '../../datasource/terraform-provider';\nimport type { PackageDependency } from '../types';\nimport type { ProviderLock } from './lockfile/types';\nimport { extractLocks, findLockFile, readLockFile } from './lockfile/util';\n\nexport function checkFileContainsDependency(\n content: string,\n checkList: string[],\n): boolean {\n return checkList.some((check) => content.includes(check));\n}\n\nconst pathStringRegex = regEx(/(.|..)?(\\/[^/])+/);\nexport function checkIfStringIsPath(path: string): boolean {\n const match = pathStringRegex.exec(path);\n return !!match;\n}\n\nexport function massageProviderLookupName(dep: PackageDependency): void {\n if (!dep.packageName) {\n dep.packageName = dep.depName;\n }\n\n // TODO #22198\n if (!dep.packageName!.includes('/')) {\n dep.packageName = `hashicorp/${dep.packageName!}`;\n }\n\n // handle cases like `Telmate/proxmox`\n // TODO #22198\n dep.packageName = dep.packageName!.toLowerCase();\n}\n\nexport function getLockedVersion(\n dep: PackageDependency,\n locks: ProviderLock[],\n): string | undefined {\n const depRegistryUrl = dep.registryUrls\n ? dep.registryUrls[0]\n : TerraformProviderDatasource.defaultRegistryUrls[0];\n const foundLock = locks.find(\n (lock) =>\n lock.packageName === dep.packageName &&\n lock.registryUrl === depRegistryUrl,\n );\n if (foundLock) {\n return foundLock.version;\n }\n return undefined;\n}\n\nexport async function extractLocksForPackageFile(\n fileName: string,\n): Promise<ProviderLock[]> {\n const locks: ProviderLock[] = [];\n const lockFilePath = await findLockFile(fileName);\n if (lockFilePath) {\n const lockFileContent = await readLockFile(lockFilePath);\n if (lockFileContent) {\n const extractedLocks = extractLocks(lockFileContent);\n if (is.nonEmptyArray(extractedLocks)) {\n locks.push(...extractedLocks);\n }\n }\n }\n return locks;\n}\n"]}
1
+ {"version":3,"file":"util.js","sourceRoot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AW,KAAK,GAAG,CAAC,WAAW;QACpC,IAAI,CAAC,WAAW,KAAK,cAAc,CACtC,CAAC;IACF,IAAI,SAAS,EAAE,CAAC;QACd,OAAO,SAAS,CAAC,OAAO,CAAC;IAC3B,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAEM,KAAK,UAAU,0BAA0B,CAC9C,QAAgB;IAEhB,MAAM,KAAK,GAAmB,EAAE,CAAC;IACjC,MAAM,YAAY,GAAG,MAAM,IAAA,mBAAY,EAAC,QAAQ,CAAC,CAAC;IAClD,IAAI,YAAY,EAAE,CAAC;QACjB,MAAM,eAAe,GAAG,MAAM,IAAA,mBAAY,EAAC,YAAY,CAAC,CAAC;QACzD,IAAI,eAAe,EAAE,CAAC;YACpB,MAAM,cAAc,GAAG,IAAA,mBAAY,EAAC,eAAe,CAAC,CAAC;YACrD,IAAI,YAAE,CAAC,aAAa,CAAC,cAAc,CAAC,EAAE,CAAC;gBACrC,KAAK,CAAC,IAAI,CAAC,GAAG,cAAc,CAAC,CAAC;YAChC,CAAC;QACH,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC","sourcesContent":["import is from '@sindresorhus/is';\nimport { regEx } from '../../../util/regex';\nimport { TerraformProviderDatasource } from '../../datasource/terraform-provider';\nimport type { PackageDependency } from '../types';\nimport type { ProviderLock } from './lockfile/types';\nimport { extractLocks, findLockFile, readLockFile } from './lockfile/util';\n\nexport function checkFileContainsDependency(\n content: string,\n checkList: string[],\n): boolean {\n return checkList.some((check) => content.includes(check));\n}\n\nconst pathStringRegex = regEx(/(.|..)?(\\/[^/])+/);\nexport function checkIfStringIsPath(path: string): boolean {\n const match = pathStringRegex.exec(path);\n return !!match;\n}\n\nexport function massageProviderLookupName(dep: PackageDependency): void {\n dep.packageName ??= dep.depName;\n\n // TODO #22198\n if (!dep.packageName!.includes('/')) {\n dep.packageName = `hashicorp/${dep.packageName!}`;\n }\n\n // handle cases like `Telmate/proxmox`\n // TODO #22198\n dep.packageName = dep.packageName!.toLowerCase();\n}\n\nexport function getLockedVersion(\n dep: PackageDependency,\n locks: ProviderLock[],\n): string | undefined {\n const depRegistryUrl = dep.registryUrls\n ? dep.registryUrls[0]\n : TerraformProviderDatasource.defaultRegistryUrls[0];\n const foundLock = locks.find(\n (lock) =>\n lock.packageName === dep.packageName &&\n lock.registryUrl === depRegistryUrl,\n );\n if (foundLock) {\n return foundLock.version;\n }\n return undefined;\n}\n\nexport async function extractLocksForPackageFile(\n fileName: string,\n): Promise<ProviderLock[]> {\n const locks: ProviderLock[] = [];\n const lockFilePath = await findLockFile(fileName);\n if (lockFilePath) {\n const lockFileContent = await readLockFile(lockFilePath);\n if (lockFileContent) {\n const extractedLocks = extractLocks(lockFileContent);\n if (is.nonEmptyArray(extractedLocks)) {\n locks.push(...extractedLocks);\n }\n }\n }\n return locks;\n}\n"]}
@@ -1,10 +1,11 @@
1
1
  import type { ReleaseType } from 'semver';
2
- import type { MatchStringsStrategy, UpdateType, UserEnv, ValidationMessage } from '../../config/types';
2
+ import type { MatchStringsStrategy, UpdateType, ValidationMessage } from '../../config/types';
3
3
  import type { Category } from '../../constants';
4
4
  import type { ModuleApi, RangeStrategy, SkipReason, StageName } from '../../types';
5
5
  import type { FileChange } from '../../util/git/types';
6
6
  import type { MergeConfidence } from '../../util/merge-confidence/types';
7
7
  import type { Timestamp } from '../../util/timestamp';
8
+ import type { RegistryStrategy } from '../datasource';
8
9
  import type { CustomExtractConfig } from './custom/types';
9
10
  export type MaybePromise<T> = T | Promise<T>;
10
11
  export interface ManagerData<T> {
@@ -32,7 +33,6 @@ export interface UpdateArtifactsConfig {
32
33
  newMajor?: number;
33
34
  registryAliases?: Record<string, string>;
34
35
  lockFiles?: string[];
35
- env?: UserEnv;
36
36
  }
37
37
  export interface RangeConfig<T = Record<string, any>> extends ManagerData<T> {
38
38
  currentValue?: string;
@@ -145,6 +145,10 @@ export interface PackageDependency<T = Record<string, any>> extends ManagerData<
145
145
  isInternal?: boolean;
146
146
  variableName?: string;
147
147
  indentation?: string;
148
+ /**
149
+ * override data source's default strategy.
150
+ */
151
+ registryStrategy?: RegistryStrategy;
148
152
  }
149
153
  export interface Upgrade<T = Record<string, any>> extends PackageDependency<T> {
150
154
  workspace?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../lib/modules/manager/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ReleaseType } from 'semver';\nimport type {\n MatchStringsStrategy,\n UpdateType,\n UserEnv,\n ValidationMessage,\n} from '../../config/types';\nimport type { Category } from '../../constants';\nimport type {\n ModuleApi,\n RangeStrategy,\n SkipReason,\n StageName,\n} from '../../types';\nimport type { FileChange } from '../../util/git/types';\nimport type { MergeConfidence } from '../../util/merge-confidence/types';\nimport type { Timestamp } from '../../util/timestamp';\nimport type { CustomExtractConfig } from './custom/types';\n\nexport type MaybePromise<T> = T | Promise<T>;\n\nexport interface ManagerData<T> {\n managerData?: T;\n}\n\nexport interface ExtractConfig extends CustomExtractConfig {\n registryAliases?: Record<string, string>;\n npmrc?: string;\n npmrcMerge?: boolean;\n skipInstalls?: boolean | null;\n repository?: string;\n}\n\nexport interface UpdateArtifactsConfig {\n isLockFileMaintenance?: boolean;\n constraints?: Record<string, string>;\n composerIgnorePlatformReqs?: string[];\n goGetDirs?: string[];\n currentValue?: string;\n postUpdateOptions?: string[];\n ignorePlugins?: boolean;\n ignoreScripts?: boolean;\n updateType?: UpdateType;\n newValue?: string;\n newVersion?: string;\n newMajor?: number;\n registryAliases?: Record<string, string>;\n lockFiles?: string[];\n env?: UserEnv;\n}\n\nexport interface RangeConfig<T = Record<string, any>> extends ManagerData<T> {\n currentValue?: string;\n depName?: string;\n depType?: string;\n manager?: string;\n rangeStrategy: RangeStrategy;\n}\n\nexport interface PackageFileContent<T = Record<string, any>>\n extends ManagerData<T> {\n autoReplaceStringTemplate?: string;\n extractedConstraints?: Record<string, string>;\n datasource?: string;\n registryUrls?: string[];\n additionalRegistryUrls?: string[];\n deps: PackageDependency[];\n lockFiles?: string[];\n npmrc?: string;\n packageFileVersion?: string;\n skipInstalls?: boolean | null;\n matchStrings?: string[];\n matchStringsStrategy?: MatchStringsStrategy;\n fileFormat?: string;\n}\n\nexport interface PackageFile<T = Record<string, any>>\n extends PackageFileContent<T> {\n packageFile: string;\n}\n\nexport interface LookupUpdate {\n bucket?: string;\n branchName?: string;\n commitMessageAction?: string;\n isBump?: boolean;\n isLockfileUpdate?: boolean;\n isPin?: boolean;\n isPinDigest?: boolean;\n isRange?: boolean;\n isRollback?: boolean;\n isReplacement?: boolean;\n newDigest?: string;\n newMajor?: number;\n newMinor?: number;\n newPatch?: number;\n newName?: string;\n newValue?: string;\n semanticCommitType?: string;\n pendingChecks?: boolean;\n pendingVersions?: string[];\n newVersion?: string;\n updateType?: UpdateType;\n mergeConfidenceLevel?: MergeConfidence | undefined;\n userStrings?: Record<string, string>;\n checksumUrl?: string;\n downloadUrl?: string;\n releaseTimestamp?: Timestamp;\n newVersionAgeInDays?: number;\n registryUrl?: string;\n libYears?: number;\n}\n\n/**\n * @property {string} depName - Display name of the package. See #16012\n * @property {string} packageName - The name of the package, used in comparisons. depName is used as fallback if this is not set. See #16012\n */\nexport interface PackageDependency<T = Record<string, any>>\n extends ManagerData<T> {\n currentValue?: string | null;\n currentDigest?: string;\n depName?: string;\n depType?: string;\n fileReplacePosition?: number;\n sharedVariableName?: string;\n lineNumber?: number;\n packageName?: string;\n target?: string;\n versioning?: string;\n dataType?: string;\n enabled?: boolean;\n bumpVersion?: ReleaseType;\n npmPackageAlias?: boolean;\n packageFileVersion?: string;\n gitRef?: boolean;\n sourceUrl?: string | null;\n pinDigests?: boolean;\n currentRawValue?: string;\n major?: { enabled?: boolean };\n prettyDepType?: string;\n newValue?: string;\n warnings?: ValidationMessage[];\n commitMessageTopic?: string;\n currentDigestShort?: string;\n datasource?: string;\n deprecationMessage?: string;\n digestOneAndOnly?: boolean;\n fixedVersion?: string;\n currentVersion?: string;\n currentVersionTimestamp?: string;\n lockedVersion?: string;\n propSource?: string;\n registryUrls?: string[] | null;\n rangeStrategy?: RangeStrategy;\n skipReason?: SkipReason;\n skipStage?: StageName;\n sourceLine?: number;\n newVersion?: string;\n updates?: LookupUpdate[];\n replaceString?: string;\n autoReplaceStringTemplate?: string;\n editFile?: string;\n separateMinorPatch?: boolean;\n extractVersion?: string;\n isInternal?: boolean;\n variableName?: string;\n indentation?: string;\n}\n\nexport interface Upgrade<T = Record<string, any>> extends PackageDependency<T> {\n workspace?: string;\n isLockfileUpdate?: boolean;\n currentRawValue?: any;\n depGroup?: string;\n lockFiles?: string[];\n manager?: string;\n name?: string;\n newDigest?: string;\n newFrom?: string;\n newMajor?: number;\n newName?: string;\n newValue?: string;\n packageFile?: string;\n rangeStrategy?: RangeStrategy;\n newVersion?: string;\n updateType?: UpdateType;\n version?: string;\n isLockFileMaintenance?: boolean;\n isRemediation?: boolean;\n isVulnerabilityAlert?: boolean;\n vulnerabilitySeverity?: string;\n registryUrls?: string[] | null;\n currentVersion?: string;\n replaceString?: string;\n replacementApproach?: 'replace' | 'alias';\n}\n\nexport interface ArtifactNotice {\n file: string;\n message: string;\n}\n\nexport interface ArtifactError {\n fileName?: string;\n lockFile?: string;\n stderr?: string;\n}\n\nexport type UpdateArtifactsResult =\n | {\n file?: FileChange;\n notice?: ArtifactNotice;\n artifactError?: undefined;\n }\n | {\n file?: undefined;\n notice?: undefined;\n artifactError?: ArtifactError;\n };\n\nexport interface UpdateArtifact<T = Record<string, unknown>> {\n packageFileName: string;\n updatedDeps: Upgrade<T>[];\n newPackageFileContent: string;\n config: UpdateArtifactsConfig;\n}\n\nexport interface UpdateDependencyConfig<T = Record<string, any>> {\n fileContent: string;\n upgrade: Upgrade<T>;\n}\n\nexport interface BumpPackageVersionResult {\n bumpedContent: string | null;\n}\n\nexport interface UpdateLockedConfig {\n packageFile: string;\n packageFileContent?: string;\n lockFile: string;\n lockFileContent?: string;\n depName: string;\n currentVersion: string;\n newVersion: string;\n allowParentUpdates?: boolean;\n allowHigherOrRemoved?: boolean;\n}\n\nexport interface UpdateLockedResult {\n status: 'unsupported' | 'updated' | 'already-updated' | 'update-failed';\n files?: Record<string, string>;\n}\n\nexport interface GlobalManagerConfig {\n npmrc?: string;\n npmrcMerge?: boolean;\n}\n\nexport interface ManagerApi extends ModuleApi {\n defaultConfig: Record<string, unknown>;\n\n categories?: Category[];\n supportsLockFileMaintenance?: boolean;\n supersedesManagers?: string[];\n supportedDatasources: string[];\n\n bumpPackageVersion?(\n content: string,\n currentValue: string,\n bumpVersion: ReleaseType,\n packageFile: string,\n ): MaybePromise<BumpPackageVersionResult>;\n\n detectGlobalConfig?(): MaybePromise<GlobalManagerConfig>;\n\n extractAllPackageFiles?(\n config: ExtractConfig,\n files: string[],\n ): MaybePromise<PackageFile[] | null>;\n\n extractPackageFile?(\n content: string,\n packageFile?: string,\n config?: ExtractConfig,\n ): MaybePromise<PackageFileContent | null>;\n\n getRangeStrategy?(config: RangeConfig): RangeStrategy;\n\n updateArtifacts?(\n updateArtifact: UpdateArtifact,\n ): MaybePromise<UpdateArtifactsResult[] | null>;\n\n updateDependency?(\n updateDependencyConfig: UpdateDependencyConfig,\n ): MaybePromise<string | null>;\n\n updateLockedDependency?(\n config: UpdateLockedConfig,\n ): MaybePromise<UpdateLockedResult>;\n}\n\n// TODO: name and properties used by npm manager\nexport interface PostUpdateConfig<T = Record<string, any>>\n extends Record<string, any>,\n ManagerData<T> {\n // TODO: remove null\n constraints?: Record<string, string> | null;\n updatedPackageFiles?: FileChange[];\n postUpdateOptions?: string[];\n skipInstalls?: boolean | null;\n ignoreScripts?: boolean;\n\n packageFile?: string;\n\n upgrades: Upgrade[];\n npmLock?: string;\n yarnLock?: string;\n branchName: string;\n reuseExistingBranch?: boolean;\n\n isLockFileMaintenance?: boolean;\n}\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../lib/modules/manager/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ReleaseType } from 'semver';\nimport type {\n MatchStringsStrategy,\n UpdateType,\n ValidationMessage,\n} from '../../config/types';\nimport type { Category } from '../../constants';\nimport type {\n ModuleApi,\n RangeStrategy,\n SkipReason,\n StageName,\n} from '../../types';\nimport type { FileChange } from '../../util/git/types';\nimport type { MergeConfidence } from '../../util/merge-confidence/types';\nimport type { Timestamp } from '../../util/timestamp';\nimport type { RegistryStrategy } from '../datasource';\nimport type { CustomExtractConfig } from './custom/types';\n\nexport type MaybePromise<T> = T | Promise<T>;\n\nexport interface ManagerData<T> {\n managerData?: T;\n}\n\nexport interface ExtractConfig extends CustomExtractConfig {\n registryAliases?: Record<string, string>;\n npmrc?: string;\n npmrcMerge?: boolean;\n skipInstalls?: boolean | null;\n repository?: string;\n}\n\nexport interface UpdateArtifactsConfig {\n isLockFileMaintenance?: boolean;\n constraints?: Record<string, string>;\n composerIgnorePlatformReqs?: string[];\n goGetDirs?: string[];\n currentValue?: string;\n postUpdateOptions?: string[];\n ignorePlugins?: boolean;\n ignoreScripts?: boolean;\n updateType?: UpdateType;\n newValue?: string;\n newVersion?: string;\n newMajor?: number;\n registryAliases?: Record<string, string>;\n lockFiles?: string[];\n}\n\nexport interface RangeConfig<T = Record<string, any>> extends ManagerData<T> {\n currentValue?: string;\n depName?: string;\n depType?: string;\n manager?: string;\n rangeStrategy: RangeStrategy;\n}\n\nexport interface PackageFileContent<T = Record<string, any>>\n extends ManagerData<T> {\n autoReplaceStringTemplate?: string;\n extractedConstraints?: Record<string, string>;\n datasource?: string;\n registryUrls?: string[];\n additionalRegistryUrls?: string[];\n deps: PackageDependency[];\n lockFiles?: string[];\n npmrc?: string;\n packageFileVersion?: string;\n skipInstalls?: boolean | null;\n matchStrings?: string[];\n matchStringsStrategy?: MatchStringsStrategy;\n fileFormat?: string;\n}\n\nexport interface PackageFile<T = Record<string, any>>\n extends PackageFileContent<T> {\n packageFile: string;\n}\n\nexport interface LookupUpdate {\n bucket?: string;\n branchName?: string;\n commitMessageAction?: string;\n isBump?: boolean;\n isLockfileUpdate?: boolean;\n isPin?: boolean;\n isPinDigest?: boolean;\n isRange?: boolean;\n isRollback?: boolean;\n isReplacement?: boolean;\n newDigest?: string;\n newMajor?: number;\n newMinor?: number;\n newPatch?: number;\n newName?: string;\n newValue?: string;\n semanticCommitType?: string;\n pendingChecks?: boolean;\n pendingVersions?: string[];\n newVersion?: string;\n updateType?: UpdateType;\n mergeConfidenceLevel?: MergeConfidence | undefined;\n userStrings?: Record<string, string>;\n checksumUrl?: string;\n downloadUrl?: string;\n releaseTimestamp?: Timestamp;\n newVersionAgeInDays?: number;\n registryUrl?: string;\n libYears?: number;\n}\n\n/**\n * @property {string} depName - Display name of the package. See #16012\n * @property {string} packageName - The name of the package, used in comparisons. depName is used as fallback if this is not set. See #16012\n */\nexport interface PackageDependency<T = Record<string, any>>\n extends ManagerData<T> {\n currentValue?: string | null;\n currentDigest?: string;\n depName?: string;\n depType?: string;\n fileReplacePosition?: number;\n sharedVariableName?: string;\n lineNumber?: number;\n packageName?: string;\n target?: string;\n versioning?: string;\n dataType?: string;\n enabled?: boolean;\n bumpVersion?: ReleaseType;\n npmPackageAlias?: boolean;\n packageFileVersion?: string;\n gitRef?: boolean;\n sourceUrl?: string | null;\n pinDigests?: boolean;\n currentRawValue?: string;\n major?: { enabled?: boolean };\n prettyDepType?: string;\n newValue?: string;\n warnings?: ValidationMessage[];\n commitMessageTopic?: string;\n currentDigestShort?: string;\n datasource?: string;\n deprecationMessage?: string;\n digestOneAndOnly?: boolean;\n fixedVersion?: string;\n currentVersion?: string;\n currentVersionTimestamp?: string;\n lockedVersion?: string;\n propSource?: string;\n registryUrls?: string[] | null;\n rangeStrategy?: RangeStrategy;\n skipReason?: SkipReason;\n skipStage?: StageName;\n sourceLine?: number;\n newVersion?: string;\n updates?: LookupUpdate[];\n replaceString?: string;\n autoReplaceStringTemplate?: string;\n editFile?: string;\n separateMinorPatch?: boolean;\n extractVersion?: string;\n isInternal?: boolean;\n variableName?: string;\n indentation?: string;\n\n /**\n * override data source's default strategy.\n */\n registryStrategy?: RegistryStrategy;\n}\n\nexport interface Upgrade<T = Record<string, any>> extends PackageDependency<T> {\n workspace?: string;\n isLockfileUpdate?: boolean;\n currentRawValue?: any;\n depGroup?: string;\n lockFiles?: string[];\n manager?: string;\n name?: string;\n newDigest?: string;\n newFrom?: string;\n newMajor?: number;\n newName?: string;\n newValue?: string;\n packageFile?: string;\n rangeStrategy?: RangeStrategy;\n newVersion?: string;\n updateType?: UpdateType;\n version?: string;\n isLockFileMaintenance?: boolean;\n isRemediation?: boolean;\n isVulnerabilityAlert?: boolean;\n vulnerabilitySeverity?: string;\n registryUrls?: string[] | null;\n currentVersion?: string;\n replaceString?: string;\n replacementApproach?: 'replace' | 'alias';\n}\n\nexport interface ArtifactNotice {\n file: string;\n message: string;\n}\n\nexport interface ArtifactError {\n fileName?: string;\n lockFile?: string;\n stderr?: string;\n}\n\nexport type UpdateArtifactsResult =\n | {\n file?: FileChange;\n notice?: ArtifactNotice;\n artifactError?: undefined;\n }\n | {\n file?: undefined;\n notice?: undefined;\n artifactError?: ArtifactError;\n };\n\nexport interface UpdateArtifact<T = Record<string, unknown>> {\n packageFileName: string;\n updatedDeps: Upgrade<T>[];\n newPackageFileContent: string;\n config: UpdateArtifactsConfig;\n}\n\nexport interface UpdateDependencyConfig<T = Record<string, any>> {\n fileContent: string;\n upgrade: Upgrade<T>;\n}\n\nexport interface BumpPackageVersionResult {\n bumpedContent: string | null;\n}\n\nexport interface UpdateLockedConfig {\n packageFile: string;\n packageFileContent?: string;\n lockFile: string;\n lockFileContent?: string;\n depName: string;\n currentVersion: string;\n newVersion: string;\n allowParentUpdates?: boolean;\n allowHigherOrRemoved?: boolean;\n}\n\nexport interface UpdateLockedResult {\n status: 'unsupported' | 'updated' | 'already-updated' | 'update-failed';\n files?: Record<string, string>;\n}\n\nexport interface GlobalManagerConfig {\n npmrc?: string;\n npmrcMerge?: boolean;\n}\n\nexport interface ManagerApi extends ModuleApi {\n defaultConfig: Record<string, unknown>;\n\n categories?: Category[];\n supportsLockFileMaintenance?: boolean;\n supersedesManagers?: string[];\n supportedDatasources: string[];\n\n bumpPackageVersion?(\n content: string,\n currentValue: string,\n bumpVersion: ReleaseType,\n packageFile: string,\n ): MaybePromise<BumpPackageVersionResult>;\n\n detectGlobalConfig?(): MaybePromise<GlobalManagerConfig>;\n\n extractAllPackageFiles?(\n config: ExtractConfig,\n files: string[],\n ): MaybePromise<PackageFile[] | null>;\n\n extractPackageFile?(\n content: string,\n packageFile?: string,\n config?: ExtractConfig,\n ): MaybePromise<PackageFileContent | null>;\n\n getRangeStrategy?(config: RangeConfig): RangeStrategy;\n\n updateArtifacts?(\n updateArtifact: UpdateArtifact,\n ): MaybePromise<UpdateArtifactsResult[] | null>;\n\n updateDependency?(\n updateDependencyConfig: UpdateDependencyConfig,\n ): MaybePromise<string | null>;\n\n updateLockedDependency?(\n config: UpdateLockedConfig,\n ): MaybePromise<UpdateLockedResult>;\n}\n\n// TODO: name and properties used by npm manager\nexport interface PostUpdateConfig<T = Record<string, any>>\n extends Record<string, any>,\n ManagerData<T> {\n // TODO: remove null\n constraints?: Record<string, string> | null;\n updatedPackageFiles?: FileChange[];\n postUpdateOptions?: string[];\n skipInstalls?: boolean | null;\n ignoreScripts?: boolean;\n\n packageFile?: string;\n\n upgrades: Upgrade[];\n npmLock?: string;\n yarnLock?: string;\n branchName: string;\n reuseExistingBranch?: boolean;\n\n isLockFileMaintenance?: boolean;\n}\n"]}
@@ -3,11 +3,11 @@ export declare const VendirResource: z.ZodObject<{
3
3
  apiVersion: z.ZodLiteral<"vendir.k14s.io/v1alpha1">;
4
4
  kind: z.ZodLiteral<"Config">;
5
5
  }, "strip", z.ZodTypeAny, {
6
- kind: "Config";
7
6
  apiVersion: "vendir.k14s.io/v1alpha1";
8
- }, {
9
7
  kind: "Config";
8
+ }, {
10
9
  apiVersion: "vendir.k14s.io/v1alpha1";
10
+ kind: "Config";
11
11
  }>;
12
12
  export declare const GitRef: z.ZodObject<{
13
13
  ref: z.ZodString;
@@ -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<z.objectUtil.extendShape<{
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,9 +309,9 @@ export declare const Vendir: z.ZodObject<z.objectUtil.extendShape<{
309
309
  path: string;
310
310
  contents: any[];
311
311
  }>, "many">;
312
- }>, "strip", z.ZodTypeAny, {
313
- kind: "Config";
312
+ }, "strip", z.ZodTypeAny, {
314
313
  apiVersion: "vendir.k14s.io/v1alpha1";
314
+ kind: "Config";
315
315
  directories: {
316
316
  path: string;
317
317
  contents: ({
@@ -339,8 +339,8 @@ export declare const Vendir: z.ZodObject<z.objectUtil.extendShape<{
339
339
  })[];
340
340
  }[];
341
341
  }, {
342
- kind: "Config";
343
342
  apiVersion: "vendir.k14s.io/v1alpha1";
343
+ kind: "Config";
344
344
  directories: {
345
345
  path: string;
346
346
  contents: any[];
@@ -1,3 +1,3 @@
1
1
  import type { Platform } from './types';
2
- declare const api: Map<"local" | "azure" | "bitbucket" | "bitbucket-server" | "codecommit" | "gerrit" | "gitea" | "github" | "gitlab", Platform>;
2
+ declare const api: Map<"azure" | "bitbucket" | "bitbucket-server" | "codecommit" | "gerrit" | "gitea" | "github" | "gitlab" | "local", Platform>;
3
3
  export default api;
@@ -63,9 +63,9 @@ async function getFile(repoId, filePath, branchName) {
63
63
  }
64
64
  }
65
65
  }
66
- catch {
66
+ catch /* v8 ignore start */ {
67
67
  // it 's not a JSON, so I send the content directly with the line under
68
- }
68
+ } /* v8 ignore stop */
69
69
  return fileContent;
70
70
  }
71
71
  return null; // no file found
@@ -1 +1 @@
1
- {"version":3,"file":"azure-helper.js","sourceRoot":"","sources":["../../../../lib/modules/platform/azure/azure-helper.ts"],"names":[],"mappings":";;AAkBA,0BAYC;AAOD,8CAoBC;AAGD,0BA4CC;AAED,4CAQC;AAED,wCAgEC;AAED,gDAiBC;;AAlMD,wFAAgG;AAChG,4CAAyC;AACzC,mDAAuD;AACvD,kCAA2C;AAC3C,sEAAgD;AAChD,qCAAkD;AAClD,iCAGgB;AAEhB,MAAM,eAAe,GAAG,sCAAsC,CAAC,CAAC,sDAAsD;AAE/G,KAAK,UAAU,OAAO,CAC3B,MAAc,EACd,UAAmB;IAEnB,eAAM,CAAC,KAAK,CAAC,WAAW,MAAM,KAAK,UAAW,GAAG,CAAC,CAAC;IACnD,MAAM,WAAW,GAAG,MAAM,QAAQ,CAAC,MAAM,EAAE,CAAC;IAC5C,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC,OAAO,CACpC,MAAM,EACN,SAAS,EACT,IAAA,qCAA8B,EAAC,UAAU,CAAC,CAC3C,CAAC;IACF,OAAO,IAAI,CAAC;AACd,CAAC;AAOM,KAAK,UAAU,iBAAiB,CACrC,MAAc,EACd,UAAkB,EAClB,IAAa;IAEb,MAAM,cAAc,GAAG,IAAA,uBAAgB,EAAC,IAAI,CAAC,CAAC;IAC9C,MAAM,IAAI,GAAG,MAAM,OAAO,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IACnD,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACtB,eAAM,CAAC,KAAK,CAAC,4DAA4D,CAAC,CAAC;QAC3E,sBAAsB;QACtB,OAAO;YACL,IAAI,EAAE,IAAA,uBAAgB,EAAC,UAAU,CAAE;YACnC,WAAW,EAAE,0CAA0C;SACxD,CAAC;IACJ,CAAC;IACD,OAAO;QACL,+BAA+B;QAC/B,IAAI,EAAE,IAAA,uBAAgB,EAAC,UAAU,CAAE;QACnC,WAAW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AAG,KAAK,CAAC,CAAC;QACxB,IAAI,IAAI,GAAG,CAAC;IACd,CAAC,QAAQ,GAAG,IAAI,MAAM,EAAE;IAExB,OAAO,QAAQ,CAAC;AAClB,CAAC","sourcesContent":["import type { WebApiTeam } from 'azure-devops-node-api/interfaces/CoreInterfaces.js';\nimport type {\n GitCommit,\n GitRef,\n} from 'azure-devops-node-api/interfaces/GitInterfaces.js';\nimport { GitPullRequestMergeStrategy } from 'azure-devops-node-api/interfaces/GitInterfaces.js';\nimport { logger } from '../../../logger';\nimport { streamToString } from '../../../util/streams';\nimport { getNewBranchName } from '../util';\nimport * as azureApi from './azure-got-wrapper';\nimport { WrappedExceptionSchema } from './schema';\nimport {\n getBranchNameWithoutRefsPrefix,\n getBranchNameWithoutRefsheadsPrefix,\n} from './util';\n\nconst mergePolicyGuid = 'fa4e907d-c16b-4a4c-9dfa-4916e5d171ab'; // Magic GUID for merge strategy policy configurations\n\nexport async function getRefs(\n repoId: string,\n branchName?: string,\n): Promise<GitRef[]> {\n logger.debug(`getRefs(${repoId}, ${branchName!})`);\n const azureApiGit = await azureApi.gitApi();\n const refs = await azureApiGit.getRefs(\n repoId,\n undefined,\n getBranchNameWithoutRefsPrefix(branchName),\n );\n return refs;\n}\n\nexport interface AzureBranchObj {\n name: string;\n oldObjectId: string;\n}\n\nexport async function getAzureBranchObj(\n repoId: string,\n branchName: string,\n from?: string,\n): Promise<AzureBranchObj> {\n const fromBranchName = getNewBranchName(from);\n const refs = await getRefs(repoId, fromBranchName);\n if (refs.length === 0) {\n logger.debug(`getAzureBranchObj without a valid from, so initial commit.`);\n // TODO: fix undefined\n return {\n name: getNewBranchName(branchName)!,\n oldObjectId: '0000000000000000000000000000000000000000',\n };\n }\n return {\n // TODO: fix undefined (#22198)\n name: getNewBranchName(branchName)!,\n oldObjectId: refs[0].objectId!,\n };\n}\n\n// if no branchName, look globally\nexport async function getFile(\n repoId: string,\n filePath: string,\n branchName: string,\n): Promise<string | null> {\n logger.trace(`getFile(filePath=${filePath}, branchName=${branchName})`);\n const azureApiGit = await azureApi.gitApi();\n const item = await azureApiGit.getItemText(\n repoId,\n filePath,\n undefined,\n undefined,\n 0, // because we look for 1 file\n false,\n false,\n true,\n {\n versionType: 0, // branch\n versionOptions: 0,\n version: getBranchNameWithoutRefsheadsPrefix(branchName),\n },\n );\n\n if (item?.readable) {\n const fileContent = await streamToString(item);\n try {\n const result = WrappedExceptionSchema.safeParse(fileContent);\n if (result.success) {\n if (result.data.typeKey === 'GitItemNotFoundException') {\n logger.warn({ filePath }, 'Unable to find file');\n return null;\n }\n if (result.data.typeKey === 'GitUnresolvableToCommitException') {\n logger.warn({ branchName }, 'Unable to find branch');\n return null;\n }\n }\n } catch {\n // it 's not a JSON, so I send the content directly with the line under\n }\n\n return fileContent;\n }\n return null; // no file found\n}\n\nexport async function getCommitDetails(\n commit: string,\n repoId: string,\n): Promise<GitCommit> {\n logger.debug(`getCommitDetails(${commit}, ${repoId})`);\n const azureApiGit = await azureApi.gitApi();\n const results = await azureApiGit.getCommit(commit, repoId);\n return results;\n}\n\nexport async function getMergeMethod(\n repoId: string,\n project: string,\n branchRef?: string | null,\n defaultBranch?: string,\n): Promise<GitPullRequestMergeStrategy> {\n logger.debug(\n `getMergeMethod(branchRef=${branchRef}, defaultBranch=${defaultBranch})`,\n );\n interface Scope {\n repositoryId: string;\n refName?: string;\n matchKind: 'Prefix' | 'Exact' | 'DefaultBranch';\n }\n const isRelevantScope = (scope: Scope): boolean => {\n if (\n scope.matchKind === 'DefaultBranch' &&\n // TODO: types (#22198)\n (!branchRef || branchRef === `refs/heads/${defaultBranch!}`)\n ) {\n return true;\n }\n if (scope.repositoryId !== repoId && scope.repositoryId !== null) {\n return false;\n }\n if (!branchRef) {\n return true;\n }\n // TODO #22198\n return scope.matchKind === 'Exact'\n ? scope.refName === branchRef\n : branchRef.startsWith(scope.refName!);\n };\n\n const policyConfigurations = (\n await (\n await azureApi.policyApi()\n ).getPolicyConfigurations(project, undefined, mergePolicyGuid)\n )\n .filter((p) => p.settings.scope.some(isRelevantScope))\n .map((p) => p.settings)[0];\n\n logger.debug(\n // TODO: types (#22198)\n `getMergeMethod(branchRef=${branchRef!}) determining mergeMethod from matched policy:\\n${JSON.stringify(\n policyConfigurations,\n null,\n 4,\n )}`,\n );\n\n try {\n // TODO: fix me, wrong types\n return Object.keys(policyConfigurations)\n .map(\n (p) =>\n GitPullRequestMergeStrategy[\n p.slice(5) as never\n ] as never as GitPullRequestMergeStrategy,\n )\n .find((p) => p)!;\n } catch {\n return GitPullRequestMergeStrategy.NoFastForward;\n }\n}\n\nexport async function getAllProjectTeams(\n projectId: string,\n): Promise<WebApiTeam[]> {\n const allTeams: WebApiTeam[] = [];\n const azureApiCore = await azureApi.coreApi();\n const top = 100;\n let skip = 0;\n let length = 0;\n\n do {\n const teams = await azureApiCore.getTeams(projectId, undefined, top, skip);\n length = teams.length;\n allTeams.push(...teams);\n skip += top;\n } while (top <= length);\n\n return allTeams;\n}\n"]}
1
+ {"version":3,"file":"azure-helper.js","sourceRoot":"","sources":["../../../../lib/modules/platform/azure/azure-helper.ts"],"names":[],"mappings":";;AAkBA,0BAYC;AAOD,8CAoBC;AAGD,0BA6CC;AAED,4CAQC;AAED,wCAgEC;AAED,gDAiBC;;AAnMD,wFAAgG;AAChG,4CAAyC;AACzC,mDAAuD;AACvD,kCAA2C;AAC3C,sEAAgD;AAChD,qCAAkD;AAClD,iCAGgB;AAEhB,MAAM,eAAe,GAAG,sCAAsC,CAAC,CAAC,sDAAsD;AAE/G,KAAK,UAAU,OAAO,CAC3B,MAAc,EACd,UAAmB;IAEnB,eAAM,CAAC,KAAK,CAAC,WAAW,MAAM,KAAK,UAAW,GAAG,CAAC,CAAC;IACnD,MAAM,WAAW,GAAG,MAAM,QAAQ,CAAC,MAAM,EAAE,CAAC;IAC5C,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC,OAAO,CACpC,MAAM,EACN,SAAS,EACT,IAAA,qCAA8B,EAAC,UAAU,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A,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAE,CAAC;IACrB,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,8CAA2B,CAAC,aAAa,CAAC;IACnD,CAAC;AACH,CAAC;AAEM,KAAK,UAAU,kBAAkB,CACtC,SAAiB;IAEjB,MAAM,QAAQ,GAAiB,EAAE,CAAC;IAClC,MAAM,YAAY,GAAG,MAAM,QAAQ,CAAC,OAAO,EAAE,CAAC;IAC9C,MAAM,GAAG,GAAG,GAAG,CAAC;IAChB,IAAI,IAAI,GAAG,CAAC,CAAC;IACb,IAAI,MAAM,GAAG,CAAC,CAAC;IAEf,GAAG,CAAC;QACF,MAAM,KAAK,GAAG,MAAM,YAAY,CAAC,QAAQ,CAAC,SAAS,EAAE,SAAS,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;QAC3E,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QACtB,QAAQ,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC;QACxB,IAAI,IAAI,GAAG,CAAC;IACd,CAAC,QAAQ,GAAG,IAAI,MAAM,EAAE;IAExB,OAAO,QAAQ,CAAC;AAClB,CAAC","sourcesContent":["import type { WebApiTeam } from 'azure-devops-node-api/interfaces/CoreInterfaces.js';\nimport type {\n GitCommit,\n GitRef,\n} from 'azure-devops-node-api/interfaces/GitInterfaces.js';\nimport { GitPullRequestMergeStrategy } from 'azure-devops-node-api/interfaces/GitInterfaces.js';\nimport { logger } from '../../../logger';\nimport { streamToString } from '../../../util/streams';\nimport { getNewBranchName } from '../util';\nimport * as azureApi from './azure-got-wrapper';\nimport { WrappedExceptionSchema } from './schema';\nimport {\n getBranchNameWithoutRefsPrefix,\n getBranchNameWithoutRefsheadsPrefix,\n} from './util';\n\nconst mergePolicyGuid = 'fa4e907d-c16b-4a4c-9dfa-4916e5d171ab'; // Magic GUID for merge strategy policy configurations\n\nexport async function getRefs(\n repoId: string,\n branchName?: string,\n): Promise<GitRef[]> {\n logger.debug(`getRefs(${repoId}, ${branchName!})`);\n const azureApiGit = await azureApi.gitApi();\n const refs = await azureApiGit.getRefs(\n repoId,\n undefined,\n getBranchNameWithoutRefsPrefix(branchName),\n );\n return refs;\n}\n\nexport interface AzureBranchObj {\n name: string;\n oldObjectId: string;\n}\n\nexport async function getAzureBranchObj(\n repoId: string,\n branchName: string,\n from?: string,\n): Promise<AzureBranchObj> {\n const fromBranchName = getNewBranchName(from);\n const refs = await getRefs(repoId, fromBranchName);\n if (refs.length === 0) {\n logger.debug(`getAzureBranchObj without a valid from, so initial commit.`);\n // TODO: fix undefined\n return {\n name: getNewBranchName(branchName)!,\n oldObjectId: '0000000000000000000000000000000000000000',\n };\n }\n return {\n // TODO: fix undefined (#22198)\n name: getNewBranchName(branchName)!,\n oldObjectId: refs[0].objectId!,\n };\n}\n\n// if no branchName, look globally\nexport async function getFile(\n repoId: string,\n filePath: string,\n branchName: string,\n): Promise<string | null> {\n logger.trace(`getFile(filePath=${filePath}, branchName=${branchName})`);\n const azureApiGit = await azureApi.gitApi();\n const item = await azureApiGit.getItemText(\n repoId,\n filePath,\n undefined,\n undefined,\n 0, // because we look for 1 file\n false,\n false,\n true,\n {\n versionType: 0, // branch\n versionOptions: 0,\n version: getBranchNameWithoutRefsheadsPrefix(branchName),\n },\n );\n\n if (item?.readable) {\n const fileContent = await streamToString(item);\n try {\n const result = WrappedExceptionSchema.safeParse(fileContent);\n if (result.success) {\n if (result.data.typeKey === 'GitItemNotFoundException') {\n logger.warn({ filePath }, 'Unable to find file');\n return null;\n }\n if (result.data.typeKey === 'GitUnresolvableToCommitException') {\n logger.warn({ branchName }, 'Unable to find branch');\n return null;\n }\n }\n } catch /* v8 ignore start */ {\n // it 's not a JSON, so I send the content directly with the line under\n } /* v8 ignore stop */\n\n return fileContent;\n }\n\n return null; // no file found\n}\n\nexport async function getCommitDetails(\n commit: string,\n repoId: string,\n): Promise<GitCommit> {\n logger.debug(`getCommitDetails(${commit}, ${repoId})`);\n const azureApiGit = await azureApi.gitApi();\n const results = await azureApiGit.getCommit(commit, repoId);\n return results;\n}\n\nexport async function getMergeMethod(\n repoId: string,\n project: string,\n branchRef?: string | null,\n defaultBranch?: string,\n): Promise<GitPullRequestMergeStrategy> {\n logger.debug(\n `getMergeMethod(branchRef=${branchRef}, defaultBranch=${defaultBranch})`,\n );\n interface Scope {\n repositoryId: string;\n refName?: string;\n matchKind: 'Prefix' | 'Exact' | 'DefaultBranch';\n }\n const isRelevantScope = (scope: Scope): boolean => {\n if (\n scope.matchKind === 'DefaultBranch' &&\n // TODO: types (#22198)\n (!branchRef || branchRef === `refs/heads/${defaultBranch!}`)\n ) {\n return true;\n }\n if (scope.repositoryId !== repoId && scope.repositoryId !== null) {\n return false;\n }\n if (!branchRef) {\n return true;\n }\n // TODO #22198\n return scope.matchKind === 'Exact'\n ? scope.refName === branchRef\n : branchRef.startsWith(scope.refName!);\n };\n\n const policyConfigurations = (\n await (\n await azureApi.policyApi()\n ).getPolicyConfigurations(project, undefined, mergePolicyGuid)\n )\n .filter((p) => p.settings.scope.some(isRelevantScope))\n .map((p) => p.settings)[0];\n\n logger.debug(\n // TODO: types (#22198)\n `getMergeMethod(branchRef=${branchRef!}) determining mergeMethod from matched policy:\\n${JSON.stringify(\n policyConfigurations,\n null,\n 4,\n )}`,\n );\n\n try {\n // TODO: fix me, wrong types\n return Object.keys(policyConfigurations)\n .map(\n (p) =>\n GitPullRequestMergeStrategy[\n p.slice(5) as never\n ] as never as GitPullRequestMergeStrategy,\n )\n .find((p) => p)!;\n } catch {\n return GitPullRequestMergeStrategy.NoFastForward;\n }\n}\n\nexport async function getAllProjectTeams(\n projectId: string,\n): Promise<WebApiTeam[]> {\n const allTeams: WebApiTeam[] = [];\n const azureApiCore = await azureApi.coreApi();\n const top = 100;\n let skip = 0;\n let length = 0;\n\n do {\n const teams = await azureApiCore.getTeams(projectId, undefined, top, skip);\n length = teams.length;\n allTeams.push(...teams);\n skip += top;\n } while (top <= length);\n\n return allTeams;\n}\n"]}
@@ -108,7 +108,7 @@ async function getRawFile(fileName, repoName, branchOrTag) {
108
108
  true);
109
109
  return item?.content ?? null;
110
110
  }
111
- catch (err) /* istanbul ignore next */ {
111
+ catch (err) /* v8 ignore start */ {
112
112
  if (err.message?.includes('<title>Azure DevOps Services Unavailable</title>')) {
113
113
  logger_1.logger.debug('Azure DevOps is currently unavailable when attempting to fetch file - throwing ExternalHostError');
114
114
  throw new external_host_error_1.ExternalHostError(err, exports.id);
@@ -120,7 +120,7 @@ async function getRawFile(fileName, repoName, branchOrTag) {
120
120
  throw new external_host_error_1.ExternalHostError(err, exports.id);
121
121
  }
122
122
  throw err;
123
- }
123
+ } /* v8 ignore stop */
124
124
  }
125
125
  async function getJsonFile(fileName, repoName, branchOrTag) {
126
126
  const raw = await getRawFile(fileName, repoName, branchOrTag);
@@ -141,11 +141,11 @@ async function initRepo({ repository, cloneSubmodules, cloneSubmodulesFilter, })
141
141
  logger_1.logger.debug('Repository is disabled- throwing error to abort renovation');
142
142
  throw new Error(error_messages_1.REPOSITORY_ARCHIVED);
143
143
  }
144
- // istanbul ignore if
144
+ /* v8 ignore start */
145
145
  if (!repo.defaultBranch) {
146
146
  logger_1.logger.debug('Repo is empty');
147
147
  throw new Error(error_messages_1.REPOSITORY_EMPTY);
148
- }
148
+ } /* v8 ignore stop */
149
149
  // TODO #22198
150
150
  config.repoId = repo.id;
151
151
  config.project = repo.project.name;
@@ -411,12 +411,12 @@ async function updatePr({ number: prNo, prTitle: title, prBody: body, state, pla
411
411
  const prToCache = (0, util_2.getRenovatePRFormat)(updatedPr);
412
412
  // We need to update the cached entry for this PR
413
413
  const existingIndex = config.prList.findIndex((item) => item.number === prNo);
414
- // istanbul ignore if: should not happen
414
+ /* v8 ignore start: should not happen */
415
415
  if (existingIndex === -1) {
416
416
  logger_1.logger.warn({ prNo }, 'PR not found in cache');
417
417
  // Add to cache
418
418
  config.prList.push(prToCache);
419
- }
419
+ } /* v8 ignore stop */
420
420
  else {
421
421
  // overwrite existing PR in cache
422
422
  config.prList[existingIndex] = prToCache;
@@ -561,28 +561,28 @@ function massageMarkdown(input) {
561
561
  function maxBodyLength() {
562
562
  return 4000;
563
563
  }
564
- /* istanbul ignore next */
564
+ /* v8 ignore start */
565
565
  function findIssue() {
566
566
  // TODO: Needs implementation (#9592)
567
567
  logger_1.logger.debug(`findIssue() is not implemented`);
568
568
  return Promise.resolve(null);
569
- }
570
- /* istanbul ignore next */
569
+ } /* v8 ignore stop */
570
+ /* v8 ignore start */
571
571
  function ensureIssue() {
572
572
  // TODO: Needs implementation (#9592)
573
573
  logger_1.logger.debug(`ensureIssue() is not implemented`);
574
574
  return Promise.resolve(null);
575
- }
576
- /* istanbul ignore next */
575
+ } /* v8 ignore stop */
576
+ /* v8 ignore start */
577
577
  function ensureIssueClosing() {
578
578
  return Promise.resolve();
579
- }
580
- /* istanbul ignore next */
579
+ } /* v8 ignore stop */
580
+ /* v8 ignore start */
581
581
  function getIssueList() {
582
582
  logger_1.logger.debug(`getIssueList()`);
583
583
  // TODO: Needs implementation (#9592)
584
584
  return Promise.resolve([]);
585
- }
585
+ } /* v8 ignore stop */
586
586
  async function getUserIds(users) {
587
587
  const azureApiGit = await azureApi.gitApi();
588
588
  const azureApiCore = await azureApi.coreApi();