@pnpm/store.connection-manager 1002.2.4 → 1100.0.1

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.
@@ -1,12 +1,12 @@
1
- import type { Config } from '@pnpm/config.reader';
1
+ import type { Config, ConfigContext } from '@pnpm/config.reader';
2
2
  import { type ClientOptions } from '@pnpm/installing.client';
3
3
  import { type CafsLocker, type StoreController } from '@pnpm/store.controller';
4
- type CreateResolverOptions = Pick<Config, 'fetchRetries' | 'fetchRetryFactor' | 'fetchRetryMaxtimeout' | 'fetchRetryMintimeout' | 'offline' | 'rawConfig' | 'verifyStoreIntegrity'> & Required<Pick<Config, 'cacheDir' | 'storeDir'>>;
5
- export type CreateNewStoreControllerOptions = CreateResolverOptions & Pick<Config, 'ca' | 'cert' | 'engineStrict' | 'force' | 'nodeVersion' | 'fetchTimeout' | 'fetchWarnTimeoutMs' | 'fetchMinSpeedKiBps' | 'gitShallowHosts' | 'ignoreScripts' | 'hooks' | 'httpProxy' | 'httpsProxy' | 'key' | 'localAddress' | 'maxSockets' | 'minimumReleaseAge' | 'networkConcurrency' | 'noProxy' | 'offline' | 'packageImportMethod' | 'preferOffline' | 'preserveAbsolutePaths' | 'registries' | 'registrySupportsTimeField' | 'resolutionMode' | 'saveWorkspaceProtocol' | 'strictSsl' | 'trustPolicy' | 'unsafePerm' | 'userAgent' | 'verifyStoreIntegrity' | 'virtualStoreDirMaxLength'> & {
4
+ type CreateResolverOptions = Pick<Config, 'fetchRetries' | 'fetchRetryFactor' | 'fetchRetryMaxtimeout' | 'fetchRetryMintimeout' | 'offline' | 'configByUri' | 'verifyStoreIntegrity'> & Required<Pick<Config, 'cacheDir' | 'storeDir'>>;
5
+ export type CreateNewStoreControllerOptions = CreateResolverOptions & Pick<Config, 'ca' | 'cert' | 'engineStrict' | 'force' | 'nodeDownloadMirrors' | 'nodeVersion' | 'fetchTimeout' | 'fetchWarnTimeoutMs' | 'fetchMinSpeedKiBps' | 'gitShallowHosts' | 'ignoreScripts' | 'httpProxy' | 'httpsProxy' | 'key' | 'localAddress' | 'maxSockets' | 'minimumReleaseAge' | 'minimumReleaseAgeStrict' | 'networkConcurrency' | 'noProxy' | 'offline' | 'packageImportMethod' | 'preferOffline' | 'preserveAbsolutePaths' | 'registries' | 'registrySupportsTimeField' | 'resolutionMode' | 'saveWorkspaceProtocol' | 'strictSsl' | 'trustPolicy' | 'unsafePerm' | 'userAgent' | 'verifyStoreIntegrity' | 'virtualStoreDirMaxLength'> & Pick<ConfigContext, 'hooks'> & {
6
6
  cafsLocker?: CafsLocker;
7
7
  ignoreFile?: (filename: string) => boolean;
8
8
  fetchFullMetadata?: boolean;
9
- } & Partial<Pick<Config, 'userConfig' | 'deployAllFiles' | 'sslConfigs' | 'strictStorePkgContentCheck'>> & Pick<ClientOptions, 'resolveSymlinksInInjectedDirs'>;
9
+ } & Partial<Pick<Config, 'deployAllFiles' | 'strictStorePkgContentCheck'>> & Pick<ClientOptions, 'resolveSymlinksInInjectedDirs'>;
10
10
  export declare function createNewStoreController(opts: CreateNewStoreControllerOptions): Promise<{
11
11
  ctrl: StoreController;
12
12
  dir: string;
@@ -5,16 +5,13 @@ import { createPackageStore } from '@pnpm/store.controller';
5
5
  import { StoreIndex } from '@pnpm/store.index';
6
6
  export async function createNewStoreController(opts) {
7
7
  const fullMetadata = opts.fetchFullMetadata ?? ((opts.resolutionMode === 'time-based' ||
8
- Boolean(opts.minimumReleaseAge) ||
9
8
  opts.trustPolicy === 'no-downgrade') && !opts.registrySupportsTimeField);
10
9
  await fs.mkdir(opts.storeDir, { recursive: true });
11
10
  const storeIndex = new StoreIndex(opts.storeDir);
12
11
  const { resolve, fetchers, clearResolutionCache } = createClient({
13
12
  customResolvers: opts.hooks?.customResolvers,
14
13
  customFetchers: opts.hooks?.customFetchers,
15
- userConfig: opts.userConfig,
16
14
  unsafePerm: opts.unsafePerm,
17
- authConfig: opts.rawConfig,
18
15
  ca: opts.ca,
19
16
  cacheDir: opts.cacheDir,
20
17
  storeDir: opts.storeDir,
@@ -28,11 +25,11 @@ export async function createNewStoreController(opts) {
28
25
  ignoreScripts: opts.ignoreScripts,
29
26
  key: opts.key,
30
27
  localAddress: opts.localAddress,
28
+ nodeDownloadMirrors: opts.nodeDownloadMirrors,
31
29
  noProxy: opts.noProxy,
32
30
  offline: opts.offline,
33
31
  preferOffline: opts.preferOffline,
34
- rawConfig: opts.rawConfig,
35
- sslConfigs: opts.sslConfigs,
32
+ configByUri: opts.configByUri,
36
33
  registries: opts.registries,
37
34
  retry: {
38
35
  factor: opts.fetchRetryFactor,
@@ -51,7 +48,7 @@ export async function createNewStoreController(opts) {
51
48
  includeOnlyPackageFiles: !opts.deployAllFiles,
52
49
  saveWorkspaceProtocol: opts.saveWorkspaceProtocol,
53
50
  preserveAbsolutePaths: opts.preserveAbsolutePaths,
54
- strictPublishedByCheck: Boolean(opts.minimumReleaseAge),
51
+ strictPublishedByCheck: Boolean(opts.minimumReleaseAge) && opts.minimumReleaseAgeStrict === true,
55
52
  storeIndex,
56
53
  });
57
54
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnpm/store.connection-manager",
3
- "version": "1002.2.4",
3
+ "version": "1100.0.1",
4
4
  "description": "Create a pnpm store controller",
5
5
  "keywords": [
6
6
  "pnpm",
@@ -25,19 +25,19 @@
25
25
  ],
26
26
  "dependencies": {
27
27
  "dir-is-case-sensitive": "^3.0.0",
28
- "@pnpm/cli.meta": "1000.0.11",
29
- "@pnpm/config.reader": "1004.4.2",
30
- "@pnpm/store.controller": "1004.0.0",
31
- "@pnpm/store.index": "1000.0.0-0",
32
- "@pnpm/installing.client": "1001.1.4",
33
- "@pnpm/store.path": "1000.0.5"
28
+ "@pnpm/cli.meta": "1100.0.1",
29
+ "@pnpm/config.reader": "1100.0.1",
30
+ "@pnpm/installing.client": "1100.0.1",
31
+ "@pnpm/store.controller": "1100.0.1",
32
+ "@pnpm/store.path": "1100.0.0",
33
+ "@pnpm/store.index": "1100.0.0"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "@pnpm/logger": ">=1001.0.0 <1002.0.0"
37
37
  },
38
38
  "devDependencies": {
39
- "@pnpm/logger": "1001.0.1",
40
- "@pnpm/store.connection-manager": "1002.2.4"
39
+ "@pnpm/store.connection-manager": "1100.0.1",
40
+ "@pnpm/logger": "1100.0.0"
41
41
  },
42
42
  "engines": {
43
43
  "node": ">=22.13"
@@ -48,7 +48,7 @@
48
48
  "scripts": {
49
49
  "lint": "eslint \"src/**/*.ts\"",
50
50
  "pretest": "rimraf node_modules/.bin/pnpm",
51
- "test": "pnpm run compile",
52
- "compile": "tsgo --build && pnpm run lint --fix"
51
+ "test": "pn compile",
52
+ "compile": "tsgo --build && pn lint --fix"
53
53
  }
54
54
  }