Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pnpm/config

Package Overview
Dependencies
Maintainers
3
Versions
318
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/config - npm Package Compare versions

Comparing version 9.0.0-alpha.2 to 9.0.0

23

CHANGELOG.md
# @pnpm/config
## 9.0.0
### Major Changes
- e11019b89: Deprecate the resolution strategy setting. The fewer dependencies strategy is used always.
- 802d145fc: Remove `independent-leaves` support.
- 45fdcfde2: Locking is removed.
### Minor Changes
- 242cf8737: The `link-workspace-packages` setting may be set to `deep`. When using `deep`,
workspace packages are linked into subdependencies, not only to direct dependencies of projects.
### Patch Changes
- Updated dependencies [b5f66c0f2]
- Updated dependencies [ca9f50844]
- Updated dependencies [da091c711]
- Updated dependencies [4f5801b1c]
- @pnpm/constants@4.0.0
- @pnpm/types@6.0.0
- @pnpm/error@1.2.1
## 9.0.0-alpha.2

@@ -4,0 +27,0 @@

2

lib/Config.d.ts

@@ -86,3 +86,2 @@ import { ProjectManifest, Registries } from '@pnpm/types';

pnpmfile: string;
independentLeaves?: boolean;
packageImportMethod?: 'auto' | 'hardlink' | 'copy' | 'clone';

@@ -102,3 +101,2 @@ hoistPattern?: string[];

useLockfile: boolean;
resolutionStrategy: 'fast' | 'fewer-dependencies';
globalPnpmfile?: string;

@@ -105,0 +103,0 @@ npmPath?: string;

@@ -38,3 +38,2 @@ "use strict";

'ignore-workspace-root-check': Boolean,
'independent-leaves': Boolean,
'link-workspace-packages': [Boolean, 'deep'],

@@ -58,3 +57,2 @@ 'lockfile': Boolean,

'reporter': String,
'resolution-strategy': ['fast', 'fewer-dependencies'],
'save-peer': Boolean,

@@ -130,3 +128,2 @@ 'save-workspace-protocol': Boolean,

'registry': npmDefaults.registry,
'resolution-strategy': 'fewer-dependencies',
'save-peer': false,

@@ -210,8 +207,2 @@ 'save-workspace-protocol': true,

pnpmConfig.saveOptional = false;
if (pnpmConfig.independentLeaves) {
if (opts.cliOptions['independent-leaves']) {
throw new error_1.default('CONFIG_CONFLICT_INDEPENDENT_LEAVES_WITH_GLOBAL', 'Configuration conflict. "independent-leaves" may not be used with "global"');
}
pnpmConfig.independentLeaves = false;
}
if (pnpmConfig.hoistPattern && (pnpmConfig.hoistPattern.length > 1 || pnpmConfig.hoistPattern[0] !== '*')) {

@@ -221,3 +212,2 @@ if (opts.cliOptions['hoist-pattern']) {

}
pnpmConfig.independentLeaves = false;
}

@@ -296,5 +286,2 @@ if (pnpmConfig.linkWorkspacePackages) {

}
else if (pnpmConfig.independentLeaves === true) {
throw new error_1.default('CONFIG_CONFLICT_INDEPENDENT_LEAVES_AND_HOIST', '"independent-leaves=true" can only be used when hoisting is off, so "hoist=false"');
}
if (typeof pnpmConfig['color'] === 'boolean') {

@@ -301,0 +288,0 @@ switch (pnpmConfig['color']) {

{
"name": "@pnpm/config",
"version": "9.0.0-alpha.2",
"version": "9.0.0",
"description": "Gets configuration options for pnpm",

@@ -34,5 +34,5 @@ "main": "lib/index.js",

"dependencies": {
"@pnpm/constants": "4.0.0-alpha.1",
"@pnpm/constants": "4.0.0",
"@pnpm/error": "1.2.0",
"@pnpm/types": "6.0.0-alpha.0",
"@pnpm/types": "6.0.0",
"@zkochan/npm-conf": "2.0.0",

@@ -39,0 +39,0 @@ "camelcase": "6.0.0",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc