renovate 39.247.0 → 39.248.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.
@@ -42,7 +42,7 @@ class GithubRunnersDatasource extends datasource_1.Datasource {
42
42
  windows: [
43
43
  { version: '2025' },
44
44
  { version: '2022' },
45
- { version: '2019' },
45
+ { version: '2019', isDeprecated: true },
46
46
  { version: '2016', isDeprecated: true },
47
47
  ],
48
48
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../lib/modules/datasource/github-runners/index.ts"],"names":[],"mappings":";;;AAAA,oDAAmE;AACnE,8CAA2C;AAG3C,MAAa,uBAAwB,SAAQ,uBAAU;IACrD,MAAM,CAAU,EAAE,GAAG,gBAAgB,CAAC;IAEpB,gBAAgB,GAAG,SAAS,CAAC;IAC7B,aAAa,GAC7B,2DAA2D,CAAC;IAE9D;;;;;;OAMG;IACK,MAAM,CAAU,QAAQ,GAA0C;QACxE,MAAM,EAAE;YACN,EAAE,OAAO,EAAE,OAAO,EAAE;YACpB,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,KAAK,EAAE;YACzC,EAAE,OAAO,EAAE,OAAO,EAAE;YACpB,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,KAAK,EAAE;YACzC,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE;YACxC,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE;YACxC,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE;SACzC;QACD,KAAK,EAAE;YACL,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE;YAClC,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE;YACxC,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,KAAK,EAAE;YACzC,EAAE,OAAO,EAAE,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MAAM,aAAa,GAAyB,QAAQ;YAClD,CAAC,CAAC;gBACE,QAAQ;gBACR,SAAS,EAAE,0CAA0C;aACtD;YACH,CAAC,CAAC,IAAI,CAAC;QACT,OAAO,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;IACxC,CAAC;;AAhFH,0DAiFC","sourcesContent":["import { id as dockerVersioningId } from '../../versioning/docker';\nimport { Datasource } from '../datasource';\nimport type { GetReleasesConfig, Release, ReleaseResult } from '../types';\n\nexport class GithubRunnersDatasource extends Datasource {\n static readonly id = 'github-runners';\n\n override readonly sourceUrlSupport = 'package';\n override readonly sourceUrlNote =\n 'We use the URL: https://github.com/actions/runner-images.';\n\n /**\n * Unstable runners must have the `isStable: false` property.\n * Deprecated runners must have the `isDeprecated: true` property.\n * Stable runners should have no extra properties.\n * For more details, read the github-runners datasource readme.\n * Check https://github.blog/changelog/label/actions/ for stable and deprecation dates.\n */\n private static readonly releases: Record<string, Release[] | undefined> = {\n ubuntu: [\n { version: '24.04' },\n { version: '24.04-arm', isStable: false },\n { version: '22.04' },\n { version: '22.04-arm', isStable: false },\n { version: '20.04', isDeprecated: true },\n { version: '18.04', isDeprecated: true },\n { version: '16.04', isDeprecated: true },\n ],\n macos: [\n { version: '15', isStable: false },\n { version: '15-large', isStable: false },\n { version: '15-xlarge', isStable: false },\n { version: '14' },\n { version: '14-large' },\n { version: '14-xlarge' },\n { version: '13' },\n { version: '13-large' },\n { version: '13-xlarge' },\n { version: '12-large', isDeprecated: true },\n { version: '12', isDeprecated: true },\n { version: '11', isDeprecated: true },\n { version: '10.15', isDeprecated: true },\n ],\n windows: [\n { version: '2025' },\n { version: '2022' },\n { version: '2019' },\n { version: '2016', isDeprecated: true },\n ],\n };\n\n public static isValidRunner(\n runnerName: string,\n runnerVersion: string,\n ): boolean {\n const runnerReleases = GithubRunnersDatasource.releases[runnerName];\n if (!runnerReleases) {\n return false;\n }\n\n const versionExists = runnerReleases.some(\n ({ version }) => version === runnerVersion,\n );\n\n return runnerVersion === 'latest' || versionExists;\n }\n\n override readonly defaultVersioning = dockerVersioningId;\n\n constructor() {\n super(GithubRunnersDatasource.id);\n }\n\n override getReleases({\n packageName,\n }: GetReleasesConfig): Promise<ReleaseResult | null> {\n const releases = GithubRunnersDatasource.releases[packageName];\n const releaseResult: ReleaseResult | null = releases\n ? {\n releases,\n sourceUrl: 'https://github.com/actions/runner-images',\n }\n : null;\n return Promise.resolve(releaseResult);\n }\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../lib/modules/datasource/github-runners/index.ts"],"names":[],"mappings":";;;AAAA,oDAAmE;AACnE,8CAA2C;AAG3C,MAAa,uBAAwB,SAAQ,uBAAU;IACrD,MAAM,CAAU,EAAE,GAAG,gBAAgB,CAAC;IAEpB,gBAAgB,GAAG,SAAS,CAAC;IAC7B,aAAa,GAC7B,2DAA2D,CAAC;IAE9D;;;;;;OAMG;IACK,MAAM,CAAU,QAAQ,GAA0C;QACxE,MAAM,EAAE;YACN,EAAE,OAAO,EAAE,OAAO,EAAE;YACpB,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,KAAK,EAAE;YACzC,EAAE,OAAO,EAAE,OAAO,EAAE;YACpB,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,KAAK,EAAE;YACzC,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE;YACxC,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE;YACxC,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE;SACzC;QACD,KAAK,EAAE;YACL,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE;YAClC,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE;YACxC,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,KAAK,EAAE;YACzC,EAAE,OAAO,EAAE,IAAI,EA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C,CAAC;QAC/D,MAAM,aAAa,GAAyB,QAAQ;YAClD,CAAC,CAAC;gBACE,QAAQ;gBACR,SAAS,EAAE,0CAA0C;aACtD;YACH,CAAC,CAAC,IAAI,CAAC;QACT,OAAO,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;IACxC,CAAC;;AAhFH,0DAiFC","sourcesContent":["import { id as dockerVersioningId } from '../../versioning/docker';\nimport { Datasource } from '../datasource';\nimport type { GetReleasesConfig, Release, ReleaseResult } from '../types';\n\nexport class GithubRunnersDatasource extends Datasource {\n static readonly id = 'github-runners';\n\n override readonly sourceUrlSupport = 'package';\n override readonly sourceUrlNote =\n 'We use the URL: https://github.com/actions/runner-images.';\n\n /**\n * Unstable runners must have the `isStable: false` property.\n * Deprecated runners must have the `isDeprecated: true` property.\n * Stable runners should have no extra properties.\n * For more details, read the github-runners datasource readme.\n * Check https://github.blog/changelog/label/actions/ for stable and deprecation dates.\n */\n private static readonly releases: Record<string, Release[] | undefined> = {\n ubuntu: [\n { version: '24.04' },\n { version: '24.04-arm', isStable: false },\n { version: '22.04' },\n { version: '22.04-arm', isStable: false },\n { version: '20.04', isDeprecated: true },\n { version: '18.04', isDeprecated: true },\n { version: '16.04', isDeprecated: true },\n ],\n macos: [\n { version: '15', isStable: false },\n { version: '15-large', isStable: false },\n { version: '15-xlarge', isStable: false },\n { version: '14' },\n { version: '14-large' },\n { version: '14-xlarge' },\n { version: '13' },\n { version: '13-large' },\n { version: '13-xlarge' },\n { version: '12-large', isDeprecated: true },\n { version: '12', isDeprecated: true },\n { version: '11', isDeprecated: true },\n { version: '10.15', isDeprecated: true },\n ],\n windows: [\n { version: '2025' },\n { version: '2022' },\n { version: '2019', isDeprecated: true },\n { version: '2016', isDeprecated: true },\n ],\n };\n\n public static isValidRunner(\n runnerName: string,\n runnerVersion: string,\n ): boolean {\n const runnerReleases = GithubRunnersDatasource.releases[runnerName];\n if (!runnerReleases) {\n return false;\n }\n\n const versionExists = runnerReleases.some(\n ({ version }) => version === runnerVersion,\n );\n\n return runnerVersion === 'latest' || versionExists;\n }\n\n override readonly defaultVersioning = dockerVersioningId;\n\n constructor() {\n super(GithubRunnersDatasource.id);\n }\n\n override getReleases({\n packageName,\n }: GetReleasesConfig): Promise<ReleaseResult | null> {\n const releases = GithubRunnersDatasource.releases[packageName];\n const releaseResult: ReleaseResult | null = releases\n ? {\n releases,\n sourceUrl: 'https://github.com/actions/runner-images',\n }\n : null;\n return Promise.resolve(releaseResult);\n }\n}\n"]}
@@ -8,10 +8,7 @@ const error_messages_1 = require("../../../constants/error-messages");
8
8
  const logger_1 = require("../../../logger");
9
9
  const exec_1 = require("../../../util/exec");
10
10
  const fs_1 = require("../../../util/fs");
11
- const result_1 = require("../../../util/result");
12
11
  const extract_1 = require("./extract");
13
- const lockfile_1 = require("./lockfile");
14
- const schema_1 = require("./schema");
15
12
  exports.commandLock = 'pixi lock --no-progress --color=never --quiet';
16
13
  async function updateArtifacts({ packageFileName, updatedDeps, newPackageFileContent, config, }) {
17
14
  logger_1.logger.debug(`pixi.updateArtifacts(${packageFileName})`);
@@ -29,9 +26,7 @@ async function updateArtifacts({ packageFileName, updatedDeps, newPackageFileCon
29
26
  logger_1.logger.trace(`Updating ${lockFileName}`);
30
27
  const cmd = [exports.commandLock];
31
28
  const pixiConfig = (0, extract_1.getUserPixiConfig)(newPackageFileContent, packageFileName);
32
- const constraint = config.constraints?.pixi ??
33
- pixiConfig?.project['requires-pixi'] ??
34
- getPixiConstraint(existingLockFileContent);
29
+ const constraint = config.constraints?.pixi ?? pixiConfig?.project['requires-pixi'];
35
30
  try {
36
31
  await (0, fs_1.writeLocalFile)(packageFileName, newPackageFileContent);
37
32
  if (isLockFileMaintenance) {
@@ -80,9 +75,4 @@ async function updateArtifacts({ packageFileName, updatedDeps, newPackageFileCon
80
75
  ];
81
76
  }
82
77
  }
83
- function getPixiConstraint(existingLockFileContent) {
84
- const { val } = result_1.Result.parse(existingLockFileContent, schema_1.LockfileYaml).unwrap();
85
- const cfg = (0, lockfile_1.pickConfig)(val?.version);
86
- return cfg?.range ?? undefined;
87
- }
88
78
  //# sourceMappingURL=artifacts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"artifacts.js","sourceRoot":"","sources":["../../../../lib/modules/manager/pixi/artifacts.ts"],"names":[],"mappings":";;;AAoBA,0CAgFC;;AApGD,kEAAkC;AAClC,sEAAoE;AACpE,4CAAyC;AACzC,6CAA0C;AAE1C,yCAM0B;AAC1B,iDAA8C;AAE9C,uCAA8C;AAC9C,yCAAwC;AACxC,qCAAwC;AAE3B,QAAA,WAAW,GAAG,+CAA+C,CAAC;AAEpE,KAAK,UAAU,eAAe,CAAC,EACpC,eAAe,EACf,WAAW,EACX,qBAAqB,EACrB,MAAM,GACS;IACf,eAAM,CAAC,KAAK,CAAC,wBAAwB,eAAe,GAAG,CAAC,CAAC;IACzD,MAAM,EAAE,qBAAqB,EAAE,GAAG,MAAM,CAAC;IAEzC,IAAI,CAAC,YAAE,CAAC,aAAa,CAAC,WAAW,CAAC,IAAI,CAAC,qBAAqB,EAAE,CAAC;QAC7D,eAAM,CAAC,KAAK,CAAC,uCAAuC,CAAC,CAAC;QACtD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,YAAY,GAAG,IAAA,uBAAkB,EAAC,eAAe,EAAE,WAAW,CAAC,CAAC;IACtE,MAAM,uBAAuB,GAAG,MAAM,IAAA,kBAAa,EAAC,YAAY,EAAE,MAAM,CAAC,CAAC;IAC1E,IAAI,CAAC,uBAAuB,EAAE,CAAC;QAC7B,eAAM,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;QACnC,OAAO,IAAI,CAAC;IACd,CAAC;IACD,eAAM,CAAC,KAAK,CAAC,YAAY,YAAY,EAAE,CAAC,CAAC;IAEzC,MAAM,GAAG,GAAG,CAAC,mBAAW,CAAC,CAAC;IAE1B,MAAM,UAAU,GAAG,IAAA,2BAAiB,EAAC,qBAAqB,EAAE,eAAe,CAAC,CAAC;IA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,EAAE,EAAE,oBAAoB,YAAY,OAAO,CAAC,CAAC;QAC/D,OAAO;YACL;gBACE,aAAa,EAAE;oBACb,QAAQ,EAAE,YAAY;oBACtB,MAAM,EAAE,GAAG,GAAG,EAAE;iBACjB;aACF;SACF,CAAC;IACJ,CAAC;AACH,CAAC;AAED,SAAS,iBAAiB,CACxB,uBAA+B;IAE/B,MAAM,EAAE,GAAG,EAAE,GAAG,eAAM,CAAC,KAAK,CAAC,uBAAuB,EAAE,qBAAY,CAAC,CAAC,MAAM,EAAE,CAAC;IAC7E,MAAM,GAAG,GAAG,IAAA,qBAAU,EAAC,GAAG,EAAE,OAAO,CAAC,CAAC;IAErC,OAAO,GAAG,EAAE,KAAK,IAAI,SAAS,CAAC;AACjC,CAAC","sourcesContent":["import is from '@sindresorhus/is';\nimport { TEMPORARY_ERROR } from '../../../constants/error-messages';\nimport { logger } from '../../../logger';\nimport { exec } from '../../../util/exec';\nimport type { ExecOptions } from '../../../util/exec/types';\nimport {\n deleteLocalFile,\n ensureCacheDir,\n getSiblingFileName,\n readLocalFile,\n writeLocalFile,\n} from '../../../util/fs';\nimport { Result } from '../../../util/result';\nimport type { UpdateArtifact, UpdateArtifactsResult } from '../types';\nimport { getUserPixiConfig } from './extract';\nimport { pickConfig } from './lockfile';\nimport { LockfileYaml } from './schema';\n\nexport const commandLock = 'pixi lock --no-progress --color=never --quiet';\n\nexport async function updateArtifacts({\n packageFileName,\n updatedDeps,\n newPackageFileContent,\n config,\n}: UpdateArtifact): Promise<UpdateArtifactsResult[] | null> {\n logger.debug(`pixi.updateArtifacts(${packageFileName})`);\n const { isLockFileMaintenance } = config;\n\n if (!is.nonEmptyArray(updatedDeps) && !isLockFileMaintenance) {\n logger.debug('No updated pixi deps - returning null');\n return null;\n }\n\n const lockFileName = getSiblingFileName(packageFileName, 'pixi.lock');\n const existingLockFileContent = await readLocalFile(lockFileName, 'utf8');\n if (!existingLockFileContent) {\n logger.debug(`No lock file found`);\n return null;\n }\n logger.trace(`Updating ${lockFileName}`);\n\n const cmd = [commandLock];\n\n const pixiConfig = getUserPixiConfig(newPackageFileContent, packageFileName);\n\n const constraint =\n config.constraints?.pixi ??\n pixiConfig?.project['requires-pixi'] ??\n getPixiConstraint(existingLockFileContent);\n\n try {\n await writeLocalFile(packageFileName, newPackageFileContent);\n if (isLockFileMaintenance) {\n await deleteLocalFile(lockFileName);\n }\n\n // https://pixi.sh/latest/features/environment/#caching-packages\n const PIXI_CACHE_DIR = await ensureCacheDir('pixi');\n const extraEnv = {\n PIXI_CACHE_DIR,\n RATTLER_CACHE_DIR: PIXI_CACHE_DIR,\n };\n\n const execOptions: ExecOptions = {\n cwdFile: packageFileName,\n extraEnv,\n docker: {},\n toolConstraints: [{ toolName: 'pixi', constraint }],\n };\n await exec(cmd, execOptions);\n const newPixiLockContent = await readLocalFile(lockFileName, 'utf8');\n if (existingLockFileContent === newPixiLockContent) {\n logger.debug(`${lockFileName} is unchanged`);\n return null;\n }\n return [\n {\n file: {\n type: 'addition',\n path: lockFileName,\n contents: newPixiLockContent,\n },\n },\n ];\n } catch (err) {\n if (err.message === TEMPORARY_ERROR) {\n throw err;\n }\n\n logger.debug({ err }, `Failed to update ${lockFileName} file`);\n return [\n {\n artifactError: {\n lockFile: lockFileName,\n stderr: `${err}`,\n },\n },\n ];\n }\n}\n\nfunction getPixiConstraint(\n existingLockFileContent: string,\n): string | undefined {\n const { val } = Result.parse(existingLockFileContent, LockfileYaml).unwrap();\n const cfg = pickConfig(val?.version);\n\n return cfg?.range ?? undefined;\n}\n"]}
1
+ {"version":3,"file":"artifacts.js","sourceRoot":"","sources":["../../../../lib/modules/manager/pixi/artifacts.ts"],"names":[],"mappings":";;;AAiBA,0CA8EC;;AA/FD,kEAAkC;AAClC,sEAAoE;AACpE,4CAAyC;AACzC,6CAA0C;AAE1C,yCAM0B;AAE1B,uCAA8C;AAEjC,QAAA,WAAW,GAAG,+CAA+C,CAAC;AAEpE,KAAK,UAAU,eAAe,CAAC,EACpC,e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AC;QAEF,MAAM,WAAW,GAAgB;YAC/B,OAAO,EAAE,eAAe;YACxB,QAAQ;YACR,MAAM,EAAE,EAAE;YACV,eAAe,EAAE,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC;SACpD,CAAC;QACF,MAAM,IAAA,WAAI,EAAC,GAAG,EAAE,WAAW,CAAC,CAAC;QAC7B,MAAM,kBAAkB,GAAG,MAAM,IAAA,kBAAa,EAAC,YAAY,EAAE,MAAM,CAAC,CAAC;QACrE,IAAI,uBAAuB,KAAK,kBAAkB,EAAE,CAAC;YACnD,eAAM,CAAC,KAAK,CAAC,GAAG,YAAY,eAAe,CAAC,CAAC;YAC7C,OAAO,IAAI,CAAC;QACd,CAAC;QACD,OAAO;YACL;gBACE,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;oBAChB,IAAI,EAAE,YAAY;oBAClB,QAAQ,EAAE,kBAAkB;iBAC7B;aACF;SACF,CAAC;IACJ,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,IAAI,GAAG,CAAC,OAAO,KAAK,gCAAe,EAAE,CAAC;YACpC,MAAM,GAAG,CAAC;QACZ,CAAC;QAED,eAAM,CAAC,KAAK,CAAC,EAAE,GAAG,EAAE,EAAE,oBAAoB,YAAY,OAAO,CAAC,CAAC;QAC/D,OAAO;YACL;gBACE,aAAa,EAAE;oBACb,QAAQ,EAAE,YAAY;oBACtB,MAAM,EAAE,GAAG,GAAG,EAAE;iBACjB;aACF;SACF,CAAC;IACJ,CAAC;AACH,CAAC","sourcesContent":["import is from '@sindresorhus/is';\nimport { TEMPORARY_ERROR } from '../../../constants/error-messages';\nimport { logger } from '../../../logger';\nimport { exec } from '../../../util/exec';\nimport type { ExecOptions } from '../../../util/exec/types';\nimport {\n deleteLocalFile,\n ensureCacheDir,\n getSiblingFileName,\n readLocalFile,\n writeLocalFile,\n} from '../../../util/fs';\nimport type { UpdateArtifact, UpdateArtifactsResult } from '../types';\nimport { getUserPixiConfig } from './extract';\n\nexport const commandLock = 'pixi lock --no-progress --color=never --quiet';\n\nexport async function updateArtifacts({\n packageFileName,\n updatedDeps,\n newPackageFileContent,\n config,\n}: UpdateArtifact): Promise<UpdateArtifactsResult[] | null> {\n logger.debug(`pixi.updateArtifacts(${packageFileName})`);\n const { isLockFileMaintenance } = config;\n\n if (!is.nonEmptyArray(updatedDeps) && !isLockFileMaintenance) {\n logger.debug('No updated pixi deps - returning null');\n return null;\n }\n\n const lockFileName = getSiblingFileName(packageFileName, 'pixi.lock');\n const existingLockFileContent = await readLocalFile(lockFileName, 'utf8');\n if (!existingLockFileContent) {\n logger.debug(`No lock file found`);\n return null;\n }\n logger.trace(`Updating ${lockFileName}`);\n\n const cmd = [commandLock];\n\n const pixiConfig = getUserPixiConfig(newPackageFileContent, packageFileName);\n\n const constraint =\n config.constraints?.pixi ?? pixiConfig?.project['requires-pixi'];\n\n try {\n await writeLocalFile(packageFileName, newPackageFileContent);\n if (isLockFileMaintenance) {\n await deleteLocalFile(lockFileName);\n }\n\n // https://pixi.sh/latest/features/environment/#caching-packages\n const PIXI_CACHE_DIR = await ensureCacheDir('pixi');\n const extraEnv = {\n PIXI_CACHE_DIR,\n RATTLER_CACHE_DIR: PIXI_CACHE_DIR,\n };\n\n const execOptions: ExecOptions = {\n cwdFile: packageFileName,\n extraEnv,\n docker: {},\n toolConstraints: [{ toolName: 'pixi', constraint }],\n };\n await exec(cmd, execOptions);\n const newPixiLockContent = await readLocalFile(lockFileName, 'utf8');\n if (existingLockFileContent === newPixiLockContent) {\n logger.debug(`${lockFileName} is unchanged`);\n return null;\n }\n return [\n {\n file: {\n type: 'addition',\n path: lockFileName,\n contents: newPixiLockContent,\n },\n },\n ];\n } catch (err) {\n if (err.message === TEMPORARY_ERROR) {\n throw err;\n }\n\n logger.debug({ err }, `Failed to update ${lockFileName} file`);\n return [\n {\n artifactError: {\n lockFile: lockFileName,\n stderr: `${err}`,\n },\n },\n ];\n }\n}\n"]}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "renovate",
3
3
  "description": "Automated dependency updates. Flexible so you don't need to be.",
4
- "version": "39.247.0",
4
+ "version": "39.248.0",
5
5
  "type": "commonjs",
6
6
  "bin": {
7
7
  "renovate": "dist/renovate.js",
@@ -1,6 +0,0 @@
1
- interface Config {
2
- lockVersion: number;
3
- range: string;
4
- }
5
- export declare function pickConfig(lockVersion?: number): Config | null;
6
- export {};
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.pickConfig = pickConfig;
4
- /**
5
- * For project without `requires-pixi` in `pixi.toml`, we pick pixi version based on `pixi.lock`.
6
- *
7
- * So we need to maintain a mapping from pixi version and it's generated lock file version.
8
- *
9
- * We do not support pixi<0.40.0 so version<6 is ignored.
10
- *
11
- */
12
- const pixiGenerateLockFileVersion = [
13
- { lockVersion: 6, range: '>=0.40.0, <0.45.0a0' },
14
- ];
15
- function pickConfig(lockVersion) {
16
- if (!lockVersion) {
17
- return null;
18
- }
19
- for (const pixi of pixiGenerateLockFileVersion) {
20
- if (lockVersion === pixi.lockVersion) {
21
- return pixi;
22
- }
23
- }
24
- return null;
25
- }
26
- //# sourceMappingURL=lockfile.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"lockfile.js","sourceRoot":"","sources":["../../../../lib/modules/manager/pixi/lockfile.ts"],"names":[],"mappings":";;AAiBA,gCAYC;AA7BD;;;;;;;GAOG;AACH,MAAM,2BAA2B,GAAa;IAC5C,EAAE,WAAW,EAAE,CAAC,EAAE,KAAK,EAAE,qBAAqB,EAAE;CACxC,CAAC;AAOX,SAAgB,UAAU,CAAC,WAAoB;IAC7C,IAAI,CAAC,WAAW,EAAE,CAAC;QACjB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,KAAK,MAAM,IAAI,IAAI,2BAA2B,EAAE,CAAC;QAC/C,IAAI,WAAW,KAAK,IAAI,CAAC,WAAW,EAAE,CAAC;YACrC,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC","sourcesContent":["/**\n * For project without `requires-pixi` in `pixi.toml`, we pick pixi version based on `pixi.lock`.\n *\n * So we need to maintain a mapping from pixi version and it's generated lock file version.\n *\n * We do not support pixi<0.40.0 so version<6 is ignored.\n *\n */\nconst pixiGenerateLockFileVersion: Config[] = [\n { lockVersion: 6, range: '>=0.40.0, <0.45.0a0' },\n] as const;\n\ninterface Config {\n lockVersion: number;\n range: string;\n}\n\nexport function pickConfig(lockVersion?: number): Config | null {\n if (!lockVersion) {\n return null;\n }\n\n for (const pixi of pixiGenerateLockFileVersion) {\n if (lockVersion === pixi.lockVersion) {\n return pixi;\n }\n }\n\n return null;\n}\n"]}