renovate 40.0.0-next.2 → 40.0.0-next.21
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/decrypt/legacy.js +0 -1
- package/dist/config/decrypt/legacy.js.map +1 -1
- package/dist/config/decrypt.d.ts +3 -1
- package/dist/config/decrypt.js +56 -13
- package/dist/config/decrypt.js.map +1 -1
- package/dist/config/migrate-validate.js +3 -2
- package/dist/config/migrate-validate.js.map +1 -1
- package/dist/config/migration.js +2 -1
- package/dist/config/migration.js.map +1 -1
- package/dist/config/migrations/custom/rebase-stale-prs-migration.js +1 -1
- package/dist/config/migrations/custom/rebase-stale-prs-migration.js.map +1 -1
- package/dist/config/options/index.js +3 -3
- package/dist/config/options/index.js.map +1 -1
- package/dist/config/parse.js +2 -2
- package/dist/config/parse.js.map +1 -1
- package/dist/config/presets/gitea/index.js +0 -1
- package/dist/config/presets/gitea/index.js.map +1 -1
- package/dist/config/presets/github/index.js +0 -1
- package/dist/config/presets/github/index.js.map +1 -1
- package/dist/config/presets/gitlab/index.js +1 -1
- package/dist/config/presets/gitlab/index.js.map +1 -1
- package/dist/config/presets/http/index.js +1 -2
- package/dist/config/presets/http/index.js.map +1 -1
- package/dist/config/presets/index.js +0 -7
- package/dist/config/presets/index.js.map +1 -1
- package/dist/config/presets/internal/custom-managers.js +3 -4
- package/dist/config/presets/internal/custom-managers.js.map +1 -1
- package/dist/config/presets/internal/index.js +1 -3
- package/dist/config/presets/internal/index.js.map +1 -1
- package/dist/config/schema.d.ts +2 -2
- package/dist/config/validation.js +3 -5
- package/dist/config/validation.js.map +1 -1
- package/dist/config-validator.js +0 -1
- package/dist/config-validator.js.map +1 -1
- package/dist/constants/category.js +0 -1
- package/dist/constants/category.js.map +1 -1
- package/dist/data/monorepo.json +2 -1
- package/dist/instrumentation/index.js +5 -3
- package/dist/instrumentation/index.js.map +1 -1
- package/dist/instrumentation/utils.js +1 -1
- package/dist/instrumentation/utils.js.map +1 -1
- package/dist/logger/cmd-serializer.js +0 -1
- package/dist/logger/cmd-serializer.js.map +1 -1
- package/dist/logger/config-serializer.js +0 -1
- package/dist/logger/config-serializer.js.map +1 -1
- package/dist/logger/index.js +0 -3
- package/dist/logger/index.js.map +1 -1
- package/dist/logger/once.js +4 -2
- package/dist/logger/once.js.map +1 -1
- package/dist/logger/pretty-stdout.js +0 -1
- package/dist/logger/pretty-stdout.js.map +1 -1
- package/dist/logger/renovate-logger.js +1 -1
- package/dist/logger/renovate-logger.js.map +1 -1
- package/dist/logger/utils.js +6 -11
- package/dist/logger/utils.js.map +1 -1
- package/dist/modules/datasource/artifactory/index.js +1 -1
- package/dist/modules/datasource/artifactory/index.js.map +1 -1
- package/dist/modules/datasource/azure-pipelines-tasks/index.js +11 -1
- package/dist/modules/datasource/azure-pipelines-tasks/index.js.map +1 -1
- package/dist/modules/datasource/azure-pipelines-tasks/schema.d.ts +16 -0
- package/dist/modules/datasource/azure-pipelines-tasks/schema.js +2 -0
- package/dist/modules/datasource/azure-pipelines-tasks/schema.js.map +1 -1
- package/dist/modules/datasource/crate/index.js +1 -1
- package/dist/modules/datasource/crate/index.js.map +1 -1
- package/dist/modules/datasource/custom/formats/html.js +1 -1
- package/dist/modules/datasource/custom/formats/html.js.map +1 -1
- package/dist/modules/datasource/custom/formats/yaml.js +1 -1
- package/dist/modules/datasource/custom/formats/yaml.js.map +1 -1
- package/dist/modules/datasource/custom/schema.d.ts +5 -5
- package/dist/modules/datasource/deb/index.js +1 -1
- package/dist/modules/datasource/deb/index.js.map +1 -1
- package/dist/modules/datasource/deno/schema.d.ts +8 -8
- package/dist/modules/datasource/docker/common.js +1 -1
- package/dist/modules/datasource/docker/common.js.map +1 -1
- package/dist/modules/datasource/docker/index.js +5 -3
- package/dist/modules/datasource/docker/index.js.map +1 -1
- package/dist/modules/datasource/docker/schema.d.ts +32 -32
- package/dist/modules/datasource/galaxy/schema.d.ts +1 -1
- package/dist/modules/datasource/galaxy-collection/schema.d.ts +3 -3
- package/dist/modules/datasource/gitea-releases/schema.d.ts +4 -4
- package/dist/modules/datasource/gitea-tags/schema.d.ts +4 -4
- package/dist/modules/datasource/github-release-attachments/index.js +2 -2
- package/dist/modules/datasource/github-release-attachments/index.js.map +1 -1
- package/dist/modules/datasource/go/base.js +1 -1
- package/dist/modules/datasource/go/base.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/golang-version/index.js +1 -1
- package/dist/modules/datasource/golang-version/index.js.map +1 -1
- package/dist/modules/datasource/hex/schema.d.ts +11 -11
- package/dist/modules/datasource/hexpm-bob/index.js +1 -1
- package/dist/modules/datasource/hexpm-bob/index.js.map +1 -1
- package/dist/modules/datasource/index.js +2 -2
- package/dist/modules/datasource/index.js.map +1 -1
- package/dist/modules/datasource/maven/util.js +1 -1
- package/dist/modules/datasource/maven/util.js.map +1 -1
- package/dist/modules/datasource/nuget/v2.js +1 -1
- package/dist/modules/datasource/nuget/v2.js.map +1 -1
- package/dist/modules/datasource/nuget/v3.js +1 -1
- package/dist/modules/datasource/nuget/v3.js.map +1 -1
- package/dist/modules/datasource/packagist/schema.d.ts +30 -30
- package/dist/modules/datasource/pod/index.js +1 -1
- package/dist/modules/datasource/pod/index.js.map +1 -1
- package/dist/modules/datasource/pypi/index.js +1 -1
- package/dist/modules/datasource/pypi/index.js.map +1 -1
- package/dist/modules/datasource/ruby-version/index.js +1 -1
- package/dist/modules/datasource/ruby-version/index.js.map +1 -1
- package/dist/modules/datasource/rubygems/index.js +1 -1
- package/dist/modules/datasource/rubygems/index.js.map +1 -1
- package/dist/modules/datasource/rubygems/versions-endpoint-cache.js +2 -2
- package/dist/modules/datasource/rubygems/versions-endpoint-cache.js.map +1 -1
- package/dist/modules/datasource/terraform-provider/index.js +1 -1
- package/dist/modules/datasource/terraform-provider/index.js.map +1 -1
- package/dist/modules/datasource/unity3d/index.d.ts +4 -1
- package/dist/modules/datasource/unity3d/index.js +36 -42
- package/dist/modules/datasource/unity3d/index.js.map +1 -1
- package/dist/modules/datasource/unity3d/schema.d.ts +47 -0
- package/dist/modules/datasource/unity3d/schema.js +17 -0
- package/dist/modules/datasource/unity3d/schema.js.map +1 -0
- package/dist/modules/manager/argocd/schema.d.ts +10 -10
- package/dist/modules/manager/azure-pipelines/schema.d.ts +10 -10
- package/dist/modules/manager/batect/schema.d.ts +6 -6
- package/dist/modules/manager/batect-wrapper/artifacts.js +1 -1
- package/dist/modules/manager/batect-wrapper/artifacts.js.map +1 -1
- package/dist/modules/manager/bazel/rules/docker.d.ts +9 -9
- package/dist/modules/manager/bazel/rules/git.d.ts +10 -10
- package/dist/modules/manager/bazel/rules/git.js +7 -1
- package/dist/modules/manager/bazel/rules/git.js.map +1 -1
- 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/parser/fragments.d.ts +40 -40
- package/dist/modules/manager/bazel-module/parser/maven.d.ts +27 -27
- package/dist/modules/manager/bazel-module/parser/oci.d.ts +17 -17
- package/dist/modules/manager/bazel-module/rules.d.ts +40 -40
- package/dist/modules/manager/bundler/artifacts.js.map +1 -1
- package/dist/modules/manager/cargo/schema.d.ts +100 -100
- package/dist/modules/manager/circleci/schema.d.ts +6 -6
- package/dist/modules/manager/composer/schema.d.ts +40 -40
- package/dist/modules/manager/composer/utils.js +9 -6
- package/dist/modules/manager/composer/utils.js.map +1 -1
- package/dist/modules/manager/crossplane/schema.d.ts +2 -2
- package/dist/modules/manager/custom/jsonata/index.js +4 -0
- package/dist/modules/manager/custom/jsonata/index.js.map +1 -1
- package/dist/modules/manager/custom/jsonata/schema.d.ts +7 -7
- package/dist/modules/manager/devbox/artifacts.d.ts +1 -1
- package/dist/modules/manager/devbox/artifacts.js +29 -11
- package/dist/modules/manager/devbox/artifacts.js.map +1 -1
- package/dist/modules/manager/fingerprint.generated.js +68 -68
- package/dist/modules/manager/fingerprint.generated.js.map +1 -1
- package/dist/modules/manager/fleet/schema.d.ts +12 -12
- package/dist/modules/manager/flux/schema.d.ts +50 -50
- package/dist/modules/manager/glasskube/schema.d.ts +8 -8
- package/dist/modules/manager/gradle-wrapper/artifacts.js +1 -1
- package/dist/modules/manager/gradle-wrapper/artifacts.js.map +1 -1
- package/dist/modules/manager/maven/extract.js +3 -1
- package/dist/modules/manager/maven/extract.js.map +1 -1
- package/dist/modules/manager/mise/extract.js +1 -1
- package/dist/modules/manager/mise/extract.js.map +1 -1
- package/dist/modules/manager/nix/schema.d.ts +24 -24
- package/dist/modules/manager/npm/schema.d.ts +13 -13
- package/dist/modules/manager/nuget/schema.d.ts +8 -8
- package/dist/modules/manager/ocb/schema.d.ts +6 -6
- package/dist/modules/manager/pep621/schema.d.ts +55 -55
- package/dist/modules/manager/pep621/utils.js +1 -1
- package/dist/modules/manager/pep621/utils.js.map +1 -1
- package/dist/modules/manager/poetry/artifacts.js +3 -3
- package/dist/modules/manager/poetry/artifacts.js.map +1 -1
- package/dist/modules/manager/poetry/extract.js +2 -1
- package/dist/modules/manager/poetry/extract.js.map +1 -1
- package/dist/modules/manager/poetry/schema.d.ts +48 -48
- package/dist/modules/manager/sveltos/schema.d.ts +12 -12
- package/dist/modules/manager/terraform/lockfile/hash.d.ts +1 -1
- package/dist/modules/manager/vendir/schema.d.ts +27 -27
- package/dist/modules/platform/api.d.ts +1 -1
- package/dist/modules/platform/bitbucket/index.d.ts +1 -0
- package/dist/modules/platform/bitbucket/index.js +6 -1
- package/dist/modules/platform/bitbucket/index.js.map +1 -1
- package/dist/modules/platform/bitbucket/schema.d.ts +17 -17
- package/dist/modules/platform/bitbucket-server/index.d.ts +1 -1
- package/dist/modules/platform/bitbucket-server/index.js +13 -11
- package/dist/modules/platform/bitbucket-server/index.js.map +1 -1
- package/dist/modules/platform/bitbucket-server/schema.d.ts +75 -0
- package/dist/modules/platform/bitbucket-server/schema.js +14 -1
- package/dist/modules/platform/bitbucket-server/schema.js.map +1 -1
- package/dist/modules/platform/bitbucket-server/types.d.ts +2 -1
- package/dist/modules/platform/bitbucket-server/types.js.map +1 -1
- package/dist/modules/platform/bitbucket-server/utils.d.ts +0 -2
- package/dist/modules/platform/bitbucket-server/utils.js +1 -51
- package/dist/modules/platform/bitbucket-server/utils.js.map +1 -1
- package/dist/modules/platform/gerrit/client.js +1 -1
- package/dist/modules/platform/gerrit/client.js.map +1 -1
- package/dist/modules/platform/gitea/index.d.ts +1 -0
- package/dist/modules/platform/gitea/index.js +11 -0
- package/dist/modules/platform/gitea/index.js.map +1 -1
- package/dist/modules/platform/gitea/schema.d.ts +8 -8
- package/dist/modules/platform/github/common.d.ts +2 -0
- package/dist/modules/platform/github/common.js +16 -0
- package/dist/modules/platform/github/common.js.map +1 -1
- package/dist/modules/platform/github/index.d.ts +1 -1
- package/dist/modules/platform/github/index.js +6 -4
- package/dist/modules/platform/github/index.js.map +1 -1
- package/dist/modules/platform/github/issue.d.ts +12 -12
- package/dist/modules/platform/github/schema.d.ts +65 -65
- package/dist/modules/platform/gitlab/index.d.ts +1 -0
- package/dist/modules/platform/gitlab/index.js +9 -0
- package/dist/modules/platform/gitlab/index.js.map +1 -1
- package/dist/modules/platform/scm.d.ts +1 -1
- package/dist/modules/versioning/composer/index.js +10 -0
- package/dist/modules/versioning/composer/index.js.map +1 -1
- package/dist/modules/versioning/npm/index.js +2 -1
- package/dist/modules/versioning/npm/index.js.map +1 -1
- package/dist/modules/versioning/schema.js +1 -1
- package/dist/modules/versioning/schema.js.map +1 -1
- package/dist/modules/versioning/types.d.ts +4 -0
- package/dist/modules/versioning/types.js.map +1 -1
- package/dist/proxy.js +2 -1
- package/dist/proxy.js.map +1 -1
- package/dist/renovate.js +2 -2
- package/dist/renovate.js.map +1 -1
- package/dist/util/cache/package/decorator.js +2 -2
- package/dist/util/cache/package/decorator.js.map +1 -1
- package/dist/util/cache/package/redis.js +0 -1
- package/dist/util/cache/package/redis.js.map +1 -1
- package/dist/util/cache/repository/impl/base.d.ts +1 -1
- package/dist/util/exec/containerbase.js +12 -12
- package/dist/util/exec/containerbase.js.map +1 -1
- package/dist/util/github/graphql/query-adapters/releases-query-adapter.d.ts +5 -5
- package/dist/util/http/auth.js +0 -1
- package/dist/util/http/auth.js.map +1 -1
- package/dist/util/http/bitbucket-server.d.ts +5 -4
- package/dist/util/http/bitbucket-server.js +17 -20
- package/dist/util/http/bitbucket-server.js.map +1 -1
- package/dist/util/http/bitbucket.d.ts +6 -5
- package/dist/util/http/bitbucket.js +30 -31
- package/dist/util/http/bitbucket.js.map +1 -1
- package/dist/util/http/cache/abstract-http-cache-provider.js +1 -1
- package/dist/util/http/cache/abstract-http-cache-provider.js.map +1 -1
- package/dist/util/http/cache/schema.d.ts +2 -2
- package/dist/util/http/errors.d.ts +2 -0
- package/dist/util/http/errors.js +8 -0
- package/dist/util/http/errors.js.map +1 -0
- package/dist/util/http/gerrit.d.ts +6 -4
- package/dist/util/http/gerrit.js +11 -12
- package/dist/util/http/gerrit.js.map +1 -1
- package/dist/util/http/gitea.d.ts +5 -4
- package/dist/util/http/gitea.js +12 -13
- package/dist/util/http/gitea.js.map +1 -1
- package/dist/util/http/github.d.ts +14 -8
- package/dist/util/http/github.js +64 -60
- package/dist/util/http/github.js.map +1 -1
- package/dist/util/http/gitlab.d.ts +7 -5
- package/dist/util/http/gitlab.js +56 -46
- package/dist/util/http/gitlab.js.map +1 -1
- package/dist/util/http/got.d.ts +9 -0
- package/dist/util/http/got.js +54 -0
- package/dist/util/http/got.js.map +1 -0
- package/dist/util/http/host-rules.d.ts +2 -1
- package/dist/util/http/host-rules.js.map +1 -1
- package/dist/util/http/http.d.ts +93 -0
- package/dist/util/http/http.js +339 -0
- package/dist/util/http/http.js.map +1 -0
- package/dist/util/http/index.d.ts +6 -74
- package/dist/util/http/index.js +5 -359
- package/dist/util/http/index.js.map +1 -1
- package/dist/util/http/legacy.js +4 -1
- package/dist/util/http/legacy.js.map +1 -1
- package/dist/util/http/types.d.ts +9 -16
- package/dist/util/http/types.js.map +1 -1
- package/dist/util/string.d.ts +15 -0
- package/dist/util/string.js +75 -0
- package/dist/util/string.js.map +1 -1
- package/dist/util/toml.d.ts +1 -0
- package/dist/util/toml.js +6 -0
- package/dist/util/toml.js.map +1 -1
- package/dist/util/url.js +3 -8
- package/dist/util/url.js.map +1 -1
- package/dist/util/yaml.js +2 -6
- package/dist/util/yaml.js.map +1 -1
- package/dist/workers/global/config/parse/env.js +3 -2
- package/dist/workers/global/config/parse/env.js.map +1 -1
- package/dist/workers/global/config/parse/file.js +19 -9
- package/dist/workers/global/config/parse/file.js.map +1 -1
- package/dist/workers/global/config/parse/host-rules-from-env.js +6 -2
- package/dist/workers/global/config/parse/host-rules-from-env.js.map +1 -1
- package/dist/workers/repository/cache.js +0 -1
- package/dist/workers/repository/cache.js.map +1 -1
- package/dist/workers/repository/onboarding/pr/config-description.js +3 -1
- package/dist/workers/repository/onboarding/pr/config-description.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/gitlab/index.js +1 -1
- package/dist/workers/repository/update/pr/changelog/gitlab/index.js.map +1 -1
- package/package.json +44 -49
- package/renovate-schema.json +2 -1
@@ -125,12 +125,12 @@ export declare const NamedRepo: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
125
125
|
}, {
|
126
126
|
name: z.ZodString;
|
127
127
|
}>, "strip", z.ZodTypeAny, {
|
128
|
-
name: string;
|
129
128
|
type: "git";
|
129
|
+
name: string;
|
130
130
|
url: string;
|
131
131
|
}, {
|
132
|
-
name: string;
|
133
132
|
type: "git" | "vcs";
|
133
|
+
name: string;
|
134
134
|
url: string;
|
135
135
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
136
136
|
type: z.ZodLiteral<"path">;
|
@@ -139,12 +139,12 @@ export declare const NamedRepo: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
139
139
|
}, {
|
140
140
|
name: z.ZodString;
|
141
141
|
}>, "strip", z.ZodTypeAny, {
|
142
|
-
name: string;
|
143
142
|
type: "path";
|
143
|
+
name: string;
|
144
144
|
url: string;
|
145
145
|
}, {
|
146
|
-
name: string;
|
147
146
|
type: "path";
|
147
|
+
name: string;
|
148
148
|
url: string;
|
149
149
|
}>, z.ZodObject<{
|
150
150
|
type: z.ZodLiteral<"package">;
|
@@ -181,12 +181,12 @@ export declare const ReposRecord: z.ZodEffects<z.ZodEffects<z.ZodRecord<z.ZodStr
|
|
181
181
|
} | {
|
182
182
|
type: "package";
|
183
183
|
} | {
|
184
|
-
name: string;
|
185
184
|
type: "git";
|
185
|
+
name: string;
|
186
186
|
url: string;
|
187
187
|
} | {
|
188
|
-
name: string;
|
189
188
|
type: "path";
|
189
|
+
name: string;
|
190
190
|
url: string;
|
191
191
|
} | {
|
192
192
|
type: "disable-packagist";
|
@@ -213,12 +213,12 @@ export declare const ReposArray: z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodAny,
|
|
213
213
|
} | {
|
214
214
|
type: "package";
|
215
215
|
} | {
|
216
|
-
name: string;
|
217
216
|
type: "git";
|
217
|
+
name: string;
|
218
218
|
url: string;
|
219
219
|
} | {
|
220
|
-
name: string;
|
221
220
|
type: "path";
|
221
|
+
name: string;
|
222
222
|
url: string;
|
223
223
|
} | {
|
224
224
|
type: "disable-packagist";
|
@@ -243,12 +243,12 @@ export declare const Repos: z.ZodEffects<z.ZodCatch<z.ZodDefault<z.ZodUnion<[z.Z
|
|
243
243
|
} | {
|
244
244
|
type: "package";
|
245
245
|
} | {
|
246
|
-
name: string;
|
247
246
|
type: "git";
|
247
|
+
name: string;
|
248
248
|
url: string;
|
249
249
|
} | {
|
250
|
-
name: string;
|
251
250
|
type: "path";
|
251
|
+
name: string;
|
252
252
|
url: string;
|
253
253
|
} | {
|
254
254
|
type: "disable-packagist";
|
@@ -273,12 +273,12 @@ export declare const Repos: z.ZodEffects<z.ZodCatch<z.ZodDefault<z.ZodUnion<[z.Z
|
|
273
273
|
} | {
|
274
274
|
type: "package";
|
275
275
|
} | {
|
276
|
-
name: string;
|
277
276
|
type: "git";
|
277
|
+
name: string;
|
278
278
|
url: string;
|
279
279
|
} | {
|
280
|
-
name: string;
|
281
280
|
type: "path";
|
281
|
+
name: string;
|
282
282
|
url: string;
|
283
283
|
} | {
|
284
284
|
type: "disable-packagist";
|
@@ -334,12 +334,12 @@ export declare const PackageFile: z.ZodEffects<z.ZodObject<{
|
|
334
334
|
} | {
|
335
335
|
type: "package";
|
336
336
|
} | {
|
337
|
-
name: string;
|
338
337
|
type: "git";
|
338
|
+
name: string;
|
339
339
|
url: string;
|
340
340
|
} | {
|
341
|
-
name: string;
|
342
341
|
type: "path";
|
342
|
+
name: string;
|
343
343
|
url: string;
|
344
344
|
} | {
|
345
345
|
type: "disable-packagist";
|
@@ -364,12 +364,12 @@ export declare const PackageFile: z.ZodEffects<z.ZodObject<{
|
|
364
364
|
} | {
|
365
365
|
type: "package";
|
366
366
|
} | {
|
367
|
-
name: string;
|
368
367
|
type: "git";
|
368
|
+
name: string;
|
369
369
|
url: string;
|
370
370
|
} | {
|
371
|
-
name: string;
|
372
371
|
type: "path";
|
372
|
+
name: string;
|
373
373
|
url: string;
|
374
374
|
} | {
|
375
375
|
type: "disable-packagist";
|
@@ -389,12 +389,6 @@ export declare const PackageFile: z.ZodEffects<z.ZodObject<{
|
|
389
389
|
require: z.ZodCatch<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodAny>, Record<string, string>, Record<string, any>>>;
|
390
390
|
'require-dev': z.ZodCatch<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodAny>, Record<string, string>, Record<string, any>>>;
|
391
391
|
}, "strip", z.ZodTypeAny, {
|
392
|
-
require: Record<string, string>;
|
393
|
-
config: {
|
394
|
-
platform: {
|
395
|
-
php: string;
|
396
|
-
};
|
397
|
-
} | null;
|
398
392
|
repositories: {
|
399
393
|
registryUrls: string[] | null;
|
400
394
|
gitRepos: Record<string, {
|
@@ -408,13 +402,19 @@ export declare const PackageFile: z.ZodEffects<z.ZodObject<{
|
|
408
402
|
name?: string | undefined;
|
409
403
|
}>;
|
410
404
|
};
|
405
|
+
config: {
|
406
|
+
platform: {
|
407
|
+
php: string;
|
408
|
+
};
|
409
|
+
} | null;
|
410
|
+
require: Record<string, string>;
|
411
411
|
'require-dev': Record<string, string>;
|
412
412
|
type?: string | undefined;
|
413
413
|
}, {
|
414
414
|
type?: string | undefined;
|
415
|
-
require?: unknown;
|
416
|
-
config?: unknown;
|
417
415
|
repositories?: unknown;
|
416
|
+
config?: unknown;
|
417
|
+
require?: unknown;
|
418
418
|
'require-dev'?: unknown;
|
419
419
|
}>, {
|
420
420
|
composerJsonType: string | undefined;
|
@@ -440,9 +440,9 @@ export declare const PackageFile: z.ZodEffects<z.ZodObject<{
|
|
440
440
|
requireDev: Record<string, string>;
|
441
441
|
}, {
|
442
442
|
type?: string | undefined;
|
443
|
-
require?: unknown;
|
444
|
-
config?: unknown;
|
445
443
|
repositories?: unknown;
|
444
|
+
config?: unknown;
|
445
|
+
require?: unknown;
|
446
446
|
'require-dev'?: unknown;
|
447
447
|
}>;
|
448
448
|
export type PackageFile = z.infer<typeof PackageFile>;
|
@@ -541,12 +541,12 @@ export declare const ComposerExtract: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.
|
|
541
541
|
} | {
|
542
542
|
type: "package";
|
543
543
|
} | {
|
544
|
-
name: string;
|
545
544
|
type: "git";
|
545
|
+
name: string;
|
546
546
|
url: string;
|
547
547
|
} | {
|
548
|
-
name: string;
|
549
548
|
type: "path";
|
549
|
+
name: string;
|
550
550
|
url: string;
|
551
551
|
} | {
|
552
552
|
type: "disable-packagist";
|
@@ -571,12 +571,12 @@ export declare const ComposerExtract: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.
|
|
571
571
|
} | {
|
572
572
|
type: "package";
|
573
573
|
} | {
|
574
|
-
name: string;
|
575
574
|
type: "git";
|
575
|
+
name: string;
|
576
576
|
url: string;
|
577
577
|
} | {
|
578
|
-
name: string;
|
579
578
|
type: "path";
|
579
|
+
name: string;
|
580
580
|
url: string;
|
581
581
|
} | {
|
582
582
|
type: "disable-packagist";
|
@@ -596,12 +596,6 @@ export declare const ComposerExtract: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.
|
|
596
596
|
require: z.ZodCatch<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodAny>, Record<string, string>, Record<string, any>>>;
|
597
597
|
'require-dev': z.ZodCatch<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodAny>, Record<string, string>, Record<string, any>>>;
|
598
598
|
}, "strip", z.ZodTypeAny, {
|
599
|
-
require: Record<string, string>;
|
600
|
-
config: {
|
601
|
-
platform: {
|
602
|
-
php: string;
|
603
|
-
};
|
604
|
-
} | null;
|
605
599
|
repositories: {
|
606
600
|
registryUrls: string[] | null;
|
607
601
|
gitRepos: Record<string, {
|
@@ -615,13 +609,19 @@ export declare const ComposerExtract: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.
|
|
615
609
|
name?: string | undefined;
|
616
610
|
}>;
|
617
611
|
};
|
612
|
+
config: {
|
613
|
+
platform: {
|
614
|
+
php: string;
|
615
|
+
};
|
616
|
+
} | null;
|
617
|
+
require: Record<string, string>;
|
618
618
|
'require-dev': Record<string, string>;
|
619
619
|
type?: string | undefined;
|
620
620
|
}, {
|
621
621
|
type?: string | undefined;
|
622
|
-
require?: unknown;
|
623
|
-
config?: unknown;
|
624
622
|
repositories?: unknown;
|
623
|
+
config?: unknown;
|
624
|
+
require?: unknown;
|
625
625
|
'require-dev'?: unknown;
|
626
626
|
}>, {
|
627
627
|
composerJsonType: string | undefined;
|
@@ -647,9 +647,9 @@ export declare const ComposerExtract: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.
|
|
647
647
|
requireDev: Record<string, string>;
|
648
648
|
}, {
|
649
649
|
type?: string | undefined;
|
650
|
-
require?: unknown;
|
651
|
-
config?: unknown;
|
652
650
|
repositories?: unknown;
|
651
|
+
config?: unknown;
|
652
|
+
require?: unknown;
|
653
653
|
'require-dev'?: unknown;
|
654
654
|
}>>;
|
655
655
|
lockfileName: z.ZodString;
|
@@ -6,7 +6,9 @@ exports.getPhpConstraint = getPhpConstraint;
|
|
6
6
|
exports.requireComposerDependencyInstallation = requireComposerDependencyInstallation;
|
7
7
|
exports.extractConstraints = extractConstraints;
|
8
8
|
exports.isArtifactAuthEnabled = isArtifactAuthEnabled;
|
9
|
+
const tslib_1 = require("tslib");
|
9
10
|
// TODO: types (#22198)
|
11
|
+
const is_1 = tslib_1.__importDefault(require("@sindresorhus/is"));
|
10
12
|
const shlex_1 = require("shlex");
|
11
13
|
const global_1 = require("../../../config/global");
|
12
14
|
const logger_1 = require("../../../logger");
|
@@ -18,12 +20,13 @@ function getComposerArguments(config, toolConstraint) {
|
|
18
20
|
let args = '';
|
19
21
|
if (config.composerIgnorePlatformReqs) {
|
20
22
|
if (config.composerIgnorePlatformReqs.length === 0) {
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
23
|
+
if (is_1.default.string(toolConstraint.constraint) &&
|
24
|
+
composer_1.api.intersects(toolConstraint.constraint, '^2.2')) {
|
25
|
+
args += " --ignore-platform-req='ext-*' --ignore-platform-req='lib-*'";
|
26
|
+
}
|
27
|
+
else {
|
28
|
+
args += ' --ignore-platform-reqs';
|
29
|
+
}
|
27
30
|
}
|
28
31
|
else {
|
29
32
|
config.composerIgnorePlatformReqs.forEach((req) => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../lib/modules/manager/composer/utils.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../lib/modules/manager/composer/utils.ts"],"names":[],"mappings":";;;AAgBA,oDAiCC;AAED,4CAWC;AAED,sFAQC;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AAC,IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;AACtE,CAAC","sourcesContent":["// TODO: types (#22198)\nimport is from '@sindresorhus/is';\nimport { quote } from 'shlex';\nimport { GlobalConfig } from '../../../config/global';\nimport { logger } from '../../../logger';\nimport type { CombinedHostRule } from '../../../types';\nimport type { ToolConstraint } from '../../../util/exec/types';\nimport { coerceNumber } from '../../../util/number';\nimport { api, id as composerVersioningId } from '../../versioning/composer';\nimport type { UpdateArtifactsConfig } from '../types';\nimport type { Lockfile, PackageFile } from './schema';\n\nexport { composerVersioningId };\n\nconst depRequireInstall = new Set(['symfony/flex']);\n\nexport function getComposerArguments(\n config: UpdateArtifactsConfig,\n toolConstraint: ToolConstraint,\n): string {\n let args = '';\n\n if (config.composerIgnorePlatformReqs) {\n if (config.composerIgnorePlatformReqs.length === 0) {\n if (\n is.string(toolConstraint.constraint) &&\n api.intersects!(toolConstraint.constraint, '^2.2')\n ) {\n args += \" --ignore-platform-req='ext-*' --ignore-platform-req='lib-*'\";\n } else {\n args += ' --ignore-platform-reqs';\n }\n } else {\n config.composerIgnorePlatformReqs.forEach((req) => {\n args += ' --ignore-platform-req ' + quote(req);\n });\n }\n }\n\n args += ' --no-ansi --no-interaction';\n if (!GlobalConfig.get('allowScripts') || config.ignoreScripts) {\n args += ' --no-scripts --no-autoloader';\n }\n\n if (!GlobalConfig.get('allowPlugins') || config.ignorePlugins) {\n args += ' --no-plugins';\n }\n\n return args;\n}\n\nexport function getPhpConstraint(\n constraints: Record<string, string>,\n): string | null {\n const { php } = constraints;\n\n if (php) {\n logger.debug('Using php constraint from config');\n return php;\n }\n\n return null;\n}\n\nexport function requireComposerDependencyInstallation({\n packages,\n packagesDev,\n}: Lockfile): boolean {\n return (\n packages.some((p) => depRequireInstall.has(p.name)) === true ||\n packagesDev.some((p) => depRequireInstall.has(p.name)) === true\n );\n}\n\nexport function extractConstraints(\n { config, require, requireDev }: PackageFile,\n { pluginApiVersion }: Lockfile,\n): Record<string, string> {\n const res: Record<string, string> = { composer: '1.*' };\n\n // extract php\n const phpVersion = config?.platform.php;\n if (phpVersion) {\n const major = api.getMajor(phpVersion);\n const minor = coerceNumber(api.getMinor(phpVersion));\n const patch = coerceNumber(api.getPatch(phpVersion));\n res.php = `<=${major}.${minor}.${patch}`;\n } else if (require.php) {\n res.php = require.php;\n }\n\n // extract direct composer dependency\n if (require['composer/composer']) {\n res.composer = require['composer/composer'];\n } else if (requireDev['composer/composer']) {\n res.composer = requireDev['composer/composer'];\n }\n // composer platform package\n else if (require.composer) {\n res.composer = require.composer;\n } else if (requireDev.composer) {\n res.composer = requireDev.composer;\n }\n // check last used composer version\n else if (pluginApiVersion) {\n const major = api.getMajor(pluginApiVersion);\n const minor = api.getMinor(pluginApiVersion);\n res.composer = `^${major}.${minor}`;\n }\n // check composer api dependency\n else if (require['composer-runtime-api']) {\n const major = api.getMajor(require['composer-runtime-api']);\n const minor = api.getMinor(require['composer-runtime-api']);\n res.composer = `^${major}.${minor}`;\n }\n return res;\n}\n\nexport function isArtifactAuthEnabled(rule: CombinedHostRule): boolean {\n return !rule.artifactAuth || rule.artifactAuth.includes('composer');\n}\n"]}
|
@@ -10,14 +10,14 @@ export declare const XPKGSchema: z.ZodObject<{
|
|
10
10
|
package: string;
|
11
11
|
}>;
|
12
12
|
}, "strip", z.ZodTypeAny, {
|
13
|
-
kind: "Function" | "Provider" | "Configuration";
|
14
13
|
apiVersion: string;
|
14
|
+
kind: "Provider" | "Configuration" | "Function";
|
15
15
|
spec: {
|
16
16
|
package: string;
|
17
17
|
};
|
18
18
|
}, {
|
19
|
-
kind: "Function" | "Provider" | "Configuration";
|
20
19
|
apiVersion: string;
|
20
|
+
kind: "Provider" | "Configuration" | "Function";
|
21
21
|
spec: {
|
22
22
|
package: string;
|
23
23
|
};
|
@@ -6,6 +6,7 @@ const tslib_1 = require("tslib");
|
|
6
6
|
const is_1 = tslib_1.__importDefault(require("@sindresorhus/is"));
|
7
7
|
const logger_1 = require("../../../../logger");
|
8
8
|
const common_1 = require("../../../../util/common");
|
9
|
+
const toml_1 = require("../../../../util/toml");
|
9
10
|
const yaml_1 = require("../../../../util/yaml");
|
10
11
|
const utils_1 = require("../utils");
|
11
12
|
const utils_2 = require("./utils");
|
@@ -25,6 +26,9 @@ async function extractPackageFile(content, packageFile, config) {
|
|
25
26
|
case 'yaml':
|
26
27
|
json = (0, yaml_1.parseYaml)(content);
|
27
28
|
break;
|
29
|
+
case 'toml':
|
30
|
+
json = (0, toml_1.parse)(content);
|
31
|
+
break;
|
28
32
|
}
|
29
33
|
}
|
30
34
|
catch (err) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../lib/modules/manager/custom/jsonata/index.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../lib/modules/manager/custom/jsonata/index.ts"],"names":[],"mappings":";;;AAmBA,gDAmDC;;AAtED,kEAAkC;AAElC,+CAA4C;AAC5C,oDAAoD;AACpD,gDAA2D;AAC3D,gDAAkD;AAElD,oCAA4C;AAE5C,mCAAyC;AAE5B,QAAA,UAAU,GAAe,CAAC,QAAQ,CAAC,CAAC;AAEpC,QAAA,aAAa,GAAG;IAC3B,UAAU,EAAE,KAAK;CAClB,CAAC;AACW,QAAA,oBAAoB,GAAG,CAAC,GAAG,CAAC,CAAC;AAC7B,QAAA,WAAW,GAAG,SAAS,CAAC;AAE9B,KAAK,UAAU,kBAAkB,CACtC,OAAe,EACf,WAAmB,EACnB,MAA4B;IAE5B,IAAI,IAAa,CAAC;IAClB,IAAI,CAAC;QACH,QAAQ,MAAM,CAAC,UAAU,EAAE,CAAC;YAC1B,KAAK,MAAM;gBACT,IAAI,GAAG,IAAA,kBAAS,EAAC,OAAO,EAAE,WAAW,CAAC,CAAC;gBACvC,MAAM;YACR,KAAK,MAAM;gBACT,IAAI,GAAG,IAAA,gBAAS,EAAC,OAAO,CAAC,CAAC;gBAC1B,MAAM;YACR,KAAK,MAAM;gBACT,IAAI,GAAG,IAAA,YAAS,EAAC,OAAO,CAAC,CAAC;gBAC1B,MAAM;QACV,CAAC;IACH,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,eAAM,CAAC,KAAK,CACV,EAAE,GAAG,EAAE,QAAQ,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,CAAC,UAAU,EAAE,EAC7D,0BAA0B,CAC3B,CAAC;QACF,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAI,YAAE,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC;QAC7B,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,IAAI,GAAG,MAAM,IAAA,sBAAc,EAAC,IAAI,EAAE,WAAW,EAAE,MAAM,CAAC,CAAC;IAC7D,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;QACjB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,GAAG,GAAiD;QACxD,IAAI;QACJ,YAAY,EAAE,MAAM,CAAC,YAAY;QACjC,UAAU,EAAE,MAAM,CAAC,UAAU;KAC9B,CAAC;IAEF,sCAAsC;IACtC,KAAK,MAAM,KAAK,IAAI,wBAAgB,CAAC,GAAG,CACtC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,UAA2C,CACvD,EAAE,CAAC;QACF,IAAI,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;YAClB,GAAG,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;QAC7B,CAAC;IACH,CAAC;IAED,OAAO,GAAG,CAAC;AACb,CAAC","sourcesContent":["import is from '@sindresorhus/is';\nimport type { Category } from '../../../../constants';\nimport { logger } from '../../../../logger';\nimport { parseJson } from '../../../../util/common';\nimport { parse as parseToml } from '../../../../util/toml';\nimport { parseYaml } from '../../../../util/yaml';\nimport type { PackageFileContent } from '../../types';\nimport { validMatchFields } from '../utils';\nimport type { JSONataManagerTemplates, JsonataExtractConfig } from './types';\nimport { handleMatching } from './utils';\n\nexport const categories: Category[] = ['custom'];\n\nexport const defaultConfig = {\n pinDigests: false,\n};\nexport const supportedDatasources = ['*'];\nexport const displayName = 'JSONata';\n\nexport async function extractPackageFile(\n content: string,\n packageFile: string,\n config: JsonataExtractConfig,\n): Promise<PackageFileContent | null> {\n let json: unknown;\n try {\n switch (config.fileFormat) {\n case 'json':\n json = parseJson(content, packageFile);\n break;\n case 'yaml':\n json = parseYaml(content);\n break;\n case 'toml':\n json = parseToml(content);\n break;\n }\n } catch (err) {\n logger.debug(\n { err, fileName: packageFile, fileFormat: config.fileFormat },\n 'Error while parsing file',\n );\n return null;\n }\n\n if (is.nullOrUndefined(json)) {\n return null;\n }\n\n const deps = await handleMatching(json, packageFile, config);\n if (!deps.length) {\n return null;\n }\n\n const res: PackageFileContent & JSONataManagerTemplates = {\n deps,\n matchStrings: config.matchStrings,\n fileFormat: config.fileFormat,\n };\n\n // copy over templates for autoreplace\n for (const field of validMatchFields.map(\n (f) => `${f}Template` as keyof JSONataManagerTemplates,\n )) {\n if (config[field]) {\n res[field] = config[field];\n }\n }\n\n return res;\n}\n"]}
|
@@ -11,10 +11,10 @@ export declare const QueryResultZodSchema: z.ZodEffects<z.ZodUnion<[z.ZodArray<z
|
|
11
11
|
extractVersion: z.ZodOptional<z.ZodString>;
|
12
12
|
indentation: z.ZodOptional<z.ZodString>;
|
13
13
|
}, "strip", z.ZodTypeAny, {
|
14
|
-
datasource?: string | undefined;
|
15
14
|
currentValue?: string | undefined;
|
16
15
|
depName?: string | undefined;
|
17
16
|
depType?: string | undefined;
|
17
|
+
datasource?: string | undefined;
|
18
18
|
currentDigest?: string | undefined;
|
19
19
|
packageName?: string | undefined;
|
20
20
|
versioning?: string | undefined;
|
@@ -22,10 +22,10 @@ export declare const QueryResultZodSchema: z.ZodEffects<z.ZodUnion<[z.ZodArray<z
|
|
22
22
|
indentation?: string | undefined;
|
23
23
|
registryUrl?: string | undefined;
|
24
24
|
}, {
|
25
|
-
datasource?: string | undefined;
|
26
25
|
currentValue?: string | undefined;
|
27
26
|
depName?: string | undefined;
|
28
27
|
depType?: string | undefined;
|
28
|
+
datasource?: string | undefined;
|
29
29
|
currentDigest?: string | undefined;
|
30
30
|
packageName?: string | undefined;
|
31
31
|
versioning?: string | undefined;
|
@@ -44,10 +44,10 @@ export declare const QueryResultZodSchema: z.ZodEffects<z.ZodUnion<[z.ZodArray<z
|
|
44
44
|
extractVersion: z.ZodOptional<z.ZodString>;
|
45
45
|
indentation: z.ZodOptional<z.ZodString>;
|
46
46
|
}, "strip", z.ZodTypeAny, {
|
47
|
-
datasource?: string | undefined;
|
48
47
|
currentValue?: string | undefined;
|
49
48
|
depName?: string | undefined;
|
50
49
|
depType?: string | undefined;
|
50
|
+
datasource?: string | undefined;
|
51
51
|
currentDigest?: string | undefined;
|
52
52
|
packageName?: string | undefined;
|
53
53
|
versioning?: string | undefined;
|
@@ -55,10 +55,10 @@ export declare const QueryResultZodSchema: z.ZodEffects<z.ZodUnion<[z.ZodArray<z
|
|
55
55
|
indentation?: string | undefined;
|
56
56
|
registryUrl?: string | undefined;
|
57
57
|
}, {
|
58
|
-
datasource?: string | undefined;
|
59
58
|
currentValue?: string | undefined;
|
60
59
|
depName?: string | undefined;
|
61
60
|
depType?: string | undefined;
|
61
|
+
datasource?: string | undefined;
|
62
62
|
currentDigest?: string | undefined;
|
63
63
|
packageName?: string | undefined;
|
64
64
|
versioning?: string | undefined;
|
@@ -66,10 +66,10 @@ export declare const QueryResultZodSchema: z.ZodEffects<z.ZodUnion<[z.ZodArray<z
|
|
66
66
|
indentation?: string | undefined;
|
67
67
|
registryUrl?: string | undefined;
|
68
68
|
}>]>, {
|
69
|
-
datasource?: string | undefined;
|
70
69
|
currentValue?: string | undefined;
|
71
70
|
depName?: string | undefined;
|
72
71
|
depType?: string | undefined;
|
72
|
+
datasource?: string | undefined;
|
73
73
|
currentDigest?: string | undefined;
|
74
74
|
packageName?: string | undefined;
|
75
75
|
versioning?: string | undefined;
|
@@ -77,10 +77,10 @@ export declare const QueryResultZodSchema: z.ZodEffects<z.ZodUnion<[z.ZodArray<z
|
|
77
77
|
indentation?: string | undefined;
|
78
78
|
registryUrl?: string | undefined;
|
79
79
|
}[], {
|
80
|
-
datasource?: string | undefined;
|
81
80
|
currentValue?: string | undefined;
|
82
81
|
depName?: string | undefined;
|
83
82
|
depType?: string | undefined;
|
83
|
+
datasource?: string | undefined;
|
84
84
|
currentDigest?: string | undefined;
|
85
85
|
packageName?: string | undefined;
|
86
86
|
versioning?: string | undefined;
|
@@ -88,10 +88,10 @@ export declare const QueryResultZodSchema: z.ZodEffects<z.ZodUnion<[z.ZodArray<z
|
|
88
88
|
indentation?: string | undefined;
|
89
89
|
registryUrl?: string | undefined;
|
90
90
|
} | {
|
91
|
-
datasource?: string | undefined;
|
92
91
|
currentValue?: string | undefined;
|
93
92
|
depName?: string | undefined;
|
94
93
|
depType?: string | undefined;
|
94
|
+
datasource?: string | undefined;
|
95
95
|
currentDigest?: string | undefined;
|
96
96
|
packageName?: string | undefined;
|
97
97
|
versioning?: string | undefined;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import type { UpdateArtifact, UpdateArtifactsResult } from '../types';
|
2
|
-
export declare function updateArtifacts(
|
2
|
+
export declare function updateArtifacts({ config: { constraints, env, isLockFileMaintenance, updateType }, packageFileName, updatedDeps, }: UpdateArtifact): Promise<UpdateArtifactsResult[] | null>;
|
@@ -3,34 +3,52 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.updateArtifacts = updateArtifacts;
|
4
4
|
const tslib_1 = require("tslib");
|
5
5
|
const is_1 = tslib_1.__importDefault(require("@sindresorhus/is"));
|
6
|
+
const semver_1 = tslib_1.__importDefault(require("semver"));
|
7
|
+
const shlex_1 = require("shlex");
|
6
8
|
const logger_1 = require("../../../logger");
|
7
9
|
const exec_1 = require("../../../util/exec");
|
8
10
|
const fs_1 = require("../../../util/fs");
|
9
|
-
async function updateArtifacts(
|
10
|
-
const lockFileName = (0, fs_1.getSiblingFileName)(
|
11
|
+
async function updateArtifacts({ config: { constraints, env, isLockFileMaintenance, updateType }, packageFileName, updatedDeps, }) {
|
12
|
+
const lockFileName = (0, fs_1.getSiblingFileName)(packageFileName, 'devbox.lock');
|
11
13
|
const existingLockFileContent = await (0, fs_1.readLocalFile)(lockFileName, 'utf8');
|
12
14
|
if (!existingLockFileContent) {
|
13
15
|
logger_1.logger.debug('No devbox.lock found');
|
14
16
|
return null;
|
15
17
|
}
|
18
|
+
const supportsNoInstall = constraints?.devbox
|
19
|
+
? semver_1.default.intersects(constraints.devbox, '>=0.14.0')
|
20
|
+
: true;
|
16
21
|
const execOptions = {
|
17
|
-
cwdFile:
|
22
|
+
cwdFile: packageFileName,
|
18
23
|
toolConstraints: [
|
19
24
|
{
|
20
25
|
toolName: 'devbox',
|
21
|
-
constraint:
|
26
|
+
constraint: constraints?.devbox,
|
22
27
|
},
|
23
28
|
],
|
24
29
|
docker: {},
|
25
|
-
userConfiguredEnv:
|
30
|
+
userConfiguredEnv: env,
|
26
31
|
};
|
27
|
-
|
28
|
-
if (
|
29
|
-
|
30
|
-
cmd += 'devbox update';
|
32
|
+
const cmd = [];
|
33
|
+
if (isLockFileMaintenance) {
|
34
|
+
cmd.push(supportsNoInstall ? 'devbox update --no-install' : 'devbox update');
|
31
35
|
}
|
32
|
-
else if (is_1.default.nonEmptyArray(
|
33
|
-
|
36
|
+
else if (is_1.default.nonEmptyArray(updatedDeps)) {
|
37
|
+
if (supportsNoInstall) {
|
38
|
+
const updateCommands = updatedDeps
|
39
|
+
.map((dep) => dep.depName && `devbox update ${(0, shlex_1.quote)(dep.depName)} --no-install`)
|
40
|
+
.filter((dep) => Boolean(dep));
|
41
|
+
if (updateCommands.length) {
|
42
|
+
cmd.push(...updateCommands);
|
43
|
+
}
|
44
|
+
else {
|
45
|
+
logger_1.logger.trace('No updated devbox packages - returning null');
|
46
|
+
return null;
|
47
|
+
}
|
48
|
+
}
|
49
|
+
else {
|
50
|
+
cmd.push('devbox install');
|
51
|
+
}
|
34
52
|
}
|
35
53
|
else {
|
36
54
|
logger_1.logger.trace('No updated devbox packages - returning null');
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"artifacts.js","sourceRoot":"","sources":["../../../../lib/modules/manager/devbox/artifacts.ts"],"names":[],"mappings":";;
|
1
|
+
{"version":3,"file":"artifacts.js","sourceRoot":"","sources":["../../../../lib/modules/manager/devbox/artifacts.ts"],"names":[],"mappings":";;AASA,0CA4FC;;AArGD,kEAAkC;AAClC,4DAA4B;AAC5B,iCAA8B;AAC9B,4CAAyC;AACzC,6CAA0C;AAE1C,yCAAqE;AAG9D,KAAK,UAAU,eAAe,CAAC,EACpC,MAAM,EAAE,EAAE,WAAW,EAAE,GAAG,EAAE,qBAAqB,EAAE,UAAU,EAAE,EAC/D,eAAe,EACf,WAAW,GACI;IACf,MAAM,YAAY,GAAG,IAAA,uBAAkB,EAAC,eAAe,EAAE,aAAa,CAAC,CAAC;IACxE,MAAM,uBAAuB,GAAG,MAAM,IAAA,kBAAa,EAAC,YAAY,EAAE,MAAM,CAAC,CAAC;IAC1E,IAAI,CAAC,uBAAuB,EAAE,CAAC;QAC7B,eAAM,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC;QACrC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,iBAAiB,GAAG,WAAW,EAAE,MAAM;QAC3C,CAAC,CAAC,gBAAM,CAAC,UAAU,CAAC,WAAW,CAAC,MAAM,EAAE,UAAU,CAAC;QACnD,CAAC,CAAC,IAAI,CAAC;IAET,MAAM,WAAW,GAAgB;QAC/B,OAAO,EAAE,eAAe;QACxB,eAAe,EAAE;YACf;gBACE,QAAQ,EAAE,QAAQ;gBAClB,UAAU,EAAE,WAAW,EAAE,MAAM;aAChC;SACF;QACD,MAAM,EAAE,EAAE;QACV,iBAAiB,EAAE,GAAG;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M,kBAAkB,GAAG,MAAM,IAAA,kBAAa,EAAC,YAAY,CAAC,CAAC;QAE7D,IACE,CAAC,kBAAkB;YACnB,MAAM,CAAC,OAAO,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,KAAK,CAAC,EAC5D,CAAC;YACD,OAAO,IAAI,CAAC;QACd,CAAC;QACD,eAAM,CAAC,KAAK,CAAC,+BAA+B,CAAC,CAAC;QAC9C,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,eAAM,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,EAAE,4BAA4B,CAAC,CAAC;QACnD,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 is from '@sindresorhus/is';\nimport semver from 'semver';\nimport { quote } from 'shlex';\nimport { logger } from '../../../logger';\nimport { exec } from '../../../util/exec';\nimport type { ExecOptions } from '../../../util/exec/types';\nimport { getSiblingFileName, readLocalFile } from '../../../util/fs';\nimport type { UpdateArtifact, UpdateArtifactsResult } from '../types';\n\nexport async function updateArtifacts({\n config: { constraints, env, isLockFileMaintenance, updateType },\n packageFileName,\n updatedDeps,\n}: UpdateArtifact): Promise<UpdateArtifactsResult[] | null> {\n const lockFileName = getSiblingFileName(packageFileName, 'devbox.lock');\n const existingLockFileContent = await readLocalFile(lockFileName, 'utf8');\n if (!existingLockFileContent) {\n logger.debug('No devbox.lock found');\n return null;\n }\n\n const supportsNoInstall = constraints?.devbox\n ? semver.intersects(constraints.devbox, '>=0.14.0')\n : true;\n\n const execOptions: ExecOptions = {\n cwdFile: packageFileName,\n toolConstraints: [\n {\n toolName: 'devbox',\n constraint: constraints?.devbox,\n },\n ],\n docker: {},\n userConfiguredEnv: env,\n };\n\n const cmd = [];\n if (isLockFileMaintenance) {\n cmd.push(\n supportsNoInstall ? 'devbox update --no-install' : 'devbox update',\n );\n } else if (is.nonEmptyArray(updatedDeps)) {\n if (supportsNoInstall) {\n const updateCommands: string[] = updatedDeps\n .map(\n (dep) =>\n dep.depName && `devbox update ${quote(dep.depName)} --no-install`,\n )\n .filter((dep): dep is string => Boolean(dep));\n if (updateCommands.length) {\n cmd.push(...updateCommands);\n } else {\n logger.trace('No updated devbox packages - returning null');\n return null;\n }\n } else {\n cmd.push('devbox install');\n }\n } else {\n logger.trace('No updated devbox packages - returning null');\n return null;\n }\n\n const oldLockFileContent = await readLocalFile(lockFileName);\n if (!oldLockFileContent) {\n logger.trace(`No ${lockFileName} found`);\n return null;\n }\n\n try {\n await exec(cmd, execOptions);\n const newLockFileContent = await readLocalFile(lockFileName);\n\n if (\n !newLockFileContent ||\n Buffer.compare(oldLockFileContent, newLockFileContent) === 0\n ) {\n return null;\n }\n logger.trace('Returning updated devbox.lock');\n return [\n {\n file: {\n type: 'addition',\n path: lockFileName,\n contents: newLockFileContent,\n },\n },\n ];\n } catch (err) {\n logger.warn({ err }, 'Error updating devbox.lock');\n return [\n {\n artifactError: {\n lockFile: lockFileName,\n stderr: err.message,\n },\n },\n ];\n }\n}\n"]}
|