feat: resolution-mode is highest by default (#6987)

close #6463
This commit is contained in:
Zoltan Kochan
2023-08-26 18:28:50 +03:00
committed by GitHub
parent c8a6ea8ae9
commit cb8bcc8df1
2 changed files with 7 additions and 1 deletions

View File

@@ -0,0 +1,6 @@
---
"@pnpm/config": major
"pnpm": minor
---
The default value of the `resolution-mode` setting is changed to `highest`. This setting was changed to `lowest-direct` in v8.0.0 and some users were [not happy with the change](https://github.com/pnpm/pnpm/issues/6463). A [twitter poll](https://twitter.com/pnpmjs/status/1693707270897517022) concluded that most of the users want the old behaviour (`resolution-mode` set to `highest` by default). This is a semi-breaking change but should not affect users that commit their lockfile [#6463](https://github.com/pnpm/pnpm/issues/6463).

View File

@@ -227,7 +227,7 @@ export async function getConfig (
],
'recursive-install': true,
registry: npmDefaults.registry,
'resolution-mode': 'lowest-direct',
'resolution-mode': 'highest',
'resolve-peers-from-workspace-root': true,
'save-peer': false,
'save-workspace-protocol': 'rolling',