renovate 42.0.0-next.1 → 42.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/app-strings.d.ts +2 -1
- package/dist/config/app-strings.js +10 -2
- package/dist/config/app-strings.js.map +1 -1
- package/dist/config/decrypt/bcpgp.d.ts +1 -0
- package/dist/config/decrypt/bcpgp.js +57 -0
- package/dist/config/decrypt/bcpgp.js.map +1 -0
- package/dist/config/decrypt/openpgp.js +0 -4
- package/dist/config/decrypt/openpgp.js.map +1 -1
- package/dist/config/decrypt.d.ts +1 -1
- package/dist/config/decrypt.js +9 -26
- package/dist/config/decrypt.js.map +1 -1
- package/dist/config/global.js +1 -0
- package/dist/config/global.js.map +1 -1
- package/dist/config/migrations/custom/schedule-migration.js +9 -11
- package/dist/config/migrations/custom/schedule-migration.js.map +1 -1
- package/dist/config/migrations/custom/unpublish-safe-migration.js +3 -2
- package/dist/config/migrations/custom/unpublish-safe-migration.js.map +1 -1
- package/dist/config/options/index.js +49 -2
- package/dist/config/options/index.js.map +1 -1
- package/dist/config/presets/common.js +1 -0
- package/dist/config/presets/common.js.map +1 -1
- package/dist/config/presets/internal/abandonments.js +4 -1
- package/dist/config/presets/internal/abandonments.js.map +1 -1
- package/dist/config/presets/internal/config.js +15 -0
- package/dist/config/presets/internal/config.js.map +1 -1
- package/dist/config/presets/internal/custom-managers.js +2 -2
- package/dist/config/presets/internal/custom-managers.js.map +1 -1
- package/dist/config/presets/internal/default.js +12 -1
- package/dist/config/presets/internal/default.js.map +1 -1
- package/dist/config/presets/internal/group.js +13 -0
- package/dist/config/presets/internal/group.js.map +1 -1
- package/dist/config/presets/internal/npm.js +1 -8
- package/dist/config/presets/internal/npm.js.map +1 -1
- package/dist/config/presets/internal/packages.js +5 -1
- package/dist/config/presets/internal/packages.js.map +1 -1
- package/dist/config/presets/internal/security.js +8 -0
- package/dist/config/presets/internal/security.js.map +1 -1
- package/dist/config/presets/internal/workarounds.js +2 -2
- package/dist/config/presets/internal/workarounds.js.map +1 -1
- package/dist/config/schema.d.ts +1 -1
- package/dist/config/secrets.js +2 -2
- package/dist/config/secrets.js.map +1 -1
- package/dist/config/types.d.ts +26 -1
- package/dist/config/types.js.map +1 -1
- package/dist/config/validation.js +4 -3
- package/dist/config/validation.js.map +1 -1
- package/dist/config-validator.js +1 -1
- package/dist/config-validator.js.map +1 -1
- package/dist/constants/platforms.js +1 -0
- package/dist/constants/platforms.js.map +1 -1
- package/dist/data/monorepo.json +13 -2
- package/dist/data/node-js-schedule.json +1 -1
- package/dist/data/replacements.json +34 -0
- package/dist/data-files.generated.js +3 -3
- package/dist/data-files.generated.js.map +1 -1
- package/dist/logger/renovate-logger.d.ts +1 -0
- package/dist/logger/renovate-logger.js +3 -0
- package/dist/logger/renovate-logger.js.map +1 -1
- package/dist/logger/utils.js +2 -1
- package/dist/logger/utils.js.map +1 -1
- package/dist/manager-list.generated.d.ts +1 -1
- package/dist/manager-list.generated.js +1 -1
- package/dist/manager-list.generated.js.map +1 -1
- package/dist/modules/datasource/api.js +4 -0
- package/dist/modules/datasource/api.js.map +1 -1
- package/dist/modules/datasource/aws-eks-addon/schema.d.ts +1 -8
- package/dist/modules/datasource/aws-eks-addon/schema.js +7 -5
- package/dist/modules/datasource/aws-eks-addon/schema.js.map +1 -1
- package/dist/modules/datasource/azure-pipelines-tasks/schema.d.ts +12 -12
- package/dist/modules/datasource/bitrise/schema.d.ts +1 -1
- package/dist/modules/datasource/buildpacks-registry/index.js +1 -1
- package/dist/modules/datasource/buildpacks-registry/index.js.map +1 -1
- package/dist/modules/datasource/buildpacks-registry/schema.d.ts +1 -1
- package/dist/modules/datasource/buildpacks-registry/schema.js +2 -2
- package/dist/modules/datasource/buildpacks-registry/schema.js.map +1 -1
- package/dist/modules/datasource/cdnjs/index.js +2 -2
- package/dist/modules/datasource/cdnjs/index.js.map +1 -1
- package/dist/modules/datasource/cdnjs/schema.d.ts +8 -8
- package/dist/modules/datasource/cdnjs/schema.js +3 -3
- package/dist/modules/datasource/cdnjs/schema.js.map +1 -1
- package/dist/modules/datasource/conan/schema.d.ts +3 -3
- package/dist/modules/datasource/conda/prefix-dev.js +1 -1
- package/dist/modules/datasource/conda/prefix-dev.js.map +1 -1
- package/dist/modules/datasource/conda/schema/prefix-dev.d.ts +7 -7
- package/dist/modules/datasource/conda/schema/prefix-dev.js +2 -2
- package/dist/modules/datasource/conda/schema/prefix-dev.js.map +1 -1
- package/dist/modules/datasource/cpan/schema.js +2 -2
- package/dist/modules/datasource/cpan/schema.js.map +1 -1
- package/dist/modules/datasource/crate/index.js +12 -11
- package/dist/modules/datasource/crate/index.js.map +1 -1
- package/dist/modules/datasource/crate/schema.d.ts +1 -1
- package/dist/modules/datasource/crate/schema.js +2 -2
- package/dist/modules/datasource/crate/schema.js.map +1 -1
- package/dist/modules/datasource/custom/index.d.ts +1 -1
- package/dist/modules/datasource/custom/index.js +2 -2
- package/dist/modules/datasource/custom/index.js.map +1 -1
- package/dist/modules/datasource/custom/schema.d.ts +1 -1
- package/dist/modules/datasource/custom/schema.js +2 -2
- package/dist/modules/datasource/custom/schema.js.map +1 -1
- package/dist/modules/datasource/docker/index.d.ts +1 -1
- package/dist/modules/datasource/docker/index.js +4 -1
- package/dist/modules/datasource/docker/index.js.map +1 -1
- package/dist/modules/datasource/docker/schema.d.ts +4 -4
- package/dist/modules/datasource/forgejo-releases/index.js +3 -3
- package/dist/modules/datasource/forgejo-releases/index.js.map +1 -1
- package/dist/modules/datasource/forgejo-releases/schema.d.ts +6 -6
- package/dist/modules/datasource/forgejo-releases/schema.js +3 -3
- package/dist/modules/datasource/forgejo-releases/schema.js.map +1 -1
- package/dist/modules/datasource/forgejo-tags/index.js +3 -3
- package/dist/modules/datasource/forgejo-tags/index.js.map +1 -1
- package/dist/modules/datasource/forgejo-tags/schema.d.ts +4 -4
- package/dist/modules/datasource/forgejo-tags/schema.js +7 -7
- package/dist/modules/datasource/forgejo-tags/schema.js.map +1 -1
- package/dist/modules/datasource/gitea-releases/index.js +3 -3
- package/dist/modules/datasource/gitea-releases/index.js.map +1 -1
- package/dist/modules/datasource/gitea-releases/schema.d.ts +6 -6
- package/dist/modules/datasource/gitea-releases/schema.js +3 -3
- package/dist/modules/datasource/gitea-releases/schema.js.map +1 -1
- package/dist/modules/datasource/gitea-tags/index.js +3 -3
- package/dist/modules/datasource/gitea-tags/index.js.map +1 -1
- package/dist/modules/datasource/gitea-tags/schema.d.ts +4 -4
- package/dist/modules/datasource/gitea-tags/schema.js +7 -7
- package/dist/modules/datasource/gitea-tags/schema.js.map +1 -1
- package/dist/modules/datasource/github-runners/index.js +5 -3
- package/dist/modules/datasource/github-runners/index.js.map +1 -1
- package/dist/modules/datasource/go/base.js +3 -2
- package/dist/modules/datasource/go/base.js.map +1 -1
- package/dist/modules/datasource/go/common.js +13 -9
- package/dist/modules/datasource/go/common.js.map +1 -1
- package/dist/modules/datasource/go/index.js +7 -2
- package/dist/modules/datasource/go/index.js.map +1 -1
- package/dist/modules/datasource/go/releases-direct.d.ts +2 -0
- package/dist/modules/datasource/go/releases-direct.js +7 -1
- package/dist/modules/datasource/go/releases-direct.js.map +1 -1
- package/dist/modules/datasource/go/releases-goproxy.js +1 -1
- package/dist/modules/datasource/go/releases-goproxy.js.map +1 -1
- package/dist/modules/datasource/helm/index.js +1 -1
- package/dist/modules/datasource/helm/index.js.map +1 -1
- package/dist/modules/datasource/helm/schema.d.ts +2 -2
- package/dist/modules/datasource/helm/schema.js +4 -4
- package/dist/modules/datasource/helm/schema.js.map +1 -1
- package/dist/modules/datasource/jsr/common.d.ts +1 -0
- package/dist/modules/datasource/jsr/common.js +12 -0
- package/dist/modules/datasource/jsr/common.js.map +1 -0
- package/dist/modules/datasource/jsr/index.d.ts +12 -0
- package/dist/modules/datasource/jsr/index.js +66 -0
- package/dist/modules/datasource/jsr/index.js.map +1 -0
- package/dist/modules/datasource/jsr/schema.d.ts +27 -0
- package/dist/modules/datasource/jsr/schema.js +20 -0
- package/dist/modules/datasource/jsr/schema.js.map +1 -0
- package/dist/modules/datasource/jsr/util.d.ts +4 -0
- package/dist/modules/datasource/jsr/util.js +53 -0
- package/dist/modules/datasource/jsr/util.js.map +1 -0
- package/dist/modules/datasource/maven/index.js +14 -0
- package/dist/modules/datasource/maven/index.js.map +1 -1
- package/dist/modules/datasource/maven/util.js +10 -0
- package/dist/modules/datasource/maven/util.js.map +1 -1
- package/dist/modules/datasource/npm/get.js +2 -1
- package/dist/modules/datasource/npm/get.js.map +1 -1
- package/dist/modules/datasource/npm/types.d.ts +7 -0
- package/dist/modules/datasource/npm/types.js.map +1 -1
- package/dist/modules/datasource/nuget/v3.js +3 -1
- package/dist/modules/datasource/nuget/v3.js.map +1 -1
- package/dist/modules/datasource/packagist/schema.d.ts +12 -12
- package/dist/modules/datasource/pypi/index.d.ts +1 -0
- package/dist/modules/datasource/pypi/index.js +1 -0
- package/dist/modules/datasource/pypi/index.js.map +1 -1
- package/dist/modules/datasource/python-version/schema.d.ts +3 -3
- package/dist/modules/datasource/rpm/index.d.ts +7 -0
- package/dist/modules/datasource/rpm/index.js +7 -0
- package/dist/modules/datasource/rpm/index.js.map +1 -1
- package/dist/modules/datasource/types.d.ts +2 -0
- package/dist/modules/datasource/types.js.map +1 -1
- package/dist/modules/datasource/typst/index.d.ts +11 -0
- package/dist/modules/datasource/typst/index.js +65 -0
- package/dist/modules/datasource/typst/index.js.map +1 -0
- package/dist/modules/datasource/typst/schema.d.ts +31 -0
- package/dist/modules/datasource/typst/schema.js +28 -0
- package/dist/modules/datasource/typst/schema.js.map +1 -0
- package/dist/modules/datasource/unity3d-packages/schema.d.ts +4 -4
- package/dist/modules/manager/api.js +6 -0
- package/dist/modules/manager/api.js.map +1 -1
- package/dist/modules/manager/argocd/extract.js +1 -1
- package/dist/modules/manager/argocd/extract.js.map +1 -1
- package/dist/modules/manager/argocd/schema.d.ts +1 -1
- package/dist/modules/manager/argocd/schema.js +2 -2
- package/dist/modules/manager/argocd/schema.js.map +1 -1
- package/dist/modules/manager/azure-pipelines/schema.d.ts +1 -1
- package/dist/modules/manager/batect/extract.js +1 -1
- package/dist/modules/manager/batect/extract.js.map +1 -1
- package/dist/modules/manager/batect/schema.d.ts +4 -4
- package/dist/modules/manager/batect/schema.js +2 -2
- package/dist/modules/manager/batect/schema.js.map +1 -1
- package/dist/modules/manager/bazel/rules/docker.d.ts +3 -3
- package/dist/modules/manager/bazel/rules/git.d.ts +5 -5
- package/dist/modules/manager/bazel/rules/go.d.ts +5 -5
- package/dist/modules/manager/bazel/rules/oci.d.ts +3 -3
- package/dist/modules/manager/bazel-module/extract.js +5 -0
- package/dist/modules/manager/bazel-module/extract.js.map +1 -1
- package/dist/modules/manager/bazel-module/parser/context.d.ts +6 -0
- package/dist/modules/manager/bazel-module/parser/context.js +42 -2
- package/dist/modules/manager/bazel-module/parser/context.js.map +1 -1
- package/dist/modules/manager/bazel-module/parser/fragments.d.ts +276 -112
- package/dist/modules/manager/bazel-module/parser/fragments.js +70 -32
- package/dist/modules/manager/bazel-module/parser/fragments.js.map +1 -1
- package/dist/modules/manager/bazel-module/parser/index.js +3 -1
- package/dist/modules/manager/bazel-module/parser/index.js.map +1 -1
- package/dist/modules/manager/bazel-module/parser/maven.d.ts +27 -27
- package/dist/modules/manager/bazel-module/parser/maven.js +7 -7
- package/dist/modules/manager/bazel-module/parser/maven.js.map +1 -1
- package/dist/modules/manager/bazel-module/parser/oci.d.ts +38 -38
- package/dist/modules/manager/bazel-module/parser/oci.js +5 -5
- package/dist/modules/manager/bazel-module/parser/oci.js.map +1 -1
- package/dist/modules/manager/bazel-module/parser/repo-rules.d.ts +5 -0
- package/dist/modules/manager/bazel-module/parser/repo-rules.js +71 -0
- package/dist/modules/manager/bazel-module/parser/repo-rules.js.map +1 -0
- package/dist/modules/manager/bazel-module/rules-img.d.ts +229 -0
- package/dist/modules/manager/bazel-module/rules-img.js +74 -0
- package/dist/modules/manager/bazel-module/rules-img.js.map +1 -0
- package/dist/modules/manager/bazel-module/rules.d.ts +101 -101
- package/dist/modules/manager/bazel-module/rules.js +18 -18
- package/dist/modules/manager/bazel-module/rules.js.map +1 -1
- package/dist/modules/manager/bitrise/schema.d.ts +1 -1
- package/dist/modules/manager/bun/artifacts.js +5 -4
- package/dist/modules/manager/bun/artifacts.js.map +1 -1
- package/dist/modules/manager/bundler/locked-version.js +44 -23
- package/dist/modules/manager/bundler/locked-version.js.map +1 -1
- package/dist/modules/manager/cargo/artifacts.js +15 -11
- package/dist/modules/manager/cargo/artifacts.js.map +1 -1
- package/dist/modules/manager/cargo/extract.js +6 -3
- package/dist/modules/manager/cargo/extract.js.map +1 -1
- package/dist/modules/manager/cargo/index.d.ts +0 -1
- package/dist/modules/manager/cargo/index.js +11 -4
- package/dist/modules/manager/cargo/index.js.map +1 -1
- package/dist/modules/manager/cargo/locked-version.d.ts +2 -2
- package/dist/modules/manager/cargo/locked-version.js +1 -1
- package/dist/modules/manager/cargo/locked-version.js.map +1 -1
- package/dist/modules/manager/cargo/schema.d.ts +206 -35
- package/dist/modules/manager/cargo/schema.js +26 -18
- package/dist/modules/manager/cargo/schema.js.map +1 -1
- package/dist/modules/manager/cloudbuild/schema.d.ts +1 -1
- package/dist/modules/manager/composer/schema.d.ts +98 -98
- package/dist/modules/manager/conan/artifacts.js +12 -2
- package/dist/modules/manager/conan/artifacts.js.map +1 -1
- package/dist/modules/manager/conan/extract.js +1 -1
- package/dist/modules/manager/conan/extract.js.map +1 -1
- package/dist/modules/manager/conan/index.d.ts +0 -1
- package/dist/modules/manager/conan/index.js +0 -1
- package/dist/modules/manager/conan/index.js.map +1 -1
- package/dist/modules/manager/copier/artifacts.js +5 -5
- package/dist/modules/manager/copier/artifacts.js.map +1 -1
- package/dist/modules/manager/copier/schema.d.ts +2 -2
- package/dist/modules/manager/copier/schema.js +5 -1
- package/dist/modules/manager/copier/schema.js.map +1 -1
- package/dist/modules/manager/crossplane/extract.js +1 -1
- package/dist/modules/manager/crossplane/extract.js.map +1 -1
- package/dist/modules/manager/crossplane/schema.d.ts +2 -2
- package/dist/modules/manager/crossplane/schema.js +2 -2
- package/dist/modules/manager/crossplane/schema.js.map +1 -1
- package/dist/modules/manager/crow/extract.d.ts +2 -0
- package/dist/modules/manager/crow/extract.js +35 -0
- package/dist/modules/manager/crow/extract.js.map +1 -0
- package/dist/modules/manager/crow/index.d.ts +8 -0
- package/dist/modules/manager/crow/index.js +13 -0
- package/dist/modules/manager/crow/index.js.map +1 -0
- package/dist/modules/manager/crow/schema.d.ts +66 -0
- package/dist/modules/manager/crow/schema.js +15 -0
- package/dist/modules/manager/crow/schema.js.map +1 -0
- package/dist/modules/manager/custom/jsonata/schema.d.ts +1 -1
- package/dist/modules/manager/custom/jsonata/schema.js +4 -4
- package/dist/modules/manager/custom/jsonata/schema.js.map +1 -1
- package/dist/modules/manager/custom/jsonata/utils.js +3 -3
- package/dist/modules/manager/custom/jsonata/utils.js.map +1 -1
- package/dist/modules/manager/devbox/extract.js +1 -1
- package/dist/modules/manager/devbox/extract.js.map +1 -1
- package/dist/modules/manager/devbox/schema.d.ts +1 -1
- package/dist/modules/manager/devbox/schema.js +2 -2
- package/dist/modules/manager/devbox/schema.js.map +1 -1
- package/dist/modules/manager/devcontainer/schema.d.ts +1 -1
- package/dist/modules/manager/fingerprint.generated.js +35 -32
- package/dist/modules/manager/fingerprint.generated.js.map +1 -1
- package/dist/modules/manager/fleet/schema.d.ts +16 -16
- package/dist/modules/manager/flux/schema.d.ts +24 -24
- package/dist/modules/manager/github-actions/community.d.ts +96 -0
- package/dist/modules/manager/github-actions/community.js +116 -10
- package/dist/modules/manager/github-actions/community.js.map +1 -1
- package/dist/modules/manager/github-actions/extract.js +2 -1
- package/dist/modules/manager/github-actions/extract.js.map +1 -1
- package/dist/modules/manager/github-actions/schema.d.ts +3 -3
- package/dist/modules/manager/github-actions/schema.js +7 -7
- package/dist/modules/manager/github-actions/schema.js.map +1 -1
- package/dist/modules/manager/gitlabci/extract.js +2 -0
- package/dist/modules/manager/gitlabci/extract.js.map +1 -1
- package/dist/modules/manager/glasskube/schema.d.ts +12 -12
- package/dist/modules/manager/gleam/schema.d.ts +4 -4
- package/dist/modules/manager/gomod/artifacts.js +8 -4
- package/dist/modules/manager/gomod/artifacts.js.map +1 -1
- package/dist/modules/manager/gradle/parser/dependencies.js +23 -2
- package/dist/modules/manager/gradle/parser/dependencies.js.map +1 -1
- package/dist/modules/manager/gradle/parser/objects.js +15 -0
- package/dist/modules/manager/gradle/parser/objects.js.map +1 -1
- package/dist/modules/manager/gradle/parser.js +1 -1
- package/dist/modules/manager/gradle/parser.js.map +1 -1
- package/dist/modules/manager/helmfile/extract.js +26 -21
- package/dist/modules/manager/helmfile/extract.js.map +1 -1
- package/dist/modules/manager/helmfile/index.js +4 -1
- package/dist/modules/manager/helmfile/index.js.map +1 -1
- package/dist/modules/manager/helmfile/schema.d.ts +4 -4
- package/dist/modules/manager/maven-wrapper/artifacts.js +1 -1
- package/dist/modules/manager/maven-wrapper/artifacts.js.map +1 -1
- package/dist/modules/manager/maven-wrapper/extract.js +4 -4
- package/dist/modules/manager/maven-wrapper/extract.js.map +1 -1
- package/dist/modules/manager/maven-wrapper/index.d.ts +1 -1
- package/dist/modules/manager/maven-wrapper/index.js +5 -2
- package/dist/modules/manager/maven-wrapper/index.js.map +1 -1
- package/dist/modules/manager/mise/backends.d.ts +2 -2
- package/dist/modules/manager/mise/backends.js +1 -1
- package/dist/modules/manager/mise/backends.js.map +1 -1
- package/dist/modules/manager/mise/extract.js.map +1 -1
- package/dist/modules/manager/mise/schema.d.ts +6 -29
- package/dist/modules/manager/mise/schema.js +7 -8
- package/dist/modules/manager/mise/schema.js.map +1 -1
- package/dist/modules/manager/mise/upgradeable-tooling.js +1 -1
- package/dist/modules/manager/mise/upgradeable-tooling.js.map +1 -1
- package/dist/modules/manager/mise/utils.d.ts +2 -2
- package/dist/modules/manager/mise/utils.js +1 -1
- package/dist/modules/manager/mise/utils.js.map +1 -1
- package/dist/modules/manager/nix/artifacts.js +2 -2
- package/dist/modules/manager/nix/artifacts.js.map +1 -1
- package/dist/modules/manager/nix/extract.d.ts +2 -2
- package/dist/modules/manager/nix/extract.js +79 -67
- package/dist/modules/manager/nix/extract.js.map +1 -1
- package/dist/modules/manager/nix/index.d.ts +1 -0
- package/dist/modules/manager/nix/index.js +3 -1
- package/dist/modules/manager/nix/index.js.map +1 -1
- package/dist/modules/manager/nix/range.d.ts +3 -0
- package/dist/modules/manager/nix/range.js +10 -0
- package/dist/modules/manager/nix/range.js.map +1 -0
- package/dist/modules/manager/nix/schema.d.ts +42 -28
- package/dist/modules/manager/nix/schema.js +4 -1
- package/dist/modules/manager/nix/schema.js.map +1 -1
- package/dist/modules/manager/npm/extract/common/package-file.d.ts +1 -0
- package/dist/modules/manager/npm/extract/common/package-file.js +8 -0
- package/dist/modules/manager/npm/extract/common/package-file.js.map +1 -1
- package/dist/modules/manager/npm/extract/index.js +24 -7
- package/dist/modules/manager/npm/extract/index.js.map +1 -1
- package/dist/modules/manager/npm/extract/pnpm.d.ts +4 -3
- package/dist/modules/manager/npm/extract/pnpm.js +1 -1
- package/dist/modules/manager/npm/extract/pnpm.js.map +1 -1
- package/dist/modules/manager/npm/extract/post/locked-versions.js +6 -0
- package/dist/modules/manager/npm/extract/post/locked-versions.js.map +1 -1
- package/dist/modules/manager/npm/extract/yarn.d.ts +4 -0
- package/dist/modules/manager/npm/extract/yarn.js +35 -0
- package/dist/modules/manager/npm/extract/yarn.js.map +1 -1
- package/dist/modules/manager/npm/extract/yarnrc.d.ts +4 -4
- package/dist/modules/manager/npm/extract/yarnrc.js +1 -2
- package/dist/modules/manager/npm/extract/yarnrc.js.map +1 -1
- package/dist/modules/manager/npm/index.js +1 -0
- package/dist/modules/manager/npm/index.js.map +1 -1
- package/dist/modules/manager/npm/post-update/index.js +2 -1
- package/dist/modules/manager/npm/post-update/index.js.map +1 -1
- package/dist/modules/manager/npm/post-update/npm.js +14 -1
- package/dist/modules/manager/npm/post-update/npm.js.map +1 -1
- package/dist/modules/manager/npm/post-update/pnpm.js +6 -1
- package/dist/modules/manager/npm/post-update/pnpm.js.map +1 -1
- package/dist/modules/manager/npm/post-update/types.d.ts +5 -5
- package/dist/modules/manager/npm/post-update/types.js.map +1 -1
- package/dist/modules/manager/npm/post-update/utils.d.ts +3 -4
- package/dist/modules/manager/npm/post-update/utils.js +2 -13
- package/dist/modules/manager/npm/post-update/utils.js.map +1 -1
- package/dist/modules/manager/npm/schema.d.ts +35 -97
- package/dist/modules/manager/npm/schema.js +21 -16
- package/dist/modules/manager/npm/schema.js.map +1 -1
- package/dist/modules/manager/npm/update/dependency/index.js +4 -0
- package/dist/modules/manager/npm/update/dependency/index.js.map +1 -1
- package/dist/modules/manager/npm/update/dependency/pnpm.js +1 -1
- package/dist/modules/manager/npm/update/dependency/pnpm.js.map +1 -1
- package/dist/modules/manager/npm/update/dependency/yarn.d.ts +2 -0
- package/dist/modules/manager/npm/update/dependency/yarn.js +102 -0
- package/dist/modules/manager/npm/update/dependency/yarn.js.map +1 -0
- package/dist/modules/manager/npm/utils.d.ts +2 -0
- package/dist/modules/manager/npm/utils.js +10 -0
- package/dist/modules/manager/npm/utils.js.map +1 -1
- package/dist/modules/manager/nuget/extract.js +5 -0
- package/dist/modules/manager/nuget/extract.js.map +1 -1
- package/dist/modules/manager/nuget/schema.d.ts +3 -56
- package/dist/modules/manager/nuget/schema.js +5 -6
- package/dist/modules/manager/nuget/schema.js.map +1 -1
- package/dist/modules/manager/nvm/extract.js +8 -1
- package/dist/modules/manager/nvm/extract.js.map +1 -1
- package/dist/modules/manager/ocb/extract.js +1 -1
- package/dist/modules/manager/ocb/extract.js.map +1 -1
- package/dist/modules/manager/ocb/schema.d.ts +4 -4
- package/dist/modules/manager/ocb/schema.js +9 -9
- package/dist/modules/manager/ocb/schema.js.map +1 -1
- package/dist/modules/manager/pep621/extract.d.ts +1 -1
- package/dist/modules/manager/pep621/extract.js +11 -3
- package/dist/modules/manager/pep621/extract.js.map +1 -1
- package/dist/modules/manager/pep621/processors/abstract.d.ts +10 -0
- package/dist/modules/manager/pep621/processors/abstract.js +25 -0
- package/dist/modules/manager/pep621/processors/abstract.js.map +1 -0
- package/dist/modules/manager/pep621/processors/hatch.d.ts +2 -2
- package/dist/modules/manager/pep621/processors/hatch.js +2 -1
- package/dist/modules/manager/pep621/processors/hatch.js.map +1 -1
- package/dist/modules/manager/pep621/processors/index.d.ts +2 -4
- package/dist/modules/manager/pep621/processors/index.js.map +1 -1
- package/dist/modules/manager/pep621/processors/pdm.d.ts +3 -2
- package/dist/modules/manager/pep621/processors/pdm.js +5 -4
- package/dist/modules/manager/pep621/processors/pdm.js.map +1 -1
- package/dist/modules/manager/pep621/processors/types.d.ts +1 -0
- package/dist/modules/manager/pep621/processors/types.js.map +1 -1
- package/dist/modules/manager/pep621/processors/uv.d.ts +3 -2
- package/dist/modules/manager/pep621/processors/uv.js +8 -6
- package/dist/modules/manager/pep621/processors/uv.js.map +1 -1
- package/dist/modules/manager/pep621/schema.d.ts +35 -257
- package/dist/modules/manager/pep621/schema.js +17 -21
- package/dist/modules/manager/pep621/schema.js.map +1 -1
- package/dist/modules/manager/pep723/extract.js +1 -1
- package/dist/modules/manager/pep723/extract.js.map +1 -1
- package/dist/modules/manager/pep723/schema.d.ts +1 -1
- package/dist/modules/manager/pep723/schema.js +2 -2
- package/dist/modules/manager/pep723/schema.js.map +1 -1
- package/dist/modules/manager/pip-compile/extract.d.ts +1 -1
- package/dist/modules/manager/pip-compile/extract.js +9 -6
- package/dist/modules/manager/pip-compile/extract.js.map +1 -1
- package/dist/modules/manager/pixi/extract.js +4 -7
- package/dist/modules/manager/pixi/extract.js.map +1 -1
- package/dist/modules/manager/pixi/schema.d.ts +296 -4
- package/dist/modules/manager/pixi/schema.js +11 -4
- package/dist/modules/manager/pixi/schema.js.map +1 -1
- package/dist/modules/manager/poetry/artifacts.js +2 -2
- package/dist/modules/manager/poetry/artifacts.js.map +1 -1
- package/dist/modules/manager/poetry/extract.js +1 -1
- package/dist/modules/manager/poetry/extract.js.map +1 -1
- package/dist/modules/manager/poetry/index.d.ts +1 -0
- package/dist/modules/manager/poetry/index.js +2 -1
- package/dist/modules/manager/poetry/index.js.map +1 -1
- package/dist/modules/manager/poetry/schema.d.ts +45 -138
- package/dist/modules/manager/poetry/schema.js +49 -32
- package/dist/modules/manager/poetry/schema.js.map +1 -1
- package/dist/modules/manager/poetry/update-locked.js +2 -2
- package/dist/modules/manager/poetry/update-locked.js.map +1 -1
- package/dist/modules/manager/pre-commit/extract.js +2 -1
- package/dist/modules/manager/pre-commit/extract.js.map +1 -1
- package/dist/modules/manager/pub/extract.js +38 -8
- package/dist/modules/manager/pub/extract.js.map +1 -1
- package/dist/modules/manager/pub/index.d.ts +0 -1
- package/dist/modules/manager/pub/index.js +0 -3
- package/dist/modules/manager/pub/index.js.map +1 -1
- package/dist/modules/manager/pub/schema.d.ts +25 -79
- package/dist/modules/manager/pub/schema.js +17 -10
- package/dist/modules/manager/pub/schema.js.map +1 -1
- package/dist/modules/manager/pub/utils.d.ts +3 -3
- package/dist/modules/manager/pub/utils.js +2 -2
- package/dist/modules/manager/pub/utils.js.map +1 -1
- package/dist/modules/manager/quadlet/extract.d.ts +2 -0
- package/dist/modules/manager/quadlet/extract.js +54 -0
- package/dist/modules/manager/quadlet/extract.js.map +1 -0
- package/dist/modules/manager/quadlet/index.d.ts +8 -0
- package/dist/modules/manager/quadlet/index.js +13 -0
- package/dist/modules/manager/quadlet/index.js.map +1 -0
- package/dist/modules/manager/quadlet/schema.d.ts +45 -0
- package/dist/modules/manager/quadlet/schema.js +23 -0
- package/dist/modules/manager/quadlet/schema.js.map +1 -0
- package/dist/modules/manager/renovate-config-presets/extract.js +1 -1
- package/dist/modules/manager/renovate-config-presets/extract.js.map +1 -1
- package/dist/modules/manager/renovate-config-presets/index.js +1 -1
- package/dist/modules/manager/renovate-config-presets/index.js.map +1 -1
- package/dist/modules/manager/renovate-config-presets/schema.d.ts +1 -1
- package/dist/modules/manager/renovate-config-presets/schema.js +2 -2
- package/dist/modules/manager/renovate-config-presets/schema.js.map +1 -1
- package/dist/modules/manager/swift/extract.js +25 -9
- package/dist/modules/manager/swift/extract.js.map +1 -1
- package/dist/modules/manager/swift/index.js +7 -1
- package/dist/modules/manager/swift/index.js.map +1 -1
- package/dist/modules/manager/terraform/extractors/resources/generic-docker-image-ref.js +1 -1
- package/dist/modules/manager/terraform/extractors/resources/generic-docker-image-ref.js.map +1 -1
- package/dist/modules/manager/terraform/lockfile/hash.js +1 -1
- package/dist/modules/manager/terraform/lockfile/hash.js.map +1 -1
- package/dist/modules/manager/terragrunt/util.js +1 -1
- package/dist/modules/manager/terragrunt/util.js.map +1 -1
- package/dist/modules/manager/types.d.ts +2 -0
- package/dist/modules/manager/types.js.map +1 -1
- package/dist/modules/manager/typst/extract.d.ts +2 -0
- package/dist/modules/manager/typst/extract.js +31 -0
- package/dist/modules/manager/typst/extract.js.map +1 -0
- package/dist/modules/manager/typst/index.d.ts +7 -0
- package/dist/modules/manager/typst/index.js +12 -0
- package/dist/modules/manager/typst/index.js.map +1 -0
- package/dist/modules/manager/util.js +3 -2
- package/dist/modules/manager/util.js.map +1 -1
- package/dist/modules/manager/vendir/schema.d.ts +13 -13
- package/dist/modules/platform/azure/azure-helper.js +1 -1
- package/dist/modules/platform/azure/azure-helper.js.map +1 -1
- package/dist/modules/platform/azure/schema.d.ts +3 -3
- package/dist/modules/platform/azure/schema.js +4 -4
- package/dist/modules/platform/azure/schema.js.map +1 -1
- package/dist/modules/platform/bitbucket/index.js +12 -9
- package/dist/modules/platform/bitbucket/index.js.map +1 -1
- package/dist/modules/platform/bitbucket/schema.d.ts +7 -7
- package/dist/modules/platform/bitbucket/schema.js +7 -7
- package/dist/modules/platform/bitbucket/schema.js.map +1 -1
- package/dist/modules/platform/bitbucket-server/index.d.ts +3 -1
- package/dist/modules/platform/bitbucket-server/index.js +87 -4
- package/dist/modules/platform/bitbucket-server/index.js.map +1 -1
- package/dist/modules/platform/bitbucket-server/schema.d.ts +106 -11
- package/dist/modules/platform/bitbucket-server/schema.js +13 -7
- package/dist/modules/platform/bitbucket-server/schema.js.map +1 -1
- package/dist/modules/platform/bitbucket-server/utils.d.ts +2 -0
- package/dist/modules/platform/bitbucket-server/utils.js +25 -0
- package/dist/modules/platform/bitbucket-server/utils.js.map +1 -1
- package/dist/modules/platform/codecommit/index.d.ts +0 -8
- package/dist/modules/platform/codecommit/index.js +16 -16
- package/dist/modules/platform/codecommit/index.js.map +1 -1
- package/dist/modules/platform/forgejo/index.js +39 -38
- package/dist/modules/platform/forgejo/index.js.map +1 -1
- package/dist/modules/platform/forgejo/types.d.ts +3 -2
- package/dist/modules/platform/forgejo/types.js.map +1 -1
- package/dist/modules/platform/forgejo/utils.d.ts +1 -0
- package/dist/modules/platform/forgejo/utils.js +17 -0
- package/dist/modules/platform/forgejo/utils.js.map +1 -1
- package/dist/modules/platform/gerrit/client.d.ts +1 -1
- package/dist/modules/platform/gerrit/client.js +32 -33
- package/dist/modules/platform/gerrit/client.js.map +1 -1
- package/dist/modules/platform/gerrit/index.d.ts +1 -2
- package/dist/modules/platform/gerrit/index.js +8 -16
- package/dist/modules/platform/gerrit/index.js.map +1 -1
- package/dist/modules/platform/gerrit/scm.js +7 -13
- package/dist/modules/platform/gerrit/scm.js.map +1 -1
- package/dist/modules/platform/gerrit/types.d.ts +27 -1
- package/dist/modules/platform/gerrit/types.js.map +1 -1
- package/dist/modules/platform/gitea/index.js +34 -37
- package/dist/modules/platform/gitea/index.js.map +1 -1
- package/dist/modules/platform/gitea/schema.d.ts +3 -3
- package/dist/modules/platform/gitea/schema.js +3 -3
- package/dist/modules/platform/gitea/schema.js.map +1 -1
- package/dist/modules/platform/gitea/types.d.ts +3 -2
- package/dist/modules/platform/gitea/types.js.map +1 -1
- package/dist/modules/platform/gitea/utils.d.ts +1 -0
- package/dist/modules/platform/gitea/utils.js +17 -0
- package/dist/modules/platform/gitea/utils.js.map +1 -1
- package/dist/modules/platform/github/index.d.ts +1 -1
- package/dist/modules/platform/github/index.js +92 -33
- package/dist/modules/platform/github/index.js.map +1 -1
- package/dist/modules/platform/github/schema.d.ts +32 -2
- package/dist/modules/platform/github/schema.js +32 -8
- package/dist/modules/platform/github/schema.js.map +1 -1
- package/dist/modules/platform/github/types.d.ts +2 -2
- package/dist/modules/platform/github/types.js.map +1 -1
- package/dist/modules/platform/github/user.d.ts +2 -1
- package/dist/modules/platform/github/user.js.map +1 -1
- package/dist/modules/platform/gitlab/index.js.map +1 -1
- package/dist/modules/platform/gitlab/pr-cache.d.ts +0 -2
- package/dist/modules/platform/gitlab/pr-cache.js +28 -37
- package/dist/modules/platform/gitlab/pr-cache.js.map +1 -1
- package/dist/modules/platform/gitlab/utils.js +1 -0
- package/dist/modules/platform/gitlab/utils.js.map +1 -1
- package/dist/modules/platform/types.d.ts +1 -1
- package/dist/modules/platform/types.js.map +1 -1
- package/dist/modules/versioning/api.js +2 -0
- package/dist/modules/versioning/api.js.map +1 -1
- package/dist/modules/versioning/cargo/index.js +7 -7
- package/dist/modules/versioning/cargo/index.js.map +1 -1
- package/dist/modules/versioning/composer/index.js +0 -4
- package/dist/modules/versioning/composer/index.js.map +1 -1
- package/dist/modules/versioning/conan/index.js +1 -1
- package/dist/modules/versioning/conan/index.js.map +1 -1
- package/dist/modules/versioning/conda/index.d.ts +2 -0
- package/dist/modules/versioning/conda/index.js +4 -4
- package/dist/modules/versioning/conda/index.js.map +1 -1
- package/dist/modules/versioning/debian/index.d.ts +1 -1
- package/dist/modules/versioning/debian/index.js +2 -17
- package/dist/modules/versioning/debian/index.js.map +1 -1
- package/dist/modules/versioning/gradle/index.js +2 -2
- package/dist/modules/versioning/gradle/index.js.map +1 -1
- package/dist/modules/versioning/hashicorp/index.js +0 -1
- package/dist/modules/versioning/hashicorp/index.js.map +1 -1
- package/dist/modules/versioning/helm/index.js +0 -1
- package/dist/modules/versioning/helm/index.js.map +1 -1
- package/dist/modules/versioning/hex/index.js +0 -1
- package/dist/modules/versioning/hex/index.js.map +1 -1
- package/dist/modules/versioning/ivy/index.js +1 -2
- package/dist/modules/versioning/ivy/index.js.map +1 -1
- package/dist/modules/versioning/npm/index.js +0 -1
- package/dist/modules/versioning/npm/index.js.map +1 -1
- package/dist/modules/versioning/npm/range.js +2 -3
- package/dist/modules/versioning/npm/range.js.map +1 -1
- package/dist/modules/versioning/nuget/index.js +8 -4
- package/dist/modules/versioning/nuget/index.js.map +1 -1
- package/dist/modules/versioning/pep440/index.js +1 -1
- package/dist/modules/versioning/pep440/index.js.map +1 -1
- package/dist/modules/versioning/pep440/range.d.ts +1 -0
- package/dist/modules/versioning/pep440/range.js +4 -3
- package/dist/modules/versioning/pep440/range.js.map +1 -1
- package/dist/modules/versioning/poetry/index.js +0 -4
- package/dist/modules/versioning/poetry/index.js.map +1 -1
- package/dist/modules/versioning/rez/index.js +0 -1
- package/dist/modules/versioning/rez/index.js.map +1 -1
- package/dist/modules/versioning/ruby/index.js +5 -5
- package/dist/modules/versioning/ruby/index.js.map +1 -1
- package/dist/modules/versioning/ruby/strategies/index.d.ts +1 -2
- package/dist/modules/versioning/ruby/strategies/index.js +1 -3
- package/dist/modules/versioning/ruby/strategies/index.js.map +1 -1
- package/dist/modules/versioning/semver-partial/index.d.ts +8 -0
- package/dist/modules/versioning/semver-partial/index.js +211 -0
- package/dist/modules/versioning/semver-partial/index.js.map +1 -0
- package/dist/modules/versioning/swift/index.js +0 -1
- package/dist/modules/versioning/swift/index.js.map +1 -1
- package/dist/modules/versioning/types.d.ts +5 -0
- package/dist/modules/versioning/types.js.map +1 -1
- package/dist/renovate.js +0 -0
- package/dist/util/cache/package/decorator.js +20 -9
- package/dist/util/cache/package/decorator.js.map +1 -1
- package/dist/util/cache/package/file.d.ts +1 -1
- package/dist/util/cache/package/file.js +3 -3
- package/dist/util/cache/package/file.js.map +1 -1
- package/dist/util/cache/package/index.d.ts +9 -2
- package/dist/util/cache/package/index.js +19 -4
- package/dist/util/cache/package/index.js.map +1 -1
- package/dist/util/cache/package/namespaces.d.ts +1 -1
- package/dist/util/cache/package/namespaces.js +3 -0
- package/dist/util/cache/package/namespaces.js.map +1 -1
- package/dist/util/cache/package/redis.d.ts +1 -1
- package/dist/util/cache/package/redis.js +17 -7
- package/dist/util/cache/package/redis.js.map +1 -1
- package/dist/util/cache/package/sqlite.d.ts +1 -1
- package/dist/util/cache/package/sqlite.js +2 -2
- package/dist/util/cache/package/sqlite.js.map +1 -1
- package/dist/util/cache/package/types.d.ts +1 -1
- package/dist/util/cache/package/types.js.map +1 -1
- package/dist/util/cache/repository/http-cache.js +1 -1
- package/dist/util/cache/repository/http-cache.js.map +1 -1
- package/dist/util/cache/repository/schema.d.ts +1 -1
- package/dist/util/cache/repository/types.d.ts +1 -0
- package/dist/util/cache/repository/types.js.map +1 -1
- package/dist/util/emoji.js +2 -2
- package/dist/util/emoji.js.map +1 -1
- package/dist/util/exec/containerbase.js +5 -0
- package/dist/util/exec/containerbase.js.map +1 -1
- package/dist/util/git/index.js +6 -3
- package/dist/util/git/index.js.map +1 -1
- package/dist/util/git/private-key.js +23 -3
- package/dist/util/git/private-key.js.map +1 -1
- package/dist/util/git/types.d.ts +2 -1
- package/dist/util/git/types.js.map +1 -1
- package/dist/util/github/graphql/query-adapters/releases-query-adapter.d.ts +6 -6
- package/dist/util/http/bitbucket.js +0 -1
- package/dist/util/http/bitbucket.js.map +1 -1
- package/dist/util/http/cache/abstract-http-cache-provider.d.ts +7 -7
- package/dist/util/http/cache/abstract-http-cache-provider.js +11 -11
- package/dist/util/http/cache/abstract-http-cache-provider.js.map +1 -1
- package/dist/util/http/cache/memory-http-cache-provider.d.ts +3 -3
- package/dist/util/http/cache/memory-http-cache-provider.js +8 -8
- package/dist/util/http/cache/memory-http-cache-provider.js.map +1 -1
- package/dist/util/http/cache/package-http-cache-provider.d.ts +5 -4
- package/dist/util/http/cache/package-http-cache-provider.js +17 -11
- package/dist/util/http/cache/package-http-cache-provider.js.map +1 -1
- package/dist/util/http/cache/repository-http-cache-provider.d.ts +16 -3
- package/dist/util/http/cache/repository-http-cache-provider.js +60 -3
- package/dist/util/http/cache/repository-http-cache-provider.js.map +1 -1
- package/dist/util/http/cache/schema.d.ts +2 -2
- package/dist/util/http/cache/schema.js +2 -2
- package/dist/util/http/cache/schema.js.map +1 -1
- package/dist/util/http/cache/types.d.ts +3 -3
- package/dist/util/http/cache/types.js.map +1 -1
- package/dist/util/http/gerrit.d.ts +1 -1
- package/dist/util/http/gerrit.js +1 -1
- package/dist/util/http/gerrit.js.map +1 -1
- package/dist/util/http/gitlab.js +0 -1
- package/dist/util/http/gitlab.js.map +1 -1
- package/dist/util/http/host-rules.js +10 -0
- package/dist/util/http/host-rules.js.map +1 -1
- package/dist/util/http/http.d.ts +1 -1
- package/dist/util/http/http.js +17 -15
- package/dist/util/http/http.js.map +1 -1
- package/dist/util/http/retry-after.js +1 -1
- package/dist/util/http/retry-after.js.map +1 -1
- package/dist/util/interpolator.js +2 -0
- package/dist/util/interpolator.js.map +1 -1
- package/dist/util/markdown.js +3 -3
- package/dist/util/markdown.js.map +1 -1
- package/dist/util/merge-confidence/index.js +3 -1
- package/dist/util/merge-confidence/index.js.map +1 -1
- package/dist/util/schema-utils/index.d.ts +8 -4
- package/dist/util/schema-utils/index.js +16 -1
- package/dist/util/schema-utils/index.js.map +1 -1
- package/dist/util/template/index.d.ts +1 -0
- package/dist/util/template/index.js +70 -64
- package/dist/util/template/index.js.map +1 -1
- package/dist/workers/global/config/parse/file.js +6 -0
- package/dist/workers/global/config/parse/file.js.map +1 -1
- package/dist/workers/global/config/parse/index.js +2 -1
- package/dist/workers/global/config/parse/index.js.map +1 -1
- package/dist/workers/repository/config-migration/branch/commit-message.js +2 -1
- package/dist/workers/repository/config-migration/branch/commit-message.js.map +1 -1
- package/dist/workers/repository/config-migration/branch/create.js +1 -0
- package/dist/workers/repository/config-migration/branch/create.js.map +1 -1
- package/dist/workers/repository/config-migration/branch/rebase.js +1 -0
- package/dist/workers/repository/config-migration/branch/rebase.js.map +1 -1
- package/dist/workers/repository/dependency-dashboard.js +42 -5
- package/dist/workers/repository/dependency-dashboard.js.map +1 -1
- package/dist/workers/repository/error-config.js +1 -1
- package/dist/workers/repository/error-config.js.map +1 -1
- package/dist/workers/repository/error.js +1 -1
- package/dist/workers/repository/error.js.map +1 -1
- package/dist/workers/repository/extract/supersedes.d.ts +1 -1
- package/dist/workers/repository/extract/supersedes.js +31 -17
- package/dist/workers/repository/extract/supersedes.js.map +1 -1
- package/dist/workers/repository/finalize/index.js +1 -1
- package/dist/workers/repository/finalize/index.js.map +1 -1
- package/dist/workers/repository/finalize/prune.js +4 -3
- package/dist/workers/repository/finalize/prune.js.map +1 -1
- package/dist/workers/repository/index.js +49 -20
- package/dist/workers/repository/index.js.map +1 -1
- package/dist/workers/repository/init/inherited.js +7 -0
- package/dist/workers/repository/init/inherited.js.map +1 -1
- package/dist/workers/repository/init/merge.js +1 -1
- package/dist/workers/repository/init/merge.js.map +1 -1
- package/dist/workers/repository/onboarding/branch/check.js +5 -3
- package/dist/workers/repository/onboarding/branch/check.js.map +1 -1
- package/dist/workers/repository/onboarding/branch/create.js +1 -0
- package/dist/workers/repository/onboarding/branch/create.js.map +1 -1
- package/dist/workers/repository/onboarding/branch/rebase.js +1 -0
- package/dist/workers/repository/onboarding/branch/rebase.js.map +1 -1
- package/dist/workers/repository/onboarding/common.js +3 -2
- package/dist/workers/repository/onboarding/common.js.map +1 -1
- package/dist/workers/repository/process/extract-update.js +2 -2
- package/dist/workers/repository/process/extract-update.js.map +1 -1
- package/dist/workers/repository/process/fetch.js +4 -3
- package/dist/workers/repository/process/fetch.js.map +1 -1
- package/dist/workers/repository/process/index.d.ts +1 -0
- package/dist/workers/repository/process/index.js +25 -5
- package/dist/workers/repository/process/index.js.map +1 -1
- package/dist/workers/repository/process/lookup/filter-checks.js +42 -8
- package/dist/workers/repository/process/lookup/filter-checks.js.map +1 -1
- package/dist/workers/repository/process/lookup/filter.js +5 -7
- package/dist/workers/repository/process/lookup/filter.js.map +1 -1
- package/dist/workers/repository/process/lookup/index.js +10 -13
- package/dist/workers/repository/process/lookup/index.js.map +1 -1
- package/dist/workers/repository/process/vulnerabilities.d.ts +1 -1
- package/dist/workers/repository/process/vulnerabilities.js +13 -8
- package/dist/workers/repository/process/vulnerabilities.js.map +1 -1
- package/dist/workers/repository/reconfigure/comment.js +1 -1
- package/dist/workers/repository/reconfigure/comment.js.map +1 -1
- package/dist/workers/repository/reconfigure/index.js +1 -1
- package/dist/workers/repository/reconfigure/index.js.map +1 -1
- package/dist/workers/repository/update/branch/commit.js +2 -0
- package/dist/workers/repository/update/branch/commit.js.map +1 -1
- package/dist/workers/repository/update/branch/execute-post-upgrade-commands.js +12 -1
- package/dist/workers/repository/update/branch/execute-post-upgrade-commands.js.map +1 -1
- package/dist/workers/repository/update/branch/index.js +65 -20
- package/dist/workers/repository/update/branch/index.js.map +1 -1
- package/dist/workers/repository/update/branch/status-checks.js +5 -0
- package/dist/workers/repository/update/branch/status-checks.js.map +1 -1
- package/dist/workers/repository/update/pr/changelog/bitbucket/index.js +1 -1
- package/dist/workers/repository/update/pr/changelog/bitbucket/index.js.map +1 -1
- package/dist/workers/repository/update/pr/changelog/forgejo/index.js +3 -3
- package/dist/workers/repository/update/pr/changelog/forgejo/index.js.map +1 -1
- package/dist/workers/repository/update/pr/changelog/gitea/index.js +3 -3
- package/dist/workers/repository/update/pr/changelog/gitea/index.js.map +1 -1
- package/dist/workers/repository/update/pr/changelog/release-notes.js +9 -4
- package/dist/workers/repository/update/pr/changelog/release-notes.js.map +1 -1
- package/dist/workers/repository/update/pr/index.js +28 -11
- package/dist/workers/repository/update/pr/index.js.map +1 -1
- package/dist/workers/repository/update/pr/pr-reuse.d.ts +1 -1
- package/dist/workers/repository/update/pr/pr-reuse.js +2 -2
- package/dist/workers/repository/update/pr/pr-reuse.js.map +1 -1
- package/dist/workers/repository/updates/generate.js +1 -0
- package/dist/workers/repository/updates/generate.js.map +1 -1
- package/dist/workers/types.d.ts +1 -0
- package/dist/workers/types.js.map +1 -1
- package/package.json +136 -153
- package/renovate-schema.json +325 -111
- package/dist/config/decrypt/kbpgp.d.ts +0 -1
- package/dist/config/decrypt/kbpgp.js +0 -58
- package/dist/config/decrypt/kbpgp.js.map +0 -1
- package/dist/config/decrypt/legacy.d.ts +0 -2
- package/dist/config/decrypt/legacy.js +0 -36
- package/dist/config/decrypt/legacy.js.map +0 -1
- package/dist/modules/versioning/ruby/strategies/pin.d.ts +0 -4
- package/dist/modules/versioning/ruby/strategies/pin.js +0 -4
- package/dist/modules/versioning/ruby/strategies/pin.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifacts.js","sourceRoot":"","sources":["../../../../lib/modules/manager/conan/artifacts.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"artifacts.js","sourceRoot":"","sources":["../../../../lib/modules/manager/conan/artifacts.ts"],"names":[],"mappings":";;AAyCA,0CAiFC;AA1HD,iCAA8B;AAC9B,sEAAoE;AACpE,4CAAyC;AACzC,6CAA0C;AAE1C,yCAI0B;AAC1B,iDAAoE;AAGpE,KAAK,UAAU,eAAe,CAC5B,aAAqB,EACrB,qBAA0C,EAC1C,eAAwB,EACxB,gBAAyB;IAEzB,MAAM,OAAO,GACX,qBAAqB,IAAA,aAAK,EAAC,aAAa,CAAC,EAAE;QAC3C,CAAC,qBAAqB,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAElD,MAAM,WAAW,GAAgB;QAC/B,QAAQ,EAAE,EAAE,GAAG,IAAA,iCAA0B,EAAC,CAAC,OAAO,CAAC,CAAC,EAAE;QACtD,eAAe,EAAE;YACf;gBACE,QAAQ,EAAE,QAAQ;gBAClB,UAAU,EAAE,gBAAgB;aAC7B;YACD;gBACE,QAAQ,EAAE,OAAO;gBACjB,UAAU,EAAE,eAAe;aAC5B;SACF;QACD,MAAM,EAAE,EAAE;KACX,CAAC;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AC,kBAAkB,EAAE,CAAC;YACxB,eAAM,CAAC,KAAK,CAAC,OAAO,YAAY,wBAAwB,CAAC,CAAC;YAC1D,OAAO,IAAI,CAAC;QACd,CAAC;QAED,IAAI,uBAAuB,KAAK,kBAAkB,EAAE,CAAC;YACnD,eAAM,CAAC,KAAK,CAAC,GAAG,YAAY,eAAe,CAAC,CAAC;YAC7C,OAAO,IAAI,CAAC;QACd,CAAC;QAED,eAAM,CAAC,KAAK,CAAC,qBAAqB,YAAY,EAAE,CAAC,CAAC;QAClD,OAAO;YACL;gBACE,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;oBAChB,IAAI,EAAE,YAAY;oBAClB,QAAQ,EAAE,kBAAkB;iBAC7B;aACF;SACF,CAAC;IACJ,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,IAAI,GAAG,CAAC,OAAO,KAAK,gCAAe,EAAE,CAAC;YACpC,MAAM,GAAG,CAAC;QACZ,CAAC;QAED,eAAM,CAAC,KAAK,CACV,EAAE,GAAG,EAAE,eAAe,EAAE,YAAY,EAAE,EACtC,wBAAwB,CACzB,CAAC;QAEF,OAAO;YACL;gBACE,aAAa,EAAE;oBACb,QAAQ,EAAE,YAAY;oBACtB,MAAM,EAAE,GAAG,CAAC,OAAO;iBACpB;aACF;SACF,CAAC;IACJ,CAAC;AACH,CAAC","sourcesContent":["import { quote } from 'shlex';\nimport { TEMPORARY_ERROR } from '../../../constants/error-messages';\nimport { logger } from '../../../logger';\nimport { exec } from '../../../util/exec';\nimport type { ExecOptions } from '../../../util/exec/types';\nimport {\n findLocalSiblingOrParent,\n readLocalFile,\n writeLocalFile,\n} from '../../../util/fs';\nimport { getGitEnvironmentVariables } from '../../../util/git/auth';\nimport type { UpdateArtifact, UpdateArtifactsResult } from '../types';\n\nasync function conanLockUpdate(\n conanFilePath: string,\n isLockFileMaintenance: boolean | undefined,\n conanConstraint?: string,\n pythonConstraint?: string,\n): Promise<void> {\n const command =\n `conan lock create ${quote(conanFilePath)}` +\n (isLockFileMaintenance ? ' --lockfile=\"\"' : '');\n\n const execOptions: ExecOptions = {\n extraEnv: { ...getGitEnvironmentVariables(['conan']) },\n toolConstraints: [\n {\n toolName: 'python',\n constraint: pythonConstraint,\n },\n {\n toolName: 'conan',\n constraint: conanConstraint,\n },\n ],\n docker: {},\n };\n\n await exec(command, execOptions);\n}\n\nexport async function updateArtifacts(\n updateArtifact: UpdateArtifact,\n): Promise<UpdateArtifactsResult[] | null> {\n const { packageFileName, updatedDeps, newPackageFileContent, config } =\n updateArtifact;\n\n logger.trace(`conan.updateArtifacts(${packageFileName})`);\n\n const { isLockFileMaintenance } = config;\n\n if (updatedDeps.length === 0 && !isLockFileMaintenance) {\n logger.trace('No conan.lock dependencies to update');\n return null;\n }\n\n const lockFileName = await findLocalSiblingOrParent(\n packageFileName,\n 'conan.lock',\n );\n if (!lockFileName) {\n logger.trace('No conan.lock found');\n return null;\n }\n\n const existingLockFileContent = await readLocalFile(lockFileName);\n if (!existingLockFileContent) {\n logger.debug(`${lockFileName} read operation failed`);\n return null;\n }\n\n try {\n await writeLocalFile(packageFileName, newPackageFileContent);\n\n logger.trace(`Updating ${lockFileName}`);\n await conanLockUpdate(\n packageFileName,\n isLockFileMaintenance,\n config.constraints?.conan,\n config.constraints?.python,\n );\n\n const newLockFileContent = await readLocalFile(lockFileName);\n if (!newLockFileContent) {\n logger.debug(`New ${lockFileName} read operation failed`);\n return null;\n }\n\n if (existingLockFileContent === newLockFileContent) {\n logger.trace(`${lockFileName} is unchanged`);\n return null;\n }\n\n logger.trace(`Returning updated ${lockFileName}`);\n return [\n {\n file: {\n type: 'addition',\n path: lockFileName,\n contents: newLockFileContent,\n },\n },\n ];\n } catch (err) {\n if (err.message === TEMPORARY_ERROR) {\n throw err;\n }\n\n logger.debug(\n { err, packageFileName, lockFileName },\n 'Lockfile update failed',\n );\n\n return [\n {\n artifactError: {\n lockFile: lockFileName,\n stderr: err.message,\n },\n },\n ];\n }\n}\n"]}
|
|
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const is_1 = tslib_1.__importDefault(require("@sindresorhus/is"));
|
|
6
6
|
const regex_1 = require("../../../util/regex");
|
|
7
7
|
const common_1 = require("./common");
|
|
8
|
-
const regex = (0, regex_1.regEx)(`(?<name>[
|
|
8
|
+
const regex = (0, regex_1.regEx)(`(?:^|["'])(?<name>[-\\w]+)/(?<version>[^@#\n{*"']+)(?<userChannel>@[-\\w]+(?:/[^#\n.{*"' ]+|))?#?(?<revision>[-_a-f0-9]+[^\n{*"'])?`);
|
|
9
9
|
function setDepType(content, originalType) {
|
|
10
10
|
let depType = originalType;
|
|
11
11
|
if (content.includes('python_requires')) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extract.js","sourceRoot":"","sources":["../../../../lib/modules/manager/conan/extract.ts"],"names":[],"mappings":";;AAqBA,gDA6DC;;AAlFD,kEAAkC;AAClC,+CAA4C;AAE5C,qCAAqC;AAErC,MAAM,KAAK,GAAG,IAAA,aAAK,EACjB,
|
|
1
|
+
{"version":3,"file":"extract.js","sourceRoot":"","sources":["../../../../lib/modules/manager/conan/extract.ts"],"names":[],"mappings":";;AAqBA,gDA6DC;;AAlFD,kEAAkC;AAClC,+CAA4C;AAE5C,qCAAqC;AAErC,MAAM,KAAK,GAAG,IAAA,aAAK,EACjB,qIAAqI,CACtI,CAAC;AAEF,SAAS,UAAU,CAAC,OAAe,EAAE,YAAoB;IACvD,IAAI,OAAO,GAAG,YAAY,CAAC;IAC3B,IAAI,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAC,EAAE,CAAC;QACxC,OAAO,GAAG,iBAAiB,CAAC;IAC9B,CAAC;SAAM,IAAI,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE,CAAC;QAC7C,OAAO,GAAG,gBAAgB,CAAC;IAC7B,CAAC;SAAM,IAAI,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC;QACxC,O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';\nimport { regEx } from '../../../util/regex';\nimport type { PackageDependency, PackageFileContent } from '../types';\nimport { isComment } from './common';\n\nconst regex = regEx(\n `(?:^|[\"'])(?<name>[-\\\\w]+)/(?<version>[^@#\\n{*\"']+)(?<userChannel>@[-\\\\w]+(?:/[^#\\n.{*\"' ]+|))?#?(?<revision>[-_a-f0-9]+[^\\n{*\"'])?`,\n);\n\nfunction setDepType(content: string, originalType: string): string {\n let depType = originalType;\n if (content.includes('python_requires')) {\n depType = 'python_requires';\n } else if (content.includes('build_require')) {\n depType = 'build_requires';\n } else if (content.includes('requires')) {\n depType = 'requires';\n }\n return depType;\n}\n\nexport function extractPackageFile(content: string): PackageFileContent | null {\n // only process sections where requirements are defined\n const sections = content.split(regEx(/def |\\n\\[/)).filter(\n (part) =>\n part.includes('python_requires') || // only matches python_requires\n part.includes('build_require') || // matches [build_requires], build_requirements(), and build_requires\n part.includes('require'), // matches [requires], requirements(), and requires\n );\n\n const deps: PackageDependency[] = [];\n for (const section of sections) {\n let depType = setDepType(section, 'requires');\n const rawLines = section.split('\\n').filter(is.nonEmptyString);\n\n for (const rawLine of rawLines) {\n if (!isComment(rawLine)) {\n depType = setDepType(rawLine, depType);\n // extract all dependencies from each line\n const lines = rawLine.split(regEx(/[\"'],/));\n for (const line of lines) {\n const matches = regex.exec(line.trim());\n if (matches?.groups) {\n let dep: PackageDependency = {};\n const depName = matches.groups?.name;\n const currentValue = matches.groups?.version.trim();\n\n let replaceString = `${depName}/${currentValue}`;\n // conan uses @_/_ as a placeholder for no userChannel\n let userAndChannel = '@_/_';\n\n if (matches.groups.userChannel) {\n userAndChannel = matches.groups.userChannel;\n replaceString = `${depName}/${currentValue}${userAndChannel}`;\n if (!userAndChannel.includes('/')) {\n userAndChannel = `${userAndChannel}/_`;\n }\n }\n const packageName = `${depName}/${currentValue}${userAndChannel}`;\n\n dep = {\n ...dep,\n depName,\n packageName,\n currentValue,\n replaceString,\n depType,\n };\n if (matches.groups.revision) {\n dep.currentDigest = matches.groups.revision;\n dep.autoReplaceStringTemplate = `{{depName}}/{{newValue}}${userAndChannel}{{#if newDigest}}#{{newDigest}}{{/if}}`;\n dep.replaceString = `${replaceString}#${dep.currentDigest}`;\n }\n\n deps.push(dep);\n }\n }\n }\n }\n }\n\n return deps.length ? { deps } : null;\n}\n"]}
|
|
@@ -17,7 +17,6 @@ exports.defaultConfig = {
|
|
|
17
17
|
managerFilePatterns: ['/(^|/)conanfile\\.(txt|py)$/'],
|
|
18
18
|
datasource: conan_1.ConanDatasource.id,
|
|
19
19
|
versioning: conan.id,
|
|
20
|
-
enabled: false, // See https://github.com/renovatebot/renovate/issues/14170
|
|
21
20
|
};
|
|
22
21
|
exports.supportedDatasources = [conan_1.ConanDatasource.id];
|
|
23
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../lib/modules/manager/conan/index.ts"],"names":[],"mappings":";;;;AAAA,qCAA+C;AAAtC,6GAAA,kBAAkB,OAAA;AAC3B,yCAA8C;AAArC,4GAAA,eAAe,OAAA;AAExB,iCAA2C;AAAlC,yGAAA,gBAAgB,OAAA;AACzB,kDAAyD;AACzD,sEAAgD;AAEnC,QAAA,2BAA2B,GAAG,IAAI,CAAC;AACnC,QAAA,GAAG,GAAG,uBAAuB,CAAC;AAC9B,QAAA,UAAU,GAAe,CAAC,GAAG,CAAC,CAAC;AAE/B,QAAA,aAAa,GAAG;IAC3B,mBAAmB,EAAE,CAAC,8BAA8B,CAAC;IACrD,UAAU,EAAE,uBAAe,CAAC,EAAE;IAC9B,UAAU,EAAE,KAAK,CAAC,EAAE;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../lib/modules/manager/conan/index.ts"],"names":[],"mappings":";;;;AAAA,qCAA+C;AAAtC,6GAAA,kBAAkB,OAAA;AAC3B,yCAA8C;AAArC,4GAAA,eAAe,OAAA;AAExB,iCAA2C;AAAlC,yGAAA,gBAAgB,OAAA;AACzB,kDAAyD;AACzD,sEAAgD;AAEnC,QAAA,2BAA2B,GAAG,IAAI,CAAC;AACnC,QAAA,GAAG,GAAG,uBAAuB,CAAC;AAC9B,QAAA,UAAU,GAAe,CAAC,GAAG,CAAC,CAAC;AAE/B,QAAA,aAAa,GAAG;IAC3B,mBAAmB,EAAE,CAAC,8BAA8B,CAAC;IACrD,UAAU,EAAE,uBAAe,CAAC,EAAE;IAC9B,UAAU,EAAE,KAAK,CAAC,EAAE;CACrB,CAAC;AAEW,QAAA,oBAAoB,GAAG,CAAC,uBAAe,CAAC,EAAE,CAAC,CAAC","sourcesContent":["export { extractPackageFile } from './extract';\nexport { updateArtifacts } from './artifacts';\nimport type { Category } from '../../../constants';\nexport { getRangeStrategy } from './range';\nimport { ConanDatasource } from '../../datasource/conan';\nimport * as conan from '../../versioning/conan';\n\nexport const supportsLockFileMaintenance = true;\nexport const url = 'https://docs.conan.io';\nexport const categories: Category[] = ['c'];\n\nexport const defaultConfig = {\n managerFilePatterns: ['/(^|/)conanfile\\\\.(txt|py)$/'],\n datasource: ConanDatasource.id,\n versioning: conan.id,\n};\n\nexport const supportedDatasources = [ConanDatasource.id];\n"]}
|
|
@@ -12,12 +12,12 @@ const git_1 = require("../../../util/git");
|
|
|
12
12
|
const auth_1 = require("../../../util/git/auth");
|
|
13
13
|
const utils_1 = require("./utils");
|
|
14
14
|
const DEFAULT_COMMAND_OPTIONS = ['--skip-answered', '--defaults'];
|
|
15
|
-
function buildCommand(config, packageFileName,
|
|
15
|
+
function buildCommand(config, packageFileName, newValue) {
|
|
16
16
|
const command = ['copier', 'update', ...DEFAULT_COMMAND_OPTIONS];
|
|
17
17
|
if (global_1.GlobalConfig.get('allowScripts') && !config.ignoreScripts) {
|
|
18
18
|
command.push('--trust');
|
|
19
19
|
}
|
|
20
|
-
command.push('--answers-file', (0, shlex_1.quote)(upath_1.default.basename(packageFileName)), '--vcs-ref', (0, shlex_1.quote)(
|
|
20
|
+
command.push('--answers-file', (0, shlex_1.quote)(upath_1.default.basename(packageFileName)), '--vcs-ref', (0, shlex_1.quote)(newValue));
|
|
21
21
|
return command.join(' ');
|
|
22
22
|
}
|
|
23
23
|
function artifactError(packageFileName, message) {
|
|
@@ -35,11 +35,11 @@ async function updateArtifacts({ packageFileName, updatedDeps, config, }) {
|
|
|
35
35
|
// Each answers file (~ packageFileName) has exactly one dependency to update.
|
|
36
36
|
return artifactError(packageFileName, `Unexpected number of dependencies: ${updatedDeps.length} (should be 1)`);
|
|
37
37
|
}
|
|
38
|
-
const
|
|
39
|
-
if (!
|
|
38
|
+
const newValue = updatedDeps[0]?.newValue;
|
|
39
|
+
if (!newValue) {
|
|
40
40
|
return artifactError(packageFileName, 'Missing copier template version to update to');
|
|
41
41
|
}
|
|
42
|
-
const command = buildCommand(config, packageFileName,
|
|
42
|
+
const command = buildCommand(config, packageFileName, newValue);
|
|
43
43
|
const gitEnv = (0, auth_1.getGitEnvironmentVariables)(['git-tags']);
|
|
44
44
|
const execOptions = {
|
|
45
45
|
cwdFile: packageFileName,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifacts.js","sourceRoot":"","sources":["../../../../lib/modules/manager/copier/artifacts.ts"],"names":[],"mappings":";;AAqDA,0CA+GC;;AApKD,iCAA8B;AAC9B,0DAA0B;AAC1B,mDAAsD;AACtD,4CAAyC;AACzC,6CAA0C;AAE1C,yCAAiD;AACjD,2CAAkD;AAClD,iDAAoE;AAMpE,mCAGiB;AAEjB,MAAM,uBAAuB,GAAG,CAAC,iBAAiB,EAAE,YAAY,CAAC,CAAC;AAElE,SAAS,YAAY,CACnB,MAA6B,EAC7B,eAAuB,EACvB,
|
|
1
|
+
{"version":3,"file":"artifacts.js","sourceRoot":"","sources":["../../../../lib/modules/manager/copier/artifacts.ts"],"names":[],"mappings":";;AAqDA,0CA+GC;;AApKD,iCAA8B;AAC9B,0DAA0B;AAC1B,mDAAsD;AACtD,4CAAyC;AACzC,6CAA0C;AAE1C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,kBAAa,EAAC,CAAC,CAAC,EAAE,CAAC;aACpC;SACF,CAAC,CAAC;IACL,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC","sourcesContent":["import { quote } from 'shlex';\nimport upath from 'upath';\nimport { GlobalConfig } from '../../../config/global';\nimport { logger } from '../../../logger';\nimport { exec } from '../../../util/exec';\nimport type { ExecOptions } from '../../../util/exec/types';\nimport { readLocalFile } from '../../../util/fs';\nimport { getRepoStatus } from '../../../util/git';\nimport { getGitEnvironmentVariables } from '../../../util/git/auth';\nimport type {\n UpdateArtifact,\n UpdateArtifactsConfig,\n UpdateArtifactsResult,\n} from '../types';\nimport {\n getCopierVersionConstraint,\n getPythonVersionConstraint,\n} from './utils';\n\nconst DEFAULT_COMMAND_OPTIONS = ['--skip-answered', '--defaults'];\n\nfunction buildCommand(\n config: UpdateArtifactsConfig,\n packageFileName: string,\n newValue: string,\n): string {\n const command = ['copier', 'update', ...DEFAULT_COMMAND_OPTIONS];\n if (GlobalConfig.get('allowScripts') && !config.ignoreScripts) {\n command.push('--trust');\n }\n command.push(\n '--answers-file',\n quote(upath.basename(packageFileName)),\n '--vcs-ref',\n quote(newValue),\n );\n return command.join(' ');\n}\n\nfunction artifactError(\n packageFileName: string,\n message: string,\n): UpdateArtifactsResult[] {\n return [\n {\n artifactError: {\n lockFile: packageFileName,\n stderr: message,\n },\n },\n ];\n}\n\nexport async function updateArtifacts({\n packageFileName,\n updatedDeps,\n config,\n}: UpdateArtifact): Promise<UpdateArtifactsResult[] | null> {\n if (!updatedDeps || updatedDeps.length !== 1) {\n // Each answers file (~ packageFileName) has exactly one dependency to update.\n return artifactError(\n packageFileName,\n `Unexpected number of dependencies: ${updatedDeps.length} (should be 1)`,\n );\n }\n\n const newValue = updatedDeps[0]?.newValue;\n if (!newValue) {\n return artifactError(\n packageFileName,\n 'Missing copier template version to update to',\n );\n }\n\n const command = buildCommand(config, packageFileName, newValue);\n const gitEnv = getGitEnvironmentVariables(['git-tags']);\n const execOptions: ExecOptions = {\n cwdFile: packageFileName,\n docker: {},\n extraEnv: gitEnv,\n toolConstraints: [\n {\n toolName: 'python',\n constraint: getPythonVersionConstraint(config),\n },\n {\n toolName: 'copier',\n constraint: getCopierVersionConstraint(config),\n },\n ],\n };\n try {\n await exec(command, execOptions);\n } catch (err) {\n logger.debug({ err }, `Failed to update copier template: ${err.message}`);\n return artifactError(packageFileName, err.message);\n }\n\n const status = await getRepoStatus();\n // If the answers file didn't change, Copier did not update anything.\n if (!status.modified.includes(packageFileName)) {\n return null;\n }\n\n if (status.conflicted.length > 0) {\n // Sometimes, Copier erroneously reports conflicts.\n const msg =\n `Updating the Copier template yielded ${status.conflicted.length} merge conflicts. ` +\n 'Please check the proposed changes carefully! Conflicting files:\\n * ' +\n status.conflicted.join('\\n * ');\n logger.debug({ packageFileName, depName: updatedDeps[0]?.depName }, msg);\n }\n\n const res: UpdateArtifactsResult[] = [];\n\n for (const f of [\n ...status.modified,\n ...status.not_added,\n ...status.conflicted,\n ]) {\n const fileRes: UpdateArtifactsResult = {\n file: {\n type: 'addition',\n path: f,\n contents: await readLocalFile(f),\n },\n };\n if (status.conflicted.includes(f)) {\n // Make the reviewer aware of the conflicts.\n // This will be posted in a comment.\n fileRes.notice = {\n file: f,\n message:\n 'This file had merge conflicts. Please check the proposed changes carefully!',\n };\n }\n res.push(fileRes);\n }\n for (const f of status.deleted) {\n res.push({\n file: {\n type: 'deletion',\n path: f,\n },\n });\n }\n // `git status` might detect a rename, which is then not contained\n // in not_added/deleted. Ensure we respect renames as well if they happen.\n for (const f of status.renamed) {\n res.push({\n file: {\n type: 'deletion',\n path: f.from,\n },\n });\n res.push({\n file: {\n type: 'addition',\n path: f.to,\n contents: await readLocalFile(f.to),\n },\n });\n }\n return res;\n}\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const CopierAnswersFile: z.ZodPipeline<z.ZodEffects<z.ZodString, string | number | boolean | import("type-fest").JsonObject | import("type-fest").JsonValue[] | readonly import("type-fest").JsonValue[] | null, string>, z.ZodObject<{
|
|
2
|
+
export declare const CopierAnswersFile: z.ZodPipeline<z.ZodEffects<z.ZodString, string | number | boolean | import("type-fest", { with: { "resolution-mode": "import" } }).JsonObject | import("type-fest", { with: { "resolution-mode": "import" } }).JsonValue[] | readonly import("type-fest", { with: { "resolution-mode": "import" } }).JsonValue[] | null, string>, z.ZodObject<{
|
|
3
3
|
_commit: z.ZodString;
|
|
4
|
-
_src_path: z.ZodString
|
|
4
|
+
_src_path: z.ZodUnion<[z.ZodString, z.ZodString]>;
|
|
5
5
|
}, "strip", z.ZodTypeAny, {
|
|
6
6
|
_commit: string;
|
|
7
7
|
_src_path: string;
|
|
@@ -2,9 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CopierAnswersFile = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const regex_1 = require("../../../util/regex");
|
|
5
6
|
const schema_utils_1 = require("../../../util/schema-utils");
|
|
7
|
+
const GitSshUrl = zod_1.z.string().regex((0, regex_1.regEx)(/^[^@]+@[^:]*:.+$/), {
|
|
8
|
+
message: 'Invalid Git SSH URL format',
|
|
9
|
+
});
|
|
6
10
|
exports.CopierAnswersFile = schema_utils_1.Yaml.pipe(zod_1.z.object({
|
|
7
11
|
_commit: zod_1.z.string(),
|
|
8
|
-
_src_path: zod_1.z.string().url(),
|
|
12
|
+
_src_path: zod_1.z.string().url().or(GitSshUrl),
|
|
9
13
|
}));
|
|
10
14
|
//# sourceMappingURL=schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../lib/modules/manager/copier/schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,6DAAkD;
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../lib/modules/manager/copier/schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,+CAA4C;AAC5C,6DAAkD;AAElD,MAAM,SAAS,GAAG,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,IAAA,aAAK,EAAC,kBAAkB,CAAC,EAAE;IAC5D,OAAO,EAAE,4BAA4B;CACtC,CAAC,CAAC;AACU,QAAA,iBAAiB,GAAG,mBAAI,CAAC,IAAI,CACxC,OAAC,CAAC,MAAM,CAAC;IACP,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;IACnB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,SAAS,CAAC;CAC1C,CAAC,CACH,CAAC","sourcesContent":["import { z } from 'zod';\nimport { regEx } from '../../../util/regex';\nimport { Yaml } from '../../../util/schema-utils';\n\nconst GitSshUrl = z.string().regex(regEx(/^[^@]+@[^:]*:.+$/), {\n message: 'Invalid Git SSH URL format',\n});\nexport const CopierAnswersFile = Yaml.pipe(\n z.object({\n _commit: z.string(),\n _src_path: z.string().url().or(GitSshUrl),\n }),\n);\n\nexport type CopierAnswersFile = z.infer<typeof CopierAnswersFile>;\n"]}
|
|
@@ -13,7 +13,7 @@ function extractPackageFile(content, packageFile, extractConfig) {
|
|
|
13
13
|
}
|
|
14
14
|
// not try and catching this as failureBehaviour is set to filter and therefore it will not throw
|
|
15
15
|
const list = (0, yaml_1.parseYaml)(content, {
|
|
16
|
-
customSchema: schema_1.
|
|
16
|
+
customSchema: schema_1.XPKG,
|
|
17
17
|
failureBehaviour: 'filter',
|
|
18
18
|
});
|
|
19
19
|
const deps = [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extract.js","sourceRoot":"","sources":["../../../../lib/modules/manager/crossplane/extract.ts"],"names":[],"mappings":";;AAUA,gDAyBC;AAnCD,4CAAyC;AACzC,6CAA+C;AAC/C,mDAA+C;AAM/C,
|
|
1
|
+
{"version":3,"file":"extract.js","sourceRoot":"","sources":["../../../../lib/modules/manager/crossplane/extract.ts"],"names":[],"mappings":";;AAUA,gDAyBC;AAnCD,4CAAyC;AACzC,6CAA+C;AAC/C,mDAA+C;AAM/C,qCAAgC;AAEhC,SAAgB,kBAAkB,CAChC,OAAe,EACf,WAAmB,EACnB,aAA6B;IAE7B,kGAAkG;IAClG,IAAI,CAAC,kDAAkD,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;QACtE,eAAM,CAAC,KAAK,CAAC,EAAE,WAAW,EAAE,EAAE,sCAAsC,CAAC,CAAC;QACtE,OAAO,IAAI,CAAC;IACd,CAAC;IAED,iGAAiG;IACjG,MAAM,IAAI,GAAG,IAAA,gBAAS,EAAC,OAAO,EAAE;QAC9B,YAAY,EAAE,aAAI;QAClB,gBAAgB,EAAE,QAAQ;KAC3B,CAAC,CAAC;IAEH,MAAM,IAAI,GAAwB,EAAE,CAAC;IACrC,KAAK,MAAM,IAAI,IAAI,IAAI,EAAE,CAAC;QACxB,MAAM,GAAG,GAAG,IAAA,gBAAM,EAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,eAAe,CAAC,CAAC;QAC5E,GAAG,CAAC,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;QACtC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACjB,CAAC;IAED,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;AACvC,CAAC","sourcesContent":["import { logger } from '../../../logger';\nimport { parseYaml } from '../../../util/yaml';\nimport { getDep } from '../dockerfile/extract';\nimport type {\n ExtractConfig,\n PackageDependency,\n PackageFileContent,\n} from '../types';\nimport { XPKG } from './schema';\n\nexport function extractPackageFile(\n content: string,\n packageFile: string,\n extractConfig?: ExtractConfig,\n): PackageFileContent | null {\n // avoid parsing the whole file if it doesn't contain any resource having any pkg.crossplane.io/v*\n if (!/apiVersion:\\s+[\"']?pkg\\.crossplane\\.io\\/v.+[\"']?/.test(content)) {\n logger.trace({ packageFile }, 'No Crossplane package found in file.');\n return null;\n }\n\n // not try and catching this as failureBehaviour is set to filter and therefore it will not throw\n const list = parseYaml(content, {\n customSchema: XPKG,\n failureBehaviour: 'filter',\n });\n\n const deps: PackageDependency[] = [];\n for (const xpkg of list) {\n const dep = getDep(xpkg.spec.package, true, extractConfig?.registryAliases);\n dep.depType = xpkg.kind.toLowerCase();\n deps.push(dep);\n }\n\n return deps.length ? { deps } : null;\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const XPKG: z.ZodObject<{
|
|
3
3
|
apiVersion: z.ZodString;
|
|
4
4
|
kind: z.ZodEnum<["Provider", "Configuration", "Function"]>;
|
|
5
5
|
spec: z.ZodObject<{
|
|
@@ -22,4 +22,4 @@ export declare const XPKGSchema: z.ZodObject<{
|
|
|
22
22
|
package: string;
|
|
23
23
|
};
|
|
24
24
|
}>;
|
|
25
|
-
export type XPKG = z.infer<typeof
|
|
25
|
+
export type XPKG = z.infer<typeof XPKG>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.XPKG = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const regex_1 = require("../../../util/regex");
|
|
6
|
-
exports.
|
|
6
|
+
exports.XPKG = zod_1.z.object({
|
|
7
7
|
apiVersion: zod_1.z.string().regex((0, regex_1.regEx)(/^pkg\.crossplane\.io\//)),
|
|
8
8
|
kind: zod_1.z.enum(['Provider', 'Configuration', 'Function']),
|
|
9
9
|
spec: zod_1.z.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../lib/modules/manager/crossplane/schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,+CAA4C;AAE/B,QAAA,
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../lib/modules/manager/crossplane/schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,+CAA4C;AAE/B,QAAA,IAAI,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3B,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,IAAA,aAAK,EAAC,wBAAwB,CAAC,CAAC;IAC7D,IAAI,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,eAAe,EAAE,UAAU,CAAC,CAAC;IACvD,IAAI,EAAE,OAAC,CAAC,MAAM,CAAC;QACb,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;KACpB,CAAC;CACH,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { regEx } from '../../../util/regex';\n\nexport const XPKG = z.object({\n apiVersion: z.string().regex(regEx(/^pkg\\.crossplane\\.io\\//)),\n kind: z.enum(['Provider', 'Configuration', 'Function']),\n spec: z.object({\n package: z.string(),\n }),\n});\n\nexport type XPKG = z.infer<typeof XPKG>;\n"]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.extractPackageFile = extractPackageFile;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const is_1 = tslib_1.__importDefault(require("@sindresorhus/is"));
|
|
6
|
+
const logger_1 = require("../../../logger");
|
|
7
|
+
const object_1 = require("../../../util/object");
|
|
8
|
+
const extract_1 = require("../dockerfile/extract");
|
|
9
|
+
const schema_1 = require("./schema");
|
|
10
|
+
function crowVersionDecider(config) {
|
|
11
|
+
const keys = ['clone', 'steps', 'pipeline', 'services'];
|
|
12
|
+
return Object.keys(config).filter((key) => keys.includes(key));
|
|
13
|
+
}
|
|
14
|
+
function extractPackageFile(content, packageFile, extractConfig) {
|
|
15
|
+
logger_1.logger.debug('crow .extractPackageFile()');
|
|
16
|
+
const result = schema_1.CrowConfig.safeParse(content);
|
|
17
|
+
if (!result.success) {
|
|
18
|
+
logger_1.logger.debug({ packageFile, err: result.error }, 'Invalid Crow Configuration schema');
|
|
19
|
+
return null;
|
|
20
|
+
}
|
|
21
|
+
const config = result.data;
|
|
22
|
+
const pipelineKeys = crowVersionDecider(config);
|
|
23
|
+
if (pipelineKeys.length === 0) {
|
|
24
|
+
logger_1.logger.debug({ packageFile }, "Couldn't identify dependencies");
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
// Image name/tags for services are only eligible for update if they don't
|
|
28
|
+
// use variables and if the image is not built locally
|
|
29
|
+
const deps = pipelineKeys.flatMap((pipelineKey) => Object.values((0, object_1.coerceObject)(config[pipelineKey]))
|
|
30
|
+
.filter((step) => is_1.default.string(step?.image))
|
|
31
|
+
.map((step) => (0, extract_1.getDep)(step.image, true, extractConfig.registryAliases)));
|
|
32
|
+
logger_1.logger.trace({ deps }, 'Crow Configuration image');
|
|
33
|
+
return deps.length ? { deps } : null;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=extract.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extract.js","sourceRoot":"","sources":["../../../../lib/modules/manager/crow/extract.ts"],"names":[],"mappings":";;AAcA,gDAiCC;;AA/CD,kEAAkC;AAClC,4CAAyC;AACzC,iDAAoD;AACpD,mDAA+C;AAE/C,qCAAsC;AAEtC,SAAS,kBAAkB,CAAC,MAAkB;IAC5C,MAAM,IAAI,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC;IACxD,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CACxC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CACK,CAAC;AAC5B,CAAC;AAED,SAAgB,kBAAkB,CAChC,OAAe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cesContent":["import is from '@sindresorhus/is';\nimport { logger } from '../../../logger';\nimport { coerceObject } from '../../../util/object';\nimport { getDep } from '../dockerfile/extract';\nimport type { ExtractConfig, PackageFileContent } from '../types';\nimport { CrowConfig } from './schema';\n\nfunction crowVersionDecider(config: CrowConfig): (keyof CrowConfig)[] {\n const keys = ['clone', 'steps', 'pipeline', 'services'];\n return Object.keys(config).filter((key) =>\n keys.includes(key),\n ) as (keyof CrowConfig)[];\n}\n\nexport function extractPackageFile(\n content: string,\n packageFile: string,\n extractConfig: ExtractConfig,\n): PackageFileContent | null {\n logger.debug('crow .extractPackageFile()');\n const result = CrowConfig.safeParse(content);\n if (!result.success) {\n logger.debug(\n { packageFile, err: result.error },\n 'Invalid Crow Configuration schema',\n );\n return null;\n }\n\n const config = result.data;\n const pipelineKeys = crowVersionDecider(config);\n\n if (pipelineKeys.length === 0) {\n logger.debug({ packageFile }, \"Couldn't identify dependencies\");\n return null;\n }\n\n // Image name/tags for services are only eligible for update if they don't\n // use variables and if the image is not built locally\n const deps = pipelineKeys.flatMap((pipelineKey) =>\n Object.values(coerceObject(config[pipelineKey]))\n .filter((step) => is.string(step?.image))\n .map((step) => getDep(step.image, true, extractConfig.registryAliases)),\n );\n\n logger.trace({ deps }, 'Crow Configuration image');\n return deps.length ? { deps } : null;\n}\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Category } from '../../../constants';
|
|
2
|
+
export { extractPackageFile } from './extract';
|
|
3
|
+
export declare const url = "https://crowci.dev";
|
|
4
|
+
export declare const categories: Category[];
|
|
5
|
+
export declare const defaultConfig: {
|
|
6
|
+
managerFilePatterns: string[];
|
|
7
|
+
};
|
|
8
|
+
export declare const supportedDatasources: string[];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.supportedDatasources = exports.defaultConfig = exports.categories = exports.url = exports.extractPackageFile = void 0;
|
|
4
|
+
const docker_1 = require("../../datasource/docker");
|
|
5
|
+
var extract_1 = require("./extract");
|
|
6
|
+
Object.defineProperty(exports, "extractPackageFile", { enumerable: true, get: function () { return extract_1.extractPackageFile; } });
|
|
7
|
+
exports.url = 'https://crowci.dev';
|
|
8
|
+
exports.categories = ['ci'];
|
|
9
|
+
exports.defaultConfig = {
|
|
10
|
+
managerFilePatterns: ['/^\\.crow(?:/[^/]+)?\\.ya?ml$/'],
|
|
11
|
+
};
|
|
12
|
+
exports.supportedDatasources = [docker_1.DockerDatasource.id];
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../lib/modules/manager/crow/index.ts"],"names":[],"mappings":";;;AACA,oDAA2D;AAC3D,qCAA+C;AAAtC,6GAAA,kBAAkB,OAAA;AAEd,QAAA,GAAG,GAAG,oBAAoB,CAAC;AAC3B,QAAA,UAAU,GAAe,CAAC,IAAI,CAAC,CAAC;AAEhC,QAAA,aAAa,GAAG;IAC3B,mBAAmB,EAAE,CAAC,gCAAgC,CAAC;CACxD,CAAC;AAEW,QAAA,oBAAoB,GAAG,CAAC,yBAAgB,CAAC,EAAE,CAAC,CAAC","sourcesContent":["import type { Category } from '../../../constants';\nimport { DockerDatasource } from '../../datasource/docker';\nexport { extractPackageFile } from './extract';\n\nexport const url = 'https://crowci.dev';\nexport const categories: Category[] = ['ci'];\n\nexport const defaultConfig = {\n managerFilePatterns: ['/^\\\\.crow(?:/[^/]+)?\\\\.ya?ml$/'],\n};\n\nexport const supportedDatasources = [DockerDatasource.id];\n"]}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const CrowStep: z.ZodObject<{
|
|
3
|
+
image: z.ZodOptional<z.ZodString>;
|
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
|
5
|
+
image?: string | undefined;
|
|
6
|
+
}, {
|
|
7
|
+
image?: string | undefined;
|
|
8
|
+
}>;
|
|
9
|
+
export declare const CrowConfig: z.ZodPipeline<z.ZodEffects<z.ZodString, string | number | boolean | import("type-fest", { with: { "resolution-mode": "import" } }).JsonObject | import("type-fest", { with: { "resolution-mode": "import" } }).JsonValue[] | readonly import("type-fest", { with: { "resolution-mode": "import" } }).JsonValue[] | null, string>, z.ZodObject<{
|
|
10
|
+
pipeline: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
11
|
+
image: z.ZodOptional<z.ZodString>;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
image?: string | undefined;
|
|
14
|
+
}, {
|
|
15
|
+
image?: string | undefined;
|
|
16
|
+
}>>>;
|
|
17
|
+
steps: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
18
|
+
image: z.ZodOptional<z.ZodString>;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
image?: string | undefined;
|
|
21
|
+
}, {
|
|
22
|
+
image?: string | undefined;
|
|
23
|
+
}>>>;
|
|
24
|
+
clone: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
25
|
+
image: z.ZodOptional<z.ZodString>;
|
|
26
|
+
}, "strip", z.ZodTypeAny, {
|
|
27
|
+
image?: string | undefined;
|
|
28
|
+
}, {
|
|
29
|
+
image?: string | undefined;
|
|
30
|
+
}>>>;
|
|
31
|
+
services: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
32
|
+
image: z.ZodOptional<z.ZodString>;
|
|
33
|
+
}, "strip", z.ZodTypeAny, {
|
|
34
|
+
image?: string | undefined;
|
|
35
|
+
}, {
|
|
36
|
+
image?: string | undefined;
|
|
37
|
+
}>>>;
|
|
38
|
+
}, "strip", z.ZodTypeAny, {
|
|
39
|
+
steps?: Record<string, {
|
|
40
|
+
image?: string | undefined;
|
|
41
|
+
}> | undefined;
|
|
42
|
+
pipeline?: Record<string, {
|
|
43
|
+
image?: string | undefined;
|
|
44
|
+
}> | undefined;
|
|
45
|
+
clone?: Record<string, {
|
|
46
|
+
image?: string | undefined;
|
|
47
|
+
}> | undefined;
|
|
48
|
+
services?: Record<string, {
|
|
49
|
+
image?: string | undefined;
|
|
50
|
+
}> | undefined;
|
|
51
|
+
}, {
|
|
52
|
+
steps?: Record<string, {
|
|
53
|
+
image?: string | undefined;
|
|
54
|
+
}> | undefined;
|
|
55
|
+
pipeline?: Record<string, {
|
|
56
|
+
image?: string | undefined;
|
|
57
|
+
}> | undefined;
|
|
58
|
+
clone?: Record<string, {
|
|
59
|
+
image?: string | undefined;
|
|
60
|
+
}> | undefined;
|
|
61
|
+
services?: Record<string, {
|
|
62
|
+
image?: string | undefined;
|
|
63
|
+
}> | undefined;
|
|
64
|
+
}>>;
|
|
65
|
+
export type CrowConfig = z.infer<typeof CrowConfig>;
|
|
66
|
+
export type CrowStep = z.infer<typeof CrowStep>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CrowConfig = exports.CrowStep = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const schema_utils_1 = require("../../../util/schema-utils");
|
|
6
|
+
exports.CrowStep = zod_1.z.object({
|
|
7
|
+
image: zod_1.z.string().optional(),
|
|
8
|
+
});
|
|
9
|
+
exports.CrowConfig = schema_utils_1.Yaml.pipe(zod_1.z.object({
|
|
10
|
+
pipeline: zod_1.z.record(zod_1.z.string(), exports.CrowStep).optional(),
|
|
11
|
+
steps: zod_1.z.record(zod_1.z.string(), exports.CrowStep).optional(),
|
|
12
|
+
clone: zod_1.z.record(zod_1.z.string(), exports.CrowStep).optional(),
|
|
13
|
+
services: zod_1.z.record(zod_1.z.string(), exports.CrowStep).optional(),
|
|
14
|
+
}));
|
|
15
|
+
//# sourceMappingURL=schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../lib/modules/manager/crow/schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,6DAAkD;AAErC,QAAA,QAAQ,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC7B,CAAC,CAAC;AAEU,QAAA,UAAU,GAAG,mBAAI,CAAC,IAAI,CACjC,OAAC,CAAC,MAAM,CAAC;IACP,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,gBAAQ,CAAC,CAAC,QAAQ,EAAE;IACnD,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,gBAAQ,CAAC,CAAC,QAAQ,EAAE;IAChD,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,gBAAQ,CAAC,CAAC,QAAQ,EAAE;IAChD,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,gBAAQ,CAAC,CAAC,QAAQ,EAAE;CACpD,CAAC,CACH,CAAC","sourcesContent":["import { z } from 'zod';\nimport { Yaml } from '../../../util/schema-utils';\n\nexport const CrowStep = z.object({\n image: z.string().optional(),\n});\n\nexport const CrowConfig = Yaml.pipe(\n z.object({\n pipeline: z.record(z.string(), CrowStep).optional(),\n steps: z.record(z.string(), CrowStep).optional(),\n clone: z.record(z.string(), CrowStep).optional(),\n services: z.record(z.string(), CrowStep).optional(),\n }),\n);\n\nexport type CrowConfig = z.infer<typeof CrowConfig>;\nexport type CrowStep = z.infer<typeof CrowStep>;\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const QueryResultZod: z.ZodEffects<z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
3
3
|
currentValue: z.ZodOptional<z.ZodString>;
|
|
4
4
|
datasource: z.ZodOptional<z.ZodString>;
|
|
5
5
|
depName: z.ZodOptional<z.ZodString>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.QueryResultZod = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const
|
|
5
|
+
const DepObject = zod_1.z.object({
|
|
6
6
|
currentValue: zod_1.z.string().optional(),
|
|
7
7
|
datasource: zod_1.z.string().optional(),
|
|
8
8
|
depName: zod_1.z.string().optional(),
|
|
@@ -14,8 +14,8 @@ const DepObjectSchema = zod_1.z.object({
|
|
|
14
14
|
extractVersion: zod_1.z.string().optional(),
|
|
15
15
|
indentation: zod_1.z.string().optional(),
|
|
16
16
|
});
|
|
17
|
-
exports.
|
|
18
|
-
.union([zod_1.z.array(
|
|
17
|
+
exports.QueryResultZod = zod_1.z
|
|
18
|
+
.union([zod_1.z.array(DepObject), DepObject])
|
|
19
19
|
.transform((input) => {
|
|
20
20
|
return Array.isArray(input) ? input : [input];
|
|
21
21
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../../lib/modules/manager/custom/jsonata/schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,MAAM,
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../../lib/modules/manager/custom/jsonata/schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,MAAM,SAAS,GAAG,OAAC,CAAC,MAAM,CAAC;IACzB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC;AAEU,QAAA,cAAc,GAAG,OAAC;KAC5B,KAAK,CAAC,CAAC,OAAC,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC,CAAC;KACtC,SAAS,CAAC,CAAC,KAAK,EAAE,EAAE;IACnB,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;AAChD,CAAC,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\n\nconst DepObject = z.object({\n currentValue: z.string().optional(),\n datasource: z.string().optional(),\n depName: z.string().optional(),\n packageName: z.string().optional(),\n currentDigest: z.string().optional(),\n versioning: z.string().optional(),\n depType: z.string().optional(),\n registryUrl: z.string().optional(),\n extractVersion: z.string().optional(),\n indentation: z.string().optional(),\n});\n\nexport const QueryResultZod = z\n .union([z.array(DepObject), DepObject])\n .transform((input) => {\n return Array.isArray(input) ? input : [input];\n });\n"]}
|
|
@@ -26,15 +26,15 @@ async function handleMatching(json, packageFile, config) {
|
|
|
26
26
|
jsonataQuery: query,
|
|
27
27
|
packageFile,
|
|
28
28
|
}, 'The jsonata query returned no matches. Possible error, please check your query. Skipping');
|
|
29
|
-
|
|
29
|
+
continue;
|
|
30
30
|
}
|
|
31
|
-
const parsed = schema_1.
|
|
31
|
+
const parsed = schema_1.QueryResultZod.safeParse(queryResult);
|
|
32
32
|
if (parsed.success) {
|
|
33
33
|
results = results.concat(parsed.data);
|
|
34
34
|
}
|
|
35
35
|
else {
|
|
36
36
|
logger_1.logger.warn({ err: parsed.error, jsonataQuery: query, packageFile, queryResult }, 'Query results failed schema validation');
|
|
37
|
-
|
|
37
|
+
continue;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
return results
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../lib/modules/manager/custom/jsonata/utils.ts"],"names":[],"mappings":";;AAYA,wCA4CC;AAED,4CAyBC;;AAnFD,kEAAkC;AAClC,8DAA8B;AAC9B,oGAA8F;AAC9F,+CAA4C;AAC5C,4EAAsD;AACtD,8CAAgD;AAGhD,oCAAoE;AACpE,
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../lib/modules/manager/custom/jsonata/utils.ts"],"names":[],"mappings":";;AAYA,wCA4CC;AAED,4CAyBC;;AAnFD,kEAAkC;AAClC,8DAA8B;AAC9B,oGAA8F;AAC9F,+CAA4C;AAC5C,4EAAsD;AACtD,8CAAgD;AAGhD,oCAAoE;AACpE,qCAA0C;AAGnC,KAAK,UAAU,cAAc,CAClC,IAAa,EACb,WAAmB,EACnB,MAA4B;IAE5B,IAAI,OAAO,GAA6B,EAAE,CAAC;IAC3C,MAAM,EAAE,YAAY,EAAE,cAAc,EAAE,GAAG,MAAM,CAAC;IAChD,KAAK,MAAM,KAAK,IAAI,cAAc,EAAE,CAAC;QACnC,0DAA0D;QAC1D,MAAM,iBAAiB,GAAG,IAAA,iBAAO,EAAC,KAAK,CAAC,CAAC;QACzC,kEAAkE;QAClE,MAAM,WAAW,GAAG,MAAM,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QAE3D,uFAAuF;QACvF,gFAAgF;QAChF,IAAI,CAAC,WAAW,IAAI,Y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AAC,KAAK,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC;YAChD,CAAC;YAAC,MAAM,CAAC;gBACP,eAAM,CAAC,KAAK,CACV,EAAE,QAAQ,EAAE,IAAI,EAAE,EAClB,8CAA8C,CAC/C,CAAC;gBACF,OAAO,IAAI,CAAC;YACd,CAAC;QACH,CAAC;aAAM,IAAI,WAAW,CAAC,KAAK,CAAC,EAAE,CAAC;YAC9B,gBAAgB,CAAC,KAAK,EAAE,WAAW,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC;QAC1D,CAAC;IACH,CAAC;IACD,OAAO,UAAU,CAAC;AACpB,CAAC;AAED,SAAS,gBAAgB,CACvB,KAAuB,EACvB,KAAa,EACb,UAA6B;IAE7B,QAAQ,KAAK,EAAE,CAAC;QACd,KAAK,aAAa,CAAC,CAAC,CAAC;YACnB,MAAM,GAAG,GAAG,IAAA,cAAQ,EAAC,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC;YACxC,IAAI,CAAC,GAAG,EAAE,CAAC;gBACT,eAAM,CAAC,KAAK,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE,qCAAqC,CAAC,CAAC;gBACpE,MAAM;YACR,CAAC;YACD,UAAU,CAAC,YAAY,GAAG,CAAC,GAAG,CAAC,CAAC;YAChC,MAAM;QACR,CAAC;QACD,KAAK,YAAY;YACf,UAAU,CAAC,UAAU,GAAG,IAAA,wCAAiB,EAAC,KAAK,CAAC,CAAC;YACjD,MAAM;QACR;YACE,UAAU,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC;YAC1B,MAAM;IACV,CAAC;IAED,OAAO,UAAU,CAAC;AACpB,CAAC","sourcesContent":["import is from '@sindresorhus/is';\nimport jsonata from 'jsonata';\nimport { migrateDatasource } from '../../../../config/migrations/custom/datasource-migration';\nimport { logger } from '../../../../logger';\nimport * as template from '../../../../util/template';\nimport { parseUrl } from '../../../../util/url';\nimport type { PackageDependency } from '../../types';\nimport type { ValidMatchFields } from '../utils';\nimport { checkIsValidDependency, validMatchFields } from '../utils';\nimport { QueryResultZod } from './schema';\nimport type { JSONataManagerTemplates, JsonataExtractConfig } from './types';\n\nexport async function handleMatching(\n json: unknown,\n packageFile: string,\n config: JsonataExtractConfig,\n): Promise<PackageDependency[]> {\n let results: Record<string, string>[] = [];\n const { matchStrings: jsonataQueries } = config;\n for (const query of jsonataQueries) {\n // won't fail as this is verified during config validation\n const jsonataExpression = jsonata(query);\n // this does not throw error, just returns undefined if no matches\n const queryResult = await jsonataExpression.evaluate(json);\n\n // allows empty dep object cause templates can be used to configure the required fields\n // if some issues arise then the isValidDependency call will catch them later on\n if (!queryResult || is.emptyArray(queryResult)) {\n logger.debug(\n {\n jsonataQuery: query,\n packageFile,\n },\n 'The jsonata query returned no matches. Possible error, please check your query. Skipping',\n );\n continue;\n }\n\n const parsed = QueryResultZod.safeParse(queryResult);\n if (parsed.success) {\n results = results.concat(parsed.data);\n } else {\n logger.warn(\n { err: parsed.error, jsonataQuery: query, packageFile, queryResult },\n 'Query results failed schema validation',\n );\n continue;\n }\n }\n\n return results\n .map((dep) => createDependency(dep, config))\n .filter(is.truthy)\n .filter((dep) =>\n checkIsValidDependency(dep, packageFile, 'custom.jsonata'),\n );\n}\n\nexport function createDependency(\n queryResult: Record<string, string>,\n config: JsonataExtractConfig,\n): PackageDependency | null {\n const dependency: PackageDependency = {};\n\n for (const field of validMatchFields) {\n const fieldTemplate = `${field}Template` as keyof JSONataManagerTemplates;\n const tmpl = config[fieldTemplate];\n if (tmpl) {\n try {\n const compiled = template.compile(tmpl, queryResult, false);\n updateDependency(field, compiled, dependency);\n } catch {\n logger.debug(\n { template: tmpl },\n 'Error compiling template for JSONata manager',\n );\n return null;\n }\n } else if (queryResult[field]) {\n updateDependency(field, queryResult[field], dependency);\n }\n }\n return dependency;\n}\n\nfunction updateDependency(\n field: ValidMatchFields,\n value: string,\n dependency: PackageDependency,\n): PackageDependency {\n switch (field) {\n case 'registryUrl': {\n const url = parseUrl(value)?.toString();\n if (!url) {\n logger.debug({ url: value }, 'Invalid JSONata manager registryUrl');\n break;\n }\n dependency.registryUrls = [url];\n break;\n }\n case 'datasource':\n dependency.datasource = migrateDatasource(value);\n break;\n default:\n dependency[field] = value;\n break;\n }\n\n return dependency;\n}\n"]}
|
|
@@ -5,7 +5,7 @@ const logger_1 = require("../../../logger");
|
|
|
5
5
|
const schema_1 = require("./schema");
|
|
6
6
|
function extractPackageFile(content, packageFile) {
|
|
7
7
|
logger_1.logger.trace('devbox.extractPackageFile()');
|
|
8
|
-
const deps = (0, logger_1.withMeta)({ packageFile }, () => schema_1.
|
|
8
|
+
const deps = (0, logger_1.withMeta)({ packageFile }, () => schema_1.Devbox.parse(content));
|
|
9
9
|
if (!deps.length) {
|
|
10
10
|
return null;
|
|
11
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extract.js","sourceRoot":"","sources":["../../../../lib/modules/manager/devbox/extract.ts"],"names":[],"mappings":";;AAIA,gDAYC;AAhBD,4CAAmD;AAEnD,
|
|
1
|
+
{"version":3,"file":"extract.js","sourceRoot":"","sources":["../../../../lib/modules/manager/devbox/extract.ts"],"names":[],"mappings":";;AAIA,gDAYC;AAhBD,4CAAmD;AAEnD,qCAAkC;AAElC,SAAgB,kBAAkB,CAChC,OAAe,EACf,WAAmB;IAEnB,eAAM,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAC;IAE5C,MAAM,IAAI,GAAG,IAAA,iBAAQ,EAAC,EAAE,WAAW,EAAE,EAAE,GAAG,EAAE,CAAC,eAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;IACpE,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;QACjB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,EAAE,IAAI,EAAE,CAAC;AAClB,CAAC","sourcesContent":["import { logger, withMeta } from '../../../logger';\nimport type { PackageFileContent } from '../types';\nimport { Devbox } from './schema';\n\nexport function extractPackageFile(\n content: string,\n packageFile: string,\n): PackageFileContent | null {\n logger.trace('devbox.extractPackageFile()');\n\n const deps = withMeta({ packageFile }, () => Devbox.parse(content));\n if (!deps.length) {\n return null;\n }\n\n return { deps };\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import type { PackageDependency } from '../types';
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const Devbox: z.ZodCatch<z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodString, string | number | boolean | import("type-fest", { with: { "resolution-mode": "import" } }).JsonObject | import("type-fest", { with: { "resolution-mode": "import" } }).JsonValue[] | readonly import("type-fest", { with: { "resolution-mode": "import" } }).JsonValue[] | null, string>, z.ZodObject<{
|
|
4
4
|
packages: z.ZodPipeline<z.ZodUnion<[z.ZodEffects<z.ZodArray<z.ZodAny, "many">, string[][], any[]>, z.ZodEffects<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodAny>, Record<string, string>, Record<string, any>>, [string, string][], Record<string, any>>]>, z.ZodEffects<z.ZodArray<z.ZodAny, "many">, PackageDependency<Record<string, any>>[], any[]>>;
|
|
5
5
|
}, "strip", z.ZodTypeAny, {
|
|
6
6
|
packages: PackageDependency<Record<string, any>>[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.Devbox = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const logger_1 = require("../../../logger");
|
|
6
6
|
const schema_utils_1 = require("../../../util/schema-utils");
|
|
@@ -27,7 +27,7 @@ const DevboxEntry = zod_1.z
|
|
|
27
27
|
}
|
|
28
28
|
return dep;
|
|
29
29
|
});
|
|
30
|
-
exports.
|
|
30
|
+
exports.Devbox = schema_utils_1.Jsonc.pipe(zod_1.z.object({
|
|
31
31
|
packages: zod_1.z
|
|
32
32
|
.union([
|
|
33
33
|
(0, schema_utils_1.LooseArray)(zod_1.z.string().transform((pkg) => pkg.split('@'))),
|