Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
6.24.0
->6.32.1
Release Notes
pnpm/pnpm
v6.32.1
Compare Source
v6.32.0
Minor Changes
A new setting is supported in the
pnpm
section of thepackage.json
file #4001.onlyBuiltDependencies
is an array of package names that are allowed to be executed during installation. If this field exists, only mentioned packages will be able to run install scripts.-F
is a short alias of--filter
#3467.When adding a new dependency, use the version specifier from the overrides, when present #4313.
Normally, if the latest version of
foo
is2.0.0
, thenpnpm add foo
installsfoo@^2.0.0
. This behavior changes iffoo
is specified in an override:In this case,
pnpm add foo
will addfoo@1.0.0
to the dependency. However, if a version is explicitly specifying, then the specified version will be used and the override will be ignored. Sopnpm add foo@0
will install v0 and it doesn't matter what is in the overrides.Patch Changes
*
, just replace any range with*
.Full Changelog: pnpm/pnpm@v6.31.0...v6.32.0
v6.31.0
Compare Source
Minor Changes
Added
--shell-mode
/-c
option support topnpm exec
#4328--shell-mode
: shell interpreter. See: https://github.com/sindresorhus/execa/tree/484f28de7c35da5150155e7a523cbb20de161a4f#shellUsage example:
Patch Changes
publishConfig
when thepack
orpublish
commands are used #4311pnpx
,pnpm dlx
,pnpm create
, andpnpm exec
commands should set thenpm_config_user_agent
env variable #3985.What's Changed
New Contributors
Full Changelog: pnpm/pnpm@v6.30.1...v6.31.0
v6.30.1
Compare Source
Patch Changes
This fixes an issue introduced in pnpm v6.30.0.
When a package is not linked to
node_modules
, no info message should be printed about it being "relinked" from the store #4314.v6.30.0
Compare Source
Minor Changes
v6.29.2
Compare Source
Patch Changes
node_modules
directories inside injected dependencies should not be overwritten #4299.v6.29.1
Compare Source
Patch Changes
node_modules
.v6.29.0
Compare Source
Minor Changes
update-notifier
configuration option #4158.Patch Changes
v6.28.0
Compare Source
Minor Changes
embed-readme
. Whenfalse
,pnpm publish
doesn't save the readme file's content topackage.json
before publish #4265.Patch Changes
pnpm exec
should look for the executed command in thenode_modules/.bin
directory that is relative to the current working directory. Only after that should it look for the executable in the workspace root.v6.27.2
Compare Source
v6.27.1
Compare Source
Patch Changes
peerDependencyRules
should work when bothoverrides
andpackageExtensions
are present as well #4255.pnpm list
should show information whether a package is private or not #4246.v6.27.0
Compare Source
Minor Changes
Side effects cache is not an experimental feature anymore.
Side effects cache is saved separately for packages with different dependencies. So if
foo
hasbar
in the dependencies, then a separate cache will be created each timefoo
is installed with a different version ofbar
#4238.Patch Changes
devDependencies
#4196.v6.26.1
Compare Source
Patch Changes
node_modules
. This was an issue only withnode-linker=hoisted
#4229.v6.26.0
Compare Source
Minor Changes
In order to mute some types of peer dependency warnings, a new section in
package.json
may be used for declaring peer dependency warning rules. For example, the next configuration will turn off any warnings about missingbabel-loader
peer dependency and about@angular/common
, when the wanted version of@angular/common
is not v13.New setting supported:
auto-install-peers
. When it is set totrue
,pnpm add <pkg>
automatically installs any missing peer dependencies asdevDependencies
#4213.v6.25.1
Compare Source
Patch Changes
v6.25.0
Compare Source
Minor Changes
New installation mode added that creates a flat
node_modules
directory without the usage of symlinks. This is similar to the one created by npm and Yarn Classic.To use this new installation mode, set the
node-linker
setting tohoisted
. These are the supported values ofnode-linker
:isolated
- the default value.hoisted
- flatnode_modules
without symlinks.pnp
- nonode_modules
. Yarn's Plug'n'Play managed by pnpm.Related issue: #4073
Add support for token helper, a command line tool to obtain a token.
A token helper is an executable, set in the user's
.npmrc
which outputs an auth token. This can be used in situations where the authToken is not a constant value, but is something that refreshes regularly, where a script or other tool can use an existing refresh token to obtain a new access token.The configuration for the path to the helper must be an absolute path, with no arguments. In order to be secure, it is only permitted to set this value in the user
.npmrc
, otherwise a project could place a value in a project local.npmrc
and run arbitrary executables.Usage example:
Related PRs:
New CLI option:
--ignore-workspace
. When used, pnpm ignores any workspace configuration found in the current or parent directories.If
use-beta-cli
istrue
, then don't setnpm_config_argv
env variable for scripts #4175.v6.24.4
Compare Source
Patch Changes
Don't throw an error during install when the bin of a dependency points to a path that doesn't exist #3763.
When reporting unmet peer dependency issues, if the peer dependency is resolved not from a dependency installed by the user, then print the name of the parent package that has the bad peer dependency installed as a dependency.
Injected subdependencies should be hard linked as well. So if
button
is injected intocard
andcard
is injected intopage
, then bothbutton
andcard
should be injected intopage
#4167.v6.24.3
Compare Source
Patch Changes
--frozen-lockfile
should not fail when the project has injected dependencies and a dedicated lockfile #4098.v6.24.2
Compare Source
Patch Changes
If pnpm previously failed to install node when the
use-node-version
option is set, that download and install will now be re-attempted when pnpm is ran again #4104.Don't warn about unmet peer dependency when the peer is resolved from a prerelease version #4144.
For instance, if a project has
react@*
as a peer dependency, then react16.0.0-rc.0
should not cause a warning.pnpm update pkg
should not fail ifpkg
not found as a direct dependency, unless--depth=0
is passed as a CLI option #4122.When printing peer dependency issues, print the "*" range in double quotes. This will make it easier to copy the package resolutions and put them to the end of a
pnpm add
command for execution.v6.24.1
Compare Source
Patch Changes
pnpm publish
should add the content of theREADME.md
file to thereadme
field of the published package'spackage.json
files #4117.pnpm publish
should work with the--otp
option #4115.Configuration
📅 Schedule: "before 3am on the first day of the month" (UTC).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.