Minor Changes
- A new
resolution-mode
added:lowest-direct
. With this resolution mode direct dependencies will be resolved to their lowest versions. So if there isfoo@^1.1.0
in the dependencies, then1.1.0
will be installed, even if the latest version offoo
is1.2.0
. - Support script selector with RegExp such as
pnpm run /build:.*/
and execute the matched scripts with the RegExp #5871.
Patch Changes
-
Deduplicate direct dependencies.
Let's say there are two projects in the workspace that dependend on
foo
. One project hasfoo@1.0.0
in the dependencies while another one hasfoo@^1.0.0
in the dependencies. In this case,foo@1.0.0
should be installed to both projects as satisfies the version specs of both projects. -
Use Map rather than Object in
createPackageExtender
to prevent read the prototype property to native function