renovate 40.49.12 → 40.51.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/data/monorepo.json +1 -0
- package/dist/modules/datasource/galaxy-collection/index.d.ts +1 -0
- package/dist/modules/datasource/galaxy-collection/index.js +12 -3
- package/dist/modules/datasource/galaxy-collection/index.js.map +1 -1
- package/dist/modules/datasource/galaxy-collection/schema.d.ts +6 -6
- package/dist/modules/datasource/galaxy-collection/schema.js +1 -1
- package/dist/modules/datasource/galaxy-collection/schema.js.map +1 -1
- package/package.json +1 -1
package/dist/data/monorepo.json
CHANGED
@@ -610,6 +610,7 @@
|
|
610
610
|
"utoipa": "https://github.com/juhaku/utoipa",
|
611
611
|
"vaadin-hilla": "https://github.com/vaadin/hilla",
|
612
612
|
"vaadinWebComponents": "https://github.com/vaadin/web-components",
|
613
|
+
"vanilla-extract": "https://github.com/vanilla-extract-css/vanilla-extract",
|
613
614
|
"visx": "https://github.com/airbnb/visx",
|
614
615
|
"vitest": "https://github.com/vitest-dev/vitest",
|
615
616
|
"vstest": "https://github.com/microsoft/vstest",
|
@@ -12,5 +12,6 @@ export declare class GalaxyCollectionDatasource extends Datasource {
|
|
12
12
|
readonly sourceUrlSupport = "release";
|
13
13
|
readonly sourceUrlNote = "The `sourceUrl` is determined from the `repository` field in the results.";
|
14
14
|
getReleases({ packageName, registryUrl, }: GetReleasesConfig): Promise<ReleaseResult | null>;
|
15
|
+
constructBaseUrl(registryUrl: string, packageName: string): string;
|
15
16
|
getVersionDetails(packageName: string, versionsUrl: string, basicRelease: Release): Promise<Release>;
|
16
17
|
}
|
@@ -11,6 +11,7 @@ const url_1 = require("../../../util/url");
|
|
11
11
|
const pep440Versioning = tslib_1.__importStar(require("../../versioning/pep440"));
|
12
12
|
const datasource_1 = require("../datasource");
|
13
13
|
const schema_1 = require("./schema");
|
14
|
+
const ansibleProtocolRegex = (0, regex_1.regEx)(/^\S+\/api\/ansible\/.+/);
|
14
15
|
const repositoryRegex = (0, regex_1.regEx)(/^\S+\/api\/galaxy\/content\/(?<repository>[^/]+)/);
|
15
16
|
class GalaxyCollectionDatasource extends datasource_1.Datasource {
|
16
17
|
static id = 'galaxy-collection';
|
@@ -28,9 +29,7 @@ class GalaxyCollectionDatasource extends datasource_1.Datasource {
|
|
28
29
|
sourceUrlSupport = 'release';
|
29
30
|
sourceUrlNote = 'The `sourceUrl` is determined from the `repository` field in the results.';
|
30
31
|
async getReleases({ packageName, registryUrl, }) {
|
31
|
-
const
|
32
|
-
const repository = repositoryRegex.exec(registryUrl)?.groups?.repository ?? 'published';
|
33
|
-
const baseUrl = (0, url_1.ensureTrailingSlash)((0, url_1.joinUrlParts)(registryUrl, 'v3/plugin/ansible/content', repository, 'collections/index', namespace, projectName));
|
32
|
+
const baseUrl = this.constructBaseUrl(registryUrl, packageName);
|
34
33
|
const { val: baseProject, err: baseErr } = await this.http
|
35
34
|
.getJsonSafe(baseUrl, schema_1.GalaxyV3)
|
36
35
|
.onError((err) => {
|
@@ -68,6 +67,16 @@ class GalaxyCollectionDatasource extends datasource_1.Datasource {
|
|
68
67
|
sourceUrl: sourceUrlOfHighestRelease,
|
69
68
|
};
|
70
69
|
}
|
70
|
+
constructBaseUrl(registryUrl, packageName) {
|
71
|
+
const [namespace, projectName] = packageName.split('.');
|
72
|
+
if (ansibleProtocolRegex.test(registryUrl)) {
|
73
|
+
return (0, url_1.ensureTrailingSlash)((0, url_1.joinUrlParts)(registryUrl, 'api/v3/collections', namespace, projectName));
|
74
|
+
}
|
75
|
+
else {
|
76
|
+
const repository = repositoryRegex.exec(registryUrl)?.groups?.repository ?? 'published';
|
77
|
+
return (0, url_1.ensureTrailingSlash)((0, url_1.joinUrlParts)(registryUrl, 'v3/plugin/ansible/content', repository, 'collections/index', namespace, projectName));
|
78
|
+
}
|
79
|
+
}
|
71
80
|
async getVersionDetails(packageName, versionsUrl, basicRelease) {
|
72
81
|
const detailedVersionUrl = (0, url_1.ensureTrailingSlash)((0, url_1.joinUrlParts)(versionsUrl, basicRelease.version));
|
73
82
|
const { val: rawDetailedVersion, err: versionsErr } = await this.http
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../lib/modules/datasource/galaxy-collection/index.ts"],"names":[],"mappings":";;;;AAAA,kEAAkC;AAClC,4CAAyC;AACzC,qEAA8D;AAC9D,kEAA4C;AAC5C,+CAA4C;AAC5C,2CAAsE;AACtE,kFAA4D;AAC5D,8CAA2C;AAE3C,qCAA+E;AAE/E,MAAM,eAAe,GAAG,IAAA,aAAK,EAC3B,kDAAkD,CACnD,CAAC;AAEF,MAAa,0BAA2B,SAAQ,uBAAU;IACxD,MAAM,CAAU,EAAE,GAAG,mBAAmB,CAAC;IAEzC;QACE,KAAK,CAAC,0BAA0B,CAAC,EAAE,CAAC,CAAC;IACvC,CAAC;IAEiB,qBAAqB,GAAG,IAAI,CAAC;IAE7B,gBAAgB,GAAG,MAAM,CAAC;IAE1B,mBAAmB,GAAG,CAAC,iCAAiC,CAAC,CAAC;IAE1D,iBAAiB,GAAG,gBAAgB,CAAC,EAAE,CAAC;IAExC,uBAAuB,GAAG,IAAI,CAAC;IACxC,oBAAoB,GAC3B,iFAAiF,CAAC;IACpF,qEAAqE;IACrE,2EAA2E;IACzD,gBAAgB,GAAG,SAAS,CAAC;IAC7B,aAAa,GAC7B,2EAA2E,CAAC;IAMxE,AAAN,KAAK,CAAC,WAAW,CAAC,EAChB,WAAW,EACX,WAAW,GACO;QAClB,MAAM,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../lib/modules/datasource/galaxy-collection/index.ts"],"names":[],"mappings":";;;;AAAA,kEAAkC;AAClC,4CAAyC;AACzC,qEAA8D;AAC9D,kEAA4C;AAC5C,+CAA4C;AAC5C,2CAAsE;AACtE,kFAA4D;AAC5D,8CAA2C;AAE3C,qCAA+E;AAE/E,MAAM,oBAAoB,GAAG,IAAA,aAAK,EAAC,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C;YAChB,IAAI,CAAC,mBAAmB,CAAC,WAAW,CAAC,CAAC;QACxC,CAAC;QAED,OAAO;YACL,GAAG,kBAAkB;YACrB,YAAY,EAAE,YAAY,CAAC,YAAY;SACxC,CAAC;IACJ,CAAC;;AAhJH,gEAiJC;AArHO;IAJL,IAAA,iBAAK,EAAC;QACL,SAAS,EAAE,cAAc,0BAA0B,CAAC,EAAE,EAAE;QACxD,GAAG,EAAE,CAAC,EAAE,WAAW,EAAqB,EAAE,EAAE,CAAC,eAAe,WAAW,EAAE;KAC1E,CAAC;6DA8DD;AA8BK;IANL,IAAA,iBAAK,EAAC;QACL,SAAS,EAAE,cAAc,0BAA0B,CAAC,EAAE,EAAE;QACxD,GAAG,EAAE,CAAC,YAAoB,EAAE,WAAmB,EAAE,YAAqB,EAAE,EAAE,CACxE,qBAAqB,WAAW,IAAI,YAAY,CAAC,OAAO,EAAE;QAC5D,UAAU,EAAE,KAAK,EAAE,SAAS;KAC7B,CAAC;mEA0BD","sourcesContent":["import is from '@sindresorhus/is';\nimport { logger } from '../../../logger';\nimport { cache } from '../../../util/cache/package/decorator';\nimport * as p from '../../../util/promises';\nimport { regEx } from '../../../util/regex';\nimport { ensureTrailingSlash, joinUrlParts } from '../../../util/url';\nimport * as pep440Versioning from '../../versioning/pep440';\nimport { Datasource } from '../datasource';\nimport type { GetReleasesConfig, Release, ReleaseResult } from '../types';\nimport { GalaxyV3, GalaxyV3DetailedVersion, GalaxyV3Versions } from './schema';\n\nconst ansibleProtocolRegex = regEx(/^\\S+\\/api\\/ansible\\/.+/);\nconst repositoryRegex = regEx(\n /^\\S+\\/api\\/galaxy\\/content\\/(?<repository>[^/]+)/,\n);\n\nexport class GalaxyCollectionDatasource extends Datasource {\n static readonly id = 'galaxy-collection';\n\n constructor() {\n super(GalaxyCollectionDatasource.id);\n }\n\n override readonly customRegistrySupport = true;\n\n override readonly registryStrategy = 'hunt';\n\n override readonly defaultRegistryUrls = ['https://galaxy.ansible.com/api/'];\n\n override readonly defaultVersioning = pep440Versioning.id;\n\n override readonly releaseTimestampSupport = true;\n override releaseTimestampNote =\n 'The release timestamp is determined from the `created_at` field in the results.';\n // sourceUrl is returned in each release as well as the ReleaseResult\n // the one present in release result is the sourceUrl of the latest release\n override readonly sourceUrlSupport = 'release';\n override readonly sourceUrlNote =\n 'The `sourceUrl` is determined from the `repository` field in the results.';\n\n @cache({\n namespace: `datasource-${GalaxyCollectionDatasource.id}`,\n key: ({ packageName }: GetReleasesConfig) => `getReleases:${packageName}`,\n })\n async getReleases({\n packageName,\n registryUrl,\n }: GetReleasesConfig): Promise<ReleaseResult | null> {\n const baseUrl = this.constructBaseUrl(registryUrl!, packageName);\n\n const { val: baseProject, err: baseErr } = await this.http\n .getJsonSafe(baseUrl, GalaxyV3)\n .onError((err) => {\n logger.warn(\n { url: baseUrl, datasource: this.id, packageName, err },\n 'Error fetching from url',\n );\n })\n .unwrap();\n if (baseErr) {\n this.handleGenericErrors(baseErr);\n }\n\n const versionsUrl = ensureTrailingSlash(joinUrlParts(baseUrl, 'versions'));\n\n const { val: rawReleases, err: versionsErr } = await this.http\n .getJsonSafe(versionsUrl, GalaxyV3Versions)\n .onError((err) => {\n logger.warn(\n { url: versionsUrl, datasource: this.id, packageName, err },\n 'Error fetching from url',\n );\n })\n .unwrap();\n if (versionsErr) {\n this.handleGenericErrors(versionsErr);\n }\n\n const releases = rawReleases.map((value) => {\n return {\n ...value,\n isDeprecated: baseProject.deprecated,\n };\n });\n\n // asynchronously get release details\n const enrichedReleases = await p.map(\n releases,\n (release) => this.getVersionDetails(packageName, versionsUrl, release),\n { concurrency: 4 },\n );\n\n // filter failed versions\n const filteredReleases = enrichedReleases.filter(is.truthy);\n // extract base information which are only provided on the release from the newest release\n\n // Find the source URL of the highest version release\n const sourceUrlOfHighestRelease = enrichedReleases.find(\n (release) => baseProject.highest_version.version === release.version,\n )?.sourceUrl;\n\n return {\n releases: filteredReleases,\n sourceUrl: sourceUrlOfHighestRelease,\n };\n }\n\n constructBaseUrl(registryUrl: string, packageName: string): string {\n const [namespace, projectName] = packageName.split('.');\n if (ansibleProtocolRegex.test(registryUrl)) {\n return ensureTrailingSlash(\n joinUrlParts(registryUrl, 'api/v3/collections', namespace, projectName),\n );\n } else {\n const repository =\n repositoryRegex.exec(registryUrl)?.groups?.repository ?? 'published';\n return ensureTrailingSlash(\n joinUrlParts(\n registryUrl,\n 'v3/plugin/ansible/content',\n repository,\n 'collections/index',\n namespace,\n projectName,\n ),\n );\n }\n }\n\n @cache({\n namespace: `datasource-${GalaxyCollectionDatasource.id}`,\n key: (_packageName: string, versionsUrl: string, basicRelease: Release) =>\n `getVersionDetails:${versionsUrl}:${basicRelease.version}`,\n ttlMinutes: 10080, // 1 week\n })\n async getVersionDetails(\n packageName: string,\n versionsUrl: string,\n basicRelease: Release,\n ): Promise<Release> {\n const detailedVersionUrl = ensureTrailingSlash(\n joinUrlParts(versionsUrl, basicRelease.version),\n );\n const { val: rawDetailedVersion, err: versionsErr } = await this.http\n .getJsonSafe(detailedVersionUrl, GalaxyV3DetailedVersion)\n .onError((err) => {\n logger.warn(\n { url: versionsUrl, datasource: this.id, packageName, err },\n 'Error fetching from url',\n );\n })\n .unwrap();\n if (versionsErr) {\n this.handleGenericErrors(versionsErr);\n }\n\n return {\n ...rawDetailedVersion,\n isDeprecated: basicRelease.isDeprecated,\n };\n }\n}\n"]}
|
@@ -63,23 +63,23 @@ export declare const GalaxyV3DetailedVersion: z.ZodEffects<z.ZodObject<{
|
|
63
63
|
sha256: string;
|
64
64
|
}>;
|
65
65
|
metadata: z.ZodObject<{
|
66
|
-
homepage: z.ZodString
|
66
|
+
homepage: z.ZodOptional<z.ZodString>;
|
67
67
|
repository: z.ZodString;
|
68
68
|
dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
69
69
|
}, "strip", z.ZodTypeAny, {
|
70
|
-
homepage: string;
|
71
70
|
repository: string;
|
71
|
+
homepage?: string | undefined;
|
72
72
|
dependencies?: Record<string, string> | undefined;
|
73
73
|
}, {
|
74
|
-
homepage: string;
|
75
74
|
repository: string;
|
75
|
+
homepage?: string | undefined;
|
76
76
|
dependencies?: Record<string, string> | undefined;
|
77
77
|
}>;
|
78
78
|
}, "strip", z.ZodTypeAny, {
|
79
79
|
version: string;
|
80
80
|
metadata: {
|
81
|
-
homepage: string;
|
82
81
|
repository: string;
|
82
|
+
homepage?: string | undefined;
|
83
83
|
dependencies?: Record<string, string> | undefined;
|
84
84
|
};
|
85
85
|
download_url: string;
|
@@ -89,8 +89,8 @@ export declare const GalaxyV3DetailedVersion: z.ZodEffects<z.ZodObject<{
|
|
89
89
|
}, {
|
90
90
|
version: string;
|
91
91
|
metadata: {
|
92
|
-
homepage: string;
|
93
92
|
repository: string;
|
93
|
+
homepage?: string | undefined;
|
94
94
|
dependencies?: Record<string, string> | undefined;
|
95
95
|
};
|
96
96
|
download_url: string;
|
@@ -106,8 +106,8 @@ export declare const GalaxyV3DetailedVersion: z.ZodEffects<z.ZodObject<{
|
|
106
106
|
}, {
|
107
107
|
version: string;
|
108
108
|
metadata: {
|
109
|
-
homepage: string;
|
110
109
|
repository: string;
|
110
|
+
homepage?: string | undefined;
|
111
111
|
dependencies?: Record<string, string> | undefined;
|
112
112
|
};
|
113
113
|
download_url: string;
|
@@ -32,7 +32,7 @@ exports.GalaxyV3DetailedVersion = zod_1.z
|
|
32
32
|
sha256: zod_1.z.string(),
|
33
33
|
}),
|
34
34
|
metadata: zod_1.z.object({
|
35
|
-
homepage: zod_1.z.string(),
|
35
|
+
homepage: zod_1.z.string().optional(),
|
36
36
|
repository: zod_1.z.string(),
|
37
37
|
dependencies: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).optional(),
|
38
38
|
}),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../lib/modules/datasource/galaxy-collection/schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,uDAAyD;AAG5C,QAAA,QAA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AAC,MAAM;QAChC,YAAY,EAAE,KAAK,CAAC,QAAQ,CAAC,YAAY;QACzC,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,UAAU;KACrC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { MaybeTimestamp } from '../../../util/timestamp';\n\nexport type GalaxyV3 = z.infer<typeof GalaxyV3>;\nexport const GalaxyV3 = z.object({\n deprecated: z.boolean(),\n highest_version: z.object({\n version: z.string(),\n }),\n});\n\nexport type GalaxyV3Versions = z.infer<typeof GalaxyV3Versions>;\nexport const GalaxyV3Versions = z\n .object({\n data: z.array(\n z.object({\n version: z.string(),\n created_at: MaybeTimestamp,\n }),\n ),\n })\n .transform(({ data }) => {\n return data.map((value) => {\n return {\n version: value.version,\n releaseTimestamp: value.created_at,\n };\n });\n });\n\nexport type GalaxyV3DetailedVersion = z.infer<typeof GalaxyV3DetailedVersion>;\nexport const GalaxyV3DetailedVersion = z\n .object({\n version: z.string(),\n download_url: z.string(),\n artifact: z.object({\n sha256: z.string(),\n }),\n metadata: z.object({\n homepage: z.string().optional(),\n repository: z.string(),\n dependencies: z.record(z.string(), z.string()).optional(),\n }),\n })\n .transform((value) => {\n return {\n version: value.version,\n downloadUrl: value.download_url,\n newDigest: value.artifact.sha256,\n dependencies: value.metadata.dependencies,\n sourceUrl: value.metadata.repository,\n };\n });\n"]}
|