@pnpm/installing.commands 1100.10.4 → 1100.10.5

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/CHANGELOG.md CHANGED
@@ -1,5 +1,49 @@
1
1
  # @pnpm/plugin-commands-installation
2
2
 
3
+ ## 1100.10.5
4
+
5
+ ### Patch Changes
6
+
7
+ - `pnpm add -g`, `pnpm update -g`, `pnpm setup`, and the self-updater no longer fail with `ERR_PNPM_MISSING_TIME` when `trustPolicy: no-downgrade` or `resolutionMode: time-based` is set in the global config [#12883](https://github.com/pnpm/pnpm/issues/12883). The decision to fetch full registry metadata now lives in one place, and the `no-downgrade` trust policy always requests full metadata (matching the self-updater), since the trust evidence it checks is missing from abbreviated metadata even on registries that include the `time` field.
8
+
9
+ - Updated dependencies:
10
+ - @pnpm/building.after-install@1102.0.6
11
+ - @pnpm/building.policy@1100.0.13
12
+ - @pnpm/cli.utils@1101.0.14
13
+ - @pnpm/config.pick-registry-for-package@1100.0.10
14
+ - @pnpm/config.reader@1101.12.0
15
+ - @pnpm/config.version-policy@1100.1.7
16
+ - @pnpm/config.writer@1100.0.16
17
+ - @pnpm/deps.inspection.outdated@1100.1.14
18
+ - @pnpm/deps.path@1100.0.9
19
+ - @pnpm/deps.security.signatures@1101.2.4
20
+ - @pnpm/deps.status@1100.1.7
21
+ - @pnpm/global.commands@1100.0.34
22
+ - @pnpm/hooks.pnpmfile@1100.0.19
23
+ - @pnpm/installing.context@1100.0.24
24
+ - @pnpm/installing.dedupe.check@1100.1.3
25
+ - @pnpm/installing.deps-installer@1102.3.0
26
+ - @pnpm/installing.env-installer@1102.0.6
27
+ - @pnpm/lockfile.fs@1100.1.11
28
+ - @pnpm/lockfile.types@1100.0.14
29
+ - @pnpm/network.auth-header@1101.1.4
30
+ - @pnpm/network.fetch@1100.1.5
31
+ - @pnpm/pkg-manifest.reader@1100.0.10
32
+ - @pnpm/pkg-manifest.utils@1100.2.7
33
+ - @pnpm/resolving.npm-resolver@1102.1.3
34
+ - @pnpm/resolving.resolver-base@1100.5.2
35
+ - @pnpm/store.connection-manager@1100.3.6
36
+ - @pnpm/store.controller@1102.0.5
37
+ - @pnpm/types@1101.4.0
38
+ - @pnpm/workspace.project-manifest-reader@1100.0.15
39
+ - @pnpm/workspace.project-manifest-writer@1100.0.9
40
+ - @pnpm/workspace.projects-filter@1100.0.27
41
+ - @pnpm/workspace.projects-graph@1100.0.23
42
+ - @pnpm/workspace.projects-reader@1101.0.14
43
+ - @pnpm/workspace.projects-sorter@1100.0.9
44
+ - @pnpm/workspace.state@1100.0.28
45
+ - @pnpm/workspace.workspace-manifest-writer@1100.0.16
46
+
3
47
  ## 1100.10.4
4
48
 
5
49
  ### Patch Changes
package/lib/add.js CHANGED
@@ -9,7 +9,6 @@ import { parseWantedDependency } from '@pnpm/resolving.parse-wanted-dependency';
9
9
  import { createStoreController } from '@pnpm/store.connection-manager';
10
10
  import { pick } from 'ramda';
11
11
  import { renderHelp } from 'render-help';
12
- import { getFetchFullMetadata } from './getFetchFullMetadata.js';
13
12
  import { installDeps } from './installDeps.js';
14
13
  import { createGlobalPolicyCallbacks } from './resolutionPolicyManifest.js';
15
14
  export const shorthands = {
@@ -287,7 +286,6 @@ export async function handler(opts, params, commands) {
287
286
  ...opts,
288
287
  allowBuilds: mergedAllowBuilds,
289
288
  rebuildHandler: commands?.rebuild,
290
- fetchFullMetadata: getFetchFullMetadata(opts),
291
289
  include,
292
290
  includeDirect: include,
293
291
  // `--dry-run` is an `install`-only preview; never let a config-level
@@ -299,7 +297,6 @@ export async function handler(opts, params, commands) {
299
297
  await installDeps({
300
298
  ...opts,
301
299
  rebuildHandler: commands?.rebuild,
302
- fetchFullMetadata: getFetchFullMetadata(opts),
303
300
  include,
304
301
  includeDirect: include,
305
302
  dryRun: false,
package/lib/install.js CHANGED
@@ -7,7 +7,6 @@ import { calcDedupeCheckIssues, countDedupeCheckIssues } from '@pnpm/installing.
7
7
  import { renderDedupeCheckIssues } from '@pnpm/installing.dedupe.issues-renderer';
8
8
  import { pick } from 'ramda';
9
9
  import { renderHelp } from 'render-help';
10
- import { getFetchFullMetadata } from './getFetchFullMetadata.js';
11
10
  import { installDeps } from './installDeps.js';
12
11
  export function rcOptionsTypes() {
13
12
  return pick([
@@ -318,7 +317,6 @@ export async function handler(opts, _params, commands) {
318
317
  typeof opts.preferFrozenLockfile === 'undefined'),
319
318
  include,
320
319
  includeDirect: include,
321
- fetchFullMetadata: getFetchFullMetadata(opts),
322
320
  isInstallCommand: true,
323
321
  };
324
322
  if (opts.resolutionOnly) {
@@ -36,7 +36,6 @@ export type InstallDepsOptions = Pick<Config, 'autoInstallPeers' | 'bail' | 'bin
36
36
  dedupe?: boolean;
37
37
  workspace?: boolean;
38
38
  includeOnlyPackageFiles?: boolean;
39
- fetchFullMetadata?: boolean;
40
39
  pruneLockfileImporters?: boolean;
41
40
  rebuildHandler?: CommandHandler;
42
41
  pnpmfile: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnpm/installing.commands",
3
- "version": "1100.10.4",
3
+ "version": "1100.10.5",
4
4
  "description": "Commands for installation",
5
5
  "keywords": [
6
6
  "pnpm",
@@ -28,57 +28,57 @@
28
28
  ],
29
29
  "dependencies": {
30
30
  "@inquirer/prompts": "^8.4.3",
31
- "@pnpm/building.after-install": "1102.0.5",
32
- "@pnpm/building.policy": "1100.0.12",
31
+ "@pnpm/building.after-install": "1102.0.6",
32
+ "@pnpm/building.policy": "1100.0.13",
33
33
  "@pnpm/catalogs.config": "1100.0.2",
34
34
  "@pnpm/catalogs.types": "1100.0.0",
35
35
  "@pnpm/cli.command": "1100.0.1",
36
36
  "@pnpm/cli.common-cli-options-help": "1100.0.2",
37
- "@pnpm/cli.utils": "1101.0.13",
37
+ "@pnpm/cli.utils": "1101.0.14",
38
38
  "@pnpm/colorize-semver-diff": "^2.0.0",
39
39
  "@pnpm/config.matcher": "1100.0.1",
40
- "@pnpm/config.pick-registry-for-package": "1100.0.9",
41
- "@pnpm/config.reader": "1101.11.2",
42
- "@pnpm/config.version-policy": "1100.1.6",
43
- "@pnpm/config.writer": "1100.0.15",
40
+ "@pnpm/config.pick-registry-for-package": "1100.0.10",
41
+ "@pnpm/config.reader": "1101.12.0",
42
+ "@pnpm/config.version-policy": "1100.1.7",
43
+ "@pnpm/config.writer": "1100.0.16",
44
44
  "@pnpm/constants": "1100.0.0",
45
- "@pnpm/deps.inspection.outdated": "1100.1.13",
46
- "@pnpm/deps.path": "1100.0.8",
47
- "@pnpm/deps.security.signatures": "1101.2.3",
48
- "@pnpm/deps.status": "1100.1.6",
45
+ "@pnpm/deps.inspection.outdated": "1100.1.14",
46
+ "@pnpm/deps.path": "1100.0.9",
47
+ "@pnpm/deps.security.signatures": "1101.2.4",
48
+ "@pnpm/deps.status": "1100.1.7",
49
49
  "@pnpm/error": "1100.0.1",
50
50
  "@pnpm/fs.graceful-fs": "1100.1.0",
51
51
  "@pnpm/fs.read-modules-dir": "1100.0.1",
52
- "@pnpm/global.commands": "1100.0.33",
53
- "@pnpm/hooks.pnpmfile": "1100.0.18",
54
- "@pnpm/installing.context": "1100.0.23",
55
- "@pnpm/installing.dedupe.check": "1100.1.2",
52
+ "@pnpm/global.commands": "1100.0.34",
53
+ "@pnpm/hooks.pnpmfile": "1100.0.19",
54
+ "@pnpm/installing.context": "1100.0.24",
55
+ "@pnpm/installing.dedupe.check": "1100.1.3",
56
56
  "@pnpm/installing.dedupe.issues-renderer": "1100.0.1",
57
- "@pnpm/installing.deps-installer": "1102.2.2",
58
- "@pnpm/installing.env-installer": "1102.0.5",
59
- "@pnpm/lockfile.fs": "1100.1.10",
60
- "@pnpm/lockfile.types": "1100.0.13",
61
- "@pnpm/network.auth-header": "1101.1.3",
62
- "@pnpm/network.fetch": "1100.1.4",
63
- "@pnpm/pkg-manifest.reader": "1100.0.9",
64
- "@pnpm/pkg-manifest.utils": "1100.2.6",
65
- "@pnpm/resolving.npm-resolver": "1102.1.2",
57
+ "@pnpm/installing.deps-installer": "1102.3.0",
58
+ "@pnpm/installing.env-installer": "1102.0.6",
59
+ "@pnpm/lockfile.fs": "1100.1.11",
60
+ "@pnpm/lockfile.types": "1100.0.14",
61
+ "@pnpm/network.auth-header": "1101.1.4",
62
+ "@pnpm/network.fetch": "1100.1.5",
63
+ "@pnpm/pkg-manifest.reader": "1100.0.10",
64
+ "@pnpm/pkg-manifest.utils": "1100.2.7",
65
+ "@pnpm/resolving.npm-resolver": "1102.1.3",
66
66
  "@pnpm/resolving.parse-wanted-dependency": "1100.0.1",
67
- "@pnpm/resolving.resolver-base": "1100.5.1",
67
+ "@pnpm/resolving.resolver-base": "1100.5.2",
68
68
  "@pnpm/semver-diff": "^2.0.0",
69
- "@pnpm/store.connection-manager": "1100.3.5",
70
- "@pnpm/store.controller": "1102.0.4",
71
- "@pnpm/types": "1101.3.2",
69
+ "@pnpm/store.connection-manager": "1100.3.6",
70
+ "@pnpm/store.controller": "1102.0.5",
71
+ "@pnpm/types": "1101.4.0",
72
72
  "@pnpm/util.lex-comparator": "^4.0.1",
73
- "@pnpm/workspace.project-manifest-reader": "1100.0.14",
74
- "@pnpm/workspace.project-manifest-writer": "1100.0.8",
75
- "@pnpm/workspace.projects-filter": "1100.0.26",
76
- "@pnpm/workspace.projects-graph": "1100.0.22",
77
- "@pnpm/workspace.projects-reader": "1101.0.13",
78
- "@pnpm/workspace.projects-sorter": "1100.0.8",
73
+ "@pnpm/workspace.project-manifest-reader": "1100.0.15",
74
+ "@pnpm/workspace.project-manifest-writer": "1100.0.9",
75
+ "@pnpm/workspace.projects-filter": "1100.0.27",
76
+ "@pnpm/workspace.projects-graph": "1100.0.23",
77
+ "@pnpm/workspace.projects-reader": "1101.0.14",
78
+ "@pnpm/workspace.projects-sorter": "1100.0.9",
79
79
  "@pnpm/workspace.root-finder": "1100.0.3",
80
- "@pnpm/workspace.state": "1100.0.27",
81
- "@pnpm/workspace.workspace-manifest-writer": "1100.0.15",
80
+ "@pnpm/workspace.state": "1100.0.28",
81
+ "@pnpm/workspace.workspace-manifest-writer": "1100.0.16",
82
82
  "@yarnpkg/core": "4.8.0",
83
83
  "@yarnpkg/lockfile": "^1.1.0",
84
84
  "@zkochan/rimraf": "^4.0.0",
@@ -101,19 +101,19 @@
101
101
  },
102
102
  "devDependencies": {
103
103
  "@jest/globals": "30.4.1",
104
- "@pnpm/assert-project": "1100.0.18",
105
- "@pnpm/installing.commands": "1100.10.4",
106
- "@pnpm/installing.modules-yaml": "1100.0.9",
104
+ "@pnpm/assert-project": "1100.0.19",
105
+ "@pnpm/installing.commands": "1100.10.5",
106
+ "@pnpm/installing.modules-yaml": "1100.0.10",
107
107
  "@pnpm/logger": "1100.0.0",
108
- "@pnpm/prepare": "1100.0.18",
108
+ "@pnpm/prepare": "1100.0.19",
109
109
  "@pnpm/store.index": "1100.2.1",
110
110
  "@pnpm/test-fixtures": "1100.0.0",
111
111
  "@pnpm/test-ipc-server": "1100.0.0",
112
- "@pnpm/testing.command-defaults": "1100.0.8",
113
- "@pnpm/testing.mock-agent": "1101.0.4",
114
- "@pnpm/testing.registry-mock": "1100.0.8",
115
- "@pnpm/worker": "1100.2.3",
116
- "@pnpm/workspace.projects-filter": "1100.0.26",
112
+ "@pnpm/testing.command-defaults": "1100.0.9",
113
+ "@pnpm/testing.mock-agent": "1101.0.5",
114
+ "@pnpm/testing.registry-mock": "1100.0.9",
115
+ "@pnpm/worker": "1100.2.4",
116
+ "@pnpm/workspace.projects-filter": "1100.0.27",
117
117
  "@types/js-yaml": "^4.0.9",
118
118
  "@types/normalize-path": "^3.0.2",
119
119
  "@types/proxyquire": "^1.3.31",
@@ -1,8 +0,0 @@
1
- import type { InstallCommandOptions } from './install.js';
2
- export type GetFetchFullMetadataOptions = Pick<InstallCommandOptions, 'supportedArchitectures'>;
3
- /**
4
- * This function is a workaround for the fact that npm registry's abbreviated metadata currently does not contain `libc`.
5
- *
6
- * See <https://github.com/pnpm/pnpm/issues/7362#issuecomment-1971964689>.
7
- */
8
- export declare const getFetchFullMetadata: (opts: GetFetchFullMetadataOptions) => true | undefined;
@@ -1,7 +0,0 @@
1
- /**
2
- * This function is a workaround for the fact that npm registry's abbreviated metadata currently does not contain `libc`.
3
- *
4
- * See <https://github.com/pnpm/pnpm/issues/7362#issuecomment-1971964689>.
5
- */
6
- export const getFetchFullMetadata = (opts) => opts.supportedArchitectures?.libc && true;
7
- //# sourceMappingURL=getFetchFullMetadata.js.map