renovate 44.115.3 → 44.115.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/defaults.d.ts +2 -3
- package/dist/config/global.d.ts +1 -2
- package/dist/config/options/env-options.d.ts +3 -4
- package/dist/config/options/index.d.ts +1 -2
- package/dist/config/types.d.ts +63 -63
- package/dist/config/utils.d.ts +1 -2
- package/dist/config/validation-helpers/types.d.ts +2 -3
- package/dist/config-validator.d.ts +1 -0
- package/dist/constants/category.d.ts +2 -3
- package/dist/constants/error-messages.d.ts +57 -58
- package/dist/constants/platforms.d.ts +2 -3
- package/dist/instrumentation/types.d.ts +13 -14
- package/dist/logger/err-serializer.d.ts +1 -2
- package/dist/logger/index.d.ts +13 -14
- package/dist/logger/renovate-logger.d.ts +1 -2
- package/dist/logger/types.d.ts +7 -7
- package/dist/manager-list.generated.d.ts +2 -3
- package/dist/modules/datasource/common.d.ts +8 -9
- package/dist/modules/datasource/index.d.ts +9 -9
- package/dist/modules/datasource/npm/schema.d.ts +5 -6
- package/dist/modules/datasource/types.d.ts +12 -13
- package/dist/modules/manager/custom/jsonata/types.d.ts +2 -3
- package/dist/modules/manager/custom/regex/types.d.ts +2 -3
- package/dist/modules/manager/custom/types.d.ts +3 -4
- package/dist/modules/manager/fingerprint.generated.d.ts +1 -2
- package/dist/modules/manager/index.d.ts +12 -12
- package/dist/modules/manager/types.d.ts +26 -27
- package/dist/modules/platform/bitbucket/index.d.ts +28 -29
- package/dist/modules/platform/bitbucket-server/index.d.ts +33 -34
- package/dist/modules/platform/bitbucket-server/types.d.ts +1 -2
- package/dist/modules/platform/github/schema.d.ts +3 -4
- package/dist/modules/platform/gitlab/code-owners.d.ts +1 -2
- package/dist/modules/platform/gitlab/index.d.ts +37 -37
- package/dist/modules/platform/gitlab/types.d.ts +2 -3
- package/dist/modules/platform/index.d.ts +5 -5
- package/dist/modules/platform/types.d.ts +30 -31
- package/dist/modules/versioning/generic.d.ts +1 -2
- package/dist/modules/versioning/index.d.ts +5 -5
- package/dist/modules/versioning/semver-coerced/index.d.ts +7 -7
- package/dist/modules/versioning/types.d.ts +11 -12
- package/dist/modules/versioning/ubuntu/index.d.ts +6 -6
- package/dist/proxy.d.ts +2 -3
- package/dist/renovate.d.ts +1 -0
- package/dist/types/base.d.ts +2 -3
- package/dist/types/branch-status.d.ts +1 -2
- package/dist/types/commit-message-json.d.ts +1 -2
- package/dist/types/git.d.ts +2 -3
- package/dist/types/host-rules.d.ts +3 -4
- package/dist/types/index.d.ts +5 -5
- package/dist/types/pr-state.d.ts +1 -2
- package/dist/types/skip-reason.d.ts +2 -3
- package/dist/types/versioning.d.ts +1 -2
- package/dist/util/cache/package/backend.d.ts +9 -7
- package/dist/util/cache/package/index.d.ts +7 -8
- package/dist/util/cache/package/namespaces.d.ts +2 -3
- package/dist/util/cache/repository/types.d.ts +10 -11
- package/dist/util/compress.d.ts +4 -5
- package/dist/util/exec/common.d.ts +2 -3
- package/dist/util/exec/common.js +1 -1
- package/dist/util/exec/common.js.map +1 -1
- package/dist/util/exec/exec-error.d.ts +2 -3
- package/dist/util/exec/types.d.ts +30 -27
- package/dist/util/exec/types.js.map +1 -1
- package/dist/util/git/config.d.ts +1 -2
- package/dist/util/git/index.d.ts +56 -56
- package/dist/util/git/private-key.d.ts +1 -2
- package/dist/util/git/types.d.ts +13 -13
- package/dist/util/host-rules.d.ts +14 -15
- package/dist/util/http/cache/types.d.ts +1 -2
- package/dist/util/http/errors.d.ts +1 -2
- package/dist/util/http/github.d.ts +6 -7
- package/dist/util/http/gitlab.d.ts +3 -4
- package/dist/util/http/http.d.ts +3 -4
- package/dist/util/http/legacy.d.ts +1 -2
- package/dist/util/http/types.d.ts +20 -21
- package/dist/util/merge-confidence/common.d.ts +1 -2
- package/dist/util/merge-confidence/types.d.ts +1 -2
- package/dist/util/result.d.ts +2 -3
- package/dist/util/s3.d.ts +3 -4
- package/dist/util/schema-utils/git.d.ts +2 -3
- package/dist/util/string-match.d.ts +9 -10
- package/dist/util/timestamp.d.ts +4 -5
- package/dist/util/url.d.ts +18 -19
- package/dist/versioning-list.generated.d.ts +2 -3
- package/dist/workers/global/autodiscover.d.ts +2 -3
- package/dist/workers/global/config/parse/index.d.ts +2 -3
- package/dist/workers/repository/init/types.d.ts +3 -4
- package/dist/workers/repository/result.d.ts +4 -5
- package/dist/workers/repository/update/pr/changelog/types.d.ts +7 -8
- package/dist/workers/types.d.ts +17 -18
- package/package.json +3 -3
- package/renovate-schema.json +2 -2
|
@@ -6,10 +6,10 @@ import { RenovateSplit } from "../config/types.js";
|
|
|
6
6
|
import { Attributes, SpanKind, SpanOptions } from "@opentelemetry/api";
|
|
7
7
|
import { ATTR_CODE_FUNCTION_NAME } from "@opentelemetry/semantic-conventions";
|
|
8
8
|
//#region lib/instrumentation/types.d.ts
|
|
9
|
-
type RenovateSpanOptions = {
|
|
9
|
+
export type RenovateSpanOptions = {
|
|
10
10
|
attributes?: RenovateSpanAttributes;
|
|
11
11
|
} & SpanOptions;
|
|
12
|
-
type RenovateSpanAttributes = {
|
|
12
|
+
export type RenovateSpanAttributes = {
|
|
13
13
|
[ATTR_RENOVATE_SPLIT]?: RenovateSplit;
|
|
14
14
|
[ATTR_VCS_GIT_OPERATION_TYPE]?: GitOperationType;
|
|
15
15
|
[ATTR_CODE_FUNCTION_NAME]?: string;
|
|
@@ -20,7 +20,7 @@ type RenovateSpanAttributes = {
|
|
|
20
20
|
/**
|
|
21
21
|
* The instrumentation parameters.
|
|
22
22
|
*/
|
|
23
|
-
interface SpanParameters {
|
|
23
|
+
export interface SpanParameters {
|
|
24
24
|
/**
|
|
25
25
|
* The name of the span
|
|
26
26
|
*/
|
|
@@ -38,7 +38,7 @@ interface SpanParameters {
|
|
|
38
38
|
*/
|
|
39
39
|
kind?: SpanKind;
|
|
40
40
|
}
|
|
41
|
-
interface Report {
|
|
41
|
+
export interface Report {
|
|
42
42
|
problems: BunyanRecord[];
|
|
43
43
|
repositories: Record<string, RepoReport>;
|
|
44
44
|
}
|
|
@@ -48,31 +48,31 @@ interface RepoReport {
|
|
|
48
48
|
packageFiles: Record<string, PackageFile[]>;
|
|
49
49
|
libYearsWithStatus?: LibYearsWithStatus;
|
|
50
50
|
}
|
|
51
|
-
interface LibYearsWithStatus {
|
|
51
|
+
export interface LibYearsWithStatus {
|
|
52
52
|
libYears: LibYears;
|
|
53
53
|
dependencyStatus: DependencyStatus;
|
|
54
54
|
}
|
|
55
|
-
interface LibYears {
|
|
55
|
+
export interface LibYears {
|
|
56
56
|
total: number;
|
|
57
57
|
managers: Record<string, number>;
|
|
58
58
|
}
|
|
59
|
-
interface DependencyStatus {
|
|
59
|
+
export interface DependencyStatus {
|
|
60
60
|
outdated: number;
|
|
61
61
|
total: number;
|
|
62
62
|
}
|
|
63
|
-
declare const ATTR_RENOVATE_SPLIT = "renovate.split";
|
|
63
|
+
export declare const ATTR_RENOVATE_SPLIT = "renovate.split";
|
|
64
64
|
/**
|
|
65
65
|
* The name of a Renovate datasource (ex: `github-tags`, `npm`, `docker`, etc).
|
|
66
66
|
*/
|
|
67
|
-
declare const ATTR_RENOVATE_DATASOURCE = "renovate.datasource";
|
|
67
|
+
export declare const ATTR_RENOVATE_DATASOURCE = "renovate.datasource";
|
|
68
68
|
/**
|
|
69
69
|
* The registry URL of a registry URL as might be used with a datasource and package name.
|
|
70
70
|
*/
|
|
71
|
-
declare const ATTR_RENOVATE_REGISTRY_URL = "renovate.registryUrl";
|
|
71
|
+
export declare const ATTR_RENOVATE_REGISTRY_URL = "renovate.registryUrl";
|
|
72
72
|
/**
|
|
73
73
|
* The package name of a package.
|
|
74
74
|
*/
|
|
75
|
-
declare const ATTR_RENOVATE_PACKAGE_NAME = "renovate.packageName";
|
|
75
|
+
export declare const ATTR_RENOVATE_PACKAGE_NAME = "renovate.packageName";
|
|
76
76
|
/**
|
|
77
77
|
* the Git Version Control System (VCS)'s Operation Type
|
|
78
78
|
*
|
|
@@ -80,13 +80,12 @@ declare const ATTR_RENOVATE_PACKAGE_NAME = "renovate.packageName";
|
|
|
80
80
|
* @see https://opentelemetry.io/docs/specs/semconv/registry/attributes/vcs/
|
|
81
81
|
*
|
|
82
82
|
*/
|
|
83
|
-
declare const ATTR_VCS_GIT_OPERATION_TYPE = "vcs.git.operation.type";
|
|
83
|
+
export declare const ATTR_VCS_GIT_OPERATION_TYPE = "vcs.git.operation.type";
|
|
84
84
|
/**
|
|
85
85
|
* the Git Version Control System (VCS)'s subcommand
|
|
86
86
|
*
|
|
87
87
|
* @see https://opentelemetry.io/docs/specs/semconv/registry/attributes/vcs/
|
|
88
88
|
* */
|
|
89
|
-
declare const ATTR_VCS_GIT_SUBCOMMAND = "vcs.git.subcommand";
|
|
89
|
+
export declare const ATTR_VCS_GIT_SUBCOMMAND = "vcs.git.subcommand";
|
|
90
90
|
//#endregion
|
|
91
|
-
export { ATTR_RENOVATE_DATASOURCE, ATTR_RENOVATE_PACKAGE_NAME, ATTR_RENOVATE_REGISTRY_URL, ATTR_RENOVATE_SPLIT, ATTR_VCS_GIT_OPERATION_TYPE, ATTR_VCS_GIT_SUBCOMMAND, DependencyStatus, LibYears, LibYearsWithStatus, RenovateSpanAttributes, RenovateSpanOptions, Report, SpanParameters };
|
|
92
91
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/logger/index.d.ts
CHANGED
|
@@ -1,24 +1,23 @@
|
|
|
1
1
|
import { BunyanLogLevel, BunyanRecord, BunyanStream, Logger } from "./types.js";
|
|
2
2
|
//#region lib/logger/index.d.ts
|
|
3
|
-
declare function logLevel(): BunyanLogLevel;
|
|
4
|
-
declare const logger: Logger;
|
|
5
|
-
declare function init(): Promise<void>;
|
|
6
|
-
declare function setContext(value: string): void;
|
|
7
|
-
declare function getContext(): any;
|
|
8
|
-
declare function setMeta(obj: Record<string, unknown>): void;
|
|
9
|
-
declare function addMeta(obj: Record<string, unknown>): void;
|
|
10
|
-
declare function removeMeta(fields: string[]): void;
|
|
11
|
-
declare function withMeta<T>(obj: Record<string, unknown>, cb: () => T): T;
|
|
12
|
-
declare function addStream(stream: BunyanStream): void;
|
|
3
|
+
export declare function logLevel(): BunyanLogLevel;
|
|
4
|
+
export declare const logger: Logger;
|
|
5
|
+
export declare function init(): Promise<void>;
|
|
6
|
+
export declare function setContext(value: string): void;
|
|
7
|
+
export declare function getContext(): any;
|
|
8
|
+
export declare function setMeta(obj: Record<string, unknown>): void;
|
|
9
|
+
export declare function addMeta(obj: Record<string, unknown>): void;
|
|
10
|
+
export declare function removeMeta(fields: string[]): void;
|
|
11
|
+
export declare function withMeta<T>(obj: Record<string, unknown>, cb: () => T): T;
|
|
12
|
+
export declare function addStream(stream: BunyanStream): void;
|
|
13
13
|
/**
|
|
14
14
|
* For testing purposes only
|
|
15
15
|
* @param name stream name
|
|
16
16
|
* @param level log level
|
|
17
17
|
* @private
|
|
18
18
|
*/
|
|
19
|
-
declare function levels(name: 'stdout' | 'logfile', level: BunyanLogLevel): void;
|
|
20
|
-
declare function getProblems(): BunyanRecord[];
|
|
21
|
-
declare function clearProblems(): void;
|
|
19
|
+
export declare function levels(name: 'stdout' | 'logfile', level: BunyanLogLevel): void;
|
|
20
|
+
export declare function getProblems(): BunyanRecord[];
|
|
21
|
+
export declare function clearProblems(): void;
|
|
22
22
|
//#endregion
|
|
23
|
-
export { addMeta, addStream, clearProblems, getContext, getProblems, init, levels, logLevel, logger, removeMeta, setContext, setMeta, withMeta };
|
|
24
23
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BunyanLogLevel, BunyanLogger, BunyanSerializers, BunyanStream, Logger } from "./types.js";
|
|
2
2
|
//#region lib/logger/renovate-logger.d.ts
|
|
3
|
-
declare class RenovateLogger implements Logger {
|
|
3
|
+
export declare class RenovateLogger implements Logger {
|
|
4
4
|
private readonly queue;
|
|
5
5
|
readonly logger: Logger;
|
|
6
6
|
readonly once: Logger & {
|
|
@@ -42,5 +42,4 @@ declare class RenovateLogger implements Logger {
|
|
|
42
42
|
private log;
|
|
43
43
|
}
|
|
44
44
|
//#endregion
|
|
45
|
-
export { RenovateLogger };
|
|
46
45
|
//# sourceMappingURL=renovate-logger.d.ts.map
|
package/dist/logger/types.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Stream } from "node:stream";
|
|
2
2
|
import { LogLevel, LogLevelString, LogLevelString as BunyanLogLevel, Serializers as BunyanSerializers, Stream as BunyanStream } from "bunyan";
|
|
3
3
|
//#region lib/logger/types.d.ts
|
|
4
|
-
interface LogError {
|
|
4
|
+
export interface LogError {
|
|
5
5
|
level: LogLevel;
|
|
6
6
|
meta: any;
|
|
7
7
|
msg?: string;
|
|
8
8
|
}
|
|
9
|
-
interface Logger {
|
|
9
|
+
export interface Logger {
|
|
10
10
|
trace(msg: string): void;
|
|
11
11
|
trace(meta: Record<string, any>, msg?: string): void;
|
|
12
12
|
debug(msg: string): void;
|
|
@@ -23,20 +23,20 @@ interface Logger {
|
|
|
23
23
|
reset: () => void;
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
|
-
interface BunyanRecord extends Record<string, any> {
|
|
26
|
+
export interface BunyanRecord extends Record<string, any> {
|
|
27
27
|
level: number;
|
|
28
28
|
msg: string;
|
|
29
29
|
module?: string;
|
|
30
30
|
}
|
|
31
|
-
type BunyanNodeStream = (NodeJS.WritableStream | Stream) & {
|
|
31
|
+
export type BunyanNodeStream = (NodeJS.WritableStream | Stream) & {
|
|
32
32
|
writable?: boolean;
|
|
33
33
|
write: (chunk: BunyanRecord, enc: BufferEncoding, cb: (err?: Error | null) => void) => void;
|
|
34
34
|
};
|
|
35
|
-
type BunyanLogger = ReturnType<typeof import('bunyan').createLogger>;
|
|
36
|
-
interface LogLevelRemap {
|
|
35
|
+
export type BunyanLogger = ReturnType<typeof import('bunyan').createLogger>;
|
|
36
|
+
export interface LogLevelRemap {
|
|
37
37
|
matchMessage: string;
|
|
38
38
|
newLogLevel: LogLevelString;
|
|
39
39
|
}
|
|
40
40
|
//#endregion
|
|
41
|
-
export {
|
|
41
|
+
export type { BunyanLogLevel, BunyanSerializers, BunyanStream };
|
|
42
42
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
//#region lib/manager-list.generated.d.ts
|
|
2
|
-
declare const AllManagersListLiteral: readonly ["ansible", "ansible-galaxy", "ant", "apm", "argocd", "asdf", "azure-pipelines", "batect", "batect-wrapper", "bazel", "bazel-module", "bazelisk", "bicep", "bitbucket-pipelines", "bitrise", "buildkite", "buildpacks", "bun", "bun-version", "bundler", "cake", "cargo", "cdnurl", "circleci", "cloudbuild", "cocoapods", "composer", "conan", "copier", "cpanfile", "crossplane", "crow", "deno", "deps-edn", "devbox", "devcontainer", "docker-compose", "dockerfile", "droneci", "fleet", "flux", "fvm", "git-submodules", "github-actions", "gitlabci", "gitlabci-include", "glasskube", "gleam", "gomod", "gradle", "gradle-wrapper", "haskell-cabal", "helm-requirements", "helm-values", "helmfile", "helmsman", "helmv3", "hermit", "homeassistant-manifest", "homebrew", "html", "jenkins", "jsonnet-bundler", "kotlin-script", "kubernetes", "kustomize", "leiningen", "maven", "maven-wrapper", "meteor", "mint", "mise", "mix", "nix", "nodenv", "npm", "nuget", "nvm", "ocb", "osgi", "pep621", "pep723", "pip-compile", "pip_requirements", "pip_setup", "pipenv", "pixi", "poetry", "pre-commit", "proto", "pub", "puppet", "pyenv", "quadlet", "renovate-config", "ruby-version", "runtime-version", "rust-toolchain", "sbt", "scalafmt", "setup-cfg", "smithy", "sveltos", "swift", "tekton", "terraform", "terraform-version", "terragrunt", "terragrunt-version", "tflint-plugin", "travis", "typst", "unity3d", "velaci", "vendir", "woodpecker", "xcodegen"];
|
|
3
|
-
type ManagerName = typeof AllManagersListLiteral[number];
|
|
2
|
+
export declare const AllManagersListLiteral: readonly ["ansible", "ansible-galaxy", "ant", "apm", "argocd", "asdf", "azure-pipelines", "batect", "batect-wrapper", "bazel", "bazel-module", "bazelisk", "bicep", "bitbucket-pipelines", "bitrise", "buildkite", "buildpacks", "bun", "bun-version", "bundler", "cake", "cargo", "cdnurl", "circleci", "cloudbuild", "cocoapods", "composer", "conan", "copier", "cpanfile", "crossplane", "crow", "deno", "deps-edn", "devbox", "devcontainer", "docker-compose", "dockerfile", "droneci", "fleet", "flux", "fvm", "git-submodules", "github-actions", "gitlabci", "gitlabci-include", "glasskube", "gleam", "gomod", "gradle", "gradle-wrapper", "haskell-cabal", "helm-requirements", "helm-values", "helmfile", "helmsman", "helmv3", "hermit", "homeassistant-manifest", "homebrew", "html", "jenkins", "jsonnet-bundler", "kotlin-script", "kubernetes", "kustomize", "leiningen", "maven", "maven-wrapper", "meteor", "mint", "mise", "mix", "nix", "nodenv", "npm", "nuget", "nvm", "ocb", "osgi", "pep621", "pep723", "pip-compile", "pip_requirements", "pip_setup", "pipenv", "pixi", "poetry", "pre-commit", "proto", "pub", "puppet", "pyenv", "quadlet", "renovate-config", "ruby-version", "runtime-version", "rust-toolchain", "sbt", "scalafmt", "setup-cfg", "smithy", "sveltos", "swift", "tekton", "terraform", "terraform-version", "terragrunt", "terragrunt-version", "tflint-plugin", "travis", "typst", "unity3d", "velaci", "vendir", "woodpecker", "xcodegen"];
|
|
3
|
+
export type ManagerName = typeof AllManagersListLiteral[number];
|
|
4
4
|
//#endregion
|
|
5
|
-
export { AllManagersListLiteral, ManagerName };
|
|
6
5
|
//# sourceMappingURL=manager-list.generated.d.ts.map
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { DatasourceApi, GetPkgReleasesConfig, ReleaseResult } from "./types.js";
|
|
2
2
|
//#region lib/modules/datasource/common.d.ts
|
|
3
|
-
declare function getDatasourceFor(datasource: string): DatasourceApi | null;
|
|
4
|
-
declare function getDefaultVersioning(datasourceName: string | undefined): string;
|
|
5
|
-
declare function isGetPkgReleasesConfig(input: unknown): input is GetPkgReleasesConfig;
|
|
6
|
-
declare function applyVersionCompatibility(releaseResult: ReleaseResult, versionCompatibility: string | undefined, currentCompatibility: string | undefined): ReleaseResult;
|
|
7
|
-
declare function applyExtractVersion(releaseResult: ReleaseResult, extractVersion: string | undefined): ReleaseResult;
|
|
8
|
-
declare function filterValidVersions<Config extends Pick<GetPkgReleasesConfig, 'versioning' | 'datasource'>>(releaseResult: ReleaseResult, config: Config): ReleaseResult;
|
|
9
|
-
declare function sortAndRemoveDuplicates<Config extends Pick<GetPkgReleasesConfig, 'versioning' | 'datasource'>>(releaseResult: ReleaseResult, config: Config): ReleaseResult;
|
|
10
|
-
declare function applyConstraintsFiltering<Config extends Pick<GetPkgReleasesConfig, 'constraintsFiltering' | 'constraintsVersioning' | 'versioning' | 'datasource' | 'constraints' | 'packageName'>>(releaseResult: ReleaseResult, config: Config): ReleaseResult;
|
|
3
|
+
export declare function getDatasourceFor(datasource: string): DatasourceApi | null;
|
|
4
|
+
export declare function getDefaultVersioning(datasourceName: string | undefined): string;
|
|
5
|
+
export declare function isGetPkgReleasesConfig(input: unknown): input is GetPkgReleasesConfig;
|
|
6
|
+
export declare function applyVersionCompatibility(releaseResult: ReleaseResult, versionCompatibility: string | undefined, currentCompatibility: string | undefined): ReleaseResult;
|
|
7
|
+
export declare function applyExtractVersion(releaseResult: ReleaseResult, extractVersion: string | undefined): ReleaseResult;
|
|
8
|
+
export declare function filterValidVersions<Config extends Pick<GetPkgReleasesConfig, 'versioning' | 'datasource'>>(releaseResult: ReleaseResult, config: Config): ReleaseResult;
|
|
9
|
+
export declare function sortAndRemoveDuplicates<Config extends Pick<GetPkgReleasesConfig, 'versioning' | 'datasource'>>(releaseResult: ReleaseResult, config: Config): ReleaseResult;
|
|
10
|
+
export declare function applyConstraintsFiltering<Config extends Pick<GetPkgReleasesConfig, 'constraintsFiltering' | 'constraintsVersioning' | 'versioning' | 'datasource' | 'constraints' | 'packageName'>>(releaseResult: ReleaseResult, config: Config): ReleaseResult;
|
|
11
11
|
//#endregion
|
|
12
|
-
export { applyConstraintsFiltering, applyExtractVersion, applyVersionCompatibility, filterValidVersions, getDatasourceFor, getDefaultVersioning, isGetPkgReleasesConfig, sortAndRemoveDuplicates };
|
|
13
12
|
//# sourceMappingURL=common.d.ts.map
|
|
@@ -2,14 +2,14 @@ import { DatasourceApi, DigestConfig, GetDigestInputConfig, GetPkgReleasesConfig
|
|
|
2
2
|
import { AsyncResult } from "../../util/result.js";
|
|
3
3
|
import { isGetPkgReleasesConfig } from "./common.js";
|
|
4
4
|
//#region lib/modules/datasource/index.d.ts
|
|
5
|
-
declare function getDatasources(): Map<string, DatasourceApi>;
|
|
6
|
-
declare function getDatasourceList(): string[];
|
|
7
|
-
declare function getRawPkgReleases(config: GetPkgReleasesConfig): AsyncResult<ReleaseResult, Error | 'no-datasource' | 'no-package-name' | 'no-result'>;
|
|
8
|
-
declare function applyDatasourceFilters(releaseResult: ReleaseResult, config: GetPkgReleasesConfig): ReleaseResult;
|
|
9
|
-
declare function getPkgReleases(config: GetPkgReleasesConfig): Promise<ReleaseResult | null>;
|
|
10
|
-
declare function supportsDigests(datasource: string | undefined): boolean;
|
|
11
|
-
declare function getDigest(config: GetDigestInputConfig, value?: string): Promise<string | null>;
|
|
12
|
-
declare function getDefaultConfig(datasource: string): Promise<Record<string, unknown>>;
|
|
5
|
+
export declare function getDatasources(): Map<string, DatasourceApi>;
|
|
6
|
+
export declare function getDatasourceList(): string[];
|
|
7
|
+
export declare function getRawPkgReleases(config: GetPkgReleasesConfig): AsyncResult<ReleaseResult, Error | 'no-datasource' | 'no-package-name' | 'no-result'>;
|
|
8
|
+
export declare function applyDatasourceFilters(releaseResult: ReleaseResult, config: GetPkgReleasesConfig): ReleaseResult;
|
|
9
|
+
export declare function getPkgReleases(config: GetPkgReleasesConfig): Promise<ReleaseResult | null>;
|
|
10
|
+
export declare function supportsDigests(datasource: string | undefined): boolean;
|
|
11
|
+
export declare function getDigest(config: GetDigestInputConfig, value?: string): Promise<string | null>;
|
|
12
|
+
export declare function getDefaultConfig(datasource: string): Promise<Record<string, unknown>>;
|
|
13
13
|
//#endregion
|
|
14
|
-
export { DatasourceApi, DigestConfig, GetDigestInputConfig, GetPkgReleasesConfig, GetReleasesConfig, PostprocessReleaseConfig, PostprocessReleaseResult, RegistryStrategy, Release, ReleaseResult, ReleaseTags, SourceUrlSupport,
|
|
14
|
+
export { DatasourceApi, DigestConfig, GetDigestInputConfig, GetPkgReleasesConfig, GetReleasesConfig, PostprocessReleaseConfig, PostprocessReleaseResult, RegistryStrategy, Release, ReleaseResult, ReleaseTags, SourceUrlSupport, isGetPkgReleasesConfig };
|
|
15
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
//#region lib/modules/datasource/npm/schema.d.ts
|
|
3
|
-
declare const NpmResponseVersion: z.ZodObject<{
|
|
3
|
+
export declare const NpmResponseVersion: z.ZodObject<{
|
|
4
4
|
repository: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnknown, z.ZodTransform<any, unknown>>, z.ZodUnion<readonly [z.ZodString, z.ZodType<{
|
|
5
5
|
url?: string | undefined;
|
|
6
6
|
directory?: string | undefined;
|
|
@@ -24,8 +24,8 @@ declare const NpmResponseVersion: z.ZodObject<{
|
|
|
24
24
|
tarball: z.ZodOptional<z.ZodString>;
|
|
25
25
|
}, z.core.$strip>>;
|
|
26
26
|
}, z.core.$strip>;
|
|
27
|
-
type NpmResponseVersion = z.infer<typeof NpmResponseVersion>;
|
|
28
|
-
declare const CachedPackument: z.ZodType<{
|
|
27
|
+
export type NpmResponseVersion = z.infer<typeof NpmResponseVersion>;
|
|
28
|
+
export declare const CachedPackument: z.ZodType<{
|
|
29
29
|
versions?: Record<string, {
|
|
30
30
|
repository?: string | {
|
|
31
31
|
url?: string | undefined;
|
|
@@ -84,7 +84,7 @@ declare const CachedPackument: z.ZodType<{
|
|
|
84
84
|
time?: Record<string, string> | undefined;
|
|
85
85
|
'dist-tags'?: Record<string, string> | undefined;
|
|
86
86
|
}, unknown>>;
|
|
87
|
-
declare const NpmResponse: z.ZodObject<{
|
|
87
|
+
export declare const NpmResponse: z.ZodObject<{
|
|
88
88
|
_id: z.ZodOptional<z.ZodString>;
|
|
89
89
|
name: z.ZodOptional<z.ZodString>;
|
|
90
90
|
versions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -122,7 +122,6 @@ declare const NpmResponse: z.ZodObject<{
|
|
|
122
122
|
time: z.ZodOptional<z.ZodType<Record<string, string>, any, z.core.$ZodTypeInternals<Record<string, string>, any>>>;
|
|
123
123
|
'dist-tags': z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
124
124
|
}, z.core.$strip>;
|
|
125
|
-
type NpmResponse = z.infer<typeof NpmResponse>;
|
|
125
|
+
export type NpmResponse = z.infer<typeof NpmResponse>;
|
|
126
126
|
//#endregion
|
|
127
|
-
export { CachedPackument, NpmResponse, NpmResponseVersion };
|
|
128
127
|
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -4,7 +4,7 @@ import { ModuleApi } from "../../types/base.js";
|
|
|
4
4
|
import "../../types/index.js";
|
|
5
5
|
import { ConstraintsFilter, CustomDatasourceConfig } from "../../config/types.js";
|
|
6
6
|
//#region lib/modules/datasource/types.d.ts
|
|
7
|
-
interface GetDigestInputConfig {
|
|
7
|
+
export interface GetDigestInputConfig {
|
|
8
8
|
datasource: string;
|
|
9
9
|
packageName: string;
|
|
10
10
|
defaultRegistryUrls?: string[];
|
|
@@ -16,14 +16,14 @@ interface GetDigestInputConfig {
|
|
|
16
16
|
currentDigest?: string;
|
|
17
17
|
replacementName?: string;
|
|
18
18
|
}
|
|
19
|
-
interface DigestConfig {
|
|
19
|
+
export interface DigestConfig {
|
|
20
20
|
packageName: string;
|
|
21
21
|
lookupName?: string;
|
|
22
22
|
registryUrl?: string;
|
|
23
23
|
currentValue?: string;
|
|
24
24
|
currentDigest?: string;
|
|
25
25
|
}
|
|
26
|
-
interface GetReleasesConfig {
|
|
26
|
+
export interface GetReleasesConfig {
|
|
27
27
|
customDatasources?: Record<string, CustomDatasourceConfig>;
|
|
28
28
|
datasource?: string;
|
|
29
29
|
packageName: string;
|
|
@@ -36,7 +36,7 @@ interface GetReleasesConfig {
|
|
|
36
36
|
constraintsVersioning?: Partial<Record<AdditionalConstraintName, string>>;
|
|
37
37
|
constraintsFiltering?: ConstraintsFilter;
|
|
38
38
|
}
|
|
39
|
-
interface GetPkgReleasesConfig {
|
|
39
|
+
export interface GetPkgReleasesConfig {
|
|
40
40
|
customDatasources?: Record<string, CustomDatasourceConfig>;
|
|
41
41
|
npmrc?: string;
|
|
42
42
|
defaultRegistryUrls?: string[];
|
|
@@ -59,7 +59,7 @@ interface GetPkgReleasesConfig {
|
|
|
59
59
|
constraintsVersioning?: Partial<Record<AdditionalConstraintName, string>>;
|
|
60
60
|
registryStrategy?: RegistryStrategy;
|
|
61
61
|
}
|
|
62
|
-
interface Release {
|
|
62
|
+
export interface Release {
|
|
63
63
|
changelogContent?: string;
|
|
64
64
|
changelogUrl?: string;
|
|
65
65
|
checksumUrl?: string;
|
|
@@ -82,12 +82,12 @@ interface Release {
|
|
|
82
82
|
isLatest?: boolean;
|
|
83
83
|
attestation?: boolean;
|
|
84
84
|
}
|
|
85
|
-
interface ReleaseTags {
|
|
85
|
+
export interface ReleaseTags {
|
|
86
86
|
/** The latest release, according to the datasource **/
|
|
87
87
|
latest?: string;
|
|
88
88
|
[key: string]: string | undefined;
|
|
89
89
|
}
|
|
90
|
-
interface ReleaseResult {
|
|
90
|
+
export interface ReleaseResult {
|
|
91
91
|
deprecationMessage?: string;
|
|
92
92
|
isPrivate?: boolean;
|
|
93
93
|
releases: Release[];
|
|
@@ -108,12 +108,12 @@ interface ReleaseResult {
|
|
|
108
108
|
isAbandoned?: boolean;
|
|
109
109
|
respectLatest?: boolean;
|
|
110
110
|
}
|
|
111
|
-
interface PostprocessReleaseConfig {
|
|
111
|
+
export interface PostprocessReleaseConfig {
|
|
112
112
|
packageName: string;
|
|
113
113
|
registryUrl: string | null;
|
|
114
114
|
}
|
|
115
|
-
type PostprocessReleaseResult = Release | 'reject';
|
|
116
|
-
type RegistryStrategy =
|
|
115
|
+
export type PostprocessReleaseResult = Release | 'reject';
|
|
116
|
+
export type RegistryStrategy =
|
|
117
117
|
/**
|
|
118
118
|
* Only the first registry URL is queried.
|
|
119
119
|
*
|
|
@@ -141,8 +141,8 @@ type RegistryStrategy =
|
|
|
141
141
|
* Returns `null` when all registries fail.
|
|
142
142
|
*/
|
|
143
143
|
'merge';
|
|
144
|
-
type SourceUrlSupport = 'package' | 'release' | 'none';
|
|
145
|
-
interface DatasourceApi extends ModuleApi {
|
|
144
|
+
export type SourceUrlSupport = 'package' | 'release' | 'none';
|
|
145
|
+
export interface DatasourceApi extends ModuleApi {
|
|
146
146
|
id: string;
|
|
147
147
|
getDigest?(config: DigestConfig, newValue?: string): Promise<string | null>;
|
|
148
148
|
getReleases(config: GetReleasesConfig): Promise<ReleaseResult | null>;
|
|
@@ -200,5 +200,4 @@ interface DatasourceApi extends ModuleApi {
|
|
|
200
200
|
postprocessRelease(config: PostprocessReleaseConfig, release: Release): Promise<PostprocessReleaseResult>;
|
|
201
201
|
}
|
|
202
202
|
//#endregion
|
|
203
|
-
export { DatasourceApi, DigestConfig, GetDigestInputConfig, GetPkgReleasesConfig, GetReleasesConfig, PostprocessReleaseConfig, PostprocessReleaseResult, RegistryStrategy, Release, ReleaseResult, ReleaseTags, SourceUrlSupport };
|
|
204
203
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../types.js";
|
|
2
2
|
//#region lib/modules/manager/custom/jsonata/types.d.ts
|
|
3
|
-
interface JSONataManagerTemplates {
|
|
3
|
+
export interface JSONataManagerTemplates {
|
|
4
4
|
depNameTemplate?: string;
|
|
5
5
|
packageNameTemplate?: string;
|
|
6
6
|
datasourceTemplate?: string;
|
|
@@ -17,10 +17,9 @@ interface JSONataManagerTemplates {
|
|
|
17
17
|
*/
|
|
18
18
|
autoReplaceStringTemplate?: string;
|
|
19
19
|
}
|
|
20
|
-
interface JSONataManagerConfig extends JSONataManagerTemplates {
|
|
20
|
+
export interface JSONataManagerConfig extends JSONataManagerTemplates {
|
|
21
21
|
fileFormat: string;
|
|
22
22
|
matchStrings: string[];
|
|
23
23
|
}
|
|
24
24
|
//#endregion
|
|
25
|
-
export { JSONataManagerConfig, JSONataManagerTemplates };
|
|
26
25
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MatchStringsStrategy } from "../../../../config/types.js";
|
|
2
2
|
//#region lib/modules/manager/custom/regex/types.d.ts
|
|
3
|
-
interface RegexManagerTemplates {
|
|
3
|
+
export interface RegexManagerTemplates {
|
|
4
4
|
depNameTemplate?: string;
|
|
5
5
|
packageNameTemplate?: string;
|
|
6
6
|
datasourceTemplate?: string;
|
|
@@ -11,11 +11,10 @@ interface RegexManagerTemplates {
|
|
|
11
11
|
extractVersionTemplate?: string;
|
|
12
12
|
registryUrlTemplate?: string;
|
|
13
13
|
}
|
|
14
|
-
interface RegexManagerConfig extends RegexManagerTemplates {
|
|
14
|
+
export interface RegexManagerConfig extends RegexManagerTemplates {
|
|
15
15
|
matchStrings: string[];
|
|
16
16
|
matchStringsStrategy?: MatchStringsStrategy;
|
|
17
17
|
autoReplaceStringTemplate?: string;
|
|
18
18
|
}
|
|
19
19
|
//#endregion
|
|
20
|
-
export { RegexManagerConfig, RegexManagerTemplates };
|
|
21
20
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -2,12 +2,11 @@ import { RegexManagerConfig } from "./regex/types.js";
|
|
|
2
2
|
import { JSONataManagerConfig } from "./jsonata/types.js";
|
|
3
3
|
import "./utils.js";
|
|
4
4
|
//#region lib/modules/manager/custom/types.d.ts
|
|
5
|
-
interface CustomExtractConfig extends Partial<RegexManagerConfig>, Partial<JSONataManagerConfig> {}
|
|
6
|
-
type CustomManagerName = 'jsonata' | 'regex';
|
|
7
|
-
interface CustomManager extends Partial<RegexManagerConfig>, Partial<JSONataManagerConfig> {
|
|
5
|
+
export interface CustomExtractConfig extends Partial<RegexManagerConfig>, Partial<JSONataManagerConfig> {}
|
|
6
|
+
export type CustomManagerName = 'jsonata' | 'regex';
|
|
7
|
+
export interface CustomManager extends Partial<RegexManagerConfig>, Partial<JSONataManagerConfig> {
|
|
8
8
|
customType: CustomManagerName;
|
|
9
9
|
managerFilePatterns: string[];
|
|
10
10
|
}
|
|
11
11
|
//#endregion
|
|
12
|
-
export { CustomExtractConfig, CustomManager, CustomManagerName };
|
|
13
12
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -3,16 +3,16 @@ import { MaybePromise } from "../../types/index.js";
|
|
|
3
3
|
import { ExtractConfig, GlobalManagerConfig, ManagerApi, PackageFile, PackageFileContent, RangeConfig } from "./types.js";
|
|
4
4
|
import { hashMap } from "./fingerprint.generated.js";
|
|
5
5
|
//#region lib/modules/manager/index.d.ts
|
|
6
|
-
declare function getManagerList(): string[];
|
|
7
|
-
declare function getManagers(): Map<string, ManagerApi>;
|
|
8
|
-
declare const allManagersList: string[];
|
|
9
|
-
declare function get<T extends keyof ManagerApi>(manager: string, name: T): ManagerApi[T] | undefined;
|
|
10
|
-
declare function detectAllGlobalConfig(): Promise<GlobalManagerConfig>;
|
|
11
|
-
declare function extractAllPackageFiles(manager: string, config: ExtractConfig, files: string[]): Promise<PackageFile[] | null>;
|
|
12
|
-
declare function extractPackageFile(manager: string, content: string, fileName: string, config: ExtractConfig): MaybePromise<PackageFileContent | null>;
|
|
13
|
-
declare function getRangeStrategy(config: RangeConfig): RangeStrategy | null;
|
|
14
|
-
declare function getPrettyDepType(manager: string, depType: string): string | undefined;
|
|
15
|
-
declare function isKnownManager(mgr: string): boolean;
|
|
6
|
+
export declare function getManagerList(): string[];
|
|
7
|
+
export declare function getManagers(): Map<string, ManagerApi>;
|
|
8
|
+
export declare const allManagersList: string[];
|
|
9
|
+
export declare function get<T extends keyof ManagerApi>(manager: string, name: T): ManagerApi[T] | undefined;
|
|
10
|
+
export declare function detectAllGlobalConfig(): Promise<GlobalManagerConfig>;
|
|
11
|
+
export declare function extractAllPackageFiles(manager: string, config: ExtractConfig, files: string[]): Promise<PackageFile[] | null>;
|
|
12
|
+
export declare function extractPackageFile(manager: string, content: string, fileName: string, config: ExtractConfig): MaybePromise<PackageFileContent | null>;
|
|
13
|
+
export declare function getRangeStrategy(config: RangeConfig): RangeStrategy | null;
|
|
14
|
+
export declare function getPrettyDepType(manager: string, depType: string): string | undefined;
|
|
15
|
+
export declare function isKnownManager(mgr: string): boolean;
|
|
16
16
|
/**
|
|
17
17
|
* Filter a list of managers based on enabled managers.
|
|
18
18
|
*
|
|
@@ -20,7 +20,7 @@ declare function isKnownManager(mgr: string): boolean;
|
|
|
20
20
|
* that matches the enabled manager names, including custom managers. If enabledManagers
|
|
21
21
|
* is not provided or is an empty array, it returns the full list of managers.
|
|
22
22
|
*/
|
|
23
|
-
declare function getEnabledManagersList(enabledManagers?: string[]): string[];
|
|
23
|
+
export declare function getEnabledManagersList(enabledManagers?: string[]): string[];
|
|
24
24
|
//#endregion
|
|
25
|
-
export {
|
|
25
|
+
export { hashMap };
|
|
26
26
|
//# sourceMappingURL=index.d.ts.map
|