@pnpm/installing.commands 1100.1.11 → 1100.1.12

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.
@@ -11,7 +11,7 @@ import { readProjectManifestOnly } from '@pnpm/workspace.project-manifest-reader
11
11
  import { findWorkspaceProjects } from '@pnpm/workspace.projects-reader';
12
12
  import { sequenceGraph } from '@pnpm/workspace.projects-sorter';
13
13
  import * as structUtils from '@yarnpkg/core/structUtils';
14
- import yarnLockfileLib from '@yarnpkg/lockfile';
14
+ import { parse as parseYarnLockfile } from '@yarnpkg/lockfile';
15
15
  import { parseSyml } from '@yarnpkg/parsers';
16
16
  import { rimraf } from '@zkochan/rimraf';
17
17
  import { loadJsonFile } from 'load-json-file';
@@ -112,7 +112,7 @@ async function readYarnLockFile(dir) {
112
112
  const yarnLockFile = await gfs.readFile(path.join(dir, 'yarn.lock'), 'utf8');
113
113
  const yarnLockFileType = getYarnLockfileType(yarnLockFile);
114
114
  if (yarnLockFileType === YarnLockType.yarn) {
115
- const lockJsonFile = yarnLockfileLib.parse(yarnLockFile);
115
+ const lockJsonFile = parseYarnLockfile(yarnLockFile);
116
116
  if (lockJsonFile.type === 'success') {
117
117
  return lockJsonFile.object;
118
118
  }
@@ -1,6 +1,6 @@
1
1
  import { stripVTControlCharacters } from 'node:util';
2
- import colorizeSemverDiff from '@pnpm/colorize-semver-diff';
3
- import semverDiff from '@pnpm/semver-diff';
2
+ import { colorizeSemverDiff } from '@pnpm/colorize-semver-diff';
3
+ import { semverDiff } from '@pnpm/semver-diff';
4
4
  import { getBorderCharacters, table } from '@zkochan/table';
5
5
  import { and, groupBy, isEmpty, pickBy, pipe, pluck, uniqBy } from 'ramda';
6
6
  export function getUpdateChoices(outdatedPkgsOfProjects, workspacesEnabled) {
@@ -28,9 +28,10 @@ export function getUpdateChoices(outdatedPkgsOfProjects, workspacesEnabled) {
28
28
  continue;
29
29
  const rawChoices = [];
30
30
  for (const choice of choiceRows) {
31
- // The list of outdated dependencies also contains deprecated packages.
32
- // But we only want to show those dependencies that have newer versions.
33
- if (choice.latestManifest?.version !== choice.current) {
31
+ // The list of outdated dependencies also contains deprecated packages
32
+ // and entries from registries we cannot resolve against (no manifest).
33
+ // We only want to show those dependencies that have a known newer version.
34
+ if (choice.latestManifest != null && choice.latestManifest.version !== choice.current) {
34
35
  rawChoices.push(buildPkgChoice(choice, workspacesEnabled));
35
36
  }
36
37
  }
@@ -66,24 +67,23 @@ export function getUpdateChoices(outdatedPkgsOfProjects, workspacesEnabled) {
66
67
  return finalChoices;
67
68
  }
68
69
  function buildPkgChoice(outdatedPkg, workspacesEnabled) {
69
- const sdiff = semverDiff.default(outdatedPkg.wanted, outdatedPkg.latestManifest.version);
70
+ const sdiff = semverDiff(outdatedPkg.wanted, outdatedPkg.latestManifest.version);
70
71
  const nextVersion = sdiff.change === null
71
72
  ? outdatedPkg.latestManifest.version
72
- : colorizeSemverDiff.default(sdiff); // eslint-disable-line @typescript-eslint/no-explicit-any
73
+ : colorizeSemverDiff(sdiff); // eslint-disable-line @typescript-eslint/no-explicit-any
73
74
  const label = outdatedPkg.packageName;
74
- const lineParts = {
75
+ const raw = [
75
76
  label,
76
- current: outdatedPkg.current,
77
- arrow: '❯',
77
+ outdatedPkg.current ?? '',
78
+ '❯',
78
79
  nextVersion,
79
- workspace: outdatedPkg.workspace,
80
- url: getPkgUrl(outdatedPkg),
81
- };
82
- if (!workspacesEnabled) {
83
- delete lineParts.workspace;
80
+ ];
81
+ if (workspacesEnabled) {
82
+ raw.push(outdatedPkg.workspace ?? '');
84
83
  }
84
+ raw.push(getPkgUrl(outdatedPkg));
85
85
  return {
86
- raw: Object.values(lineParts),
86
+ raw,
87
87
  name: outdatedPkg.packageName,
88
88
  };
89
89
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnpm/installing.commands",
3
- "version": "1100.1.11",
3
+ "version": "1100.1.12",
4
4
  "description": "Commands for installation",
5
5
  "keywords": [
6
6
  "pnpm",
@@ -24,8 +24,8 @@
24
24
  "!*.map"
25
25
  ],
26
26
  "dependencies": {
27
- "@pnpm/colorize-semver-diff": "^1.0.1",
28
- "@pnpm/semver-diff": "^1.1.0",
27
+ "@pnpm/colorize-semver-diff": "^2.0.0",
28
+ "@pnpm/semver-diff": "^2.0.0",
29
29
  "@pnpm/util.lex-comparator": "^3.0.2",
30
30
  "@yarnpkg/core": "4.5.0",
31
31
  "@yarnpkg/lockfile": "^1.1.0",
@@ -43,45 +43,45 @@
43
43
  "ramda": "npm:@pnpm/ramda@0.28.1",
44
44
  "render-help": "^2.0.0",
45
45
  "version-selector-type": "^3.0.0",
46
- "@pnpm/building.after-install": "1101.0.8",
47
- "@pnpm/cli.utils": "1101.0.2",
48
- "@pnpm/config.matcher": "1100.0.1",
49
- "@pnpm/cli.common-cli-options-help": "1100.0.1",
46
+ "@pnpm/building.after-install": "1101.0.9",
50
47
  "@pnpm/catalogs.types": "1100.0.0",
51
48
  "@pnpm/cli.command": "1100.0.1",
49
+ "@pnpm/cli.common-cli-options-help": "1100.0.1",
50
+ "@pnpm/config.matcher": "1100.0.1",
51
+ "@pnpm/cli.utils": "1101.0.2",
52
52
  "@pnpm/config.pick-registry-for-package": "1100.0.2",
53
+ "@pnpm/config.reader": "1101.2.2",
53
54
  "@pnpm/config.writer": "1100.0.6",
54
- "@pnpm/deps.inspection.outdated": "1100.0.11",
55
55
  "@pnpm/constants": "1100.0.0",
56
- "@pnpm/config.reader": "1101.2.1",
57
- "@pnpm/fs.graceful-fs": "1100.1.0",
56
+ "@pnpm/deps.inspection.outdated": "1100.0.12",
57
+ "@pnpm/deps.status": "1100.0.12",
58
58
  "@pnpm/deps.path": "1100.0.2",
59
- "@pnpm/fs.read-modules-dir": "1100.0.1",
60
- "@pnpm/deps.status": "1100.0.11",
61
59
  "@pnpm/error": "1100.0.0",
62
- "@pnpm/global.commands": "1100.0.13",
63
- "@pnpm/installing.context": "1100.0.7",
64
- "@pnpm/installing.env-installer": "1101.0.6",
65
- "@pnpm/lockfile.types": "1100.0.4",
66
- "@pnpm/installing.deps-installer": "1101.0.8",
60
+ "@pnpm/fs.graceful-fs": "1100.1.0",
61
+ "@pnpm/fs.read-modules-dir": "1100.0.1",
62
+ "@pnpm/global.commands": "1100.0.14",
67
63
  "@pnpm/hooks.pnpmfile": "1100.0.6",
68
- "@pnpm/resolving.parse-wanted-dependency": "1100.0.1",
64
+ "@pnpm/installing.context": "1100.0.8",
65
+ "@pnpm/installing.dedupe.check": "1100.0.4",
66
+ "@pnpm/installing.deps-installer": "1101.0.9",
67
+ "@pnpm/installing.env-installer": "1101.0.7",
68
+ "@pnpm/lockfile.types": "1100.0.4",
69
+ "@pnpm/pkg-manifest.utils": "1100.1.1",
69
70
  "@pnpm/pkg-manifest.reader": "1100.0.2",
70
- "@pnpm/store.controller": "1101.0.3",
71
+ "@pnpm/resolving.parse-wanted-dependency": "1100.0.1",
71
72
  "@pnpm/resolving.resolver-base": "1100.1.2",
72
- "@pnpm/workspace.project-manifest-reader": "1100.0.3",
73
- "@pnpm/store.connection-manager": "1100.0.12",
73
+ "@pnpm/store.connection-manager": "1100.0.13",
74
+ "@pnpm/store.controller": "1101.0.4",
75
+ "@pnpm/types": "1101.0.0",
74
76
  "@pnpm/workspace.project-manifest-writer": "1100.0.2",
75
- "@pnpm/pkg-manifest.utils": "1100.1.1",
77
+ "@pnpm/workspace.project-manifest-reader": "1100.0.3",
78
+ "@pnpm/workspace.projects-filter": "1100.0.9",
79
+ "@pnpm/workspace.projects-graph": "1100.0.6",
76
80
  "@pnpm/workspace.projects-reader": "1101.0.2",
77
- "@pnpm/workspace.projects-graph": "1100.0.5",
78
81
  "@pnpm/workspace.projects-sorter": "1100.0.1",
79
- "@pnpm/installing.dedupe.check": "1100.0.4",
82
+ "@pnpm/workspace.state": "1100.0.10",
80
83
  "@pnpm/workspace.root-finder": "1100.0.1",
81
- "@pnpm/workspace.workspace-manifest-writer": "1100.0.6",
82
- "@pnpm/workspace.projects-filter": "1100.0.8",
83
- "@pnpm/workspace.state": "1100.0.9",
84
- "@pnpm/types": "1101.0.0"
84
+ "@pnpm/workspace.workspace-manifest-writer": "1100.0.6"
85
85
  },
86
86
  "peerDependencies": {
87
87
  "@pnpm/logger": "^1001.0.1"
@@ -105,18 +105,18 @@
105
105
  "write-json-file": "^7.0.0",
106
106
  "write-package": "7.2.0",
107
107
  "write-yaml-file": "^6.0.0",
108
- "@pnpm/installing.commands": "1100.1.11",
109
- "@pnpm/assert-project": "1100.0.5",
110
- "@pnpm/prepare": "1100.0.5",
108
+ "@pnpm/assert-project": "1100.0.6",
109
+ "@pnpm/installing.commands": "1100.1.12",
111
110
  "@pnpm/installing.modules-yaml": "1100.0.3",
112
- "@pnpm/store.index": "1100.0.0",
113
- "@pnpm/test-ipc-server": "1100.0.0",
114
111
  "@pnpm/logger": "1100.0.0",
112
+ "@pnpm/prepare": "1100.0.6",
113
+ "@pnpm/store.index": "1100.1.0",
115
114
  "@pnpm/test-fixtures": "1100.0.0",
116
- "@pnpm/testing.mock-agent": "1100.0.2",
115
+ "@pnpm/test-ipc-server": "1100.0.0",
117
116
  "@pnpm/testing.command-defaults": "1100.0.1",
118
- "@pnpm/worker": "1100.1.2",
119
- "@pnpm/workspace.projects-filter": "1100.0.8"
117
+ "@pnpm/testing.mock-agent": "1100.0.2",
118
+ "@pnpm/worker": "1100.1.3",
119
+ "@pnpm/workspace.projects-filter": "1100.0.9"
120
120
  },
121
121
  "engines": {
122
122
  "node": ">=22.13"