commit pnpm for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package pnpm for openSUSE:Factory checked in at 2024-10-07 21:49:18 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/pnpm (Old) and /work/SRC/openSUSE:Factory/.pnpm.new.19354 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "pnpm" Mon Oct 7 21:49:18 2024 rev:6 rq:1205739 version:9.12.0 Changes: -------- --- /work/SRC/openSUSE:Factory/pnpm/pnpm.changes 2024-09-23 15:22:11.529367742 +0200 +++ /work/SRC/openSUSE:Factory/.pnpm.new.19354/pnpm.changes 2024-10-07 21:49:56.692542727 +0200 @@ -1,0 +2,18 @@ +Fri Oct 4 18:59:40 UTC 2024 - Avindra Goolcharan <avindra@opensuse.org> + +- update to version 9.12.0: + * Fix peer dependency resolution dead lock #8570. This change + might change some of the keys in the snapshots field inside + pnpm-lock.yaml but it should happen very rarely. + * pnpm outdated command supports now a --sort-by=name option + for sorting outdated dependencies by package name #8523 + * Added the ability for overrides to remove dependencies by + specifying "-" as the field value #8572 + * Fixed an issue where pnpm list --json pkg showed "private": + false for a private package #8519 + * Packages with libc that differ from pnpm. + supportedArchitectures.libc are not downloaded #7362 + * Prevent ENOENT errors caused by running store prune in parallel #8586 + * Add issues alias to pnpm bugs #8596 + +------------------------------------------------------------------- Old: ---- pnpm-9.11.0.tgz New: ---- pnpm-9.12.0.tgz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ pnpm.spec ++++++ --- /var/tmp/diff_new_pack.qwcxV4/_old 2024-10-07 21:49:57.372571020 +0200 +++ /var/tmp/diff_new_pack.qwcxV4/_new 2024-10-07 21:49:57.376571186 +0200 @@ -23,7 +23,7 @@ %global __nodejs_provides %{nil} %global __nodejs_requires %{nil} Name: pnpm -Version: 9.11.0 +Version: 9.12.0 Release: 0 Summary: Fast, disk space efficient package manager License: MIT ++++++ pnpm-9.11.0.tgz -> pnpm-9.12.0.tgz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/package/README.md new/package/README.md --- old/package/README.md 1985-10-26 09:15:00.000000000 +0100 +++ new/package/README.md 1985-10-26 09:15:00.000000000 +0100 @@ -180,6 +180,17 @@ </a> </td> </tr> + <tr> + <td align="center" valign="middle"> + <a href="https://vlt.sh/?utm_source=pnpm&utm_medium=readme" target="_blank"> + <picture> + <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/vlt.svg" /> + <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/vlt_light.svg" /> + <img src="https://pnpm.io/img/users/vlt.svg" width="140" /> + </picture> + </a> + </td> + </tr> </tbody> </table> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/package/dist/node_modules/.modules.yaml new/package/dist/node_modules/.modules.yaml --- old/package/dist/node_modules/.modules.yaml 1985-10-26 09:15:00.000000000 +0100 +++ new/package/dist/node_modules/.modules.yaml 1985-10-26 09:15:00.000000000 +0100 @@ -17,8 +17,8 @@ - node_modules/aggregate-error ansi-regex@5.0.1: - node_modules/strip-ansi-cjs/node_modules/ansi-regex - - node_modules/string-width-cjs/node_modules/ansi-regex - node_modules/wrap-ansi-cjs/node_modules/ansi-regex + - node_modules/string-width-cjs/node_modules/ansi-regex ansi-regex@6.0.1: - node_modules/ansi-regex ansi-styles@4.3.0: @@ -46,8 +46,8 @@ eastasianwidth@0.2.0: - node_modules/eastasianwidth emoji-regex@8.0.0: - - node_modules/string-width-cjs/node_modules/emoji-regex - node_modules/wrap-ansi-cjs/node_modules/emoji-regex + - node_modules/string-width-cjs/node_modules/emoji-regex emoji-regex@9.2.2: - node_modules/emoji-regex encoding@0.1.13: @@ -172,8 +172,8 @@ string-width@5.1.2: - node_modules/string-width strip-ansi@6.0.1: - - node_modules/string-width-cjs/node_modules/strip-ansi - node_modules/wrap-ansi-cjs/node_modules/strip-ansi + - node_modules/string-width-cjs/node_modules/strip-ansi - node_modules/strip-ansi-cjs strip-ansi@7.1.0: - node_modules/strip-ansi @@ -204,7 +204,7 @@ nodeLinker: hoisted packageManager: pnpm@9.10.0 pendingBuilds: [] -prunedAt: Fri, 20 Sep 2024 10:31:51 GMT +prunedAt: Wed, 02 Oct 2024 12:07:42 GMT publicHoistPattern: - '*eslint*' - '*prettier*' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/package/dist/pnpm.cjs new/package/dist/pnpm.cjs --- old/package/dist/pnpm.cjs 1985-10-26 09:15:00.000000000 +0100 +++ new/package/dist/pnpm.cjs 1985-10-26 09:15:00.000000000 +0100 @@ -7645,7 +7645,7 @@ var load_json_file_1 = __importDefault2(require_load_json_file()); var defaultManifest = { name: true ? "pnpm" : "pnpm", - version: true ? "9.11.0" : "0.0.0" + version: true ? "9.12.0" : "0.0.0" }; var pkgJson; if (require.main == null) { @@ -7713,7 +7713,7 @@ exports2.WORKSPACE_MANIFEST_FILENAME = "pnpm-workspace.yaml"; exports2.META_DIR = "metadata"; exports2.FULL_META_DIR = "metadata-full"; - exports2.FULL_FILTERED_META_DIR = "metadata-v1.1"; + exports2.FULL_FILTERED_META_DIR = "metadata-v1.2"; } }); @@ -22375,7 +22375,7 @@ if (typeof val === "string") { try { config[(0, config_env_replace_1.envReplace)(key, process.env)] = (0, config_env_replace_1.envReplace)(val, process.env); - } catch (err) { + } catch { } } } @@ -22488,7 +22488,7 @@ if (node.toUpperCase() !== process.execPath.toUpperCase()) { process.execPath = node; } - } catch (err) { + } catch { } if (cliOptions.dir) { cliOptions.dir = await (0, realpath_missing_1.default)(cliOptions.dir); @@ -38038,7 +38038,7 @@ summaries.push(`Peer dependencies that should be installed: ${(0, cli_columns_1.default)(Object.entries(intersections).map(([name, version2]) => formatNameAndRange(name, version2)), cliColumnsOptions)}`); } - const title = chalk_1.default.white(projectKey); + const title = chalk_1.default.reset(projectKey); let summariesConcatenated = summaries.join("\n"); if (summariesConcatenated) { summariesConcatenated += "\n"; @@ -43072,12 +43072,12 @@ return `Run "${chalk_1.default.magenta(updateCommand)}" to update.`; } function renderUpdateCommand(opts) { - if (opts.env.PNPM_HOME) { - return "pnpm self-update"; - } if ((0, cli_meta_1.isExecutedByCorepack)(opts.env)) { return `corepack install -g pnpm@${opts.latestVersion}`; } + if (opts.env.PNPM_HOME) { + return "pnpm self-update"; + } const pkgName = opts.currentPkgIsExecutable ? "@pnpm/exe" : "pnpm"; return `pnpm add -g ${pkgName}`; } @@ -57004,6 +57004,7 @@ "peerDependenciesMeta", "cpu", "os", + "libc", "deprecated", "bundleDependencies", "bundledDependencies", @@ -112725,7 +112726,7 @@ return storeInHomeDir; } return path_1.default.join(mountpoint, ".pnpm-store", STORE_VERSION); - } catch (err) { + } catch { return storeInHomeDir; } finally { await fs_1.promises.unlink(tempFile); @@ -112737,7 +112738,7 @@ try { await fs_1.promises.mkdir(tmpDir, { recursive: true }); result2 = await (0, can_link_1.default)(fileToLink, (0, path_temp_1.default)(tmpDir)); - } catch (err) { + } catch { result2 = false; } finally { await safeRmdir(tmpDir); @@ -112747,7 +112748,7 @@ async function safeRmdir(dir) { try { await (0, rimraf_1.default)(dir); - } catch (err) { + } catch { } } function dirsAreEqual(dir1, dir2) { @@ -113656,7 +113657,7 @@ let nodeCurrentDir; try { nodeCurrentDir = await fs_1.promises.readlink(nodeCurrentDirLink); - } catch (err) { + } catch { nodeCurrentDir = void 0; } return { nodePath, nodeLink: nodeCurrentDir ? getNodeExecPathInNodeDir(nodeCurrentDir) : void 0 }; @@ -115309,7 +115310,7 @@ if (response.ok) { fetchSpec = httpsUrl; } - } catch (e) { + } catch { } } } @@ -115332,7 +115333,7 @@ try { const response = await (0, fetch_1.fetch)(httpsUrl.replace(/\.git$/, ""), { method: "HEAD", follow: 0, retry: { retries: 0 } }); return response.ok; - } catch (_err) { + } catch { return false; } } @@ -115340,7 +115341,7 @@ try { await (0, graceful_git_1.default)(["ls-remote", "--exit-code", repository, "HEAD"], { retries: 0 }); return true; - } catch (err) { + } catch { return false; } } @@ -115803,7 +115804,7 @@ if (allowedHosts.has(host)) { return true; } - } catch (e) { + } catch { } return false; } @@ -116066,7 +116067,7 @@ let state; try { state = await (0, load_json_file_1.default)(stateFile); - } catch (err) { + } catch { } if (state?.lastUpdateCheck && Date.now() - new Date(state.lastUpdateCheck).valueOf() < UPDATE_CHECK_FREQUENCY) return; @@ -116253,6 +116254,7 @@ var pick_1 = __importDefault2(require_pick()); var render_help_1 = __importDefault2(require_lib46()); var cache_api_1 = require_lib92(); + var error_1 = require_lib7(); exports2.rcOptionsTypes = cliOptionsTypes; function cliOptionsTypes() { return { @@ -116265,8 +116267,30 @@ exports2.commandNames = ["cache"]; function help() { return (0, render_help_1.default)({ - description: "", - descriptionLists: [], + description: "Inspect and manage the metadata cache", + descriptionLists: [ + { + title: "Commands", + list: [ + { + description: "Lists the available packages metadata cache. Supports filtering by glob", + name: "list" + }, + { + description: "Lists all registries that have their metadata cache locally", + name: "list-registries" + }, + { + description: "Views information from the specified package's cache", + name: "view" + }, + { + description: "Deletes metadata cache for the specified package(s). Supports patterns", + name: "delete" + } + ] + } + ], url: (0, cli_utils_1.docsUrl)("cache"), usages: ["pnpm cache <command>"] }); @@ -116293,6 +116317,12 @@ registry: opts.cliOptions["registry"] }, params.slice(1)); case "view": { + if (!params[1]) { + throw new error_1.PnpmError("MISSING_PACKAGE_NAME", "`pnpm cache view` requires the package name"); + } + if (params.length > 2) { + throw new error_1.PnpmError("TOO_MANY_PARAMS", "`pnpm cache view` only accepts one package name"); + } const storeDir = await (0, store_path_1.getStorePath)({ pkgRoot: process.cwd(), storePath: opts.storeDir, @@ -119579,6 +119609,7 @@ return { name: entryPkg.name, version: entryPkg.version, + private: entryPkg.private, path: projectPath, ...buildDependenciesHierarchy }; @@ -131833,7 +131864,7 @@ } else if (ctx.completionByCommandName[input.cmd]) { try { completions = await ctx.completionByCommandName[input.cmd](input.options, input.params); - } catch (err) { + } catch { } } } @@ -134834,7 +134865,7 @@ return true; try { return semver_12.default.eq(version1, version2, { loose: true }); - } catch (err) { + } catch { return false; } } @@ -135272,6 +135303,7 @@ Object.defineProperty(exports2, "__esModule", { value: true }); exports2.prune = prune; var fs_1 = require("fs"); + var util_1 = __importDefault2(require("util")); var path_1 = __importDefault2(require("path")); var logger_1 = require_lib(); var rimraf_1 = __importDefault2(require_rimraf()); @@ -135283,13 +135315,14 @@ await Promise.all([ (0, rimraf_1.default)(path_1.default.join(cacheDir, "metadata")), (0, rimraf_1.default)(path_1.default.join(cacheDir, "metadata-full")), - (0, rimraf_1.default)(path_1.default.join(cacheDir, "metadata-v1.1")) + (0, rimraf_1.default)(path_1.default.join(cacheDir, "metadata-v1.1")), + (0, rimraf_1.default)(path_1.default.join(cacheDir, "metadata-v1.2")) ]); await (0, rimraf_1.default)(path_1.default.join(storeDir, "tmp")); (0, logger_1.globalInfo)("Removed all cached metadata files"); const pkgIndexFiles = []; const removedHashes = /* @__PURE__ */ new Set(); - const dirs = (await fs_1.promises.readdir(cafsDir, { withFileTypes: true })).filter((entry) => entry.isDirectory()).map((dir) => dir.name); + const dirs = await getSubdirsSafely(cafsDir); let fileCounter = 0; await Promise.all(dirs.map(async (dir) => { const subdir = path_1.default.join(cafsDir, dir); @@ -135329,6 +135362,18 @@ })); (0, logger_1.globalInfo)(`Removed ${pkgCounter} package${pkgCounter === 1 ? "" : "s"}`); } + async function getSubdirsSafely(dir) { + let entries; + try { + entries = await fs_1.promises.readdir(dir, { withFileTypes: true }); + } catch (err) { + if (util_1.default.types.isNativeError(err) && "code" in err && err.code === "ENOENT") { + return []; + } + throw err; + } + return entries.filter((entry) => entry.isDirectory()).map((dir2) => dir2.name); + } } }); @@ -135477,7 +135522,7 @@ var package_store_1 = require_lib122(); var cli_meta_1 = require_lib5(); async function createNewStoreController(opts) { - const fullMetadata = opts.resolutionMode === "time-based" && !opts.registrySupportsTimeField; + const fullMetadata = opts.fetchFullMetadata ?? (opts.resolutionMode === "time-based" && !opts.registrySupportsTimeField); const { resolve, fetchers, clearResolutionCache } = (0, client_1.createClient)({ customFetchers: opts.hooks?.fetchers, userConfig: opts.userConfig, @@ -140803,7 +140848,7 @@ let existingSymlink; try { existingSymlink = await (0, resolve_link_target_1.default)(dest); - } catch (err) { + } catch { hoistLogger.debug({ skipped: dest, reason: "a directory is present at the target location" @@ -193173,7 +193218,9 @@ ...await Promise.all(pendingPeerNodeIds.map(async (peerNodeId) => { if (cyclicPeerNodeIds.has(peerNodeId)) { const { name, version: version2 } = ctx.dependenciesTree.get(peerNodeId).resolvedPackage; - return `${name}@${version2}`; + const id = `${name}@${version2}`; + ctx.pathsByNodeIdPromises.get(peerNodeId)?.resolve(id); + return id; } return ctx.pathsByNodeIdPromises.get(peerNodeId).promise; })) @@ -195675,12 +195722,10 @@ var normalize_path_1 = __importDefault2(require_normalize_path()); var isIntersectingRange_1 = require_isIntersectingRange(); function createVersionsOverrider(overrides, rootDir) { - const [versionOverrides, genericVersionOverrides] = (0, partition_1.default)(({ parentPkg }) => parentPkg != null, overrides.map((override) => { - return { - ...override, - localTarget: createLocalTarget(override, rootDir) - }; - })); + const [versionOverrides, genericVersionOverrides] = (0, partition_1.default)(({ parentPkg }) => parentPkg != null, overrides.map((override) => ({ + ...override, + localTarget: createLocalTarget(override, rootDir) + }))); return (manifest, dir) => { const versionOverridesWithParent = versionOverrides.filter(({ parentPkg }) => { return parentPkg.name === manifest.name && (!parentPkg.pref || semver_12.default.satisfies(manifest.version, parentPkg.pref)); @@ -195704,20 +195749,22 @@ return { absolutePath, specifiedViaRelativePath, protocol }; } function overrideDepsOfPkg({ manifest, dir }, versionOverrides, genericVersionOverrides) { - if (manifest.dependencies != null) - overrideDeps(versionOverrides, genericVersionOverrides, manifest.dependencies, dir); - if (manifest.optionalDependencies != null) - overrideDeps(versionOverrides, genericVersionOverrides, manifest.optionalDependencies, dir); - if (manifest.devDependencies != null) - overrideDeps(versionOverrides, genericVersionOverrides, manifest.devDependencies, dir); - if (manifest.peerDependencies != null) - overrideDeps(versionOverrides, genericVersionOverrides, manifest.peerDependencies, dir); + const { dependencies, optionalDependencies, devDependencies, peerDependencies } = manifest; + for (const deps of [dependencies, optionalDependencies, devDependencies, peerDependencies]) { + if (deps) { + overrideDeps(versionOverrides, genericVersionOverrides, deps, dir); + } + } } function overrideDeps(versionOverrides, genericVersionOverrides, deps, dir) { for (const [name, pref] of Object.entries(deps)) { const versionOverride = pickMostSpecificVersionOverride(versionOverrides.filter(({ targetPkg }) => targetPkg.name === name && (0, isIntersectingRange_1.isIntersectingRange)(targetPkg.pref, pref))) ?? pickMostSpecificVersionOverride(genericVersionOverrides.filter(({ targetPkg }) => targetPkg.name === name && (0, isIntersectingRange_1.isIntersectingRange)(targetPkg.pref, pref))); if (!versionOverride) continue; + if (versionOverride.newPref === "-") { + delete deps[versionOverride.targetPkg.name]; + continue; + } if (versionOverride.localTarget) { deps[versionOverride.targetPkg.name] = `${versionOverride.localTarget.protocol}${resolveLocalOverride(versionOverride.localTarget, dir)}`; continue; @@ -199073,12 +199120,14 @@ devDependencies: opts.dev !== false, optionalDependencies: opts.optional !== false }; + const fetchFullMetadata = opts.rootProjectManifest?.pnpm?.supportedArchitectures?.libc && true; const installDepsOptions = { ...opts, frozenLockfileIfExists: ci_info_1.isCI && !opts.lockfileOnly && typeof opts.rawLocalConfig["frozen-lockfile"] === "undefined" && typeof opts.rawLocalConfig["prefer-frozen-lockfile"] === "undefined", include, includeDirect: include, - prepareExecutionEnv: plugin_commands_env_1.prepareExecutionEnv.bind(null, opts) + prepareExecutionEnv: plugin_commands_env_1.prepareExecutionEnv.bind(null, opts), + fetchFullMetadata }; if (opts.resolutionOnly) { installDepsOptions.lockfileOnly = true; @@ -199700,7 +199749,7 @@ }); } exports2.commandNames = ["remove", "uninstall", "rm", "un", "uni"]; - var completion = async (cliOpts, params) => { + var completion = async (cliOpts) => { return (0, cli_utils_1.readDepNameCompletions)(cliOpts.dir); }; exports2.completion = completion; @@ -221240,12 +221289,13 @@ "../reviewing/plugin-commands-outdated/lib/utils.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.DEFAULT_COMPARATORS = void 0; + exports2.DEFAULT_COMPARATORS = exports2.NAME_COMPARATOR = void 0; exports2.sortBySemverChange = sortBySemverChange; + var NAME_COMPARATOR = (o1, o2) => o1.packageName.localeCompare(o2.packageName); + exports2.NAME_COMPARATOR = NAME_COMPARATOR; exports2.DEFAULT_COMPARATORS = [ sortBySemverChange, - (o1, o2) => o1.packageName.localeCompare(o2.packageName), - // eslint-disable-line @typescript-eslint/explicit-module-boundary-types + exports2.NAME_COMPARATOR, (o1, o2) => o1.current && o2.current ? o1.current.localeCompare(o2.current) : 0 // eslint-disable-line @typescript-eslint/explicit-module-boundary-types ]; @@ -221473,7 +221523,8 @@ "production" ], config_1.types), compatible: Boolean, - format: ["table", "list", "json"] + format: ["table", "list", "json"], + "sort-by": "name" }; } var cliOptionsTypes = () => ({ @@ -221532,6 +221583,10 @@ description: `Don't check "optionalDependencies"`, name: "--no-optional" }, + { + description: "Specify the sorting method. Currently only `name` is supported.", + name: "--sort-by" + }, common_cli_options_help_1.OPTIONS.globalDir, ...common_cli_options_help_1.UNIVERSAL_OPTIONS ] @@ -221620,7 +221675,7 @@ columnNames[i] = chalk_1.default.blueBright(columnNames[i]); const data = [ columnNames, - ...sortOutdatedPackages(outdatedPackages).map((outdatedPkg) => columnFns.map((fn2) => fn2(outdatedPkg))) + ...sortOutdatedPackages(outdatedPackages, { sortBy: opts.sortBy }).map((outdatedPkg) => columnFns.map((fn2) => fn2(outdatedPkg))) ]; let detailsColumnMaxWidth = 40; if (opts.long) { @@ -221644,7 +221699,7 @@ function renderOutdatedList(outdatedPackages, opts) { if (outdatedPackages.length === 0) return ""; - return sortOutdatedPackages(outdatedPackages).map((outdatedPkg) => { + return sortOutdatedPackages(outdatedPackages, { sortBy: opts.sortBy }).map((outdatedPkg) => { let info = `${chalk_1.default.bold(renderPackageName(outdatedPkg))} ${renderCurrent(outdatedPkg)} ${chalk_1.default.grey("=>")} ${renderLatest(outdatedPkg)}`; if (opts.long) { @@ -221658,7 +221713,7 @@ }).join("\n\n") + "\n"; } function renderOutdatedJSON(outdatedPackages, opts) { - const outdatedPackagesJSON = sortOutdatedPackages(outdatedPackages).reduce((acc, outdatedPkg) => { + const outdatedPackagesJSON = sortOutdatedPackages(outdatedPackages, { sortBy: opts.sortBy }).reduce((acc, outdatedPkg) => { acc[outdatedPkg.packageName] = { current: outdatedPkg.current, latest: outdatedPkg.latestManifest?.version, @@ -221673,8 +221728,10 @@ }, {}); return JSON.stringify(outdatedPackagesJSON, null, 2); } - function sortOutdatedPackages(outdatedPackages) { - return (0, sortWith_1.default)(utils_1.DEFAULT_COMPARATORS, outdatedPackages.map(toOutdatedWithVersionDiff)); + function sortOutdatedPackages(outdatedPackages, opts) { + const sortBy = opts?.sortBy; + const comparators = sortBy === "name" ? [utils_1.NAME_COMPARATOR] : utils_1.DEFAULT_COMPARATORS; + return (0, sortWith_1.default)(comparators, outdatedPackages.map(toOutdatedWithVersionDiff)); } function getCellWidth(data, columnNumber, maxWidth) { const maxCellWidth = data.reduce((cellWidth, row) => { @@ -226302,6 +226359,7 @@ var path_1 = __importDefault2(require("path")); var cli_utils_1 = require_lib35(); var core_loggers_1 = require_lib9(); + var common_cli_options_help_1 = require_lib115(); var config_1 = require_lib23(); var lifecycle_1 = require_lib77(); var logger_1 = require_lib(); @@ -226353,6 +226411,10 @@ { title: "Options", list: [ + { + description: "Do not hide project name prefix from output of recursively running command.", + name: "--no-reporter-hide-prefix" + }, run_1.PARALLEL_OPTION_HELP, { description: 'Run the shell command in every package found in subdirectories or every workspace package, when executed inside a workspace. For options that may be used with `-r`, see "pnpm help recursive"', @@ -226365,9 +226427,11 @@ shortAlias: "-c" }, run_1.RESUME_FROM_OPTION_HELP, - run_1.REPORT_SUMMARY_OPTION_HELP + run_1.REPORT_SUMMARY_OPTION_HELP, + ...common_cli_options_help_1.UNIVERSAL_OPTIONS ] - } + }, + common_cli_options_help_1.FILTERING ], url: (0, cli_utils_1.docsUrl)("exec"), usages: ["pnpm [-r] [-c] exec <command> [args...]"] @@ -226558,7 +226622,7 @@ let nearestScript; try { nearestScript = (0, buildCommandNotFoundHint_1.getNearestScript)(programName, (await (0, cli_utils_1.readProjectManifestOnly)(opts.dir)).scripts); - } catch (_err) { + } catch { } if (nearestScript) { return `Did you mean "pnpm ${nearestScript}"?`; @@ -231734,7 +231798,7 @@ shouldClean = dlxCacheLinkStats !== "ENOENT" && isOutdated(dlxCacheLinkStats, dlxCacheMaxAge, now); } if (shouldClean) { - await promises_1.default.rm(dlxCachePath, { recursive: true }); + await promises_1.default.rm(dlxCachePath, { recursive: true, force: true }); } })); await cleanOrphans(dlxCacheDir); @@ -231748,7 +231812,7 @@ const dlxCacheLink = path_1.default.join(dlxCachePath, "pkg"); const dlxCacheLinkStats = await getStats(dlxCacheLink); if (dlxCacheLinkStats === "ENOENT") { - return promises_1.default.rm(dlxCachePath, { recursive: true }); + return promises_1.default.rm(dlxCachePath, { recursive: true, force: true }); } const dlxCacheLinkTarget = await getRealPath(dlxCacheLink); const children = await promises_1.default.readdir(dlxCachePath); @@ -231758,7 +231822,7 @@ const fullPath = path_1.default.join(dlxCachePath, name); if (fullPath === dlxCacheLinkTarget) return; - await promises_1.default.rm(fullPath, { recursive: true }); + await promises_1.default.rm(fullPath, { recursive: true, force: true }); })); })); } @@ -234300,7 +234364,7 @@ Target location: ${config.bin} `); } - } catch (err) { + } catch { } } if ((cmd === "install" || cmd === "import" || cmd === "dedupe" || cmd === "patch-commit" || cmd === "patch" || cmd === "patch-remove") && typeof workspaceDir === "string") { @@ -234509,10 +234573,10 @@ for (const pid of descendentProcesses) { try { process.kill(pid); - } catch (err) { + } catch { } } - } catch (err) { + } catch { } process.exit(status); } @@ -234593,6 +234657,7 @@ case "edit": case "home": case "info": + case "issues": case "login": case "logout": case "owner": diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/package/dist/worker.js new/package/dist/worker.js --- old/package/dist/worker.js 1985-10-26 09:15:00.000000000 +0100 +++ new/package/dist/worker.js 1985-10-26 09:15:00.000000000 +0100 @@ -13831,7 +13831,7 @@ }); } } -function addTarballToStore({ buffer, cafsDir, integrity, filesIndexFile, pkg, readManifest }) { +function addTarballToStore({ buffer, cafsDir, integrity, filesIndexFile }) { if (integrity) { const [, algo, integrityHash] = integrity.match(INTEGRITY_REGEX); const normalizedRemoteHash = Buffer.from(integrityHash, "base64").toString("hex"); @@ -13857,7 +13857,7 @@ const requiresBuild = writeFilesIndexFile(filesIndexFile, { manifest: manifest ?? {}, files: filesIntegrity }); return { status: "success", value: { filesIndex: filesMap, manifest, requiresBuild } }; } -function addFilesFromDir({ dir, cafsDir, filesIndexFile, sideEffectsCacheKey, pkg, readManifest, files }) { +function addFilesFromDir({ dir, cafsDir, filesIndexFile, sideEffectsCacheKey, files }) { if (!cafsCache.has(cafsDir)) { cafsCache.set(cafsDir, (0, store_cafs_1.createCafs)(cafsDir)); } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/package/package.json new/package/package.json --- old/package/package.json 1985-10-26 09:15:00.000000000 +0100 +++ new/package/package.json 1985-10-26 09:15:00.000000000 +0100 @@ -1,7 +1,7 @@ { "name": "pnpm", "description": "Fast, disk space efficient package manager", - "version": "9.11.0", + "version": "9.12.0", "bin": { "pnpm": "bin/pnpm.cjs", "pnpx": "bin/pnpx.cjs"
participants (1)
-
Source-Sync