Update all non-major dependencies #52
Loading…
Reference in a new issue
No description provided.
Delete branch "renovate/all-minor-patch"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
7.3.1→7.3.24.3.3→4.3.51.7.0→1.7.110.6.1→10.7.01.20.0→1.21.110.0.5→10.0.75.10.0→5.12.0v4.1.2→v4.1.42.5.0→2.6.33.2.0→3.2.113.42.0→13.44.15.50.0→5.52.01.2.7→1.3.013.9.0→13.12.01.32.1→1.32.31.8.1→1.11.01.12.0→1.14.01.68.0→1.71.04.3.3→4.5.05.25.0→5.29.03.0.2→3.2.09.28.0→9.29.19.30.04.4.8→4.4.108.9.5→8.9.61.4.0→1.6.01.15.0→1.17.01.18.05.10.0→5.12.013.4.5→13.4.812.10.1→12.23.08.5.29→8.5.333.6.1→3.8.04.28.0→4.31.02.12.5→2.13.15.57.2→5.59.15.59.28.3.3→8.3.88.0.1→8.1.1Release Notes
sveltejs/vite-plugin-svelte (@sveltejs/vite-plugin-svelte)
v7.3.2Compare Source
Patch Changes
chore: deprecate the
inspectoroption in favour of@sveltejs/vite-devtools-svelte, which includes the Svelte Inspector (#1438)fix: log compile stats at the end of a build (#1418)
fix: remove unused
magic-stringdependency (#1413)tailwindlabs/tailwindcss (@tailwindcss/vite)
v4.3.5Compare Source
Fixed
matchVariantplugin with thousands of values) (#20663)color-mix(…)without a color interpolation method (e.g.color-mix(var(--color-red-500))orcolor-mix(currentcolor 50%, transparent)) (#20658, #20666)@tailwindcss/oxide-wasm32-wasiloads instead of hanging forever (e.g. withNAPI_RS_FORCE_WASI=erroror in WebContainers) (#20667)as: '*.css'from the@tailwindcss/turbopacksetup in its README, because it breaks CSS modules (#20660)<!--and-->between top-level rules in CSS instead of throwing or swallowing the next rule (e.g.a { color: red } --> b { color: blue }) (#20665)@tailwindcss/oxide-wasm32-wasidetects changed and new source files after the first scan (e.g. in WebContainers) (#20487)skipLibCheck: falsecaused by imports of unshipped modules in the@tailwindcss/nodetype declarations (#20632)v4.3.4Compare Source
Added
@tailwindcss/turbopack, a Turbopack loader for using Tailwind CSS with Next.js (#20367)Fixed
@sourcefiles whose real paths aren't otherwise scanned (#20356)@scopewrap generated utilities instead of nesting inside them (#20369)@scoperules preserve their scoping semantics when flattened (#20369)@scopeby wrapping them in:where(:scope)(#20369)var()fallbacks (e.g.var(--tw-blur,)→var(--tw-blur, )) (#20373)max-[64rem]:flex→max-lg:flex) (#20380)@tailwindcss/vitefrom crashing on every edit under Vite's experimentalbundledDevmode (#20379)@tailwindcss/oxidefalls back to WASM on platforms without native bindings (@tailwindcss/oxide-wasm32-wasinow installs on all platforms, but only loads when no native binding is available) (#20383)%wand%Wliterals using angle brackets or custom delimiters (e.g.%w<flex>,%w|flex|), including in Slim and Haml templates (#20387)--default(…)values in functional@utilitydefinitions (e.g.--default(box alphabetic)no longer becomesboxalphabetic) (#20392).gitignorefiles (e.g./*followed by!/…patterns) (#20397)theme('…')namespace lookups in JavaScript plugins and config files return the full namespace object instead of the value of itsDEFAULTkey (#20399)@tailwindcss/vitefrom forcing full-page reloads for scanned files that Vite does not handle as modules (e.g..phpfiles) (#20414)unset(#20417)rounded-sm/[5],shadow-sm/foo,stroke-2/50) (#20419)and,or, andnotinside selectors insupports-[…]variants (e.g.supports-[selector(a:not(.foo))]:flex) (#20420)::ng-deepand:host-context()when optimizing CSS (#20434)bg-red-500/50/andgroup-hover/foo//bar:flex) (#20466)min-*,max-*, and container query variants with decimal values are sorted numerically (e.g.min-[40.25rem]beforemin-[40.5rem]) (#20512)\*/are closed correctly instead of swallowing the CSS that follows (e.g./* C:\temp\*/) (#20508)group-*andpeer-*variants (#20513)loadModuleandloadStylesheetcallbacks after compilation (#20531)&when moving a pseudo-element into*or**(e.g.[&_::before]:flex→**:[&::before]:flex) (#20550)Set.prototype.intersectionpolyfill incanonicalizeCandidates(…)returns the intersection instead of the first set on Node.js < 22 (#20562)theme(…)alphas with more than 2 decimals migrate to a percentage modifier with the same opacity (e.g.theme(colors.red.500/.12345)→text-red-500/[12.345%], nottext-red-500/[12.345]) (#20563)theme(…)alphas as an arbitrary percentage when a custom--opacity-*theme value would change the opacity (e.g.theme(colors.red.500/50%)→text-red-500/[50%]with--opacity-50: 10%) (#20563)@propertyfallback isn't applied in Safari versions that no longer supportmargin-trim: inline(#20569)dvminandsviand font-relative units likecapandrexas lengths in arbitrary values (e.g.text-[10dvmin]generatesfont-sizeinstead ofcolor) (#20516)tailwindcss canonicalizeso they don't end up in the results on stdout (#20561)input(pattern=/"/.source)) (#20547, #20572)--value(…)warnings (#20554)text-foreground text-primary→text-primary, nottext-card-checked-border) (#20540)mt-card mb-card→my-card, notmy-4) (#20574)@tailwindcss/postcssrewrites relativeurl(…)s of stylesheets that are inlined before it runs (e.g.@imports in Vite) in optimized builds (#20576)selection:*on a utility with a nested& > *rule) (#20575)w-[calc(1px]or[--x:a[b]) (#20577)collapse: truefrom taking exponentially longer when classes are linked through a utility that sets many properties (e.g.sr-only) (#20558)&is substituted inside:-moz-any(…)and:-webkit-any(…)in custom variants (e.g.@custom-variant firefox (:-moz-any(&));) (#20486)@tailwindcss/turbopackand@tailwindcss/webpackrebuild when the input CSS changes (e.g.next devwith Turbopack no longer serves the CSS of the previous edit) (#20582)--tw-*variable when an unrelated property has the same value (e.g.link mt-4no longer becomesmt-4whenlinksetsmargin-top: 16pxand--tw-translate-x: 16px) (#20593)@utilitynames as the CSS spec does (e.g.@theme { --color-\0: red; }no longer registers--color-0) (#20591)!importantinside strings, comments orurl()in declaration values as the important flag (e.g.content: "a !important b") (#20627);(e.g.--foo: baras the last declaration) (#20653);at the end of the CSS input (e.g.color: red) (#20655)xyflow/xyflow (@xyflow/svelte)
v1.7.1Compare Source
Patch Changes
#6106
b65d451- Prevent excessive repainting of nodes during pan & zoom#6068
7813eeb- Cancel a pending click connection when clicking the pane and callonClickConnectEnd/onclickconnectend#6090
b235ea0- RespectnodeOrigininisNodeIntersectingandgetIntersectingNodeswhen you pass a node object instead of{ id }#6054
c7d0fcb- Disconnect theResizeObservers when a flow unmountsUpdated dependencies [
d150c38,8483a2f,c7d0fcb,9dcbd29,cba335d]:postcss/autoprefixer (autoprefixer)
v10.7.0Compare Source
--envto the CLI (by @shreyanshj10).@supportswithsupports: false(by @Ultroncn).selector()after another@supportscondition (by @onmax).v10.6.2Compare Source
/* autoprefixer: ignore next warning */(by @dualfroz).-webkit-cross-fade()for images with numbers (by @mkantautas).axios/axios (axios)
v1.21.1Compare Source
v1.21.1 — November 9, 2026
This release raises the minimum
follow-redirectsversion to fix a published CVE, fixes a Next.js prerendering failure caused by the response duration timer, corrects thegetAdaptertypings, and includes documentation corrections, new test coverage, CI runner changes and dependency updates.🔒 Security Fixes
follow-redirectsrange from^1.16.0to^1.16.2to fix CVE-2026-116689 (GHSA-mrwp-f3q8-3g9p). In the vulnerable versions,sensitiveHeadersarrays from another realm were ignored and custom credentials could follow redirects. Only the Node.js HTTP adapter is affected, and there are no API changes. (#11410)🐛 Bug Fixes
dispatchRequestnow measuresresponse.durationwithperformance.now()and usesDate.now()only whenperformance.now()isn't available. In v1.21.0, any axios request from a Server Component failed Next.js production builds with Cache Components (cacheComponents: true), because Next.js rejectsDate.now()while prerendering. The duration is still a whole number of milliseconds, and system clock changes no longer affect it. (#11411)getAdapternow accepts an optionalconfig?: AxiosRequestConfiginindex.d.tsandindex.d.cts, matching what it does at runtime. You can now callgetAdapter('fetch', { env: { fetch: myFetch } })without a cast. (#11404)🔧 Maintenance & Chores
Documentation Corrections: Brought the README and docs site in line with how axios actually behaves:
transformRequestruns for every method, and transformers receive(data, headers, status).responseTypeandContent-Typehave no default value.AxiosHeaders#getand#normalizeare described correctly.axios.isAxiosError(), not byname.ECONNREFUSEDandERR_FORM_DATA_DEPTH_EXCEEDED, and note that FormData parsing has a fixed depth limit thatmaxDepthdoesn't change.redactdoesn't scan, which adapters enforcemaxContentLength/maxBodyLength, and howformToJSON()handles field name collisions.(#11374, #11373, #11389, #11419, #11429, #11430)
Docs Site: Added a Partners page, a shared card design for sponsors and partners, a Namespace sponsor badge, and a blog whose first post announces HeroDevs Never-Ending Support for Axios v0. Also applied the v1.20.0/v1.21.0 release notes to the docs, and fixed internal links in the es, fr and zh translations so they keep their locale prefix. (#11390, #11399, #11400, #11412, #11401)
Test Coverage: Added cancellation tests across the HTTP, fetch and XHR adapters. They cover
AbortSignal,CancelToken, cancelling while a request interceptor is pending, and timeout precedence. Also added tests forno_proxyedge cases inshouldBypassProxy, such as internationalized domain names, malformed CIDR and IPv4 entries, and port-qualified entries. Neither changes runtime behavior. (#11376, #11431)CI: GitHub Actions jobs now run on Namespace runners. The npm publish job stays on GitHub-hosted runners, because npm provenance and trusted publishing (OIDC) only work there. (#11396)
Dependencies: Updated development and tooling dependencies, including
vitestand@vitest/*(to 5.x at the root),typescript(7.x at the root),vite,rollup,eslint,playwright,@commitlint/*,@rollup/plugin-alias,@rollup/plugin-terser,body-parser,multer,serialize-javascript,fast-uri,qs,zizmorcore/zizmor-action, andfollow-redirectsin/docs. (#11383, #11375, #11372, #11345, #11392, #11387, #11386, #11385, #11391, #11388, #11395, #11421, #11422, #11426)Release: Prepared the 1.21.1 release. (#11435)
🌟 New Contributors
We are thrilled to welcome our new contributors. Thank you for helping improve axios:
Full Changelog
v1.21.0Compare Source
This release adds response timing and opt-in UTF-8 Basic authentication, improves request handling across runtimes, and changes how header defaults are recognized.
open-cli-tools/concurrently (concurrently)
v10.0.7Compare Source
What's Changed
New Contributors
Full Changelog: https://github.com/open-cli-tools/concurrently/compare/v10.0.6...v10.0.7
v10.0.6Compare Source
What's Changed
New Contributors
Full Changelog: https://github.com/open-cli-tools/concurrently/compare/v10.0.5...v10.0.6
filamentphp/panels (filament/filament)
v5.12.0Compare Source
v5.11.4Compare Source
v5.11.3Compare Source
v5.11.2Compare Source
v5.11.1Compare Source
v5.11.0Compare Source
v5.10.3Compare Source
v5.10.2Compare Source
v5.10.1Compare Source
actions/cosign-installer (https://git.calltheory.com/actions/cosign-installer)
v4.1.4Compare Source
v4.1.3Compare Source
laravel/echo (laravel-echo)
v2.6.3Compare Source
What's Changed
Full Changelog: https://github.com/laravel/echo/compare/v2.6.2...v2.6.3
v2.6.1Compare Source
What's Changed
Full Changelog: https://github.com/laravel/echo/compare/v2.6.0...v2.6.1
laravel/vite-plugin (laravel-vite-plugin)
v3.2.1Compare Source
What's Changed
New Contributors
Full Changelog: https://github.com/laravel/vite-plugin/compare/v3.2.0...v3.2.1
laravel/framework (laravel/framework)
v13.44.1Compare Source
v13.44.0Compare Source
v13.43.0Compare Source
expiresquery string fromQUERY_STRINGheader by @crynobone in #62349schedule:list --jsonby @xiCO2k in #62358__missing__by @crynobone in #62402expiresfrom$_SERVER['VAPOR_RAW_QUERY_STRING']by @crynobone in #62391where()values literally by @pushpak1300 in #62426where()values literally by @pushpak1300 in #62425expiresparameters from bypassing signed URL expiration by @GrahamCampbell in #62411Arr::forget()removing the wrong element by @GrahamCampbell in #62410releaseUsingBackoff()toInteractsWithQueueby @xiCO2k in #62435#[RetryFor]queue attribute by @xiCO2k in #62434Illuminate\JsonSchema\Deserializerby bounding$refchain depth by @crynobone in #62498Hostvalues by @crynobone in #62484laravel/horizon (laravel/horizon)
v5.52.0Compare Source
What's Changed
New Contributors
Full Changelog: https://github.com/laravel/horizon/compare/v5.51.0...v5.52.0
v5.51.0Compare Source
What's Changed
New Contributors
Full Changelog: https://github.com/laravel/horizon/compare/v5.51.0...v5.52.0
v5.50.1Compare Source
What's Changed
Full Changelog: https://github.com/laravel/horizon/compare/v5.50.1...v5.51.0
laravel/pail (laravel/pail)
v1.3.0Compare Source
What's Changed
New Contributors
Full Changelog: https://github.com/laravel/pail/compare/v1.2.7...v1.3.0
laravel/passport (laravel/passport)
v13.12.0Compare Source
What's Changed
New Contributors
Full Changelog: https://github.com/laravel/passport/compare/v13.11.0...v13.12.0
v13.11.0Compare Source
What's Changed
New Contributors
Full Changelog: https://github.com/laravel/passport/compare/v13.11.0...v13.12.0
v13.10.0Compare Source
What's Changed
Full Changelog: https://github.com/laravel/passport/compare/v13.10.0...v13.11.0
laravel/pint (laravel/pint)
v1.32.3Compare Source
Full Changelog: https://github.com/laravel/pint/compare/v1.32.2...v1.32.3
v1.32.2Compare Source
What's Changed
New Contributors
Full Changelog: https://github.com/laravel/pint/compare/v1.32.1...v1.32.2
laravel/pulse (laravel/pulse)
v1.11.0Compare Source
What's Changed
Full Changelog: https://github.com/laravel/pulse/compare/v1.10.0...v1.11.0
v1.10.0Compare Source
What's Changed
Full Changelog: https://github.com/laravel/pulse/compare/v1.10.0...v1.11.0
v1.9.0Compare Source
Full Changelog: https://github.com/laravel/pulse/compare/1.9.0...v1.10.0
laravel/reverb (laravel/reverb)
v1.14.0Compare Source
What's Changed
Full Changelog: https://github.com/laravel/reverb/compare/v1.13.0...v1.14.0
v1.13.0Compare Source
What's Changed
Full Changelog: https://github.com/laravel/reverb/compare/v1.13.0...v1.14.0
laravel/sail (laravel/sail)
v1.71.0Compare Source
What's Changed
Full Changelog: https://github.com/laravel/sail/compare/v1.70.0...v1.71.0
v1.70.0Compare Source
What's Changed
Full Changelog: https://github.com/laravel/sail/compare/v1.70.0...v1.71.0
v1.69.0Compare Source
What's Changed
Full Changelog: https://github.com/laravel/sail/compare/v1.69.0...v1.70.0
laravel/sanctum (laravel/sanctum)
v4.5.0Compare Source
What's Changed
Full Changelog: https://github.com/laravel/sanctum/compare/v4.4.0...v4.5.0
v4.4.0Compare Source
What's Changed
Full Changelog: https://github.com/laravel/sanctum/compare/v4.4.0...v4.5.0
laravel/telescope (laravel/telescope)
v5.29.0Compare Source
What's Changed
Full Changelog: https://github.com/laravel/telescope/compare/v5.28.0...v5.29.0
v5.28.0Compare Source
What's Changed
Full Changelog: https://github.com/laravel/telescope/compare/v5.28.0...v5.29.0
v5.27.0Compare Source
What's Changed
Full Changelog: https://github.com/laravel/telescope/compare/v5.27.0...v5.28.0
v5.26.0Compare Source
What's Changed
New Contributors
Full Changelog: https://github.com/laravel/telescope/compare/v5.26.0...v5.27.0
laravel/tinker (laravel/tinker)
v3.2.0Compare Source
What's Changed
Full Changelog: https://github.com/laravel/tinker/compare/v3.1.0...v3.2.0
v3.1.0Compare Source
What's Changed
Full Changelog: https://github.com/laravel/tinker/compare/v3.1.0...v3.2.0
thephpleague/csv (league/csv)
v9.29.1Compare Source
Added
Deprecated
Fixed
CharsetConverterno longer buffers the rest of the stream after an invalid byte sequence, which let a crafted CSV document use excessive CPU time and memory - GHSA-m9j4-54gj-jvf8 by localhost8080 (Jonathan Mitchell)Reader::last()andReader::lastAsObject().Remove
v9.29.0Compare Source
Added
Closurein constant expressions during Record Mapping.AbstractCsv::fromStreamto instantiate aReaderor aWriterinstance from a stream or aSplFileObjectobjectAbstractCsv::fromPathto instantiate aReaderor aWriterinstance from a path as a string or aSplFileInfoobjectSortDirectionenum from PHP 8.6+ - #580 by okorneliukBuffer::valuemethodDeprecated
Fixed
JsonConverterpretty printing.SwapDelimiter::prependTonow prepends the stream filter instead of appending it.Writer::forceEnclosurenow doubles embedded enclosures when the escape character is the empty string.EscapeFormularound-trip now preserves fields starting with the escape characterArrayIterator::uasortusage because the method is deprecated in PHP8.6.STREAM_FILTER_WRITEinprependStreamFilterOnWritemethod - #577 by zigzagdev$callbackproperty to null to prevent uninitialized property - #576 by zigzagdevTimeFieldseparator - #592 by lenamonjBuffer::nthandBuffer::nthASObject#594 by dualfrozFragmentFinder::findFirstcrashing see issue #596FragmentFinderignoring row and column ranges whose start and end are the same, likerow=4-4- #599 by ybai08FragmentFinderignoring positions written with leading zeros, likerow=05-07, which RFC 7111 allows - #600 by ybai08CharsetConverterdecodingUTF-16andUTF-32input with the wrong byte order after the first chunk when the stream starts with a little-endian BOM - #602 by wleeafReaderreturning an extra empty record at the end of anSplFileObjectdocument when empty records are included - #603 by wleeafNOT BETWEENandNOT_BETWEENcomparison operators being resolved toBETWEEN- #604 by wleeafArgumentCountErrorwhen the column value is resolved through an object__callmethod - #605 by youdie006TabularData::valuenow supports negative column offset. Beforenullwas always returned; nownullis only returned if the column offset does not exist.Remove
v9.28.1Compare Source
Added
Deprecated
Fixed
CharsetConverterno longer buffers the rest of the stream after an invalid byte sequence, which let a crafted CSV document use excessive CPU time and memory - GHSA-m9j4-54gj-jvf8 by localhost8080 (Jonathan Mitchell)Remove
livewire/livewire (livewire/livewire)
v4.4.10Compare Source
Includes security fixes and reliability improvements. Updating is recommended.
Refresh already-open pages after deploying the update.
v4.4.9Compare Source
Includes security fixes and reliability improvements. Updating is recommended.
Refresh already-open pages after deploying the update.
nunomaduro/collision (nunomaduro/collision)
v8.9.6Compare Source
opentelemetry-php/exporter-otlp (open-telemetry/exporter-otlp)
v1.6.0Compare Source
Breaking changes
open-telemetry/sdk1.17 andtbachert/spi. The exporter and transport factories are registered throughSPI. Allow the
tbachert/spiComposer plugin for the early registration, without it they are registered when thepackage's autoload file loads, as before ([#2120]).
Deprecated
Temporalityor a string as the temporality ofMetricExporter. Pass a selector such asTemporalityPreference::cumulative()orTemporalityPreference::delta(). The delta preference keepsUpDownCounters cumulative, as the specification requires, where
Temporality::DELTAmade them delta. An exporterbuilt without a temporality is not deprecated. It uses each stream's temporality until 2.0, and cumulative from
2.0. Pass
TemporalityPreference::cumulative()to get that now ([#2129]).Fixed
tbachert/spiplugin running, theotlpexporters and thehttptransport are available while the SDKautoloads, whatever the order in which Composer includes the packages ([#2120]).
otlp/stdoutmetrics exporter readsOTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE, as theotlpexporter does. It used each stream's temporality, so synchronous instruments were exported as delta ([#2129]).
v1.5.0Compare Source
Breaking changes
open-telemetry/sdk1.16 ([#2095]).open-telemetry/gen-otlp-protobuf1.11.1, which requiresgoogle/protobuf4.31.ext-protobuf, if installed, must also be 4.31. The exporters throw aRuntimeExceptiononconstruction if it is older. JSON export encodes enums with
PrintOptions::ALWAYS_PRINT_ENUMS_AS_INTS, and the fallback for older versions is removed([#2110]).
Added
OTEL_EXPORTER_OTLP_[SIGNAL_]CERTIFICATE,OTEL_EXPORTER_OTLP_[SIGNAL_]CLIENT_CERTIFICATEandOTEL_EXPORTER_OTLP_[SIGNAL_]CLIENT_KEYare passed to the transport ([#2059]).OTEL_EXPORTER_OTLP_[SIGNAL_]INSECURE. A gRPC endpoint without a scheme useshttps, orhttpwhen this is true ([#2059]).MetricExporteraccepts anAggregationTemporalitySelectorInterface([#2095]).Changed
User-Agentheader isOTel-OTLP-Exporter-PHP/<version>, as the spec says ([#2092]).record_min_max: false, are exportedwithout them ([#2093]).
Deprecated
error ([#2059]).
Fixed
grpcand no endpoint set, the exporter used the HTTP defaulthttp://localhost:4318. Ituses
http://localhost:4317([#2059]).OTEL_EXPORTER_OTLP_TRACES_ENDPOINT, was used withoutthe gRPC method ([#2059]).
/on a gRPC endpoint was read as a path ([#2095]).OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCEis applied per instrument kind.deltamadeup-down counters delta too ([#2095]).
User-Agentwas sent beside the default one when its case differed. Header namesmerge case-insensitively, and a configured header wins ([#2095]).
headers_listvalues are percent-decoded, asOTEL_EXPORTER_OTLP_HEADERSvalues are ([#2095]).
opentelemetry-php/sdk (open-telemetry/sdk)
v1.17.0Compare Source
Breaking changes
Configuration::getEnum()now returns lowercase values. Callers outside the SDK that compare its result withuppercase or mixed-case strings must update their comparisons to use lowercase ([#2142]).
Registrynow gets its built-in and package components fromRegistrarInterfaceproviders (SPI) when it is firstasked for one, no longer from
_register.phpfiles that Composer includes. A component registered withRegistry::register*()before that first lookup wins over a provider's, one registered with$clobberalways wins,and a non-clobbering registration made after it is ignored for names a provider already filled. A package that
registers a built-in name from its own autoload file now wins over the SDK's built-in one, it used to lose. Allow the
tbachert/spiComposer plugin inconfig.allow-pluginsfor this to take effect, without it the components areregistered when their autoload files load, as before ([#2120]).
Added
RegistrarInterface, for packages to register exporter factories, transport factories and propagators with theRegistrythrough SPI. Declare it withextra.spi-config.autoload-filesorextra.spi. It is a bridge for SDK 1.xand will be removed in SDK 2.0, together with the
Registry([#2120]).InMemoryExporteraccepts anAggregationTemporalitySelectorInterface, such asTemporalityPreference, as itstemporality, like the console and OTLP metric exporters ([#2129]).
as it always was. Report measurements through the observer instead ([#2129]).
Changed
InstrumentType::GAUGEis no longer experimental. The synchronous Gauge is stable in the specification ([#2129]).Deprecated
Temporalityor a string as the temporality ofConsoleMetricExporterorInMemoryExporter. Pass aselector such as
TemporalityPreference::cumulative()orTemporalityPreference::delta(). The delta preferencekeeps UpDownCounters cumulative, as the specification requires, where
Temporality::DELTAmade them delta. Anexporter built without a temporality is not deprecated. It uses each stream's temporality until 2.0, which is
delta for synchronous instruments and cumulative for asynchronous ones. From 2.0 it will use cumulative. Pass
TemporalityPreference::cumulative()to get that now ([#2129]).MetricMetadataInterface::temporality()andMetricStreamInterface::temporality(). Choose temporality byinstrument type instead. They will be removed in 2.0 ([#2129]).
Fixed
case-insensitively. Exporter and transport factory names, text map propagator names, resource detector and response
propagator names are also case-insensitive when registering and looking up components ([#2142]).
tbachert/spiplugin running, the SDK finds the OTLP factories whilesdk/_autoload.phpbuilds its providers. It used to build them beforeexporter-otlp/_register.phpcould registerthem, and the providers then stayed noop for the whole process, with
Span exporter factory not defined for: otlpin the log. This also hit
OTEL_CONFIG_FILE(Transport factory not defined for protocol: http) ([#2120]).AutoRootSpan::start($notifySpanEnded)registers the callback also when the root span was already started, forexample by
SdkAutoloader::autoload(). The callback used to be dropped. A callback that throws no longer keeps theroot span from ending ([#2120]).
threjection threshold exactly, with the precision recommended by thespecification. Sampling thresholds computed from ratios that aren't a sum of 56-bit fractions used to differ from the
spec test vectors:
1/3wasth:aaaaaaaaaaaaacinstead ofth:aaab,0.1wasth:e6666666666666instead ofth:e666([#2140]).v1.16.1Compare Source
Security
ioreg,kenvandpowershell.exethrough a shell, so they werelooked up on
PATH, and on Windows in the current directory. A program placed there raninstead. It runs
/usr/sbin/ioreg,/bin/kenvandreg.exeby absolute path, without ashell ([GHSA-fc6f-cp96-6g5w]).
host.idwas""on macOS and Windows, or/bin/kenvonBSD. It is left out instead ([GHSA-fc6f-cp96-6g5w]).
v1.16.0Compare Source
Breaking changes
OTEL_CONFIG_FILEnames one file. It used to be split on commas for instrumentation config([#2105]).
symfony/polyfill-php82([#2091]).open-telemetry/api1.11, forLogging::setLogLevel()([#2068]).open-telemetry/sem-conv1.45, forHttpIncubatingAttributes::HTTP_REQUEST_BODY_CONTENT([#2101]).
Accept-Encodingheader in the exporter headers, onlygzipresponses are decoded.The discovered Guzzle client used to decode responses, and no longer does, so the body of a response
in another encoding, such as
deflateorzstd, is ignored with a warning. Without that header theSDK asks for an uncompressed response ([#2115], [#2112]).
PsrTransportonly decodes gzip responses (also asx-gzip). The body of a successful responsethat can't be decoded, such as a
deflateorbrone that the specification doesn't mention, isignored with a warning ([#2112]).
Added
OTEL_PHP_EXCLUDED_REQUEST_HEADERSdisables the SDK for web requests that have a matchingheader, like
OTEL_PHP_EXCLUDED_URLSdoes for a URL, for exampleUser-Agent: kube-probe*,X-Skip-Tracing. Entries arename: valueorname, the name ignorescase and treats
_as-, and the value takes*wildcards. A value cannot contain a comma,and a header sent more than once is matched as one value joined with
,. Headers are read from$_SERVERand are set by the client, so use a header that a trusted proxy sets or removes ifclients must not be able to opt out. It is evaluated when the SDK autoloads, so it needs an
autoload per request and does not work in workers that autoload once at boot ([#2113]).
OpenTelemetry\SDK\Trace\Sampler\Consistent, led byCompositeSampler. All are experimental ([#2077]).METHOD path, grouped byOTEL_PHP_TRANSACTION_URL_GROUPS. Itcaptures the headers named in
OTEL_INSTRUMENTATION_HTTP_SERVER_CAPTURE_REQUEST_HEADERSandOTEL_INSTRUMENTATION_HTTP_SERVER_CAPTURE_RESPONSE_HEADERS, and setshttp.response.status_code.OTEL_PHP_TRANSACTION_SPAN_ENABLEDturns it on, andOTEL_PHP_TRANSACTION_SPAN_ENABLED_CLIadds a root span for CLI scripts. NewAutoRootSpan::start()([#2080]).OTEL_METRICS_EXEMPLAR_FILTERacceptsalways_on,always_offandtrace_based, and defaultsto
trace_based.all,noneandwith_sampled_tracestill work ([#2057]).RandomTraceIdGeneratorInterface. Root spans from a generator that implements it, such asRandomIdGenerator, get the W3Crandomtrace flag ([#2092]).TemporalityPreference, anAggregationTemporalitySelectorInterfacethat picks temporality perinstrument kind ([#2095]), and
TemporalityPreference::fromName()([#2105]).DropAggregation,InstrumentUnitCriteria,ViewTemplate::withAggregationResolver(), andrecordMinMaxonExplicitBucketHistogramAggregation([#2093]).ViewTemplate::withAttributeKeyFilter(), which keeps attribute keys by*and?patterns.Excluded wins ([#2095]).
ConsoleMetricExporteraccepts anAggregationTemporalitySelectorInterfaceand aTransportInterface([#2095]).SdkBuilder::setLogLevel(), applied bybuildAndRegisterGlobal()until its scope is detached([#2068]).
OTEL_PHP_INSTRUMENTATION_HTTP_SERVER_CAPTURE_REQUEST_BODYmakes the auto root span record therequest body as
http.request.body.content, cut atOTEL_PHP_INSTRUMENTATION_HTTP_SERVER_CAPTURE_REQUEST_BODY_MAX_SIZEbytes (1024 by default).It is off by default, records only textual bodies, and does not redact them ([#2101]).
Changed
OTEL_CONFIG_FILE, or one set withoutopen-telemetry/sdk-configurationinstalled, logs a warning and leaves the SDK as noop. It used to throw ([#2076]).
OTEL_CONFIG_FILEas the SDK. This needsopen-telemetry/sdk-configuration0.10. An older one logs a warning and instrumentation gets noconfig ([#2076]).
OTEL_RESOURCE_ATTRIBUTESlogs a warning and is discarded in full. It used tothrow, which left the SDK as noop ([#2105]).
OTEL_RESOURCE_ATTRIBUTESorOTEL_EXPORTER_OTLP_HEADERSis skipped. An entry with an empty key is an error ([#2105]).BatchSpanProcessorandBatchLogRecordProcessorlower amaxExportBatchSizeabovemaxQueueSizeto the queue size, with a warning. They used to throw ([#2105]). They accept aschedule delay or export timeout of
0([#2095]).TraceIdRatioBasedSamplerwarns once when used as a child sampler ([#2105]). Its description isTraceIdRatioBased{...}, notTraceIdRatioBasedSampler{...}([#2092]).AlwaysRecordSampleris no longer experimental ([#2092]).setException()([#2092]).
Instrument::$unitand$descriptionare strings. A null is stored as''([#2105]).ConsoleMetricExporterwrites through a stream transport, and returns false if the metricscan't be encoded. It writes NaN and infinities as
"NaN","Infinity"and"-Infinity"([#2095]).
SdkDistributionandDistributionRegistryare@internal.DistributionConfigurationandDistributionPropertiesare experimental ([#2097]).Deprecated
OTEL_PHP_EXPERIMENTAL_AUTO_ROOT_SPAN. UseOTEL_PHP_TRANSACTION_SPAN_ENABLED, which wins whenboth are set ([#2080]).
EventLoggerProvider,EventLoggerProviderInterfaceandNoopEventLoggerProvider, with therest of the Events API ([#2092]).
Fixed
Content-Encodingin place, as Symfony HttpClient does, because the body was decoded again.
PsrTransportnow sendsAccept-Encoding: identity, so the server doesn't compress the response, and the discovered Guzzleclient no longer decodes responses (
decode_contentisfalse). A client you pass in yourself keepsits own decoding, but gets the same
Accept-Encodingheader ([#2115]).PsrTransportlimits the OTLP/HTTP response body to 4 MiB, also after decompression, as thespecification requires. A larger response is discarded with a warning and the export fails without
a retry, whatever its status, even if the server accepted the data. Decompression is streamed and
checked in small steps. The PSR-18 client may buffer the whole response before the limit applies
([#2112]).
OTEL_ATTRIBUTE_COUNT_LIMITandOTEL_ATTRIBUTE_VALUE_LENGTH_LIMITwere ignored. They apply tospan, event, link and log record limits that aren't set more specifically ([#2058]).
PsrTransportFactoryignored itscacert,certandkeyarguments. It passes them to theHTTP client ([#2060]). A client that rejects them is created without them, with a warning, and
Symfony HttpClient no longer rejects them ([#2095]).
limit ([#2095], [#2105]).
OTEL_PHP_TRANSACTION_URL_GROUPSmatched texts it should not: apattern with several
*accepted its parts in the wrong order (*health*probe*matchedclient/probe/health) and the last part could overlap an earlier one (ab*bcmatchedabc)([#2113]).
PHPOffice/PhpSpreadsheet (phpoffice/phpspreadsheet)
v5.12.0Compare Source
Added
Fixed
#N/Aor#DIV/0!; every error constant was written as#NULL!. Issue #5022 PR #5067XLOOKUP()without anif_not_foundargument returns a real#N/Aerror when nothing matches, instead of the string#N/A!, soISNA(),ISERROR()andIFNA()handle it. Issue #5085 PR #5095#REF!, as Excel does. Issue #792 PR #5077SEARCH()treats?and*in the text to find as wildcards, and~as escaping them, as Excel does; they were matched literally. Issue #5075 PR #5076v5.11.0Compare Source
Added
/TH; Ods Reader reads a named database range back as a table (the anonymous range LibreOffice keeps for the filter of a sheet stays that sheet's autofilter), and an autofilter now lands on the sheet its range names. Issue #5022 PR #5023phpoffice/wmflibrary: Xlsx Writer stores them as is, Ods, Xls, Html and Pdf Writers and comment backgrounds use a PNG rendering; Xlsx and Ods Writers can switch withsetConvertMetafilesToPng()(new inBaseWriter), andMemoryDrawing::fromString()/fromStream()accept them. New methodsDrawing::isMetafile()andDrawing::getMetafileType(), and new helperShared\Metafile.Document\Properties::setLanguage(): the language of a spreadsheet as a BCP 47 tag, written and read asdc:languagein Xlsx and Ods; the Ods writer also gives it to the default cell style, where LibreOffice keeps a spreadsheet's language, as LibreOffice writes it (the Western, Asian or complex slot by script, andstyle:rfc-language-tagfor a tag with more than a language and a country), and the Ods reader reads it from there when there is nodc:language. Html writes and reads it as thelangof thehtmlelement. Issue #5040 PR #5041Chart::setDescription()is the alternative text of a chart, written asdescrof the chart's frame and read back, and the frame takes the chart's name; LibreOffice exports it as/Altof the chart in a tagged PDF. Issue #5038 PR #5039BaseDrawing::setDecorative()marks an image as decorative. Xlsx writes and reads it as Excel and LibreOffice do (adec:decorativein the image'scNvPr), Ods as LibreOffice does (loext:decorativein the frame's graphic style, which the writer now defines; the reader also takes ODF 1.4'sdraw:decorative); LibreOffice then leaves the image out of a tagged PDF as an artifact. Html writes and reads it as an emptyalt. Issue #5036 PR #5037alton the VML shape as Excel writes it. Issue #5056 PR #5057Changed
phpoffice/wmfis a new required dependency, used to render Windows Metafiles images.Drawing::UNSUPPORTED_IMAGE_TYPE_MESSAGE).Deprecated
_calculateFormulaValueforcalculateFormulaValue. PR #4992Fixed
333333) no longer makes the palette look full, so later custom colors are no longer written as black. Issue #5065 PR #5066RIGHT()returns all of the text when the number of characters requested is greater than its length. PR #5044=""<75is FALSE. PR #5004VALUE()no longer treats product-like text such as5V 2.1A - EU Wall Adaptoras a date serial. Issue #4996 PR #4997style:writing-mode="rl-tb", and Ods Reader reads it back; the direction was lost both ways. Issue #5015 PR #5016#Sheet.A1, as ODF and LibreOffice do, and Ods Reader reads that form back assheet://Sheet!A1, so a Xlsx saved from it no longer gets a broken location. Issue #5011 PR #5012svg:descand read back, so that LibreOffice exports it as the alternative text of the figure. Issue #5009 PR #5010preferHyperlinkToLabel) no longer add an empty hyperlink to every cell they write, which made a later Xlsx save throw "Invalid parameters passed." Issue #5007 PR #5008 PR #5021style:hyperlinkinstyle:table-cell-properties), as it writes a link from a Xlsx file. Issue #5017 PR #5018removeColumn()no longer throws "Invalid column index 0" when it removes column A and every column up to the highest data column, e.g.removeColumn('A')on an empty sheet. Issue #5049 PR #5050removeColumn()andremoveRow()take the removed columns/rows out of data validation ranges: a validation that lies only on them is deleted, and a range that ends on them shrinks, instead of covering the column/row that slides into their place. Issue #5047 PR #50481/1with0/0, and when the last numerator placeholder is 0, so 1 is1 0/1with0 0/0, as Excel does. Issue #3625 PR #5060Worksheet no longer exists. Issue #5058 PR #5059Call to a member function getBlipType() on null). Issue #274MemoryDrawing); they were ignored. Issue #274image/x-wmfandimage/x-emfinstead ofapplication/octet-stream, and Ods Writer does the same in its manifest when it stores them as is.Column::setTotalsRowFormula()), written astotalsRowFormulawithtotalsRowFunction="custom"; before it was dropped. The totals row label, function (asSUBTOTAL) or formula of a column also sets its totals row cell when that cell is empty, so it no longer has to be set by hand. Issue #5063 PR #5064getDataValidation()anddataValidationExists()no longer throw "Cell coordinate string can not be a range of cells" for a range once a validation on a range exists; a range gets the validation set on exactly that range, or a new one. Issue #5073 PR #5074@treat a backslash as an escape character, as Excel does, so@\XdisplaysTestasTestXinstead ofTest\X; backslashes in the text itself are kept. Issue #5069 PR #5071sebastianbergmann/phpunit (phpunit/phpunit)
v13.4.8: PHPUnit 13.4.8Compare Source
Fixed
--generate-baselinecontains an issue once for each time it was triggered, for instance once for each data set of a test that uses a data provider, instead of oncebuild/baseline.xmland the file insrc--log-junit php://stdoutis used, orphp://stdoutis configured for the JUnit XML logfile in the XML configuration file, and the test runner prints its regular output, the test runner ends withAn error occurred inside PHPUnitafter the JUnit XML was printed: the test results are not printed, code coverage reports and the baseline are not written, and the shell exit code is255--log-junit php://stdoutis used together with--stderr, the JUnit XML is printed to the standard error stream--compactonly printsNo tests executed!and not why, for instance the PHPUnit error for the invalid data provider of the only test, or the test runner warning for a test class without testsLearn how to install or update PHPUnit 13.4 in the documentation.
Keep up to date with PHPUnit:
v13.4.7: PHPUnit 13.4.7Compare Source
Fixed
--order-by random,defectsconfigured using theexecutionOrderattribute in the XML configuration file is still applied, and vice versadefaulttogether with an order for--order-byor theexecutionOrderXML configuration attribute, for instancedefault,random, triggers a deprecation for using more than one order, althoughdefaultresets the order instead of selecting one--fail-on-skippeddoes not make the test runner exit with a shell exit code that indicates failure when a test class is skipped, for instance because its before-first-test method callsmarkTestSkipped(), although its tests are counted as skipped--stop-on-skippeddoes not stop the test run when a test class is skipped, for instance because its before-first-test method callsmarkTestSkipped()PHPUnit\orSebastianBergmann\namespace that do not belong to PHPUnit or one of its dependencies are preloaded on startup, which leads to a fatal error when such a code unit depends on code that is not availablesebastian/file-filterandsebastian/git-stateis not treated like code from PHPUnit's other dependencies, for instance stack frames from it are not filtered from stack tracesnikic/php-parserand parts of the code fromphar-io/manifestare not treated like code from PHPUnit's other dependencies, for instance stack frames from it are not filtered from stack tracesLearn how to install or update PHPUnit 13.4 in the documentation.
Keep up to date with PHPUnit:
v13.4.6: PHPUnit 13.4.6Compare Source
Changed
Fixed
method()is called for a method of a test double that cannot be configured, for instance because it does not exist, every subsequent invocation of a method of that test double fails withMethod name is not configuredsetUp(), marks the test as incomplete, the hook method is reported as failedtearDown(), marks a successful test as incomplete or skips it, the test is reported as failedsetUpBeforeClass(), callsmarkTestIncomplete(), each test of the test class is reported as failed instead of the test class being skipped as it is whenmarkTestSkipped()is calledtearDownAfterClass(), callsmarkTestIncomplete()ormarkTestSkipped()after the tests of the test class have been run, this is reported as a failure, also for each test of the test class that is run in process isolationassert(), in a hook method is reported as an error of that method instead of as a failure, and it is counted as an error instead of as a failure when that method is a before-first-test method or an after-last-test methodtearDown(), of a test that already failed, errored, or was marked as incomplete, a failure is reported in addition to the outcome of the test, so the test is counted more than once andonNotSuccessfulTest()is called with the failure from the "after test" method instead of the test's owntearDown(), is reported in addition to the test's failure, so the test is counted more than oncerequireCoverageMetadata="true"is configured, when it does not define a code coverage target, unlike a test that fails because an assertion failedsetUpBeforeClass()--debugand in the logfiles written by--log-events-textand--log-events-verbose-textgroupsattribute of<directory>or<file>in the XML configuration file are not assigned to PHPT tests, so--groupand--exclude-groupdo not select them and--list-groupsand--list-tests-xmlreport them as being in thedefaultgroup or not at allRemoved
phpunit-library-X.Y.Z.phar) is no longer built, it could not be loaded since PHPUnit 9.5.8Learn how to install or update PHPUnit 13.4 in the documentation.
Keep up to date with PHPUnit:
pnpm/pnpm (pnpm)
v12.23.0: pnpm 12.23Compare Source
This release adds
pnpm edit,pnpm catalog migrate, andpnpm link --hard, and moves deprecation warnings into the install summary. Platform variants are removed, so packages that publish them need to move tooptionalDependencies. It also carries security fixes: pnpm no longer readsotpfrom config files, and it sends registry credentials only over HTTPS.Minor Changes
Packing and publishing
Removed platform variants. A package version has one archive again.
pnpm no longer reads
publishConfig.variantsor thevariantfield ofpackage.json.pnpm pack --variantand the--upload-variant,--variant-integrityand--no-variantsoptions ofpnpm publishare gone. pnpr no longer accepts variant archives with a version or serves them at<name>@<version>/variants/<tag>.To ship builds for several platforms, publish each as its own package and list them in
optionalDependencies. A frozen install of a lockfile that records the variants of a registry package fails withERR_PNPM_BROKEN_LOCKFILE. Runpnpm installto resolve the lockfile again.pnpm packandpnpm publishnow fail if a package that is not private lists a private workspace package independencies. A private package is never published, so the published package could not be installed.devDependencies,optionalDependencies,peerDependencies, and bundled dependencies are still allowed #2321.pnpm publishnow supports--new-version <version>, which sets the version inpackage.jsonbefore publishing. With--recursive, every selected workspace package is set to the new version #2168.pnpm pack --jsonnow reports thepackage.jsonthat goes into the tarball, withpublishConfigand the other publish-time changes applied. Runpnpm pack --dry-run --jsonto preview it without writing a tarball. A dry run still runsprepackandprepare, unless--ignore-scriptsis passed.pnpm packandpnpm publishnow add a workspace-rootCOPYINGfile to a workspace package that has no license file. ACOPYINGfile at the package root now counts as the package's license, so the workspace-rootLICENSEis no longer added next to it.Added the
versioning.includePrivatePackagessetting. Set it tofalseto leave private packages out ofpnpm change#13813.Managing dependencies
Added the
pnpm editcommand to open an installed package directory in an editor.Added
pnpm catalog migrate, which moves dependency specifiers into the default catalog and replaces them in the workspace projects'package.jsonfiles withcatalog:. A dependency moves only when every project declares it with the same specifier. The command lists the dependencies it leaves unchanged #7072.Added a
--hardoption topnpm link. With--hard, pnpm saves the linked package with thefile:protocol, so its files are hard linked intonode_modulesand its dependencies and peer dependencies resolve from your project.pnpm unlinkremoves these links too #9895.pnpm removenow accepts glob patterns and!exclusions in dependency selectors, such aspnpm remove "eslint-*" "!eslint-plugin-import"#13546.When pnpm updates a
package.json5, it now changes only the values that changed. Comments, quotes, number formats, and layout elsewhere in the file stay as written. New keys and strings use the quote style of the file.nodeLinkeraccepts object settings for isolated and hoisted installs. Linker-specific hoisting options can be configured alongside the selected linker.Updating dependencies
pnpm update --latest <pkg>now moves the override that pins the named dependency #8701.pnpm update --interactive --latestdoes the same for every selected dependency. An override keeps its own range shape: a pin on an exact version lands on the new exact version, and^stays^. When pnpm cannot update the governing override automatically, the update prints a warning naming it.pnpm updatenow accepts--tag <tag>. The flag updates the matched dependencies to the version behind the given dist-tag and rewrites the ranges inpackage.json, the way--latestupdates to thelatesttag. It also works with--interactiveand with global updates #3534.With
trustPolicy: no-downgrade,pnpm update --interactiveshows aTrustcolumn with the trust evidence of each offered registry dependency #8889. The list also offers only versions the trust policy accepts, so it matches what the update installs.pnpm update --interactive --longshows the homepage or repository URL of each package. The URL column is hidden without--long.Release age and build settings
Added the
referenceTimesetting.minimumReleaseAgeandtrustPolicyIgnoreAftercount back from this RFC 3339 time, both when pnpm resolves versions and when it verifies a lockfile. Set it inpnpm-workspace.yamlor withPNPM_CONFIG_REFERENCE_TIME.Added the
--minimum-release-ageand--minimum-release-age-excludeoptions topnpm install,pnpm add,pnpm update, andpnpm dlx. They setminimumReleaseAgeandminimumReleaseAgeExcludefor a single run without editing a config file #11224.pnpm audit --fixaccepts--no-add-release-age-exclusions, which applies the fixes without adding entries tominimumReleaseAgeExclude.--allow-buildnow accepts a comma-separated list of packages, sopnpm add foo bar --allow-build=foo,baris the same as passing--allow-build=foo --allow-build=bar#9560.Install output
Deprecation warnings moved into the install summary and only name the packages the install added. A deprecated dependency added by the install is marked
deprecatedon its summary line, with the version that is not deprecated when there is one. Deprecated subdependencies the install added are listed right after the summary. Deprecated packages that were already installed are reported as one count, such as3 deprecated packages are still installed.In a workspace, the install summary now lists the direct dependency changes of every project, not only of the project pnpm runs in. Each change is listed once, followed by the projects that made it, unless only the current project did. A project's first install lists only deprecated or outdated dependencies and the ones the command added #6481.
pnpm installnow warns when an entry inoverridesmatches no dependency, in a single line such as2 overrides matched no dependency: foo, parent>child. Only the overrides declared in the workspace are checked. Overrides added by a config dependency or anupdateConfighook are not. SetwarnUnusedOverrides: falseto turn the warning off #10315.pnpm installnow shows lockfile verification progress while the supply-chain check runs. The final pass or failure line reports how many entries were checked.Setup and diagnostics
pnpm doctornow checks the environment that lifecycle scripts run in. It lists thenodeexecutables onPATHand warns about broken ones. It reports the shell that runs scripts. A new check runs a package's executable from a script, both in a temporary project and in the current project. If that script fails, the report includes the error and, outside Windows, a trace of the executable's shim that shows how it looked up and startednode#16308.pnpm self-update,pnpm setup, and the "Install method" check ofpnpm doctornow warn when anotherpnpmonPATHwould run in place of the one pnpm installed. The warning names that copy. If pnpm recognizes how it was installed (npm, Homebrew, Corepack, Volta, or Scoop), the warning also gives the command that removes it.Set
PNPM_CONFIG_HOMEto choose the directory containingconfig.yamlandauth.ini. Global configuration commands read and write files in this directory. A non-empty value takes precedence overXDG_CONFIG_HOMEand the platform defaults.pnpm now provides a prebuilt binary for Linux on LoongArch (loong64) with glibc.
A failed
devEngines.runtimeorengines.runtimecheck now reports the reason in its error code. A runtime that is not installed fails withERR_PNPM_RUNTIME_NOT_FOUND. A runtime entry without a version range fails withERR_PNPM_MISSING_RUNTIME_VERSION_RANGE, and one with an invalid range fails withERR_PNPM_INVALID_RUNTIME_VERSION_RANGE. An installed version that does not satisfy the range still fails withERR_PNPM_BAD_RUNTIME_VERSION.pnpm view <pkg>now prints the registry it read the metadata from at the end of the summary #11394.Patch Changes
Security
otpis no longer read from any config file. Pass--otpon the command line, or setPNPM_CONFIG_OTP. Apnpm-workspace.yamlor a globalconfig.yamlthat carriesotpis ignored, with a warning naming those two channels.pnpm config set otpfails withERR_PNPM_CONFIG_SET_NOT_A_FILE_SETTING.This closes a way to leak a secret. A repository could write
otp: ${NPM_TOKEN}beside its ownregistry:, andpnpm publishsent that environment variable to the registry the same file named, in thenpm-otpheader of its first request #13542.pnpm now sends registry credentials only over HTTPS or loopback HTTP, both for tarball downloads and for requests to
pnprServer. Tarball and package metadata requests respect registry credential paths on redirects. A failed tarball request can no longer pin its redirect destination in the lockfile.pnpm installnow rejects local filesystem dependencies (file:,link:, and path-basedworkspace:specifiers) declared by non-local packages withERR_PNPM_LOCAL_SUBDEP_NOT_ALLOWED. Relativefile:dependencies inside a package's own archive and local dependencies configured by the workspace throughoverrides,packageExtensions, or.pnpmfile.cjscontinue to work. Lockfile verification also rejects unauthorized local directory, tarball, and link entries on non-importer snapshots.pnpm installandpnpm install --frozen-lockfilenow enforceblockExoticSubdepsagainst entries inpnpm-lock.yaml. Before, pnpm accepted a lockfile with git or tarball URL subdependencies and installed those packages even withblockExoticSubdeps: true.pnpm installwithpnprServernow rejects registry-keyed lockfile entries whose resolution uses a non-registry source withERR_PNPM_RESOLUTION_SHAPE_MISMATCH. Thepnprlockfile verification and resolution endpoints enforce the same check before accepting or caching a lockfile.pnpm dlx,pnx, andpnpm createnow ignore local configuration in the working directory. This covers.pnpmfile.cjshooks, proxy and TLS settings in the project.npmrc, and execution, layout, and resolution settings in a localpnpm-workspace.yaml, includingpnpmfile,globalPnpmfile,configDependencies,scriptShell,cacheDir,storeDir, andignoreScripts. Settings from the user's globalconfig.yaml, such asblockExoticSubdeps,cacheDir, andstoreDir, remain active.Global commands (
--global,-g) no longer load.pnpmfile.cjs,pnpm-workspace.yaml, or.npmrcfrom the current working directory.pnpm why -gnow inspects globally installed packages.pnpm config getrefuses to print protected auth settings.pnpm config listhides TLS private keys and inline proxy credentials.pnpm config set --global tokenHelperwrites toauth.ini, and setting a project-leveltokenHelperfails.TLS file paths in
.npmrcandauth.iniresolve relative to the file that declares them. Project.npmrcfiles skip TLS file paths containing environment variables.When the
pnpmpackage downloads its native binary on first run, it now handles registry credentials the way pnpm does://registry.example.com/org-a/npm/:_authToken, are sent only to that path. They were sent to any path on the same host.auth.ini, wherepnpm loginwrites them, and from the_authsetting of the globalconfig.yaml.${NPM_TOKEN?}placeholder in.npmrcexpands to the variable. It expanded to an empty value, so the download was sent without credentials.Matching a glob that repeats a wildcard, such as
+(*)zin the workspacepackagespatterns, no longer hangs on long paths. The bundled picomatch is patched for a security advisory.pnpm packandpnpm publishnow rejectpublishConfig.directoryvalues that use an absolute path or..segments outside the package directory.The
pnpmbinary no longer depends onchrono, which RustSec reports as unmaintained in RUSTSEC-2026-0543.Installing packages
pnpm installnow adds a new workspace package that has no dependencies to theimportersofpnpm-lock.yaml#18189.With
enableGlobalVirtualStoreon,require.extensionshooks run again forrequire()calls from a module compiled from a string, such as the module Next.js uses to loadnext.config.ts. A required.tsfile skipped the registered TypeScript hook. A required.jsonfile was parsed as JavaScript #18261.On Windows, when the project is on a network share,
pnpm installnow links dependencies innode_moduleswith the kind of link that can be opened on that share. It tries a junction first and a symlink second. If neither can be opened, the install fails with advice.On Windows, concurrent installs that link the same dependency no longer leave an
.ignored_<name>entry next to the link in the global virtual store.pnpm installnow fails withERR_PNPM_UNSUPPORTED_PROTOCOLwhen afile:dependency that is not a workspace project uses acatalog:specifier. Injected workspace projects still resolve theircatalog:dependencies.A
link:or relative-path dependency of a local directory dependency now resolves from that directory. In any other package, such as a local tarball, it resolves from the lockfile directory. Both used to resolve from the importing project's directory pnpm/tasks#319.Two workspace projects that declare the same injected relative-path dependency, such as
../child, no longer share the directory the first one resolved.pnpm installnow links a workspace package for aworkspace:range that combines^,~, or*with other ranges, such asworkspace:^ || ^2.0.0.Fixed
pnpm installkeeping a runtime binary for the previous platform after a change tosupportedArchitectureswith the global virtual store disabled.The
nodeVersionsetting no longer changes the global virtual store directory names or the side-effects cache keys. These follow the Node.js runtime that pnpm installs for the project, then thenodeonPATH.pnpm licensesandpnpm store statusnow find packages that an install withnodeVersionplaced in the global virtual store.Fixed package maps resolving workspace and linked packages to the wrong directory when a path contains
#,?, or%.pnpm installandpnpm peers checkno longer report acatalog:peer of an injected workspace package as unmet when the installed version matches the catalog entry #10279.The peer dependency check now reads the version of an injected workspace package from its
package.json.pnpm installwithstrictPeerDependencies: trueandpnpm peers checkno longer report such a peer as unmet with afile:version.With
sharedWorkspaceLockfile: false,pnpm installnow reports missing peers of linked workspace packages, aspnpm peers checkdoes.peerDependencyRules.allowedVersionsnow accepts a parent version range that contains>, such as"foo@>=1.0.0>bar": "1".Fixed
nodeLinker: hoistedinstalls in a workspace where the directory of one project is inside the directory of another. A dependency of the inner project could resolve to the version in the outer project'snode_modules. pnpm now keeps the inner project's dependency in its ownnode_moduleswhen the outer project holds another version.With
nodeLinker: hoisted, pnpm now finds the agent skills of a dependency whose directory is shared with another peer variant of the same package version.pnpm installwithpnprServerset now handles more workspace settings:injectWorkspacePackages,dedupeInjectedDeps,ignoredOptionalDependencies, anddependenciesMeta. Projects that use them no longer fail withERR_PNPM_OUTDATED_LOCKFILEorERR_PNPM_LOCKFILE_CONFIG_MISMATCH.pnpm install --update-checksumsrefreshes the integrity checksums in the lockfile.minimumReleaseAgeStrictand adds fallback versions tominimumReleaseAgeExcludewhen strict mode is off.file:,link:, or local path dependencies, or whenblockExoticSubdepsisfalse.pnpralso rejects local filesystem dependency specifiers on/-/pnpr/v0/resolve.When an overrides entry requests a version that does not exist on the registry,
pnpm installnow names that override entry in the error. If the entry's selector has a version range, such asfoo@^1, the error also shows the latest published version in that range.pnpm addrun from a workspace package directory that has nopackage.jsonyet now suggests creating one withpnpm init#11345.The install summary now shows "(X is available)" after a direct dependency whose
latestversion on the registry is newer than the one installed. The note appears when the install resolved that dependency against registry metadata.Approving the
minimumReleaseAgeprompt no longer reprints the list of packages it just showed. pnpm now confirms with one line that says how many entries it added tominimumReleaseAgeExclude#15377.pnpm now prints a warning that explains why it has to remove and recreate a modules directory.
pnpm installwithnodeLinker: hoistedno longer hangs or runs out of memory in large workspaces whose packages are installed with many different sets of peer dependencies.Sped up
pnpm installon macOS for packages installed with several sets of peer dependencies. pnpm now clones every peer variant of a package from one cached copy of its files.Sped up linking bins in large workspaces. pnpm now reuses a workspace package's
package.jsonacross the projects that depend on it when linking their bins.pnpm install --frozen-lockfileno longer waits for a Node.js version check it does not use before it exits. With Homebrew's Node.js, a frozen install with nothing to do can be about 3x faster.Resolving a remote tarball uses the download response directly, saving a request.
pnpm in StackBlitz WebContainers sends HTTP response bodies and subprocess output to its engine as raw bytes. A 64 KiB chunk no longer becomes a 234 KB message pnpm/tasks#63.
Lockfile
Fixed
pnpm installfailing withERR_PNPM_NEXT_LOCKFILE_NOT_REPRESENTABLEunderlockfile.format: v13when a peer dependency is provided by an aliased package and another alias installs the package that has the peer's name #18198.Fixed writing v13 lockfiles when a package has an ordinary npm alias of one of its direct or transitive peers #18274.
Fixed conversion to the v13 lockfile format when a hashed peer suffix includes a workspace link and the package installs its own copy of another declared peer #18288.
pnpm installnow converts an existing lockfile when you changelockfile.format, even when all dependencies are already installed. Withlockfile.format: v13, an install that updates a v9 lockfile without resolving, for example after a dependency is removed, now writes the v13 format.A lockfile in the experimental
v13format now always recordsautoDedupe,dedupeInjectedDeps,dedupePeerDependentsandlinkWorkspacePackages, aslockfile.includeResolutionSettingsdoes for thev9format. Afterpnpm install --frozen-lockfilewithautoDedupe,pnpm runno longer starts another install. Runpnpm installonce to record the settings in av13lockfile written by an earlier version, sincepnpm install --frozen-lockfilefails on it #16583.pnpm install --frozen-lockfilenow checks the dependencies of local directory dependencies against the lockfile more closely. It fails when theinjectedsetting of such a dependency no longer matches the lockfile pnpm/tasks#319. It accepts a plain-range dependency thatlinkWorkspacePackages: deeplinked to a workspace project.Frozen installs now detect changes to catalog entries used only by peer dependencies of local directory packages.
Frozen installs now restore links declared through catalogs when
excludeLinksFromLockfileis enabled.pnpm install --frozen-lockfilenow revalidates registry metadata when verifying a locked tarball whose version is missing from the cached package listing.During dependency filtering in commands such as
pnpm install --prod --frozen-lockfile, pnpm now recovers hashed peers in v9 lockfiles only when a binding can affect which dependencies are kept #18276.Fixed
pnpm install --lockfile-onlyfetching a locked transitive Git dependency when an unrelated dependency changes #18217.Fixed
pnpm fetchfailing when a Docker build copies the lockfile before the workspace configuration or pnpmfile.pnpm-lock.yamlnow quotes strings that look like numbers, such as+.5, so they are read back as strings.Build approvals
pnpm approve-builds --allandpnpm approve --allno longer approve a package whose build is denied withfalseinpnpm-workspace.yaml.A
<pkg>@<version>: falseentry inallowBuildsorpermissionsnow also blocks<pkg>@<version>from a named registry, including whendangerouslyAllowAllBuildsis set.pnpm add --allow-buildnow records its decision underpermissionswhenpnpm-workspace.yamlhas apermissionssetting. Before, a--allow-build=!<pkg>denial went toallowBuildsand was overridden by an existingpermissions.<pkg>.build: true.pnpm approve-buildsnow requires the exact selector shown bypnpm ignored-buildsfor a dependency a bare package name cannot identify (afile:, git, or tarball artifact). A bare package name only approves a plain registry version #18237.pnpm approve-builds,pnpm approve, andpnpm add --allow-buildnow refuse to edit a package'spermissionsentry written as an inline mapping that spans several lines. Before, they added a second key for the package topnpm-workspace.yaml.Install now reports packages awaiting build and skill approval in one notice. Approval prompts and notices show a package from a named registry by its name. They no longer label it as a tarball.
Running scripts and tasks
Fixed
pnpm runhanging after an interrupt:pnpm runandpnpm execno longer trigger a reinstall solely because the last install used--trust-lockfile#18218.The workspace project graph now follows
overrides. An override that points a dependency at a workspace package, such asfoo: workspace:*, makes that package a dependency of every project whose declaration the override matches, even withlinkWorkspacePackagesoff.pnpm installnow runs that package's lifecycle scripts before the scripts of the projects depending on it.pnpm -r runorders the projects the same way.--filterselectors that follow dependencies now see the edge.A
[<since>]filter such as--filter "...[origin/main]"now selects a project whose dependency anoverridesentry points at a changed catalog entry. For example, withlib: catalog:localinoverrides, changinglibin thelocalcatalog selects every project that depends onlib.When
sharedWorkspaceLockfileisfalse,pnpm installnow runs the workspace root'spnpm:devPreinstallscript once, before any project is installed, including when a filter excludes the root. Workspace members no longer run theirs #4503.Recursive runs honor
--sequentialwith--parallel, and changed-file ignore patterns support negation.pnpm list -r --no-sort --reversereverses the selected project order.pnpm cleanforwards positional arguments to a project's clean script.--resume-fromstarts at the named project when the previous run completed no tasks.pnpm pipelinefixes:--env-file,extraEnv, orNODE_OPTIONSchange, or when the script shell settings change.!exclusions.--filterand--filter-prod, includes untracked files when selecting affected projects, and runs the prerequisites of tasks matched by regex selectors.fingerprintor.fingerprintdirectory in a nested Cargo build.With
shellEmulator: true, parameter expansions such as${MODE:-dev}now see assignments made earlier in the script.Plug'n'Play fixes:
require.resolve()lookup paths.NODE_OPTIONSand command-line flags, and respects Node.js's enablednode-addonsandmodule-syncconditions.pnpm runandpnpm exec, including recursive runs, find the loader and the experimental package map whenlockfileDiris configured.pnpm installrecreates a deleted.pnp.cjsloader, and a fullpnpm cleanremoves the generated loader.After a workspace script runs, pnpm links commands from scoped injected packages into the containing modules directory's
.bin. Commands declared throughdirectories.binare also refreshed.Refreshing injected dependencies preserves the install's
NODE_PATHsettings in command shims and respects workspace package exclusions.pnpm recognizes uppercase file extensions when choosing the interpreter for commands without a shebang. It skips hidden files and directories when linking commands from
directories.bin.pnpm dlx,pnx, andpnpm createnow handle script skipping and non-registry package specifiers consistently:--ignore-scriptsorignoreScripts: trueuses a separatedlxcache key, keeping cached installs that skipped build scripts separate from normal runs../my-cliand./my-cli.tgzresolve against the caller's working directory.file:, and git URL packages run their build scripts by default unless--ignore-scriptsor a negated--allow-buildselector disables them.A
tasksentry with no value inpnpm-workspace.yaml, such asbuild:, now fails with a hint. The hint suggests writing{}for a task with no settings, or removing the entry to keep the defaultdependsOn: ['^<task>'].Python and Cargo
pnpm installnow locks Cargo path dependencies outside the workspace, as Cargo does. It failed withworkspace dependency <name> is not a workspace member.pnpm install --frozen-lockfilenow also fails whenCargo.lockmisses a path dependency or locks a git dependency at another branch, tag, or revision.pnpm outdatedandpnpm updatenow include Cargo dependencies declared under[target.<cfg>.dependencies].pnpm update --prodno longer fails on a crate that is also a dev-dependency.pnpm add crate:fails in a virtual Cargo workspace root, ascargo adddoes. It added a[dependencies]table that Cargo rejects there.pnpm removeaccepts Python and Cargo package specifiers. Recursive and filtered updates include standalone Python and Cargo workspace members.pnpm updateandpnpm outdatedmatch normalized Python names and Cargo aliases.pnpm installnow skips a Python project that has only arequirements.txtwhen its directory has a.venvthat pnpm did not create, and prints a warning. The install failed for the whole workspace before.Fixed Python wheel installs with legacy metadata, whitespace around entry point targets, and interpreter options in script shebangs.
Python dependency groups now match normalized names. Adding a development dependency reports when the project excludes the dev group.
Comments ending in a backslash in
requirements.txtno longer hide the next requirement.pnpm execfinds the environment of requirements-only projects under a tool-onlypyproject.toml.Fixed
pnpm addandpnpm updatein shared Python workspaces that contain a requirements-only member.Fixed
pnpm updatefailing with a TOML parse error whenpyproject.tomldeclares[project.optional-dependencies].pnpm store pruneno longer removes files of the wheels that an installed Python project uses, sopnpm install --offlinecan recreate its environment. Pruning now also removes the store index entries of Python and Cargo archives whose files it deleted.Updating, auditing, and publishing
pnpm auditnow checks tarball, git, and named-registry dependencies against security advisories.pnpm audit signaturesnow verifies packages installed from named registries and skips non-registry dependencies.pnpm auditnow checks patched versions correctly when registry metadata includes anunpublishedentry in itstimefield #18209.pnpm audit --fix=truenow applies the default override fix method, like a barepnpm audit --fix#13261.pnpm outdatednow reports newer prereleases of an installed prerelease. It checks the dist-tag that points to the newest version of the installed prerelease channel, such asnextfor3.0.0-rc.0, alongsidelatest#7339.Fixed
pnpm updateandpnpm outdatedmatching every dependency of an ecosystem when a positive selector is combined with a negated package selector such as!lodash. This applied to Cargo, Python, npm, and--include-github-actionsselectors.Fixed
pnpm updateandpnpm outdatedwith--include-github-actionscorrupting workflow YAML or skipping actions referenced through YAML anchors, aliases, or merge keys.pnpm addandpnpm updatenow keep the range operator of a specifier that has both a prerelease and a build suffix, such as^1.0.0-next.0+build.1.pnpm dedupe --checkno longer requests the registry metadata of locked versions that the cache already holds.pnpm dedupeskips those requests too whenlockfile.formatisv13, which records nodeprecatednotices. Both were slow against a registry that sends noETagorLast-Modified, such as Azure Artifacts, where each request downloaded the full package metadata #17758.pnpm publishnow readsaccessandtagfrompnpm-workspace.yaml, the globalconfig.yaml, andPNPM_CONFIG_ACCESS/PNPM_CONFIG_TAG. The--accessand--tagflags still win when set. A configuredaccessoutrankspublishConfig.access. An emptypublishBranchnow allowsmasterandmain#13542.pnpm packandpnpm publishfixes:publishConfig.name.package.yamlorpackage.json5manifest are packed correctly, and these packages include their parked changelog.beforePackingis validated and normalized.pnpm versionfixes:1.2.3fooor01.2.3. It used to set a normalized version that differed from the argument.--preid.pnpm version -rupdates explicit workspace dependency ranges that a release invalidates.preversionscript makes to other manifest fields.When
pnpm unpublishremoves the version taggedlatest, it prefers the highest remaining stable version.pnpm stageuses the current package's publish registry when listing, viewing, approving, rejecting, or downloading staged versions. To use a one-time password at a non-default registry selected by the package, pass--registry.Fixed several bugs in patching dependencies:
diff --gitlines now applies.ERR_PNPM_INVALID_PATCH. Before, pnpm wrote the symlink as a regular file.pnpm patch-commit --patches-dir ../outsidenow fails withERR_PNPM_PATCHES_DIR_OUTSIDE_PROJECT. Before, pnpm wrote the patch tooutsideinside the project.pnpm patch-commitkeeps a file without a final newline unterminated when that file comes last in the patch. Before, the patched file gained a trailing newline.pnpm patch-commitkeeps the peers a patched package is bound to in the lockfile. It no longer fails withERR_PNPM_NEXT_LOCKFILE_NOT_REPRESENTABLEwhen the package has an optional peer andlockfile.formatisv13.patchedDependenciesentry now records its patch hash on afile:directory dependency or an injected workspace package.pnpm install --frozen-lockfileno longer fails withERR_PNPM_INCONSISTENT_PATCH_HASHon the lockfile thatpnpm installwrote.pnpm patchandpnpm patch-commitfind a package installed from anamedRegistriesalias by its version. For example,pnpm patch foo@1.0.0patches a dependency declared aswork:1.0.0.pnpm patch-removeremoves the corresponding edit directory and state entry fromnode_modules/.pnpm_patches.Other commands
Global packages fixes:
pnpm add -gwith several space-separated packages lists every installed package in its summary. Only the packages of the first one were listed.pnpm list -gwith--depthgreater than0always reads the global install directory'snode_modulesand lockfile. It could read the current project's lockfile or a custommodulesDir.pnpm add -g,pnpm update -g, andpnpm outdated -guse the_authandnpmrcAuthFilesettings underglobalPackagesConfigin the globalconfig.yaml.dangerouslyAllowAllBuildsset at the top level of the globalconfig.yaml. pnpm ignored it for global packages unless it was set underglobalPackagesConfig.Fixed
pnpm deployfor projects that depend on an external directory throughlink:.pnpm deploynow also resolves relativefile:overrides from the source workspace #18191.Fixed
pnpm linkfor target manifests without a name. The command uses the directory name and normalizes relative paths written to the manifest. It also resolves a quoted~/path from the home directory.Fixed
pnpm pruneleaving extraneous package links in hoisted installations, andpruneDirectDependenciesskipping cleanup when the lockfile was already up to date.pnpm importfixes:sharedWorkspaceLockfileis disabled andlockfileDiris unset.disallowWorkspaceCyclesand the symlink policy for the destination lockfile.pnpm store addnow fails if it cannot write a package to the store index, for example when another process holds the index locked. It also indexes tarball URLs that have no integrity value #18194.pnpm store prunenow fails withERR_PNPM_FROZEN_STORE_WRITEwhenfrozenStoreis enabled. It used to remove files from the store.Store and cache inspection fixes:
pnpm cache list,view, anddeletesearch across registries by default and recognize mixed-case package names. Pass--registryto restrict them to one registry.pnpm cat-filecan read executable files from the store.pnpm find-hashreports an unknown hash when the store is empty.--jsonwrite errors to stdout.pnpm cleanremoves custom virtual stores with hidden directory names.pnpm list --lockfile-only --find-bynow reads manifests from the configured store whennode_modulesis absent, andpnpm licenses listreads cached package metadata and license files.pnpm list --jsonnow reports unsaved dependencies from each workspace project's own modules directory #18248.pnpm why --exclude-peersnow leaves out packages that are reached only as a resolved peer dependency. The flag was accepted but ignored.pnpm sbomnow assigns workspace dependency relationships consistently across runs.pnpm now fails with
ERR_PNPM_CONFIG_UNRESOLVED_ENV_VARwhen a setting inpnpm-workspace.yamlor the globalconfig.yamlreferences an unset or empty environment variable without a fallback. A string setting used to get an empty string in its place #10963.--config.<name>options now validate their values.--config.storeDirand--config.stateDirwork like--store-dirand--state-dir. An empty--state-dir=resets to the default state directory, as--store-dir=does.noProxyinpnpm-workspace.yamlor the globalconfig.yamlnow fails validation unless it is a string or a boolean.nullleaves the setting unset.pnpm doctorchecks the resolved global bin directory onPATH.pnpm --versionnow succeeds when the project pins another package manager.Fixed pnpm dropping Ctrl+C just before launching its native binary through Corepack or Node.js on Unix #18222.
The pnpm npm package provides bundled node-gyp to lifecycle scripts even when pnpm's own install scripts were skipped #18227.
The pnpm binary is about 16% smaller on Linux and macOS.
Tab completion suggests project scripts when you type
pnpmfollowed by a script name #18239. Shell completion uses the cursor position when editing an existing command.The help for
pnpm config getandpnpm getnow says that the key is a property path, such ascatalog.react.Removed the obsolete
xmascommand.Platinum Sponsors
Gold Sponsors
v12.22.0: pnpm 12.22.0Compare Source
pnpm 12.22.0 adds a
globalPackagesConfigsection to the globalconfig.yamlfor settings that apply only to global packages, addspnpm why --ranges, and lists workspace projects in dependency order inpnpm list --recursive. It also includes a security fix. After the default or a scoped registry changed,pnpm installcould skip theminimumReleaseAgeandtrustPolicychecks against the new registry.Minor Changes
Settings under
globalPackagesConfigin the globalconfig.yamlnow apply only to commands that act on global packages, such aspnpm add -gandpnpm update -g. For example,globalPackagesConfig.trustPolicyExcludeexcludes a package from the trust policy for global installs only #18130.pnpm approve-builds -gandpnpm add -g --allow-buildnow save build decisions underglobalPackagesConfig.permissions. pnpm still applies build settings from thepnpm-workspace.yamlof the global packages directory, with a deprecation warning. The next approval moves them toconfig.yaml.Added
pnpm why --ranges, which lists the version range that each direct dependent declares for the package.pnpm why --jsonnow includes the declared range of each dependent in arequiresfield #18121.pnpm list --recursivenow lists workspace projects in dependency order. Use--no-sortto retain workspace order #7716.A
file:dependency on a local directory now resolvescatalog:specifiers in that directory'spackage.jsonagainst the workspace catalogs, as an injected workspace package does. Before, the install failed withERR_PNPM_SPEC_NOT_SUPPORTED_BY_ANY_RESOLVER.A
file:dependency on thepublishConfig.directoryof a project is now described by that project'spackage.json, as an injected workspace package is. Apackage.jsonthat a build writes into that directory no longer changes the resolution.The experimental
v13lockfile format records a local directory package's declared specifiers in itsdependenciesandoptionalDependencies, beside the versions they resolved to. A dependency markedinjectedindependenciesMetahasinjected: true. The format no longer has adependenciesMetafield. Runpnpm installto rewrite av13lockfile that an earlier pnpm wrote.Patch Changes
Security
pnpm installnow re-verifies lockfile resolutions when the default registry or a scoped registry changes. Before, it reused the result cached for the previous registry and skipped theminimumReleaseAgeandtrustPolicychecks against the new one #18070.For a registry with
serverType: pnpr,pnpm installalso verifies locked package revisions against the registry when no cached result applies.pnpm dlxno longer reuses a cached install made under looseroverrides,packageExtensions,minimumReleaseAge,trustPolicy,trustLockfile, orblockExoticSubdepssettings. It also no longer appliesoverrides,packageExtensions, orblockExoticSubdepsfrom a localpnpm-workspace.yaml#18075.pnpm dlx --allow-build=!<pkg>now denies build scripts for<pkg>, including the executed package itself. Denied packages also skip interactive build approval.pnpm auditnow reports advisories whoseidis a string. Such advisories were dropped, andpnpm auditreported no known vulnerabilities #18184.Installs that failed
When the
pnpmpackage downloads its native binary on first run, it now reads a globalconfig.yamlthat holds only blank lines or comments as no settings. Such a file made every command fail with "expected a document, but the input is empty" #18172.When the
pnpmpackage downloads its native binary on first run, it now works with registries that serve no per-version package documents, such as Azure Artifacts. If such a registry also removed npm's signatures, pnpm fetches them from registry.npmjs.org. The binary still comes from the configured registry and is checked against npm's signature.Fixed an offline install failing the
minimumReleaseAgelockfile check withERR_PNPM_NO_OFFLINE_METAafter an online install resolved the same packages with the same cache directory. The check now reads publish times from the metadata that the resolution cached #18063.pnpm installno longer runsgit ls-remotefor a git dependency whose specifier is unchanged and whose commit the lockfile already records. Installs that update the lockfile, such as Renovate's, no longer fail without git credentials when the project has a private git dependency with peer dependencies #18104.npm:<pkg>@<range>and named-registry package aliases with space-separated comparators, such asnpm:bar@>=1.0.0 <2.0.0, now resolve the target package #18169.pnpm installwithlockfile.format: v13no longer fails withERR_PNPM_NEXT_LOCKFILE_NOT_REPRESENTABLEwhen it converts av9lockfile in which a package with many peers has a hashed peer suffix and is in a dependency cycle with one of its peers #18148.pnpm deploy --prodnow succeeds withlockfile.format: v13when a production package's optional peer is provided only by development dependencies. The excluded provider stays out of the deployed project #18117.pnpm deploynow preserveslockfile.formatandlockfileIncludeTarballUrlin the deployedpnpm-workspace.yaml. Previously, commands such aspnpm dedupe --checkin a deployed project usinglockfile.format: v13treated the lockfile asv9and reported changes.Fixed
pnpm install --merge-git-branch-lockfiles --frozen-lockfilefailing withERR_PNPM_OUTDATED_LOCKFILEwhen a project sets or removespublishConfig.directory,publishConfig.linkDirectory, ordependenciesMeta. Lockfile merging now preserves and reconcilespublishDirectory,linkDirectory, anddependenciesMetaon importers.Frozen installs accept injected workspace packages whose child dependencies use
link:or a bare relative path pnpm/tasks#274.Installing an injected local package no longer fails with a "no such file or directory" error when another process renames or removes files in that package while pnpm lists them. This happened most often on macOS in workspaces with
sharedWorkspaceLockfile: false, where the install of the package itself writes its lockfile at the same time.Fixed a crash when
pnpm-lock.yamlor a dependency selector contains a package name that starts with a multi-byte UTF-8 character.Tarball URLs that reject HEAD requests with 405 Method Not Allowed now fall back to a GET request during resolution.
Resolving and linking dependencies
With
autoInstallPeers, an optional peer is no longer bound to a version outside its range that only another dependency's subtree brings in. Before, adding an unrelated dependency could flip that binding and rewrite the peer suffixes of other projects in the lockfile #18162.Fixed duplicate packages with
nodeLinker: hoistedandautoInstallPeers: falsewhen identical transitive peer bindings appeared under parents with conflicting dependencies.When multiple
overridesselectors match a dependency, pnpm now picks the selector with the narrower version range regardless of the order in which the overrides are declared #18071.Patches that add lines to the end of a file without a final newline now install the whole file. pnpm dropped the last added line when the patch also marked it with
\ No newline at end of file#18156.Project
engines.nodechecks now use the Node.js runtime that pnpm links for the dependency groups being installed. If the lockfile records that runtime, the check uses its resolved version. Production installs ignore a runtime declared only indevEngines.runtimepnpm/tasks#302.pnpm installandpnpm approvenow discover, link, and prune agent skills fromworkspace:*,link:, and local directoryfile:direct dependencies.Cargo and Python
pnpm add crate:and targetedpnpm update crate:commands keep compatible versions fromCargo.lockfor other crates pnpm/tasks#257.pnpm add crate:<pkg>no longer corrupts multiline arrays inCargo.toml. Saving an explicit version withpnpm add crate:<pkg>@<version>now replacesworkspace = trueon existing dependency entries. Inherited workspace settings such asfeatures,default-features, andpackagestay on the updated entry.pnpm installnow accepts unversioned path dependencies on prerelease Cargo workspace members. Cargo workspace inheritance now resolvespackagerenames.pnpm addforpypi:dependencies now preserves existing entries inpyproject.tomlwhose PEP 508 environment markers differ from the added requirement.pnpm addalso accepts PEP 508 direct URL requirements such aspypi:pkg @ https://....pnpm updateat a shared-environment workspace root without a root[project]table now updates matching member manifests and the sharedpylock.toml.An invalid entry in a Python registry's
packageslist now names the patterns a Python registry accepts: an exact name, a prefix such ascompany-*, or**. The error used to suggest@scope/*, which a Python registry rejects. It also quotes the entry as written. A rejected prefix such as-a*used to appear as-ax.Running scripts
verifyDepsBeforeRunno longer reports the dependencies as out of date whenruntimeOnFailstops pnpm from installing the runtime thatdevEngines.runtimeorengines.runtimedeclares #18155.Commands that install a single project of a workspace, such as
pnpm add -w, now applyruntimeOnFailto the other workspace projects too. They no longer install a runtime thatruntimeOnFailexcludes.pnpm --if-present start,pnpm run --if-present start, andpnpm restart --if-presentnow exit with code 0 when a project has neither astartscript nor aserver.jsfile #18073.pnpm test,pnpm t, andpnpm tstin a single-package project now fail withERR_PNPM_NO_SCRIPTwhen thetestscript is missing unless--if-presentis passed #18073.shellEmulatornow handles escaped backslashes (\\) and unquoted escaped single quotes (\') according to POSIX quoting rules. Previously, scripts containing"a\\"or\'failed to parse or misquoted later${...}parameter expansions.pnpm createnow forwards--env-fileand other CLI flags placed after the starter template name to the starter command.pnpm pipelinenow hashes no input files wheninputs: []is configured.+-prefixed input globs include gitignored files and workspace files outside the project directory.!-prefixed input globs exclude matching files. Tasks that depend on an uncacheable task now bypass cached output restoration and re-run after that dependency executes. Read-only cached output files restore without permission errors. Task keys now hash each project's wanted lockfile across per-project lockfiles, customlockfileDir, and branch lockfiles.Build approvals
pnpm approve-buildsandpnpm approvewithout package arguments or--allnow fail withERR_PNPM_APPROVE_BUILDS_NON_INTERACTIVEandERR_PNPM_APPROVE_NON_INTERACTIVEwhen packages are awaiting approval in CI or without an interactive terminal.pnpm dlxand global installs also skip automatic build-approval prompts in CI, leaving pending builds unapproved.pnpm approve-buildsandpnpm add --allow-buildno longer corrupt apnpm-workspace.yamlwhose last line has no line break.Workspaces and lockfiles
Combining
--filterand--filter-prodwith exclusion selectors such as!pkgnow evaluates all selectors together in command-line order. An exclusion passed on one flag while inclusions were passed on the other no longer selects every workspace project.pnpm -r fetchnow fetches each selected project's lockfile whensharedWorkspaceLockfileisfalse. Use--filterto limit which projects are fetched #18152.pnpm peersin workspaces withsharedWorkspaceLockfile: falsenow checks each selected project'spnpm-lock.yaml.pnpm cinow validates thatpnpm-lock.yamlexists and matchespackage.jsonbefore removingnode_modules.pnpm cleanandpnpm cinow honor--filter,--filter-prod, and--workspace-root.pnpm cleanandpnpm cialso clean rootnode_modulesin workspaces without a rootpackage.json.pnpm clean --lockfilenow removes per-project lockfiles and lockfiles inside a customlockfileDir.pnpm clean,pnpm purge, andpnpm cikeep files outside the project untouched whenmodulesDirpoints outside the project root. Whennode_modulesis a symlink,pnpmnow unlinks the symlink without modifying its target #18072.pnpm importnow preserves locked versions fornpm:aliased dependencies when importing frompackage-lock.json,npm-shrinkwrap.json, oryarn.lock.pnpm importalso parses Yarn Classicyarn.lockfiles that reference__metadatapackage names without treating them as Yarn Berry lockfiles.Updating, publishing, and versioning
pnpm updatenow moves anengines.pnpmrange along with the pnpm version inpackageManagerordevEngines.packageManager#18142.Fixed GitHub Actions support in
pnpm updateandpnpm outdated. Updating a workflow step with a major or minor version comment such as# v4or a prose comment now formats the updated version comment cleanly. Negated action selectors such as!actions/cache/savenow exclude only the targeted subpath actions. Passing only negated action selectors still updates packages. Previously, negated action selectors skipped package updates.pnpm outdatednow reports every distinct outdated version when several workflows pin the same action at different versions.Fixed
pnpm updateskipping package updates when a Package URL selector such aspkg:npm/foois combined with--include-github-actions.pnpm update -g --latestnow upgrades global runtimes (node,deno, andbun) andnpm:-aliased global packages across major versions.pnpm update --changesetnow generates a changeset when a.changesetdirectory exists orversioningis configured inpnpm-workspace.yaml, without requiring.changeset/config.json. It also respectsversioning.ignorealongside.changeset/config.json.pnpm version -rnow runs each bumped package'spreversion,version, andpostversionscripts unless--ignore-scriptsor--dry-runis set.pnpm version -r --dry-run --jsonnow prints the planned releases as a JSON array.pnpm lane <lane> --filter <selector>now rejects partial moves of aversioning.fixedgroup withERR_PNPM_VERSIONING_CONFLICTING_CONFIGbefore writingpnpm-workspace.yaml.pnpm -C <dir> publish <tarball|folder>andpnpm --dir <dir> publish <tarball|folder>now resolve relative tarball and directory arguments against<dir>. Git checks duringpnpm publishalso inspect the target directory.pnpm -r publishnow skips workspace manifests whosenameorversionfield is an empty string.pnpm -r pack --outnow expands%sand%vplaceholders only in the--outtemplate. Literal%sand%vsegments in the working directory path stay unchanged.Other commands and settings
pnpm config set --global --json toolsnow writestoolsto the globalconfig.yamland validates its structure before saving.pnpm config set --globalalso acceptspm-on-failandruntime-on-fail.blockExoticSubdepsandexcludeLinksFromLockfileset in the globalconfig.yamlnow take effect during installs and appear inpnpm config get --global. pnpm now ignores workspace-only settings in the globalconfig.yamland prints a warning, matchingpnpm config set --global.${VAR}placeholders inpnpm-workspace.yamlwritten with YAML flow syntax now fail on registry URLs withERR_PNPM_REGISTRY_ENV_NOT_EXPANDED. Placeholders in flow-style proxy,pnprServer, anduserAgentsettings are now ignored with a warning #18074.updateConfigandafterAllResolvedhooks in.pnpmfile.cjsthat returnundefined,null, or a non-object value now fail withERR_PNPM_CONFIG_IS_UNDEFINEDandERR_PNPM_BAD_AFTER_ALL_RESOLVED_RETURN.findersin.pnpmfile.cjsthat return an empty string no longer match packages inpnpm list --find-byorpnpm why --find-by.pnpm listno longer adds annpm:prefix to aliased localfile:directory dependencies, andpnpm list --jsonpreserves<name>@file:<path>in theirversionfield.pnpm list --parseable --longnow keeps<name>@onlink:andfile:dependencies whose path or peer suffix contains@, such aslink:../@scope/pkg. Aliased scopedfile:dependencies whose path contains@also keep<name>@inpnpm list.pnpm whyno longer merges distinct localfile:directory dependencies that share the same package name across projects with dedicated lockfiles (sharedWorkspaceLockfile: false).pnpm sbomandpnpm licenses listnow resolvenamedRegistriesversion prefixes in lockfile entries.pnpm sbomemits bare component versions with a sanitizedrepository_urlPURL qualifier.pnpm sbomderives tarball download URLs from the named registry.pnpm licenses listreports packages from named registries as separate entries with bare versions andregistryName.pnpm pkgnow reads and writes the project manifest as written on disk.pnpm pkg getno longer reports syntheticruntime:dependency entries fromdevEngines.runtimeorengines.runtime.pnpm pkg setandpnpm pkg deletenow preservedevEngines.runtime,engines.runtime, and empty dependency objects set with--json.pnpm pmnow works after CLI flags such as--dirand afterpnpm with current.pnpm with currentalso accepts subcommand boolean flags such aspnpm --bare with current initahead ofwith.pnpm envcommands (use,list, andremove) now accept Node.js version specifiers with a leadingv, including prerelease versions such asv22.0.0-rc.1.pnpm doctornow checks write access for the cache, store, and global bin directories before they have been created. Previously,pnpm doctorreportedno write accesson fresh environments.pnpm doctornow probes whether reflinks or hardlinks work from the store into the project's link target and warns when neither does.Output and error messages
An error from a failed dependency resolution, such as an unreachable registry or a throwing pnpmfile resolver, now prints its cause once #18077.
pnpm no longer wraps error messages at the output width, so URLs and paths in them stay intact when stderr is not a terminal #18078.
pnpm installwithnodeLinker: hoistedno longer counts missing packages as removed. This fixes inflated removal counts for skipped optional dependencies #18178.pnpm outdated --jsonandpnpm outdated --format=jsonnow write reporter warnings tostderr. Warnings previously appeared onstdoutbefore the JSON output.pnpm stagewith--jsonnow keepsstdoutvalid JSON during dry runs, empty workspace runs, and errors.pnpm pipeline --dry-run --jsonandpnpm -r run --dry-run --jsonnow write reporter warnings and scope lines tostderr.pnpmwarns when anupdateConfighook changesregistriesand some routes still use their configured registry. The warning names those routes and points toregistriesByScope.pnpm cat-filenow reportsERR_PNPM_INVALID_HASHwhen given an empty, malformed, or truncated digest such assha512-.Platinum Sponsors
Gold Sponsors
v12.21.0: pnpm 12.21Compare Source
pnpm 12.21.0 lets
pnpm store addprepare tarball and git dependencies for offline installs. It also makes repeated installs keep their peer dependency choices and fixes severallockfile.format: v13,nodeLinker: hoisted, andpnpm deployfailures. If a pnpr server refuses a setting, pnpm now resolves locally.Minor Changes
pnpm store addrun in a project now prepares downloaded tarballs for every lockfile entry that pins them. Besides registry packages,pnpm install --offline --frozen-lockfilecan then install dependencies on a tarball URL and dependencies on a git host such as GitHub whose lockfile entry records anintegrity.Patch Changes
Installs that failed
pnpm now reads a lockfile with a mapping key longer than 1,024 characters written as
'key':, without the?marker. Before,pnpm installand other commands failed on such a lockfile withERR_PNPM_BROKEN_LOCKFILE.With
lockfile.format: v13,pnpm installno longer fails to create or rewrite the lockfile when a package declares many of its dependencies as peers.Fixed
pnpm deployfailing withlockfile.format: v13when injected workspace packages have hashed peer bindings.Frozen installs with v13 lockfiles now accept valid peer dependencies of injected workspace packages that use catalogs.
Fixed injected workspace packages that depend on themselves linking to a nonexistent directory.
pnpm installwithfrozenStoreenabled no longer fails withERR_PNPM_FROZEN_STORE_NEEDS_BUILDwhennodeLinkerishoisted.pnpm fetchwithnodeLinker: hoistedno longer populates global virtual store links or modifies linked agent skills, and it preserves an existing hoistednode_modulesdirectory #18037.A
requirements.txtbeside apyproject.tomlthat declares[tool.uv.workspace]without a[project]table no longer makes that directory a Python project.pnpm installstopped there with an error when the directory had a.venvthat pnpm did not create #18023.Peer dependencies
Repeated installs no longer change the peer dependency providers that the previous install chose. This covers adding, updating, or removing a dependency, projects that use different ranges of one dependency, dependency cycles, and injected dependencies with
autoInstallPeers: falsepnpm/tasks#221.An unchanged install keeps a valid locked peer provider even when a direct dependency provides another compatible version. Explicit
pnpm addandpnpm updaterequests take precedence over it.Workspace projects that select different versions of a peer provider no longer share one copy of the package that depends on it. This affected peers reached through an aliased dependency or a peer dependency cycle.
A removed dependency no longer comes back as a peer provider. Before, a direct dependency removed with
autoInstallPeers: falsecould be restored from an old peer resolution, and a removed one could still supply its old peer context.With
nodeLinker: hoistedandautoInstallPeers: false,pnpm installno longer creates duplicate copies of a package whose resolved peers are identical. A package also no longer loads a copy of its dependency that was resolved with different peer versions #18003.pnpm deploynow binds optional peers declared only inpeerDependenciesMetafor linked workspace packages. The deployed manifest and lockfile also retain these peers when filtering dependency groups.Running scripts
Scripts now stop when pnpm's process group is killed while they are starting.
Bin shims in the global virtual store no longer include the hoisted modules directory of the project that installed them #18035.
pnpm pipelinenow rebuilds local packages and reruns build scripts after it restores a shared Cargo build cache with Cargo 1.100 or newer. Before, a worktree could reuse build-script output from the worktree that created the cache.pnpr
If the pnpr server refuses a setting the install uses, or cannot return the lockfile format pnpm reads,
pnpm installandpnpm updateprint a warning and resolve locally. Cargo and Python resolution also fall back to resolving locally. pnpm now rejects a pnpr resolution of npm dependencies that does not name its lockfile format.pnpm installwithpnprServernow limits the size of the server's resolve and lockfile verification responses. An oversized response ends the request with an error.pnpm now displays pnpr error codes and reasons when remote requests fail.
Other commands and settings
pnpm setupand the install script now support PowerShell as the login shell on Linux and macOS. They addPNPM_HOMEtoPATHinprofile.ps1under$XDG_CONFIG_HOME/powershellor~/.config/powershell#18026.A
lockfileDirsetting that points at the default lockfile directory now installs the same way as leaving it unset pnpm/tasks#275.Platinum Sponsors
Gold Sponsors
v12.20.0: pnpm 12.20Compare Source
pnpm 12.20.0 records the specifiers of local directory dependencies in the experimental v13 lockfile and fixes several
nodeLinker: hoisted, peer dependency, andoverridesbugs. The bundlednode-gypno longer ships the undici version that security scanners flag. Remote resolution and shared build caches no longer work with pnpr 0.1.0-alpha.19 or older.Minor Changes
lockfile.format: v13,pnpm installrecords the dependency specifiers of local directory packages. Frozen installs reject changed specifiers even when the locked versions still satisfy them.Patch Changes
Upgrading and security
Remote resolution, shared build caches, and release notes no longer work with pnpr 0.1.0-alpha.19 or older. pnpm now reads the capabilities a pnpr server advertises under
pnpr.protocols. Installs fail when the server does not confirm the requested resolution and verification policies.The
node-gypbundled with pnpm no longer ships undici 6, which security scanners flag for CVE-2026-84947. On Node.js 26,node-gypdownloads through a proxy or with a custom CA file no longer crash with "invalid onError method" #17941.Resolving dependencies
Version-selector
overridesentries such as"ms@^2.0.0": "2.1.1"now apply to dependencies declared with thecatalog:protocol when the catalog entry's range matches the selector #17922.A root
overridesentry that points a package at aworkspace:path, such asworkspace:./packages/foo, now also applies when a registry package depends on that package pnpm/tasks#270.Git dependencies now accept npm's
::separator between fragment parameters, such asgithub:owner/repo#v1.0.0::path:packages/foo. Before, pnpm read the whole fragment as a branch name and failed to resolve it #17827.pnpm dedupenow keeps a locked runtime version, fromdevEngines.runtimeor from a dependency'sengines.runtime, when the declared range still admits it.pnpm dedupe --checkno longer fails each time a newer Node.js release in the range comes out #17984.With
autoInstallPeersFromHighestMatch, conflicting non-semver peer dependencies now remain missing, and identical non-semver peer specifiers are preserved. Preferred registry versions no longer replace local paths or protocol-prefixed specifiers when pnpm installs missing peers pnpm/tasks#272.Hoisted node linker
nodeLinker: hoisted, a package now keeps its nested copy of a dependency that it resolved at a version other than the top-level one, including a peer dependency its parent supplies. Before, pnpm could remove that copy as a duplicate or give the top-level slot to a peer variant found deeper in the graph. The package then loaded the top-level version.Lockfile and peer dependency graphs
Fixed
pnpm installkeeping stale peer bindings after dependency changes. Required dependencies no longer remain marked optional when another workspace project removes a shared package pnpm/tasks#221.Repeated installs now keep the same dependency links when packages form cycles with several peer dependency variants pnpm/tasks#221.
Fixed writing
lockfile.format: v13for dependency cycles with missing, optional, or transitive peers. Frozen installs also accept unchanged injected packages whose peers use catalogs. With--no-optional, frozen installs reject required catalog children recorded only as optional dependencies pnpm/tasks#221.pnpm deploypreserves an injected workspace package's resolved dependencies when they differ from the workspace project's own dependencies. This also applies to packages withpublishConfig.directorypnpm/tasks#221.Running scripts and runtimes
Scripts that pnpm runs in a process group of their own are now ended when pnpm is killed right after starting them. A parallel run that was killed before pnpm registered its scripts left all of them running.
When a command name matches no script and pnpm falls back to running it as a command, the install that runs before scripts now runs once. Its errors and warnings print once #17977.
Failed downloads by project-aware global runtime commands now explain which configuration applies. Node.js failures also list the global mirror settings and environment variables to check.
Other commands and settings
Fixed
pnpmoccasionally crashing on the first HTTPS request, mostly on Windows virtual machines under load. pnpm now seeds TLS randomness from the operating system's random number generator pnpm/tasks#239.Fixed
pnpm deprecate,pnpm undeprecate, andpnpm unpublishfailing with revision conflicts when a registry cache serves stale package metadata.pnpm sbomnow reports malformed workspace manifests. Before, it omitted their packages pnpm/tasks#59.Fixed
pnpm store statusreporting approved builds of git dependencies as modified when the store contains legacy build metadata.pnpm now recognizes Capawesome Cloud and RWX as CI environments.
Platinum Sponsors
Gold Sponsors
v12.19.0: pnpm 12.19Compare Source
pnpm 12.19.0 adds
pnpm fund, lets theloadednode linker handle packages that need a build, and adds theprojectScopedOptionalPeerssetting and an experimental JSON lockfile format. It also includes a security fix: an offline install error no longer prints registry credentials. pnpm now checks theenginesand platform fields of every workspace project, and many hoisted-linker and frozen-lockfile bugs are fixed.Minor Changes
Added
pnpm fund, which lists the funding URLs declared by the installed dependencies in the same treenpm fundprints. Use--jsonfor thenpm fund --jsonreport and--recursiveor--filterto report on workspace projects.pnpm fund <pkg>opens the funding URL of an installed package, and--whichpicks one when it lists several #7354.With
nodeLinker.type: loaded, packages that need a build no longer have to be listed innodeLinker.excluded. A package with a matching side-effects cache entry loads from the store. If side-effects cache reads and writes are enabled, pnpm builds an approved package once, saves the result to the side-effects cache, and then loads it from the store. This includes a build that changes no files in its package, so its script does not run again in other projects that use the same store. List a package insideEffectsCache.excludeif its build must run in every project, such as a git hook installer. pnpm materializes other cache misses, packages with native.nodeaddons, and their dependencies automatically.pnpm also scans JavaScript sources for filesystem imports and for
__dirnameorimport.meta, and materializes matching packages. The scan does not detect computed imports. List such packages innodeLinker.excluded.Added the
projectScopedOptionalPeerssetting. When it istrue, a project gets a missing optional peer dependency only if the project's own dependencies install a version of it. Another workspace project's dependencies, such as itsdevDependencies, no longer supply one.dedupePeerDependentskeeps deduplicating everything else #16666.Added the experimental
lockfile.format: v13setting. With it, pnpm writespnpm-lock.yamlin a JSON-like syntax, indented with tabs, with a trailing comma after every entry. The file is still valid YAML. The file has onepackagesentry per package version in place of thepackagesandsnapshotssections, and each entry records the versions of its peer dependencies as its properties. Updating a peer dependency then changes only the lines that record its version. pnpm reads lockfiles in both formats whatever the setting is.pnpm store addnow accepts directories of tarballs, such aspnpm store add ./tarballs, and adds every.tgz,.tar.gz, and.tarfile inside them recursively.pnpm store addis now faster when it adds many packages or local tarballs #17875.With
supportedArchitecturesset,pnpm installandpnpm fetchalso store, without linking them, the dependencies of the archives kept for the other listed platforms. A platform added to the setting gets its archives and their dependencies on the next install. Optional dependencies a listed platform cannot run are not stored, and one that fails to download is skipped. Dependencies from git repositories are not stored for other platforms.When
supportedArchitecturesnames exactly one platform and notcurrent, pnpm links that platform's variant of a package published with platform variants, together with that variant's dependencies. This holds for the list form and for theos,cpu, andlibcform. A variant whose floor or ABI the listed platform does not state is not linked for it: pnpm links another variant that fits, or the version's own archive. Changing the setting, or the platform of the host, such as anode_modulesmounted into a musl container or a Node.js with another ABI, relinks the package on the next install, even from a frozen lockfile.pnpm now provides a prebuilt binary for NetBSD 10 on x64 #17803.
Patch Changes
Security
Installs that failed or hung
pnpm install,pnpm ci, andpnpm install-testoutside a workspace now fail withERR_PNPM_NO_PKG_MANIFESTwhen the directory has nopackage.json,package.json5, orpackage.yaml. They no longer create apackage.json, a lockfile, andnode_modulesthere #17727.Fixed
pnpm installhanging when a concurrent tarball download or manifest read is cancelled while other tasks are waiting on the same archive.Running a global command such as
nodein a project that pins its version no longer hangs while pnpm installs that version. The hang kept starting new processes until the machine ran out of memory.A global command such as
nodenow runs the version a project pins whenPNPM_CONFIG_LOCKFILE_DIR,PNPM_CONFIG_VIRTUAL_STORE_ONLY, orPNPM_CONFIG_SYMLINKis set in the environment. Before, the dispatch failed with "the installed node executable is not under" the store.pnpm installnow fetches fresh metadata for a package when a version allowed byminimumReleaseAgeExcludeis missing from the cached metadata. Before, it could fail withERR_PNPM_NO_MATCHING_VERSIONwithout contacting the registry #17723.A
${VAR}placeholder in a registry URL inpnpm-workspace.yamlor the project.npmrcnow fails the command. pnpm does not expand environment variables in these files. Before, pnpm ignored such a URL and resolved packages from another registry, such as npmjs.org. pnpm now warns when it ignores a placeholder in a proxy,pnprServer, oruserAgentsetting inpnpm-workspace.yaml#17762.Fixed local package installs failing while a workspace lockfile is being written.
pnpm self-updateand switching to thepackageManagerversion now work behind a proxy that ends a response by closing the TLS connection without aclose_notifyalert. The registry signature check failed there withERR_PNPM_PNPM_ENGINE_IDENTITY_UNVERIFIABLE#17763.A package tarball that keeps failing to download now fails the install after
fetchRetriesretries. pnpm used to download it again with a second full set of retries, which doubled the wait. The error now names the actual download failure.When the native binary of the pnpm version a project pins fails to download, pnpm now reports the download error. It used to report only that no native binary was found for the host.
POSIX bin shims and the
pnpm,pn,pnpx, andpnxlaunchers now run inside a Nix build on macOS with the sandbox enabled. Installing again replaces the shims already innode_modules#17750.Fixed pnpm leaving process pipes open after it exits on macOS pnpm/tasks#229.
Engines and platform checks
pnpm install,pnpm add,pnpm update, andpnpm removenow check theengines,os,cpu, andlibcfields of every workspace project, including the workspace root.pnpm run -randpnpm exec -rcheck them before running anything. An incompatibleengines.pnpmfails the command. An incompatibleengines.nodeprints a warning, or fails the command withengineStrictenabled. An unsupported platform prints a warning. A project that downloads its own Node.js throughdevEngines.runtimeis checked against that Node.js #17751 pnpm/tasks#281 pnpm/tasks#299.Fixed missing warnings when a required dependency does not support the current Node.js version.
An optional dependency that declares no
os,cpu, orlibcfield is no longer skipped because its name contains only an operating system word, such asget-windowson macOS. pnpm now infers its platform from the name only when the name also has a cpu or libc token, such as-win32-x64#17774.Peer dependencies
With
dedupePeerDependents: false, a missing optional peer is no longer resolved from a version that only another workspace project depends on. The workspace root's dependencies still count ifresolvePeersFromWorkspaceRootistrue. Before, a tool in one project'sdevDependencies, such aswebpack-cli, could become an optional peer of another project's production dependencies #16666.pnpm installno longer gives a project an optional peer dependency that it skipped because a required peer would conflict with the project's dependencies. Before,dedupePeerDependentsmerged the project's copy of the package that declares the peer with another project's copy that resolves it #17781.pnpm installno longer fills in a missing optional peer dependency if a required peer it brings in conflicts with a version the project depends on. Before, such a peer was installed along with it and reported as unmet #17718.pnpm install --filterin a sparse checkout now counts the dependencies of workspace projects that are missing from disk when it resolves peer dependencies and marks packages as optional. The lockfile it writes no longer differs from a full checkout in those entries #17791.Frozen lockfile and workspace links
pnpm install --frozen-lockfilenow succeeds when a workspace project recorded inpnpm-lock.yamlhas an empty directory, such as a git submodule that was not checked out #17712.pnpm install --frozen-lockfilenow fails withERR_PNPM_OUTDATED_LOCKFILEwhen a workspace package linked through a plain semver range, such as^7.9.5, has changed to a version outside that range #17806.pnpm install --frozen-lockfileandverifyDepsBeforeRunnow accept aworkspace:dependency on a project whose version is not valid semver, such asworkspace:1on a project at version1. Before, they reported the lockfile thatpnpm installhad just written as out of date.pnpm install --frozen-lockfilenow accepts a lockfile when an injected workspace package declares afile:orlink:dependency with backslashes, such asfile:..\vendor, or with a slash after the protocol, such asfile:/./vendor. Before, the install reported the lockfile as out of date right afterpnpm installhad written it #17720.When a package injected through a path, such as
file:../libor../lib, gives one of its dependencies acatalog:specifier,pnpm install --frozen-lockfilenow reports the lockfile as outdated. For a bare path such as../lib,pnpm installnow also fails the way a fresh resolution does. Before, these installs accepted the existing lockfile #17722.Dependencies declared as
workspace:entries in catalogs now remain in the lockfile whenexcludeLinksFromLockfileis enabled. Frozen installs can restore these links afternode_modulesis removed pnpm/tasks#260.With
dedupeDirectDeps,pnpm installnow compareslink:dependencies by the directory they point at. A project'slink:dependency is removed when the workspace root links the same directory under a different path. It is kept when the root'slink:dependency has the same text but points at another directory. pnpm reports a dependency the root provides as removed only once, when it removes the project's link. The summary shows the package version of a removedlink:dependency pnpm/tasks#293.Hoisted node linker and custom modulesDir
With
nodeLinker: hoisted, a package that runs a lifecycle script or has a patch is now cloned or copied intonode_modules, as with the isolated linker. A build that rewrites one of its files no longer changes the store copy shared with other projects.With
nodeLinker: hoisted, pnpm no longer deletes a directory outsidenode_moduleswhen it removes a package whose scope directory is a symlink.With
nodeLinker: hoisted,pnpm install --filterin a sparse checkout now drops previously installed workspace projects that are missing from disk from the hoistednode_modulestree. It no longer recreatesnode_modulesinside a missing project's directory. Packages that only the missing project used are also removed from the rootnode_modules.With
nodeLinker: hoistedanddedupeDirectDeps,pnpm installnow removes a project'slink:dependency that the workspace root provides, and reports eachlink:dependency it removes. Removing the last scopedlink:dependency of a scope also removes the empty@scopedirectory.With
nodeLinker: hoistedand a custommodulesDir, pnpm now installs a workspace project's dependencies that cannot be hoisted to the root into the project'smodulesDir. The next install that relinks the project removes the copies that earlier installs left in itsnode_modules. A later install restores the project'smodulesDirwhen it was removed. Package directories that pnpm did not install are now also moved to.ignoredin a custommodulesDir.Fixed installs in a workspace whose
modulesDiris an absolute path, including one that goes through a symlink such as/tmpon macOS, or a path that starts with... Dependencies of workspace projects no longer end up outside the workspace, and the root project's dependencies,link:dependencies, and commands are linked into the configured directory.pnpm bin,pnpm root,pnpm run,pnpm exec, andpnpm versionnow use that directory too pnpm/tasks#285.Store and builds
Concurrent installs into a global virtual store no longer wait on each other. A package that needs a build is built in a private directory and moved into the store once its build has finished, so another project never links a half-built package. An install with
--ignore-scriptslinks the packages it does not build from their own store directories, andpnpm store pruneremoves the build directories of installs that were interrupted #15568.Packages that an older pnpm version added to the store now run their install scripts. Before, pnpm could skip those scripts and hardlink the package's files to the store.
pnpm installnow keeps patches to bundled dependencies when it restores a package from the side-effects cache, including files a patch adds #17734.Local installs on macOS now keep cached clones separate from the global virtual store.
pnpm store pruneremoves this cache, so unused cached packages no longer accumulate #17907.pnpm store prunenow stops if a dependency link cannot be read. This keeps installed packages from being removed after an incomplete scan.A repeat
pnpm installnow runs a full install when theruntimeOnFailsetting changes. Before, it printed "Already up to date" and did not install the runtime a project declares indevEngines.runtimepnpm/tasks#303.The sync of an injected workspace dependency now copies a file whose source has reached the filesystem's limit on hard links.
pnpm patch-commitnow copies a file into its scratch directory when the filesystem refuses to hard link it, unless the path is missing or already occupied pnpm/tasks#283.Speed
pnpm installis faster when it clones files from the store, which it does by default on macOS. On a Mac with endpoint security software, a cold install of a project with about 1,350 packages took 29% less time pnpm/tasks#280.pnpm installunpacks packages that contain many files faster. Unpackingtypescripttook 30% less time in our measurements pnpm/tasks#288.Resolving against a registry that sends
Cache-Control: no-cache, such as Azure Artifacts, is fast again when the lockfile already decides the version. pnpm reads the cached metadata for a pinned version, or for a range the lockfile version is proven to win, without a registry request #17758.POSIX bin shims start fewer processes. Running a dependency's bin through its shim from Git Bash on Windows starts 7 processes where it started 15. Installing again replaces the shims already in
node_modules.Windows
pnpm now installs dependencies and runs lifecycle scripts from projects on mapped Windows network drives. When a network share refuses the links in
node_modules, the error now suggests settingnodeLinker: hoistedor moving the project to a local drive #17747.packageImportMethod: autonow tries hardlinking before cloning, as it does on Linux. Installs from a warm store on a Dev Drive are faster. An install no longer fails when the store refuses a hardlink with an access-denied error, and pnpm tries cloning or copying the file next #17809.pnpm runandpnpm setupno longer clear the visible terminal when a project path contains non-ASCII characters.A failed attempt to create a directory junction in
node_modulesno longer leaves a.pnpm-junction-*directory behind.pnpmstarts faster. It loads system libraries such asuser32.dllandshell32.dllthe first time a command uses them, sopnpm --versionloads 11 libraries where it loaded 25.pnpm deploy
pnpm deploynow runs the build scripts of a workspace project that it installs as afile:dependency, without a machine-specificallowBuildskey. AnallowBuildsentry that denies the project still applies #17740.pnpm deployno longer fails when the deployed project depends on a workspace package that setspublishConfig.directory. pnpm installs that package from its publish directory and runs its build scripts #17771.pnpm deploywithout a shared workspace lockfile now resolves a relativeworkspace:path, such asworkspace:../lib, from the source project's directory. It used to be resolved from the deploy target and fail #17804.pnpm deploy --offline --trust-lockfilenow reuses dependencies pinned in the source lockfile from a populated store when registry metadata is unavailable. This works with per-project lockfiles,--legacy, and npm aliases #17888.Other commands and settings
pnpm dist-tagandpnpm unpublishnow offer browser-based authentication when the account's two-factor authentication uses a security key. Before, they asked for a one-time password in that case #17832.pnpm publishwith provenance now downloads Sigstore's current signing configuration before signing. A failed or slow download is retried with the same retry policy and deadline as the signing requests.pnpm packandpnpm publishnow apply the first rule of a.npmignoreor.gitignorethat starts with a UTF-8 BOM.pnpm outdatednow checks dependencies when the project has no lockfile, for example withlockfile: false. TheCurrentcolumn shows the installed version, or the lowest version allowed by the declared range if the dependency is not installed #17811.pnpm self-updatenow updates the project'sengines.pnpmrange along with its pnpm pin, keeping the^or~operator #17732.On Linux and macOS,
pnpm runno longer sometimes reports a lifecycle failure afterCtrl+Cinterrupts a script.Config dependencies use the declared registry
serverTypewhen recording and installing packages pnpm/tasks#236.Relative directory selectors set on
config.filterorconfig.filterProdby anupdateConfighook now resolve from the workspace root even when--diris passed orpnpmruns from a subdirectory #17906.Commands that add settings to
pnpm-workspace.yamlnow fail with an error if the file contains onlynull, and leave the file unchanged. Before, they wrote invalid YAML.Shell tab-completion now completes directory and file paths for path options such as
-C,--dir,--prefix,--store-dir, and--env-file. Before, options without a fixed list of values offered command names #17884.Platinum Sponsors
Gold Sponsors
v12.18.0: pnpm 12.18Compare Source
pnpm 12.18.0 packs, publishes, and installs packages with platform variants on pnpr registries. It also adds per-skill approval of agent skills and
pnpm store addfor offline installs from downloaded tarballs. Repeat installs andverifyDepsBeforeRunno longer read thepackage.jsonof unchanged workspace projects. The release fixes several peer dependency resolution bugs too.Minor Changes
Agent skills
pnpm now names the link to a dependency's agent skill after the skill alone. A skill that the
@acme/kitpackage ships inskills/auth/is linked as.claude/skills/auth, not.claude/skills/pnpm-@acme+kit-auth. The next install replaces links with the old names. pnpm lists the linked skills in a# pnpmblock of each agent skill directory's.gitignore#17455.When two approved packages ship a skill of the same name, or the name is already taken in an agent skill directory, pnpm links the skill as
pnpm-<package>-<skill>. Before, the install failed.pnpm approvenow asks which agent skills to link when a package ships more than one. pnpm records the chosen skills as a list, such aspermissions.<pkg>.skills: [guide, migrate], and does not offer the other skills for approval again. The first time a project approves a skill,pnpm approvealso asks which agent directories to link skills into, and records the answer underskills.dirs.pnpm links agent skills nested in category directories, such as
skills/engineering/implement/SKILL.md, up to three levels belowskills/. Before, it linked only the skills directly underskills/.Platform variants
These features need a registry declared with
serverType: pnpr.pnpm packpacks one archive per entry ofpublishConfig.variants, each platform variant as<name>-<version>~<tag>.tgz.pnpm pack --variant <target>packs only the archive whose entry lists that target.pnpm pack --jsonprints theintegrityandsizeof every archive it writes.pnpm publishpublishes a package'spublishConfig.variants. pnpm uploads every archive before the publish request that references them. Publishing variants to any other registry is refused unless--no-variantsis given, which publishes only the archive that targetsany.pnpm publish --upload-variant <target>uploads the archive of onepublishConfig.variantsentry to the registry's staging area and prints<target>=<integrity>.pnpm publish --variant-integrity <target>=<integrity>then publishes the version from archives that other jobs uploaded. With--recursive, each value names its package as<name>~<target>=<integrity>.pnpm publish -r --batchnow uploads each package archive on its own request and skips archives the registry already holds, so the batch request no longer grows with the archives it publishes. A batch of more than 256 packages still carries every archive inline. Packages withpublishConfig.variantscan be published in a batch. A batch with variants that would reference more than 256 archives on one registry fails withERR_PNPM_BATCH_PUBLISH_TOO_MANY_ARCHIVESpnpm/tasks#244.pnpm publish --provenancesigns one statement that names every archive of a version withpublishConfig.variants. A platform variant's archive is named by the version's package URL with avariantqualifier.Rerunning
pnpm publishafter the version was already published now succeeds when the published version is the same release. pnpm compares the archives, the provenance statement when the rerun signs one, and the dist-tag. When the published version differs, the publish fails withERR_PNPM_PUBLISHED_RELEASE_DIFFERS, which names what differs.pnpm installs the platform variant of a package that fits the host, or the package's own archive when none does. The lockfile records every variant. A version published with variants only, and no archive for other hosts, installs on a host one of the variants fits. On any other host, an optional dependency is skipped, and any other dependency fails with an error that lists the platforms the version is published for.
supportedArchitecturesplatform lists accept platform tags, the same tagspublishConfig.variantsentries name. An entry can state floors and an ABI, such aslinux-x64-manylinux_2_28,darwin-arm64-macos_14_0,linux-x64-napi8orlinux-x64-node127, and any Node.js OS and CPU, such asfreebsd-x64. The spellings accepted before still work.With
supportedArchitecturesset, pnpm also fetches into the store the variants that the other listed platforms need, when it downloads a package with platform variants.pnpr registries
pnpm downloads less metadata from a registry declared with
serverType: pnpr. A large package document leaves out the manifests of rarely picked versions, and pnpm fetches one only when it picks that version. In a benchmark that resolves 787 packages, the package documents shrank from 30.3 MB to 2.5 MB gzipped. pnpm caches these documents inv12/metadata-pnpr, and thepnpm cachecommands cover them.pnpm warns when a registry that is not declared
serverType: pnprturns out to be pnpr. For a registry declaredserverType: pnpr, aminimumReleaseAgelonger than 30 days fails withERR_PNPM_UNSUPPORTED_MINIMUM_RELEASE_AGE.pnpm publishsends release notes to registries declared withserverType: pnpr. A package's notes are the section for its version inCHANGELOG.md, or the notes thatpnpm version -rcomposed from change intents.--release-notes <file>gives the notes from a file, and--no-release-notessends none.--publication-namenames a release published with--batch.In a workspace that uses pnpm's versioning,
pnpm version -r --release-notes <file>puts a summary above the composed notes of the release.pnpm view <pkg>@<version> releaseNotes,pnpm outdated --notes, andpnpm update --interactiveshow the release notes from these registries.Store and hooks
pnpm store addnow prepares the store for offline installs from package tarballs downloaded some other way. Afterpnpm store add ./tarballs/*.tgz,pnpm install --offline --frozen-lockfileinstalls each registry package whose lockfile entry pins one of those tarballs #2978.Custom pnpmfile fetchers can use
fetchers.gitHostedTarball,fetchers.git, andfetchers.binarypnpm/tasks#191.Patch Changes
Installing packages
Running
nodeorpnpm installin a project that pins a Node.js version pnpm has not downloaded yet no longer hangs when aglobalPnpmfileis configured #17530.pnpm installwithenableGlobalVirtualStoreno longer fails on Windows for a dependency from a named registry, such asgh:ornpmjs:#17665.Concurrent installs that share a global virtual store no longer fail with
ERR_PNPM_CMD_SHIM_SYMLINK_BINwhen they link the same executable at the same time #17587.pnpm installandpnpm cinow succeed when dependency skills are approved but no agent skill directory exists. The skills stay unlinked until a directory exists #17574.Commands run from a workspace package now use the same default store as the workspace root. Before,
pnpm addin a package could fail withERR_PNPM_UNEXPECTED_STOREwhen the workspace root was its own mount point and the home store was on another volume, as in a sandbox or a container.A workspace installed with the old behavior may need one
pnpm install --forcefrom the workspace root.pnpm deploynow keeps a symlink in the project whose target is missing from the source, such as a link into anode_modulesdirectory that was removed after the build. Deploy used to drop such a link silently #17571.pnpm installnow links the runtime that an earlierpnpm install --no-runtimeskipped, andpnpm install --no-runtimeremoves a runtime that an earlier install linked #17542.With
enableGlobalVirtualStore,pnpm installagain runs a dependency's build scripts in a project whose global virtual store slot another project already built, unless the side-effects cache has build output to restore for it. A build that writes only outside its own package, such as a git hook installer, now takes effect in every project #17526.Commands of a package whose
binpaths contain excess parent directory segments, such as../dist/cli.js, are no longer missing. Such paths now resolve inside the package #17586.Generated POSIX shell shims now quote their paths, so shell special characters in a path stay literal.
Lockfile and local paths
Packages from the default registry keep plain lockfile keys, even when a prefix such as
npmjspoints at the registry set asregistry. A dependency written with such a prefix shares the plain entry of the same package. The next install rewrites keys that earlier versions qualified this way #17575.pnpm install --frozen-lockfile,pnpm approve-builds, andpnpm rebuildnow accept a lockfile that resolves a*dependency to a prereleaselatestversion. pnpm wrote such a lockfile and then reported it as outdated #17594.pnpm install --frozen-lockfilenow accepts a lockfile written withexcludeLinksFromLockfileandlinkWorkspacePackageson, when a project depends on a workspace package through acatalog:entry. It used to fail withERR_PNPM_OUTDATED_LOCKFILE.pnpm install --frozen-lockfileno longer rejects a freshly generated lockfile whenaddMissingPeerTypesis enabled and an injected workspace package has peer dependencies #17668.Relative local paths in root
overridesnow resolve from the workspace root when each project has its own lockfile #17691.Installing a local directory dependency no longer fails when another project's install is writing a lockfile in that directory.
Relative local paths in root catalogs now resolve for dependencies and peers #17690.
pnpm installnow resolves auto-installed relativeworkspace:andfile:peers from the directory of the package that declares them #17676, #17689.pnpm dedupe --checkleavespnpm-lock.yamluntouched while it looks for deduplication changes. IfconfigDependencieschanged since the last install, the check keeps the lockfile they sync, aspnpm installdoes #17628.pnpm dedupe --checkno longer fails when the only difference is the integrity of a locked version that the registry now reports with a stronger algorithm, such as asha512integrity replacing thesha1shasum it reported when the lockfile was written #17692.Peer dependencies
Peer deduplication no longer gives a project different copies of a dependency across direct and transitive paths when an optional peer has no provider #17666.
Dependencies no longer bind to another project's peer variant when the provider has nested peers, including providers that finish resolving later #17593.
Re-resolving a lockfile no longer preserves optional peer bindings from other projects when no provider is in scope #17592.
pnpm peers checkwarns when a required peer is resolved without a provider declared by the project or its dependency ancestors, withautoInstallPeers: falseanddedupePeerDependents: true. These warnings do not change the command's exit code or causestrictPeerDependenciesfailures.Speed and memory
pnpm install, andpnpm runandpnpm execwithverifyDepsBeforeRun, no longer read thepackage.jsonof workspace projects whose files did not change since the last install. This also holds with a pnpmfile,configDependencies, orsharedWorkspaceLockfile: false. In an up-to-date workspace withsharedWorkspaceLockfile: false,pnpm installno longer runs the install of each project pnpm/tasks#256.A recursive
pnpm runorpnpm execwithverifyDepsBeforeRunset no longer reads everypackage.jsonin the workspace once per project whensharedWorkspaceLockfileisfalse. In a 300-project workspace,pnpm -r exec truewent from 490 ms to 42 ms pnpm/tasks#256.pnpm installmakes fewerstatcalls when it hardlinks files from the store, as few as 12.7.0 made #17543.Picking versions from registry metadata uses less temporary memory.
verifyDepsBeforeRun and repeat installs
With
verifyDepsBeforeRun,pnpm runandpnpm execnow report dependencies as out of date after a dependency is added to thepackage.jsonof a local directory dependency, such as"lib": "file:../lib". Before, the command ran without the new dependency installed.verifyDepsBeforeRunno longer reports afile:directory dependency as out of date after an edit topackage.jsonthat leaves its dependencies unchanged #17697.verifyDepsBeforeRunno longer reports dependencies as out of sync when only theversionfield of a single-project repository changed #17560. The same holds for a workspace project that no dependency can resolve to. A script run after such a change no longer starts an install first.A repeat
pnpm installnow rewrites the bin shims afterextendNodePathchanges. Before, it reported "Already up to date" and the shims kept theNODE_PATHof the previous setting.Adding and updating dependencies
pnpm add <pkg>without a version now saves the range that the other workspace projects declare for the package, or the one a matching override sets. Acatalog:reference still comes first, and thetagsetting is used only when none of these exists pnpm/tasks#191.pnpm updatewith only negated selectors, such aspnpm update '!foo', now leaves the dependencies listed inupdate.ignoreDepsunchanged. Negatedcrate:andpypi:selectors, such as!crate:sha2, now exclude that dependency and update the rest pnpm/tasks#243.pnpm update --latestkeeps three kinds of Cargo dependencies where they are, unless the crate is named on the command line. Before, it moved each one to the newest release and left a workspace that did not build.tower-0-4 = { package = "tower", version = "0.4" }, stays within its requirement if the workspace also declares the crate under its own name.[patch.crates-io]keeps its version, with a warning.pnpm update crate:foo@1, moves it back.Other new major versions are still selected and may need code changes.
pnpm updatenow keeps a Cargo dependency at its current version, with a warning, if the new version lacks a feature the workspace enables on it. If the crate is named on the command line, as inpnpm update --latest crate:sha2, the update fails with an error that names the missing features.pnpm updatenow keeps the operator of every existing Cargo requirement, so~1.0.0is updated to~1.1.0, and an exact=requirement stays exact unless the selector gives a range, such ascrate:foo@^2. ThesavePrefixandsaveExactsettings apply only to new Cargo dependencies. Saved Cargo requirements omit build metadata.pnpm updatenow updates a Cargo dependency whose inline table spans several lines, such as one with a multi-linefeaturesarray. It failed with "its Cargo.toml dependency declaration is not a string or single-line inline table".pnpm updateno longer applies thesavePrefixandsaveExactsettings to Python requirements. AsavePrefixsuch as^madepnpm updatefail in a project with Python dependencies.pnpm updatenow keeps the precision of a~=requirement, so~=1.0is updated to~=1.5and still allows any 1.x release. With--latest, a==1.*requirement is updated to==2.*.Store
pnpm store prunenow keeps packages linked from a configured modules directory pnpm/tasks#230.pnpm store prunenow removes aliases of pruned packages.pnpm store statusno longer reports untouched packages as modified when the global virtual store is enabled. If the installed global-store layout cannot be verified, the command reportsERR_PNPM_STORE_STATUS_UNVERIFIABLEand asks for a reinstall #17631.pnpm store addnow fails withERR_PNPM_FROZEN_STORE_WRITEwhenfrozenStoreis enabled. It used to write package files into the read-only store without recording them, so no install could use them.pnpm cat-index <name>@<version>no longer shows the index of a package whose name differs only in letter case.Other commands and settings
pnpm linknow fails without changingpackage.jsonorpnpm-workspace.yamlwhen the linked package's name is not a valid npm package name. It used to write that name to both files, which made every later install fail #17475.pnpm link <dir>now resolves a relative<dir>against the current directory. In a directory without apackage.json, such as a workspace'spackagesfolder,pnpm link .used to link the nearest project above it into itself #17475.A Node.js version range such as
>=26.13, for example indevEngines.runtime, now resolves to the newest stable release that satisfies it. pnpm picks a prerelease only when no stable release matches #17516.Switching to the pnpm version a project pins no longer writes a temporary
_tmp_*file into the project directory, which file watchers reported on every command #17681.pnpm now reads the
linkWorkspacePackages,injectWorkspacePackages,extendNodePath,frozenStore, andoptimisticRepeatInstallsettings fromPNPM_CONFIG_*environment variables, such asPNPM_CONFIG_LINK_WORKSPACE_PACKAGES=true.--config.extend-node-pathnow applies too.Recursive scripts run with
--sequentialor--workspace-concurrency=1print GitHub Actions log groups again #17629.When
pnpm docscannot open a browser, the URL it prints no longer includes the query string or the fragment.Platinum Sponsors
Gold Sponsors
v12.17.0: pnpm 12.17Compare Source
pnpm 12.17.0 adds
pnpm peers check --global, dependency-group selectors and wildcards inoverrides, and runtime, package manager, Cargo, and Python updates inpnpm outdatedandpnpm update. It also fixes files that other users could not read in Docker images, and repeat installs that missed changes to local dependencies.Minor Changes
pnpm peers checknow accepts--global(-g) to check globally installed packages. After a global install or update, the peer dependency warning now suggestspnpm peers check -g#17504.pnpm outdatedandpnpm updatenow inspect and update package manager and runtime versions indevEngines.packageManager,packageManager,devEngines.runtime,engines.runtime, andruntime:dependencies. Withcargo.enabledorpython.enabled,pnpm outdatedandpnpm updatealso inspect and update Cargo dependencies inCargo.tomlandCargo.lockand Python dependencies inpyproject.tomlandpylock.toml.overridesselectors now support:prod,:optional, and:peerpseudo-selectors that target a single dependency group. They also support*wildcard patterns on parent and target package names. An override with a non-range value, such asnpm:orfile:, no longer adds a peer dependency todependencies. Removing an optional dependency with"-"now also removes the duplicate entry fromdependencies#5391.Patch Changes
Installing packages
Files that pnpm creates in a project now get the permissions the umask gives any new file, such as
0644. Before, several of them were readable only by the user who ran pnpm, which broke Docker images that run as a different user #17435.The fix applies to:
node_modules/.pnpm-workspace-state-v1.json. A different user runningpnpm runreinstalled the dependencies because it could not read this file.pnpm-workspace.yamlpnpm deploypnpm patch-commitpnpm dedupe --checkWhen pnpm edits an existing file, the file keeps its permissions.
pnpm installno longer writes broken dependency links when the project'snode_modulesis a symlink to another directory, such as another project'snode_modules. The install reported success, but the links it wrote did not resolve #17448.Commands installed with
pnpm add --globalnow find the dependencies that pnpm hoists for their package. A package that loads a dependency it does not declare, such as a native addon's platform-specific package, failed with "Cannot find module". Reinstall such a package withpnpm add --globalto update its existing command #17503.When pnpm switches to the version a project pins, it now installs that version's native binary for the current host, even if the project's
supportedArchitecturesexcludes the host. Before, pnpm could not use the pinned version and kept running the installed one. pnpm also repairs a pinned version that an earlier install left without the host's binary.With the global virtual store, a change to a dependency of one package in a dependency cycle now gives every package in that cycle a new directory. Before, the other packages kept their directories and still linked the old copy of the changed package, so the project could load two copies of it #17466.
Packages in a dependency cycle, and packages that depend on one, move to new global virtual store directories once after this update. Those that run a build miss the side-effects cache once.
With
nodeLinker: hoisted, when two workspace projects need the same package version and it cannot be hoisted to the root, each project now keeps the copy installed in its ownnode_modules. Build scripts run in each of these copies. Before, the second project's copy was replaced with a symlink to the first project's, so every repeat install imported it again #17498.The Node.js
latestselector now chooses the newest stable release #17490.Hardlinking from the store now stats each store file once per install. Since pnpm 12.8.0, a store file was stat'ed again for every package that links it. On an offline install of a large workspace, that added up to 15% system CPU #17500.
Repeat installs and local dependencies
pnpm install --frozen-lockfileno longer reports an outdated lockfile right after the install that wrote it. This happened when a pnpmfilereadPackagehook orpackageExtensionschanged the dependencies or peer dependencies of a local directory dependency outside the workspace projects. It affected afile:dependency, an injectedworkspace:../dirdependency outside the workspace patterns, and an injected workspace package left out by--filter#17447 #17473.A repeat
pnpm installnow takes the fast path whenignoredOptionalDependenciesremoves an optional dependency of afile:directory dependency. It used to resolve again on every run.pnpm installnow resolves again after an edit to an injectedworkspace:../dirdependency outside the workspace patterns under a shared lockfile. It used to keep the lockfile unchanged. The nextpnpm install --frozen-lockfilethen failed #17476.pnpm installnow resolves a local directory again after itspackage.jsonchanges when an override or a package extension adds it to the dependencies of a registry package.pnpm install --frozen-lockfilefails on a lockfile that still records the old dependencies of such a directory #17486.With
injectWorkspacePackagesand per-project lockfiles,pnpm installnow updates a project's lockfile when a local tarball that an injected workspace project depends on is replaced. The project's lockfile kept the old version and integrity before.pnpm installnow detects a change to a local tarball or directory that only a pnpmfilereadPackagehook depends on. A repeat install reported "Already up to date" and kept the old contents before pnpm/tasks#227.pnpm installnow relinks aworkspace:orlink:dependency whose link was deleted fromnode_modules. It used to report "Already up to date" and leave the link missing #17485.A repeat
pnpm installreports "Already up to date" again when a pnpmfilereadPackagehook changes the dependencies of a workspace project. Since 12.15.0, every such install ran in full #17468.After an edit to a project's
package.json,pnpm installandverifyDepsBeforeRunnow run the pnpmfile'sreadPackagehook on the edited manifest before comparing it with the lockfile. They could report the project up to date when the hook rewrote the edited dependency to a specifier the lockfile did not record.Adding and updating dependencies
pnpm update --latestwith package selectors now updates the dependencies of the selected packages within their declared ranges. Excluded packages and their dependencies keep their locked versions #17444.pnpm add <pkg>@<tag>now uses a catalog entry set to that same dist-tag. The dependency is saved ascatalog:and the entry stays as written pnpm/tasks#225.When
pnpm addadds a new dist-tag such asvue@legacyto a catalog, the catalog entry records the exact version the tag points to. The same applies to a dependency added without a version when thetagsetting names a dist-tag other thanlatest.pnpm addnow saves the resolved version range of an npm alias. For example,pnpm add v2@npm:vueandpnpm add v2@npm:vue@^3.0.0both savenpm:vue@^3.5.13.Running scripts and commands
Programs that a script or
pnpm execcommand leaves running, such as a browser opened by theopenpackage, now outlive pnpm exactly when they would outlive the command run without pnpm. Before, on Windows, a failed command,Ctrl+C, or a closed terminal ended all of them. pnpm still ends them when it is killed or crashes.When a recursive or parallel run bails, the scripts still running now receive
SIGTERMon Unix and are killed only if they are still running two seconds later. On Windows, everything those scripts started is ended, including detached processes whose parent has already exited. Before, a bail killed them at once #17465.On Windows, the shell shim of a
.cmdor.batbin now runs it under Git Bash when MSYS argument conversion is off, such as withMSYS_NO_PATHCONV=1orMSYS2_ARG_CONV_EXCL='*'. The shim used to start an interactive cmd.exe prompt #17480.pnxandpnpm createnow run the command in the directory selected by--diror--workspace-root. Without either flag, the command still runs in the directory pnpm was started in.pnpm --env-filenow reads files the waynode --env-filedoes. Values are taken as written, so$VARis no longer expanded and Windows paths such asC:\Users\meload unchanged. A file is no longer rejected for its contents.Settings and messages
pnpm versionno longer creates a git commit and tag whengitTagVersionis set tofalse#17460.pnpm publishnow reads thepublishBranchsetting frompnpm-workspace.yamland fromPNPM_CONFIG_PUBLISH_BRANCH. The--publish-branchflag overrides it.pnpmnow accepts--strict-ssland--local-address <ip>on the command line.pnpm doctoruses a 15-second timeout when checking registry connectivity.pnpm-workspace.yamlparse errors now reportERR_PNPM_INVALID_SETTING.The error for a dependency with an invalid name in a project's manifest now names the project's directory. It used to say only "The current package", which did not tell which workspace project to fix #17475.
Platinum Sponsors
Gold Sponsors
v12.16.1: pnpm 12.16.1Compare Source
This release fixes
pnpm installhanging on a cold store in workspaces that install Cargo crates, andpnpm packshipping a file thatfilesexcludes by name.Patch Changes
pnpm installno longer hangs on a cold store in a workspace that also installs Cargo crates or a Rust toolchain.pnpm packandpnpm publishnow apply afilesentry that names a file after the glob and directory entries, as npm does. A file excluded by name, such as!dist/index.js, stays out even when a laterdist/**matches it. A file named by its path, such aslib/secret.js, ships even when a later!lib/*.jsmatches it.pnpm installno longer leaves a broken symlink in an injected workspace dependency when the package links to a file outside its published files and pnpm imports by hardlink. Installing a git dependency now skips internal directory symlinks when importing its files into the store.pnpm installnow relinks a command that a workspace project renames into the projects that depend on it whensharedWorkspaceLockfileisfalsepnpm/tasks#224.pnpm installandpnpm rebuildnow refresh privately hoisted.binshims innode_modules/.pnpm/node_modules/.binafter a dependency build replaces a script target with a native executable #17402.pnpm installnow reads a package's manifest to decide its peer dependencies when it updates an existing lockfile, as it does when it resolves from scratch.Commands,
pnpm --version,pnpm self-update, and invocations with unknown flags now apply the samepackageManageranddevEngines.packageManagersettings when switching to the pinned pnpm version or recording it inpnpm-lock.yaml.--config.<key>flags andlockfileDirnow reach the version switch and lockfile sync on every entry point. Unreadable settings inpnpm-workspace.yamlor the globalconfig.yamlthat do not affect the pin decision no longer block the version switch pnpm/tasks#222.pnpm now accepts the
--cache-dir <dir>flag, as inpnpm install --cache-dir /tmp/pnpm-cache#17422.When the version or range given to
pnpm unpublishmatches every published version, the error now says so and shows the same command with--force. Before, the error suggested runningpnpm unpublish <pkg>@<version>, the command that had just failed.Platinum Sponsors
Gold Sponsors
v12.16.0: pnpm 12.16Compare Source
This release adds a global
--env-fileflag, updates to a symlinkedpnpm-lock.yaml, andpnpm setup --no-modify-path. It also fixes two security issues, in zstd decompression and in signing.Minor Changes
Added a repeatable global
--env-file <path>flag to load environment variables from dotenv-style files before running a command. Later files override earlier files, variables already in the environment are preserved, and loaded variables are visible to user-level.npmrcinterpolation and lifecycle scripts #7111.pnpm can now update a
pnpm-lock.yamlthat is a symlink. List the directories the lockfile may link into in thesymlinkedLockfileTargetDirssetting, in the global config or withPNPM_CONFIG_SYMLINKED_LOCKFILE_TARGET_DIRS. pnpm writes the update to the file the symlink points to if that file is inside one of these directories. The symlink stays in place. pnpm ignores this setting inpnpm-workspace.yaml#17222.Added a
--no-modify-pathoption topnpm setup. It installs pnpm without adding it toPATH, leaving the shell config file, the Windows registry, and the GitHub Actions environment files unchanged.pnpm setupthen prints the lines to add yourself get.pnpm.io#37.Patch Changes
Security
Fixed memory exposure and allocation handling vulnerabilities when processing zstd-compressed data #17388.
Signing in pnpm and pnpr no longer uses arithmetic that may leak the private key through timing. This covers shared artifacts, OCI registry tokens, and OIDC login state advisory.
Installing packages
A dependency symlink that pnpm cannot point at the wanted target now fails the install with an error that names the link. This happens when the filesystem still serves the old link after pnpm removed it, as a
node_modulesserved by a virtual filesystem does. pnpm used to remove the link again without end and crashed with a segmentation fault once the thread ran out of stack.Concurrent workspace installs no longer lose store-index rows when initializing the shared SQLite index #17388.
Agent skill links now keep the same target across installs when a package version is installed with several sets of peer dependencies. An install no longer fails with
ERR_PNPM_AGENT_SKILL_PATH_OCCUPIEDon a skill link that pnpm created for another of those copies #17319.pnpm now fails at once, without retrying, when a downloaded package archive contains a rejected entry path #17205.
pnpm now builds a git-hosted dependency in every new location it links the dependency into, such as a new global virtual store slot or a fresh
node_modules. When the side-effects cache holds the build output, pnpm restores it from there. Before, only the install that fetched the dependency built it. This also fixes dependencies that are already in the store #17224.Changes a
preResolutionhook makes to the lockfiles now take effect. The hook now also runs when pnpm installs from an up-to-date lockfile. An error thrown by the hook now fails the install.A custom fetcher in the pnpmfile can now call
fetchers.directoryto fetch a package from a local directory. The call rejects withERR_PNPM_TARBALL_INTEGRITYif the lockfile pins an archive integrity for the package. Previously, callingfetchers.directoryfailed with aTypeError.packageImportMethod: copynow also applies to packages that have lifecycle scripts or patches. On a filesystem that supports block cloning, such as ReFS or a Dev Drive on Windows, these packages were cloned #17195.With
nodeLinker: hoistedandautoInstallPeers: false, a package that workspace projects use with different peer versions is now installed once per peer variant, so each project's copy resolves that project's peer #17395.Under
nodeLinker: hoisted,pnpm installnow leaves a patched package that is already in place alone. The same holds for a package whose peers include a patched package, such as every package peering on a patchedreact-native#17188.With
nodeLinker: hoisted, an install that stops partway no longer leaves the next install trusting the packages it was replacing. Before, reverting the change that started the stopped install, such as a patch edit, kept the half-replaced package innode_modules.Repeat installs and changed settings
A repeat
pnpm installnow acts on a change to these settings. Before, it reported "Already up to date".storeDirorvirtualStoreDir: it recreatesnode_modules.globalVirtualStoreDir: it links the packages from the new directory.virtualStoreDirMaxLength: it renames the virtual store directories.dangerouslyAllowAllBuildsturned on: it runs the builds it skipped.trustLockfileturned off: it verifies the lockfile.pnpm add,pnpm remove, andpnpm updatenow fail ifnode_modulesdoes not match the current settings. Runpnpm installto recreate it. Previously, these commands removed and reinstallednode_moduleswithout asking. They report:ERR_PNPM_UNEXPECTED_STOREifnode_moduleswas linked from a different store.ERR_PNPM_UNEXPECTED_VIRTUAL_STOREif it was linked from a different virtual store directory.ERR_PNPM_MODULES_BREAKING_CHANGEif it was installed by an incompatible pnpm version, or ifnode_modules/.modules.yamlcannot be read.ERR_PNPM_NODE_LINKER_DIFFif it was installed with a differentnodeLinker.pnpm updatenow also fails withERR_PNPM_HOIST_PATTERN_DIFFand the other errorspnpm addreports for a changed hoist pattern orvirtualStoreDirMaxLength.An install filtered to some workspace projects now fails if
node_moduleswas installed with a differentnodeLinker,hoistPattern,publicHoistPattern, store, or virtual store. Before, it recreatednode_modulesand left the projects it skipped without their dependencies. Apnpm installof the whole workspace still recreatesnode_modulespnpm/tasks#217.pnpm installand theverifyDepsBeforeRuncheck now notice an edited patch file whensharedWorkspaceLockfileisfalse.pnpm installnow takes its fast path in a workspace withpatchedDependencieswhen the previous install ran with another major version of pnpm.pnpm installnow relinks the bins of a workspace package when itsbinfield changes, including with--frozen-lockfileand an unchanged lockfile. A filtered install relinks them in the selected projects, and the next install that covers the remaining projects relinks them there #17324.pnpm installnow removes command shims fromnode_modules/.binwhen a workspace dependency renames or removes an entry from itsbinfield pnpm/tasks#211.Resolving dependencies and the lockfile
A package that a plain range and a
<prefix>:specifier both resolve from one registry is now recorded once inpnpm-lock.yamland installed once. The lockfile key names the registry a package resolved from. When that registry declares a prefix, throughprefixinregistriesor throughnamedRegistries, the package is keyed<name>@<prefix>:<version>however its dependency was written: with the prefix, as a plain range its scope routes to that registry, or through the default registry. Before, the plain range was keyed<name>@<version>, so one tarball was installed twice andinstanceofchecks and module singletons broke between the two copies. The same name and version served by two registries still get separate entries. When several prefixes declare one registry, its packages are keyed by the lexicographically smallest prefix.If a scope you route reaches a registry that also declares a prefix, your next
pnpm installre-keys those entries, which shows up as a lockfile diff. Commit it.pnpm install --frozen-lockfileinstalls the lockfile as recorded.pnpm installnow resolves a scope's packages again when the scope is routed to another registry inregistries. Before, the lockfile kept the versions and integrity resolved from the old registry, so the install failed when the new registry did not serve a locked version or served different content. pnpm records in the workspace state which registry each scope routed to, so a fresh clone without that record installs the lockfile as recorded. Changing the default registry resolves nothing again, andpnpm install --frozen-lockfileis unchanged.When
autoDedupeis off, a workspace project's dependencies now resolve from its own ranges, like they do withsharedWorkspaceLockfile: false. Previously, another project's narrower range could hold them back. For example,ajv: "*"now resolves to the latest Ajv even if another project depends onajv@^6. Packages that a project lists inpeerDependenciesstill follow the versions other projects use.pnpm dedupeand installs withautoDedupe: truestill pick one version that satisfies every range. SetautoDedupe: trueif CI runspnpm dedupe --check#17235.An optional dependency written with a named-registry prefix, such as
work:^1.0.0, now fails the install when it cannot be resolved but the lockfile already has a matching entry from that registry. Such a dependency was skipped, which removed its entries from the lockfile.With
injectWorkspacePackages: true, aworkspace:dependency written as a relative path, such asworkspace:../lib-a, in a workspace package now resolves from that package's directory #17284.Fixed
pnpm installfailing withERR_PNPM_UNSUPPORTED_PROTOCOLwhen a workspace package injected through a relative path, such asworkspace:../lib, hascatalog:dependencies. Their catalog entries now resolve the way they do for a package injected by name #17280.pnpm dedupenow refreshes cached registry metadata while re-resolving locked versions #17208.pnpm dedupe --checkno longer fails when the only difference is adeprecatednotice that the registry added or removed after the lockfile was written #17198.Installs delegated to a pnpr server now resolve every prefix declared for a registry URL. A dependency or lockfile entry that used the second of two prefixes for the same registry, such as
zeta:next towork:innamedRegistries, failed on the server pnpm/tasks#204.Registry revisions are now addressed at
<registry>/<name>@<version>+r<revision>pnpm/tasks#208.Adding packages and global packages
pnpm add <pkg>@<tag>andpnpm add <pkg>@<range>now install the version the tag or range resolves to, even when the saved range allows a newer one #17234.pnpm add <pkg>without a version now installs the version under the dist-tag set by thetagsetting. Annpm:alias or ajsr:dependency without a version resolves that tag too. The setting is read frompnpm-workspace.yaml, the global config,PNPM_CONFIG_TAG, and--config.tag, and defaults tolatest.pnpm addnow accepts the lowercase short options-p,-d,-o, and-eas aliases of--save-prod,--save-dev,--save-optional, and--save-exact.pnpm -D install <pkg>now saves the package to devDependencies. Anaddoption such as-Dor-Ewritten beforeinstall <pkg>was rejected as an unexpected argument.pnpm add -Tnow reports that the short option is ambiguous and points to--save-typesand--tilde.Global packages installed with
pnpm add -gare now linked from the global virtual store, so global packages that share dependencies share one copy. SetvirtualStoreType: projectto give each global install its own virtual store.pnpm add -gand the other--globalcommands now fail withERR_PNPM_CONFIG_CONFLICT_VIRTUAL_STORE_DIR_WITH_GLOBALwhen--virtual-store-diris passed. A custom--hoist-patternfails withERR_PNPM_CONFIG_CONFLICT_HOIST_PATTERN_WITH_GLOBAL. Passing--link-workspace-packages,--shared-workspace-lockfile, or--config.lockfile-dirwith--globalalso fails, with the matchingERR_PNPM_CONFIG_CONFLICT_*_WITH_GLOBALcode.Registries, proxies, and login
pnpm now reads the
strictSslandlocalAddresssettings frompnpm-workspace.yaml, the globalconfig.yaml,PNPM_CONFIG_*environment variables, and--config.*options. This includespnpm self-updateand the download of the pnpm version pinned inpackageManager. Before, pnpm read them only from.npmrcasstrict-sslandlocal-addressand ignored the other sources pnpm/tasks#201.When Corepack runs pnpm and the native binary has to be downloaded, the download now uses the proxy from pnpm's config. That proxy comes from
PNPM_CONFIG_HTTPS_PROXYand the matching variables, the globalconfig.yaml, and the user.npmrc. Previously, the download read the proxy only fromHTTPS_PROXY,HTTP_PROXY, andNO_PROXYpnpm/tasks#215.When the
pnpmpackage downloads its native binary on first run, as it does under Corepack, it now trusts the CA certificates from theca,ca[], andcafilesettings of.npmrc, including the ones scoped to the registry. A registry behind a private CA failed withfetch failedbefore, unlessNODE_EXTRA_CA_CERTSnamed the CA. A project.npmrcis used only while the download is checked against npm's signature. Node.js versions that cannot add CA certificates after startup still needNODE_EXTRA_CA_CERTS.pnpm loginsaves the token in<pnpm config>/auth.iniagain. Since v12.1.0, an unscoped login had made its registry the default for every project that did not name a registry. A login now also removes the token an earlier login saved for that registry or scope under_authin the globalconfig.yaml.pnpm login --scopestill routes the scope through the globalregistriessetting.pnpm no longer warns that a
registriesentry routed through the@scope matches no configured registry. pnpm applied such an entry and its options such asserverTypewhile reporting it as ignored pnpm/tasks#184.Running scripts and other commands
pnpm ci --lockfileandpnpm ci --config.lockfile=trueno longer deletepnpm-lock.yaml.pnpm cinow always keeps the lockfile and runs a frozen install from it.pnpm deploy --legacynow checks the workspace lockfile againstminimumReleaseAgeand the other resolution policies, aspnpm installdoes, and fails withERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATIONwhen a locked version is too new. It used to deploy an older version that is not in the lockfile without a warning #17209.pnpm deploynow keeps a deployed symlink to a directory inside the project even if the directory is not among the deployed files, such as a link intonode_modules#17288.pnpm packandpnpm publishnow keeppnpm.configin the publishedpackage.json. They also always include the filepnpm.configpoints to in the tarball #17210.pnpm -r publish --batchnow sendsPUT /-/pnpr/v0/publish, the batch publish endpoint that pnpr serves.pnpm audit --ignoreandpnpm audit --ignore-unfixablenow exit with a non-zero code when vulnerabilities at or above the audit level remain after ignoring. Before, these commands always exited with code 0.pnpm audit --fixandpnpm audit --interactivenow fail withERR_PNPM_AUDIT_FIX_WITH_IGNOREwhen combined with--ignoreor--ignore-unfixable. Before, the fix ran and the ignore flags had no effect.pnpm -r run <script>now honors therequiredScriptssetting frompnpm-workspace.yaml. If the script is listed there and a selected project does not define it, the run fails withERR_PNPM_RECURSIVE_RUN_NO_SCRIPTand names the projects that lack it.pnpm runandpnpm execno longer report the dependencies as out of date after a lockfile change whendedupePeersistrue#17322.On macOS, killing pnpm while it runs scripts in several projects at once now ends every one of those scripts. Before, a script could keep running after pnpm died.
pnpm run,pnpm exec, andpnpm dlxno longer dump a core file forpnpmitself when a command they started dies from a signal #17204.The
runtimesetting is now read. Settingruntime: falseinpnpm-workspace.yaml,pnpm_config_runtime=false, or--config.runtime=falsestopspnpm install,pnpm add,pnpm dedupe, and the other installing commands from installing the runtimes indevEngines.runtimeandengines.runtime.pnpm dedupenow also accepts--no-runtime.Directory selectors with
legacyDirFiltering: truenow include the project in the named directory along with its descendants. Excluding a directory also excludes that project pnpm/tasks#196.pnpm help --allandpnpm help -anow print the full list of commands. They used to fail with an "unrecognized subcommand" error.Reading the file-creation mask on Linux no longer sets it. pnpm had to replace the mask to learn what it was, and a file another thread created in the window between the two calls was created unmasked.
pnpm now passes an interrupt on to the handler it replaced, with the arguments that handler expects. A handler that asked for the signal's details was called without them. Only a program that embeds pnpm and installs its own
SIGINT,SIGTERMorSIGHUPhandler was affected.Store
pnpm store prunenow keeps the packages that a project still uses when pnpm copied or cloned them intonode_modules. These include patched packages, built packages, and every package installed withpackageImportMethod: copy. Before, the prune removed them, and the next install downloaded them again #7192.pnpm store prunenow keeps the packages of a project when the store path reaches its directory through a symlink. Previously, prune dropped such a project from its list and removed the packages only that project used from the global virtual store.pnpm store prunenow removes the package metadata cache, themetadata*directories in the cache directory. This clears the outdated integrity checksums that causeERR_PNPM_TARBALL_INTEGRITYwhen a registry republishes a version.Speed
pnpm installresolves dependencies faster in large workspaces on Linux, macOS, and Windows on x64 and arm64.Sped up cold installs and
pnpm fetchon macOS. pnpm now links downloaded packages into the virtual store on a separate thread, so a slow link pass no longer pauses the downloads that are still in flight #17271.Sped up installs that add new projects to a workspace with a peer-heavy lockfile. pnpm now reads the lockfile's locked peer versions once for all new projects #17311.
Warm installs no longer read the
package.jsonof every git-hosted dependency. pnpm now stores the manifest of a git-hosted package in the store index when it fetches the package.pnpm update --depth <n>with a largen, such as the--depth=9999thatupdate-browserslist-dbruns, now finishes as fast as--depth Infinity. It used memory and stack in proportion tonon lockfiles with dependency cycles, and could run out of memory or crash #17329.Output and warnings
Output that fills the terminal, such as
pnpm run --streamscript output, is now written once. Before, every new line also rewrote all the lines already on screen #17387.pnpm now warns when a pnpmfile defines the
importPackagehook. pnpm does not run this hook. Use thepackageImportMethodsetting to choose how packages are written tonode_modules.pnpmnow warns when a project'spnpm-workspace.yamlsetsci,globalShims, ortools, and names where to set them instead. These settings were already ignored there without a warning.pnpm config setalso refuses to write them to a project'spnpm-workspace.yaml.pnpm no longer documents the
scriptsPrependNodePathsetting, which has no effect. Apnpm-workspace.yamlthat sets it still loads.Platinum Sponsors
Gold Sponsors
v12.15.0: pnpm 12.15Compare Source
This release lets
pnpm-workspace.yamldelegate settings to other files and config dependencies withinclude, addslockfile.integrityTarget: tarand tar-registry support, accepts zstd-compressed registry responses, and honorsSOURCE_DATE_EPOCHinpnpm deployandpnpm install. It also rejects registry metadata that names a different package than the one requested and speeds up workspace installs and macOS file linking.Minor Changes
pnpm-workspace.yamlcan now delegate settings to other YAML files and to config dependencies through a newincludefield. Each source may define only the settings the root manifest delegates to it. Every setting has one owner. Commands that change settings write each one to the file that owns it. A relative path in an included file is relative to that file. See Splitting Settings Across Files.A config dependency supplies its settings through the YAML file named in the
pnpm.configfield of itspackage.json. The newbootConfigsetting sets the release-age and trust policy pnpm uses to install config dependencies and the pnpm version frompackageManager.Added the
lockfile.integrityTargetsetting. WithintegrityTarget: tar,pnpm-lock.yamlpins the hash of every package's uncompressed tar, so the lockfile no longer changes when a registry recompresses its tarballs or serves them as tars. pnpm learns a version's tar hash from the store or by downloading it once.pnpm audit signaturesties the tar hash to the signed.tgzintegrity.pnpm can now install from a registry that serves uncompressed tars with zstd or gzip content coding.
pnpm-lock.yamlrecords the hash of each tar. Declare such a registry withserverType: pnprinregistriesto keep tarball URLs out of the lockfile. See Tar registries.pnpm now decodes the content coding of tarball downloads itself. It rejects a zstd response whose window is larger than 8 MiB.
Added the
maxTarballUnpackedSizesetting. It caps the bytes the files of one package may unpack to, 4 GiB by default.Registry revisions now always pin the hash of the uncompressed tar, the original included. pnpm records an original selected through the revision protocol, for example with a
+r0specifier, asrevision: 0in the lockfile and fetches it from the registry's digest route. pnpm checks a revision's tar whether the registry sends it as a tar, gzip, or zstd. Revision metadata must list revision 0 and mark the selected revision. pnpm rejects incomplete revision metadata withERR_PNPM_MALFORMED_METADATA.pnpm now accepts zstd-compressed responses. Registries that serve zstd send package metadata in fewer bytes than with gzip, most of all the full metadata that settings such as
minimumReleaseAgeandtrustPolicyread.pnpm deployandpnpm installnow use theSOURCE_DATE_EPOCHenvironment variable as an upper bound for timestamps innode_modules/.modules.yamlandnode_modules/.pnpm-workspace-state-v1.json. With an equivalently prepared deploy target and an epoch no later than the timestamps that would otherwise be recorded, deploying the same project twice produces identical files #17171.pnpm update --interactivenow highlights the row under the cursor in cyan while keeping the colors of its version changes.Patch Changes
Security
pnpm now fails with
ERR_PNPM_REGISTRY_NAME_MISMATCHif a registry returns metadata for a package other than the one requested. Before, pnpm installed the package under the name in the metadata, soallowBuildsrules for the requested package did not apply to it.minimumReleaseAgeExcludePruneandtrustPolicyExcludePrunenow keep exclusions for resolved configuration dependencies and their transitive dependencies #17142.Resolving dependencies
When
pnpm installresolves a dependency again, it now reuses a version that the install already resolved for the same package, as a fresh install does. Before, it kept the version the lockfile pinned and added a second copy of the package. A locked version still stays when nothing else in the install prefers another version. To pin a transitive dependency on purpose, useoverrides#17084.When another workspace project adds a different version of a package, a project's auto-installed peer on that package now moves to the version a fresh install picks. It used to stay on its locked version while any other project still accepted that version #17058.
A package that lists the same dependency in
dependenciesand as an optional peer now gets the peer bound when a project adds a provider for it later. The lockfile now records every peer a package declares, including one its own dependency supplies #17056.pnpm install --prodandpnpm deploy --prodno longer drop a dependency that a package declares both as an optional peer and as its own dependency, when the package resolved it as its own dependency and a dev dependency provides the same package under another alias.pnpm installwith an existing lockfile and a secondpnpm dedupenow keep optional peer bindings that point into a dependency cycle or back into the dependent package. Before, the second run dropped the optional peer binding from the lockfile snapshot key.pnpm installandpnpm dedupenow preserve own-dependency and peer-dependency bindings when reusing a lockfile whose peer suffixes were hashed bypeersSuffixMaxLength.Upgrading a direct dependency in one workspace project now refreshes matching transitive pins in sibling projects during the same
pnpm installpass.With
resolvePeersFromWorkspaceRoot: false, a workspace project no longer binds a peer to a version that only another project's dependencies provide. pnpm now auto-installs a version that satisfies the peer range for that project. Before, the project got a version outside the range, with no peer warning.pnpm install,pnpm add, andpnpm updatenow reuse the lockfile's resolution for dependencies that take part in a dependency cycle, such asmllyandpkg-types. They re-resolved those packages and everything that depends on them from the registry before pnpm/tasks#130.pnpm now measures a
pnpm.overridesentry written as aworkspace:path, such asworkspace:./packages/foo, from the directory holdingpnpm-workspace.yaml. It used to be measured from each package the override rewrote. The install then linked a directory that does not exist, or failed if workspace packages were injected #17010.pnpm installnow removes config dependencies that are no longer declared, including when the entireconfigDependenciessetting is removed. Frozen installs reject a lockfile that still records removed config dependencies.pnpm install --update-checksumsnow re-resolves every locked package and records the integrity the registry reports now.pnpm addandpnpm installnow acceptgist:<id>dependencies and GitHub Gist URLs, and install them from the gist's archive.pnpm pkg fixnormalizes agist:repository the waynpm pkg fixdoes,pnpm licenseslinks a gist package to its gist page, andpnpm sbomreports the repository of a package whoserepositoryfield is agist:shorthand.pnpm addnow reads the package name correctly from a tarball URL under a registry URL that has a path, such ashttps://example.com/npm/, and installs a registry tarball URL with a malformed percent escape as a plain tarball URL. Before, the registry path became part of the name, so a scoped package failed withERR_PNPM_INVALID_PACKAGE_NAME.With
minimumReleaseAgeset, pnpm now revalidates a package's cached full metadata with a single ETag request so an unchanged registry answers with304, even when the registry does not list a publish time for every version. Previously, pnpm downloaded that metadata again whenever the cached copy was older thanminimumReleaseAge. WithresolutionModeset tolowest-directortime-based, pnpm also reuses that metadata across every workspace project that depends on the package.When pnpm revalidates cached registry metadata, it now sends
If-Modified-Sincewhen the registry's modification time is a date without a time, and no longer crashes when the modification time is before 1970.Added protocol versioning between the pnpm client and pnpr server, verified applied resolution policies in resolution responses, and preserved structured error codes across the wire.
Performance
Sped up
pnpm installon macOS. On a 12-core Mac, installing 1352 packages from a warm store took 1.3 seconds, down from 2.2. pnpm now writes package files intonode_moduleswith 4 threads on macOS, whatever the number of CPU cores. Set thePNPM_MACOS_LINK_THREADSenvironment variable to use a different number of threads, or to0to write files with the threads pnpm uses for the rest of the install.pnpm installis faster and uses less memory in large workspaces withsharedWorkspaceLockfile: false. Each project's install no longer reads the manifests of every other workspace project again. Installs that wait for their workspace dependencies now count towardworkspaceConcurrency#16966.Sped up workspace project discovery, dependency resolution, lockfile up-to-date checks, and peer dependency checks in large workspaces #16839 pnpm/tasks#9. On a workspace with 6,833 projects, the lockfile up-to-date check uses about 1 second less CPU time. The peer dependency check at the end of an install now checks linked workspace projects against the manifests already in memory, without reading each
package.jsonagain.Sped up bin linking and build planning during
pnpm install. Package binary targets and shebang runtimes are now precalculated during tarball extraction and served inpnprregistry metadata alongside verifiedrequiresBuild, tarball size, and file-count metadata.Lowered peak memory when pnpm downloads many packuments, such as during lockfile verification with
trustPolicyon Linux. In one 1,800-entry workspace, a lockfile update now peaks at 1.8 to 2.0 GB. It peaked at 2.6 to 3.7 GB before #17020.pnpm installin a Cargo workspace skips crates that an earlier install already unpacked into the store. Before, a repeat install processed every crate inCargo.lockagain.pnpm install --forceunpacks every crate again pnpm/tasks#69.Linking node_modules and workspaces
Concurrent installs that import the same package into one project now all complete. One of them used to fail with
ENOTEMPTYwhen its copy of the package collided with the copy another install had already placed pnpm/tasks#48.pnpm installnow succeeds whennode_modulesis a symlink to an existing directory. Dependency hoisting previously rejected a symlinkednode_modulesas an invalid destination #17157.A filtered first install under the isolated linker now links every workspace project by name into
node_modules/.pnpm/node_modules, not only the selected ones pnpm/tasks#155.With
nodeLinker: hoisted, a filtered install such aspnpm --filter app add <pkg>keeps the rootnode_moduleslinks and bins of the workspace projects it did not select. A project with no dependencies of its own lost them until the next full install.pnpm install --filterwithnodeLinker: hoistedand--prodor--devnow preserves previously installed dependency groups for unselected workspace projects pnpm/tasks#164. Repeat filtered installs also re-resolve when a transitive injected workspace dependency or a linked dependency's version changes.With
sharedWorkspaceLockfile: false,pnpm installnow runs the workspace root's pnpmfile for every project, after the project's own pnpmfile. Before, it ran only the pnpmfile in the project's directory.pnpm installandpnpm peers checknow detect peer dependency issues and report linked package versions in linked projects that usepackage.json5orpackage.yamlpnpm/tasks#172.pnpm installandpnpm peers checkno longer report an unmet peer when a workspace package's peer is provided by a remote tarball URL. pnpm now compares the peer range with the version in the tarball's manifest #17037.pnpm prunenow removes extraneous direct packages fromnode_moduleswhenpackage.jsonandpnpm-lock.yamlare already in sync.pnpm prunealso honors--filter,--recursive,sharedWorkspaceLockfile: false, and thetrustLockfilesetting and--trust-lockfileflag. With the lockfile trusted,pnpm prune --prodworks offline when every package is in the store #16999.Injected workspace packages
pnpm install --frozen-lockfilenow fails withERR_PNPM_OUTDATED_LOCKFILEwhen a local directory dependency or injected workspace package changes a dependency to a different tarball URL or git commit #17129. It also fails when an injected workspace package changes a dependency's named-registry range, such aswork:^2.0.0, to one the locked version no longer satisfies.pnpm install --frozen-lockfilenow accepts the lockfile it wrote for afile:dependency on a directory without apackage.json. It also accepts the lockfile for an injected workspace package that bundles a dependency inbundledDependencies, lists a dependency in bothdependenciesandoptionalDependencies, or publishes from apublishConfig.directorywhosepackage.jsonlists other dependencies than the project's own. Before, these failed withERR_PNPM_OUTDATED_LOCKFILE.The lockfile now records a
catalog:peer dependency of an injected workspace package as written in itspackage.json. It recorded the catalog's range before, so editing the catalog changed the consumer's lockfile entry pnpm/tasks#153.pnpm installnow resolves a git, tarball, or tag dependency of an injected workspace package again when its spec changes. Before, it kept the old version.Repeat installs and
verifyDepsBeforeRunnow re-check projects that inject a modified workspace package, including whensharedWorkspaceLockfileisfalse#17007, and accept aliasedworkspace:ranges on linked dependencies.An injected workspace package that was linked now becomes a copy when the project that depends on it starts providing one of its peers at a version the package's own workspace context lacks. The link used to stay until that dependency was updated, so the package could not find the peer the project provides #17057.
An injected workspace package now keeps only the files its manifest lists after a lifecycle script or a script named in
syncInjectedDepsAfterScriptsrebuilds it. Before, these refreshes copied every file of the package directory into the injected copy, including files thatfilesor.npmignoreleave out. WithdeployAllFiles: truethe copy still gets every file.A script listed in
syncInjectedDepsAfterScriptsnow keeps a package's links to its own files as links in the injected copies, the waypnpm installwrites them, and updates those copies whensharedWorkspaceLockfileisfalse. Before, a directory link the script added became a real directory or went missing withdeployAllFiles, and withsharedWorkspaceLockfile: falsethe copies kept the files from the last install.Running scripts and checking dependencies
Pressing Ctrl+C during
pnpm -r runorpnpm --filter <pkg> runno longer reportsERR_PNPM_RECURSIVE_RUN_FIRST_FAIL. pnpm now ends with the interrupted script's status, such as 130 for a script that SIGINT ended on Linux or macOS #16964.With
enableGlobalVirtualStore, a Node.js resolve hook that a script registers now sees the importer ascontext.parentURLafter pnpm'sNODE_PATHfallback fails to find a bare specifier. Hooks that resolve tsconfigpathsaliases from the importer failed withERR_MODULE_NOT_FOUND#16979.pnpm run,pnpm exec, andpnpm restartnow pass the install flags they were given, such as--lockfile-dir,--modules-dir,--store-dir,--offline, and--ignore-scripts, to thepnpm installthatverifyDepsBeforeRun: installstarts. When that install leaves the dependencies out of date, pnpm now prints a warning.A repeated
pnpm install --filternow finishes without reinstalling when the selected projects are up to date, and so doespnpm installonce filtered commands have installed every project. After a filtered install,pnpm runandpnpm execnow install a selected project whose dependencies changed in between #17011, require the workspace root when a filtered install withpruneDirectDependencies: trueskipped it pnpm/tasks#181, and preserve the recorded ignored build scripts of unselected projects.The check that runs before a script now holds the workspace projects that the selected project depends on, including with
sharedWorkspaceLockfile: falseand for workspace dependencies declared withlink:.--filter=<project>...now selectslink:dependencies as well. In a workspace that has nopackage.jsonat its root,pnpm runandpnpm execno longer reinstall before every command when the dependencies are up to date.verifyDepsBeforeRunand repeatpnpm installruns now applyoverridesbefore comparing a modifiedpackage.jsonwithpnpm-lock.yaml#17127.pnpm installwithoptimisticRepeatInstallnow re-runs whenconfigDependencieschanged,verifyDepsBeforeRunreportsnode_modulesout of date whenuseGitBranchLockfileis enabled and the branch lockfile is missing, and in a single-project repository both checks record a successful lockfile check so later runs skip it until the lockfile changes #16993.pnpm installandverifyDepsBeforeRunnow compare manifests, lockfiles, and patch files by content hash. They notice an edit that kept the file's modification time, ascp -p,rsync -a, or an archive extraction leave it, and a patch file that was copied or touched without changing its content no longer marks dependencies as outdated #16988.Deploying, packing, and other commands
pnpm deploynow deploysfile:dependencies that live outside the workspace directory. It failed with "Refusing to deploy unsafe lockfile path" #16983.pnpm deploynow records the peer dependencies of the workspace packages it copies into the deployed lockfile. Before, pnpm rejected that lockfile with--frozen-lockfilewhen a deployed workspace package declared a peer andinjectWorkspacePackageswas off #17093.pnpm install --frozen-lockfileandverifyDepsBeforeRunnow succeed inside a directory created bypnpm deploy.pnpm deploywrites self-contained workspace and lockfile settings, prunes unusedpatchedDependencies, and preserves workspace-level dependency resolutions on deployed directory dependencies.On macOS,
pnpm deployno longer writes a second, unused copy of every package tonode_modules/.pnpm/@in the deploy directory #17116.pnpm patch-commitandpnpm installnow apply a patch that renames or moves a file of the patched package. Such a patch failed with "rename/copy operations in patches are not yet supported".In workspaces with
sharedWorkspaceLockfile: false,pnpm patch,pnpm patch-commit, andpnpm patch-removenow resolve patch files andpatchedDependenciesentries at the workspace root.pnpm installchecks configured patches across all workspace projects before reporting unused patches.pnpm packandpnpm publishno longer include editor swap files such as.*.swp, macOS._*files,.lock-wscript,.wafpickle-*,build/config.gypi, orarchived-packages/in the tarball. Naming one of these files infilesstill includes it #16955.pnpm packandpnpm publishnow support extended glob patterns and brace ranges such aspart{1..3}.jsandpart{a..c}.js, including descending ranges, steps, and zero padding, infiles,.npmignore, and.gitignore. Explicitly listed internal directory symlinks are preserved below excluded directories, entry points honor nested ignore files, ignore negations can re-include default-excluded logs and backup files, and nested lockfiles follow the package's file selection rules.Trusted publishing with OIDC now works with registries whose URL has a path, such as
https://registry.example/npm/private/. pnpm previously sent the token exchange request to the root of the registry host.pnpm deprecateandpnpm unpublishnow work for packages whose registry metadata is larger than 10 MiB, such astypescript. They accept up to 50 MiB, the same limit aspnpm owner.pnpm owner lsnow lists the owners of a package on the npm registry. It reported every package as not found.pnpm licenses list --prodnow includes optional dependencies, including transitive ones. Pass--no-optionalto leave them out.pnpm licenses listalso reports no licenses for workspace projects not recorded in the lockfile, errors whenpnpm-lock.yamlis missing, and formats empty results as the requested text or JSON pnpm/tasks#174.pnpm whynow reads each selected workspace project's lockfile and modules directory whensharedWorkspaceLockfileisfalsepnpm/tasks#169.pnpm pkg fixnow converts arepositorystring such asgithub:pnpm/exampleto the object form, asnpm pkg fixdoes. It also normalizes a GitHub, GitLab, or Bitbucket repository URL the waynpm pkg fixdoes #16980.Configuration and setting up pnpm
Registry credentials and TLS settings passed with
--config, such as--config.//registry.example.com/:_authToken=<token>, are now applied. They take precedence over the same settings in.npmrcfiles.pnpm now reads only the settings it needs to decide whether to switch to the pnpm version a project pins. A setting outside them can no longer fail that decision or change its outcome. For example,
pnpm --versionno longer fails in a pinned project whosepnpm-workspace.yamlhas a setting this pnpm cannot read. Projects that pin neither pnpm nor a runtime skip this check without reading any settings.When pnpm switches to the version a project pins, an option only the pinned pnpm knows now reaches that pnpm when it comes immediately before the command name, as in
pnpm --new-flag install. When switching forpnpm --versionor an unrecognized command line, pnpm also honors--color,--no-color,--reporter, and--loglevelwherever they appear on the command line.pnpm self-updatenow updates the project's pnpm pin when Homebrew installed pnpm or Corepack runs it, leaving the global pnpm alone #17001. Run inside a workspace package,pnpm self-updateupdates the pin in the workspace root's manifest, including inpackage.yamlorpackage.json5.pnpm setupnow completes when Windows registry environment values cannot be read or written. It prints PowerShell commands to configurePNPM_HOMEandPATHwithout registry access #17167.pnpm setupnow succeeds when it cannot tell which shell configuration file to update, for example in a container whereSHELLis not set. It installs pnpm and prints thePNPM_HOMEandPATHlines to add yourself. Previously it failed withERR_PNPM_UNKNOWN_SHELL, and so did the installer script at get.pnpm.io #16973.In StackBlitz WebContainers,
pnpmno longer crashes intermittently withParking not supported on this platform, and running a command that does not exist now reports that the command was not found. Previously it sometimes failed with a generic error.Platinum Sponsors
Gold Sponsors
v12.14.0: pnpm 12.14.0Compare Source
This release adds the
sideEffectsCache.excludesetting, stopspnpm installfrom waiting on the daily update check, and keeps pnpm from aborting with a core dump when the reader of its output exits.Minor Changes
Added the
sideEffectsCache.excludesetting for packages whose build depends on something pnpm cannot include in the cache key, such as the system libraries a native addon links against. pnpm builds the listed packages in every project and never restores or saves their builds through the side-effects cache, locally or on aremoteCacheserver. Under the global virtual store, each project gets its own copy of these packages and of the packages that depend on them. Entries use the samename,@scope/*, andname@versionpatterns asminimumReleaseAgeExclude#5271.pnpm loginnow prints thenpm-noticeresponse header during web-based login. Registries use it to show the verification code that completes the sign-in in the browser.Patch Changes
Installing packages
pnpm installandpnpm addno longer wait for the daily update check. If the command finishes first, pnpm skips the update notice and checks again next time. On a registry that accepted the connection but never answered, an install that had nothing to do used to take minutes #16839.pnpm install,pnpm addandpnpm updatenow reusepnpm-lock.yamlwhen the workspace configures a catalog entry that no dependency references, such as an unused entry or one whose package anoverridesentry replaces. Before, every resolution in such a workspace resolved all dependencies again from the registry #16923.pnpm installnow looks up a git dependency's branch or tag once per install, even when many workspace projects depend on it. WithlinkWorkspacePackagesenabled, it used to rungit ls-remoteonce per project #16899.A filtered install, such as
pnpm install --filter <pkg>, now keeps thepnpm-lock.yamlentries of workspace projects that are missing from disk, as in a sparse checkout. Their importers, packages, and catalog entries stay even when the filter matches every project on disk #16931.pnpm now decides whether a dependency that a package also declares as an optional peer is linked as a dependency or as a peer from the shallowest path that reaches the package. When an existing lockfile records such a dependency as a regular dependency and a newly added dependency now provides the peer, pnpm records it as a peer, as a fresh install does. The lockfile entry of such a package can change on the next install #16901.
An install that adds nothing to the store no longer changes the modification time of the store directory. CI caches that check modification times, such as GitLab's, no longer re-upload an unchanged store #16929.
Running commands and scripts
pnpm no longer aborts with a core dump when the reader of its output has exited, as in
pnpm list | head -1orpnpm start 2>&1 | head -1. The command finishes with its usual exit code, and a failing script's exit code is kept. A write to stdout that fails for another reason, such as a full disk, ends the command with exit code 1 #16904 pnpm/tasks#132.On Windows,
pnpm exec,pnpm run, and commands such aspnpm nxnow return when the command they run exits, even if it left a detached process running and pnpm's output is redirected or piped. Previously a shell reading that output waited until the detached process, such as the Nx daemon, exited #16930.Commands that do not write the project manifest now leave a missing
package.jsonabsent. This covers queries such aspnpm whyandpnpm outdated,pnpm fetch,pnpm dedupe --check, and commands that exit with an error, such aspnpm rt ls. These commands used to create one from the initialization template.pnpm sbomrun from a lockfile alone now reports the root component asunknownwith version0.0.0#16907.pnpm runnow reports a failed script as a JSON record under--reporter=ndjson. It printed a plain[ELIFECYCLE]line to stderr.pnpm runno longer prints[ELIFECYCLE] Command failed with exit code N.to stderr when a script fails under--reporter=silent,--silent, or--loglevel=silent.pnpm pipeline --dry-runno longer writes a run report when no projects are selected. With--jsonit prints{"tasks": []}pnpm/tasks#126.Packing and publishing
pnpm packandpnpm publishnow ship the whole gitignored directory thatmain,browser, orbinpoints into, as npm does. Previously only themainandbinfiles themselves were packed, and a gitignoredbrowserfile was left out #16908.pnpm packandpnpm publishnow honor a.npmignoreor.gitignoreinside a subdirectory whenpackage.jsonhas afilesfield. The package root's ignore files and those inherited from the workspace are still skipped #16909.Setting up pnpm and toolchains
--registry,--https-proxy,--http-proxy, and--no-proxynow apply when pnpm resolves and downloads the pnpm version a project pins inpackageManager. Before, these lookups went tohttps://registry.npmjs.org/, which a firewall that only allows a private registry blocks #16911.On Windows,
pnpm installnow installs the Rust toolchain for rustup's default host, so a machine set up withrustup set default-host x86_64-pc-windows-gnugets the MinGW toolchain. Without a default host, pnpm installs the MSVC toolchain for the machine's architecture, as rustup does. This includes a pnpm built for MinGW, such as the MSYS2 package, which has installed the MinGW toolchain since 12.13.0. An x64 pnpm on ARM64 Windows now installs the ARM64 toolchain #16854.Platinum Sponsors
Gold Sponsors
v12.13.0: pnpm 12.13.0Compare Source
This release adds the
pnpm profileandpnpm tokencommands, thestoreIndexFormat: filessetting for stores shared over a network filesystem, and faster Python dependency resolution.Minor Changes
Added the
pnpm profilecommand to view and update registry user profile settings.Added
pnpm tokento list, create, and revoke authentication tokens on the registry.Added the
storeIndexFormatsetting. Set it tofilesto keep a store's package index as one file per package instead of the SQLiteindex.db, for a store on a network filesystem that several machines use at once. SQLite's locking does not work across machines, so concurrent installs on such a store could corruptindex.db.Added the
nodePackageMapsetting, which groups the package-map settings.nodePackageMap.mode: write-onlywritesnode_modules/.package-map.jsonfor other tools without making Node.js load it.mode: loadalso makes Node.js load the map, likenodeExperimentalPackageMap: true.nodePackageMap.typereplacesnodePackageMapType. The old settings still work #14937.Patch Changes
Setting up pnpm
pnpm setupnow works when pnpm was installed with npm on macOS. It installed pnpm from npm'sbindirectory and left a$PNPM_HOME/bin/pnpmthat could not run #16855.pnpm runs again after
pnpm setupwhenglobalShimsenables pnpm. Every command failed with "the global target of the pnpm shim points back at the shim" #16874.A pnpm built for the MinGW target on Windows, such as the MSYS2 package, now installs the MinGW Rust toolchain that
rust-toolchain.tomlnames. It used to install the MSVC toolchain.Installing packages
On macOS,
pnpm installno longer fails withERR_PNPM_LOCKFILE_WRITE_FILEwhen the project is on a virtiofs or SMB share. pnpm now falls back to a regularfsyncwhen the file system rejects a full sync #16846.On macOS,
pnpm install,pnpm patch-commit, and other commands that load a pnpmfile no longer hang at random.pnpm installnow puts the executables of a Python build backend's requirements on thePATHwhile the backend runs. Projects built withuv_buildnow install. Before, they failed with "uv-build was not properly installed".Removing a
link:dependency now also removes its symlink fromnode_moduleswhennodeLinkerishoisted#16884.pnpm-lock.yamlno longer records the tarball URL of a package installed from a scoped registry, such as one set by@types:registry=, when pnpm can rebuild the URL from that registry #16866.Packing, auditing, and pipelines
pnpm packandpnpm publishnow pack onlypackage.json, the README, the license, and the files named inmainandbinwhenfilesis an empty array. They used to pack every file in the package #16889.pnpm auditandpnpm audit signaturesno longer check runtimes installed throughdevEngines.runtime, such asnode@runtime:24.21.0, against the npm package of the same name.pnpm audit signaturesreported these runtimes as having an invalid registry signature #16869.pnpm pipelinenow runs the root's tasks whenpnpm-workspace.yamllists only the root inpackagesor omitspackages, aspnpm -r rundoes. A change to a root file in such a workspace no longer triggers a full-run warning. When a full run has no projects to run,pnpm pipelinenow reports that no projects are selected #16849.Performance
pnpm installresolves Python dependencies faster. With--lockfile-only, a project with 10 dependencies now resolves in about 4 seconds, down from about 40. When the index publishes a metadata file beside each wheel (PEP 658), as PyPI does, pnpm downloads only the wheels of the releases it selects.A repeat install against an existing lockfile no longer reads registry metadata for the dependencies it takes from that lockfile. On a warm store this removes thousands of metadata lookups from a repeat install of a large workspace.
pnpm installwithenableModulesDir: falsenow verifies the packages already in the store while the dependencies resolve, and checks a package's files in parallel. On a 5,100-package install with the store on a network filesystem, this removed a 19-second pause between resolution and fetching.Platinum Sponsors
Gold Sponsors
v12.12.1: pnpm 12.12.1Compare Source
This release adds OIDC authentication to
pnpm dist-tagand thetool:protocol.pnpm publishnow checks which registry anNPM_ID_TOKENwas issued for before using it.Patch Changes
pnpm publishnow uses anNPM_ID_TOKENonly if itsaudclaim matches the selected registry, such asnpm:registry.npmjs.org. A token for another registry is skipped with a warning, and pnpm falls back to the configured credentials.pnpm dist-tag add,rm, andlsnow support OIDC authentication in CI. Enable "Allow npm dist-tag" in the package's trusted publishing settings to manage tags without a stored npm token.Added the
tool:protocol for the tools pnpm downloads itself: Node.js, Bun, Deno, and Yarn.pnpm add bun@tool:1.3.0,pnx node@tool:22, andpnx yarn@tool:4work like theruntime:spelling, which stays supported as an alias. A lockfile written forruntime:stays up to date whenpackage.jsonswitches totool:, and the other way around.A named registry can no longer be called
tool.Platinum Sponsors
Gold Sponsors
v12.12.0: pnpm 12.12.0Compare Source
This release shares task results and dependency builds through a remote cache, adds the
addMissingPeerTypessetting, and letspnpm add --configandpnpm updatemanage configuration dependencies. It also fixesdangerouslyAllowAllBuildsrunning the build scripts of packages thatallowBuildsdenies.Minor Changes
pnpm pipelinecan share task results between machines. A result is a signed artifact stored on a pnpr server or on a server that speaks the Turborepo Remote Cache API, such as Vercel Remote Cache.The remote side-effects cache can also store dependency builds on a Turborepo Remote Cache server. Both caches read the new
remoteCachesetting, which names the server and holds the signing keys.pnpm pipeline --reportrecords the run under the organizationremoteCache.orgnames.Added the
addMissingPeerTypessetting, which links the@typespackage of a peer dependency next to every package that peer-depends on it. For example, a package that peer-depends onreactgets the project's@types/reactlinked next to it. This lets TypeScript find the types of a peer dependency when the global virtual store is on #15689.pnpm add --configandpnpm updatenow handle configuration dependencies the way they handle other dependencies #16814.pnpm add --configsaves a version range inpnpm-workspace.yamlby the same rules aspnpm add, sopnpm add --config my-config@latestsaves a range such as^1.2.0. It also resolves the package again whenpnpm-lock.yamlalready locks an older version.pnpm updateupdates configuration dependencies within their ranges, andpnpm update --latestmoves them to their latest version. A selector such aspnpm update my-configupdates only the configuration dependencies it names.Patch Changes
A package set to
falseinallowBuildsno longer runs its build scripts whendangerouslyAllowAllBuildsistrue. The two settings together now allow every build except the denied ones. Previously,dangerouslyAllowAllBuildsignored the denials.pnpm now switches to the pnpm version a project pins even when it cannot read its configuration. Previously, a setting it rejected in the global config file, an
.npmrcfile, or_auth, or apnpm-workspace.yamlit could not parse, stopped every command,pnpm --versionincluded.pnpm updateandpnpm whyaccept--depth Infinityagain. They failed withinvalid value 'Infinity' for '--depth <DEPTH>'#16817.pnpm deploywithoutinjectWorkspacePackagesnow binds a peer dependency of a linked workspace package to the version its parent provides, as an injected install does. Previously the deploy failed withERR_PNPM_DEPLOY_AMBIGUOUS_PEERwhenever other packages in the deployed graph depended on different versions of that peer #16807.pnpm deploy --legacyno longer fails withERR_PNPM_SPEC_NOT_SUPPORTED_BY_ANY_RESOLVERwhen a workspace dependency of the deployed project declares aworkspace:peer dependency that the project does not depend on itself. pnpm now copies that peer from the workspace into the deploy directory.An auto-installed peer declared with
workspace:now always resolves to the workspace project. Previously,workspace:*andworkspace:^1.0.0peers could be installed from the registry #16806.Repeat installs no longer resolve again when an injected workspace package lists a dependency also as a peer dependency.
Sped up frozen installs of unchanged injected workspace packages that use hardlinks.
Sped up workspace discovery with subtree exclusions such as
!generated/**.A key under a registry URL in the
_authsetting that does not start with@is now skipped with a warning, so a field a later pnpm version adds there no longer breaks this one. A key that holds anauthTokenobject but lacks its@, such asorgfor@org, is still an error.Platinum Sponsors
Gold Sponsors
v12.11.2: pnpm 12.11.2Compare Source
This release fixes
--workspace-concurrency=Infinity, filters set by anupdateConfighook, and store fetches withenable-modules-dir=false.Patch Changes
--workspace-concurrency=Infinitynow runs workspace projects with no concurrency limit. It used to fail withinvalid digit found in string#16793.pnpm installand other recursive commands now apply thefilterandfilterProdthat anupdateConfighook sets. They used to run on every workspace project #16792.enable-modules-dir=falsenow also fetches the packages an install reuses from an existing lockfile, so the store holds every package the lockfile lists.Platinum Sponsors
Gold Sponsors
v12.11.1: pnpm 12.11.1Compare Source
This release fixes two ways
pnpm installcould fail, runs tools of any Rust release throughpnx, and treatsregistry.npmjs.comas an alias of the npm registry.Patch Changes
pnpm installno longer fails whenpackageManagerpins the pnpm version that is already running and the registry does not publish that version. pnpm warns and continues. A registry mirror that has not synced a release no longer blocks the commands of a project pinned to it.pnpm installno longer fails withERR_PNPM_CMD_SHIM_CHMODwhennode_modules/.binholds a shim that another user created, if everyone can already execute it and it is not world-writable. This happens when several users share one checkout.enable-modules-dir=false(enableModulesDir: falsethrough the Node.js addon) fetches the registry packages the host can install into the store again, as pnpm v10 did, while still writing nothing undernode_modules. The setting exists for anode_modulesthat something else mounts from the store, such as a FUSE daemon, and that consumer no longer has to download each package on first access. A plain--lockfile-onlyrun still fetches nothing.pnpm packandpnpm publishno longer put.npmignoreand.gitignorefiles in the tarball. Afilesentry that names one still ships it.pnpm now treats
https://registry.npmjs.com/as an alias ofhttps://registry.npmjs.org/. Registry requests, credentials, and trusted publishing use the canonical hostname.pnx --package=rust@<channel> <tool>runs a tool of that Rust release, for examplepnx --package=rust@nightly-2026-01-01 cargo build. pnpm installs the release with the components and targets fromrust-toolchain.tomland the target of each--targetargument.pnpm installnow links agent skills for more coding agents. It detects the agent fromANTIGRAVITY_AGENT,COPILOT_AGENT,COPILOT_CLI,CODEX_THREAD_ID,CODEX_SANDBOX,AI_AGENT, andCLAUDE_CODEpnpm/tasks#116.When the registry rejects
pnpm stage publish, the error message now starts with "Failed to stage package".Platinum Sponsors
Gold Sponsors
v12.11.0: pnpm 12.11.0Compare Source
This release adds Rust toolchain management, links the agent skills that dependencies ship, adds the
permissionssetting, and keeps the colors of streamed script output.Minor Changes
pnpm installnow links the agent skills that direct dependencies ship underskills/<name>/SKILL.mdinto the project's agent skill directories, such as.claude/skills. A package's skills are linked only after you approve them withpnpm approve. Theskills.dirssetting chooses the directories pnpm/rfcs#35.Added the
permissionssetting, which records what each dependency may do. Itsbuildcapability works likeallowBuildsand takes precedence over it.pnpm approve-buildswrites topermissionswhenpnpm-workspace.yamlalready has it, and toallowBuildsotherwise.Added
pnpm permissions, which lists the granted and denied permissions and the packages awaiting approval.pnpm approvereviews build scripts and agent skills in one prompt pnpm/rfcs#36.pnpm now installs and runs Rust toolchains.
cargo.enabled,pnpm installinstalls the toolchain named inrust-toolchain.toml. pnpm verifies the release signature, stores the toolchain once per machine, and links it into.pnpm/rust.pnpm runandpnpm execput itscargoandrustcon thePATH.pnpm add -g rust@<channel>installs a toolchain globally. Thecargoandrustccommands run it outside projects that pin their own.pnpm update -g,pnpm ls -g, andpnpm remove -gmanage it like any global package.pnpm add rust@<channel>pins the toolchain inrust-toolchain.toml.pnpm shim add rustadds project-aware shims forcargo,rustc, and the other Rust tools. In a project with arust-toolchain.toml, they run the toolchain the file names and install it on first use. Elsewhere, the next command of the same name onPATHruns, such as rustup's.pnpm runandpnpm execnow keep the colors of script output that they print under the project's name, such as with--stream. pnpm setsFORCE_COLOR=1for these scripts when its own output is in color, unlessFORCE_COLORis already set.Script output is also rendered more cleanly:
\rshows only its last state.pnpm -r runno longer garbles its live output when a script fails while other scripts are still running.Patch Changes
Installing packages
pnpm no longer panics with "unexpected error when polling the I/O driver" when it runs under QEMU user-mode emulation, such as a
linux/amd64container on an Apple Silicon Mac #16696.pnpm view,pnpm update, and other commands that read registry metadata now work behind proxies that end a response by closing the connection without a TLSclose_notifyalert #16704.pnpm now switches to the version a project pins in
packageManagerordevEngines.packageManagereven whenpnpm-workspace.yamlhas a setting the running pnpm cannot read, such as alockfile.includeResolutionSettingssection. If pnpm does not switch, it still reports that setting #16675.When the
pnpmpackage has to download its native binary on first run, it now uses the registry and credentials from.npmrcand from thenpm_config_registryandpnpm_config_registryenvironment variables.COREPACK_NPM_REGISTRYstill takes precedence. A project.npmrcis not read whenCOREPACK_INTEGRITY_KEYSturns off the signature check #16655.pnpm installandpnpm add --confignow applyminimumReleaseAgewhen they resolve a config dependency. A config dependency range resolves to the newest version that is old enough, so a later cleanpnpm install --frozen-lockfileaccepts the lockfile #16660.pnpm removewithcatalogPruneno longer removes catalog entries thatpnpm-lock.yamlstill records for workspace projects missing from disk. Before, a following frozen install failed withERR_PNPM_LOCKFILE_CONFIG_MISMATCH#16679.With
cargo.enabled,pnpm installnow writes the source replacement for vendored crates into.pnpm/crates/config.tomland includes it as optional from.cargo/config.toml. A checkout without.pnpmbuilds with plain Cargo #16659.With
nodeLinker.typeset toloaded, Node.js now stops withERR_PNPM_LOADER_UNSUPPORTED_NODEwhen it preloads the store loader on a version the loader cannot serve. The supported versions are^24.18.0 || >=26.2.0. On other versions, CommonJS packages imported from ESM failed withCannot find moduleon their first relativerequire().On Windows,
pnpm installno longer fails with "The filename, directory name, or volume label syntax is incorrect" when a package contains a file whose name is invalid on Windows, such asicon.svg?as=metadata.d.ts. pnpm removes the invalid characters from the name and prints a warning that lists the renamed files.On Windows, hoisting no longer fails intermittently with link errors when a junction is created or replaced concurrently pnpm/tasks#53.
Resolving dependencies
pnpm install --no-optionalnow installs the peer dependencies a project declares whenautoInstallPeersis on. The lockfile marked such a peeroptional: truewhen another dependency had it as an optional peer.pnpm installandpnpm dedupenow link an optional peer to the workspace package that the workspace root depends on when the picked version matches it. They installed the registry package with the same name and version #16706.Removal overrides such as
"debug>supports-color": "-"now also apply to an optional peer that a package declares only inpeerDependenciesMeta#16681.pnpm addand other installs that re-resolve dependencies now keep the lockeddevEngines.runtimeversion while it still satisfies the declared range #16764.pnpm audit --fix updatenow updates only the dependencies whose locked version is vulnerable #14928.pnpm outdatedandpnpm update --interactivenow applyoverridesbefore they look up the latest version. Before, a dependency overridden to an npm alias was compared with the latest version of the package the override replaces #16719.Patched dependencies
Patches saved with CRLF line endings now apply, including a patch that creates or deletes a file. pnpm rejected the git headers of such a patch with
ERR_PNPM_INVALID_PATCHand the messageinvalid file mode: 100644#16641.A patch that changes a file's mode, such as adding or removing the executable bit, now applies the new mode on Unix pnpm/tasks#110.
Injected dependencies and deploy
With
sharedWorkspaceLockfile: false, an injected workspace package installed in the same run as its dependent now holds only the files itsfilesfield selects. The copy also held other files of the project, such astsconfig.json#16683.A script listed in
syncInjectedDepsAfterScriptsno longer fails when it rewritespackage.jsonwhile pnpm is copying its edits into the injected copies. The sync after the script now replaces a half-copied manifest.pnpm deploywith a shared lockfile no longer fails withERR_PNPM_LOCKFILE_CONFIG_MISMATCHforsettings.dedupeInjectedDepsorsettings.dedupePeerDependentswhenlockfile.includeResolutionSettingsis enabled. The deployed lockfile now records both settings asfalse, the values the deploy installs with.pnpm deploynow writes the dependencies in the deployedpackage.jsonsorted by name. It also sorts theallowBuildsentries in the deployedpnpm-workspace.yaml. Repeated deploys of the same lockfile now produce identical files #16687.Packing and publishing
pnpm packandpnpm publishnow match.npmignoreand.gitignorerules the way npm does. A negation such as!lib/**or!lib/**/!(*.map)re-includes files under a directory that an earlier*rule excluded #16743.pnpm packandpnpm publishno longer always include root files that merely start withREADME,LICENSE, orLICENCE, such asREADME_INTERNAL.md. OnlyREADME,LICENSE,LICENCE, andCOPYING, with or without an extension, ship regardless offilesand.npmignore, as in npm #16753.pnpm publish --provenance=falseand--no-provenancenow turn off provenance under trusted publishing, so a package can be published from a self-hosted runner. Settingprovenance: falseinpnpm-workspace.yamldoes the same #16721.Speed and resource use
pnpm installhardlinks files from a group-writable or world-writable store again. pnpm copied every file from such a store intonode_modules#16677.A repeat
pnpm installno longer imports patched packages and packages with build scripts again when nothing changed. Their builds no longer run again either. This happened whenrecursiveInstallwasfalseor the project had afile:dependency #16705.Verifying the lockfile against
trustPolicyandminimumReleaseAgeuses less memory. pnpm no longer keeps every published version's manifest of each checked package in memory until the install ends #16656.pnpm rebuild <pkg>andpnpm rebuild --pendingno longer read the manifest of every installed package to find build scripts. Only the selected packages are inspected and built. On a largenode_modulesserved lazily, such as over a network or FUSE mount, this turned a rebuild of a few packages into a fetch of every package.pnpm rebuildno longer removes and recreatesnode_moduleswhen the settings recorded innode_modules/.modules.yamldiffer from the current configuration. The rebuild runs the build scripts against the installed packages as they are.pnpm store prunenow compacts the store'sindex.dbafter removing package entries, so the file shrinks again #16717.Registry commands
pnpm whoami,pnpm bugs,pnpm docs,pnpm repo,pnpm star,pnpm unstar, andpnpm starsnow honor the--registryoption.--registrynow takes precedence over a scope's configured registry for scoped packages inpnpm access,pnpm view,pnpm repo,pnpm star,pnpm unstar,pnpm owner,pnpm deprecate,pnpm undeprecate,pnpm unpublish,pnpm dist-tag,pnpm team, andpnpm stage. Without--registry,pnpm accessnow sends a scoped package or scope to the registry configured for that scope.Registry commands now keep the path of a registry URL such as
https://example.com/npm/when they build request URLs. This applies topnpm access,pnpm owner,pnpm ping,pnpm search,pnpm star,pnpm stars,pnpm team,pnpm unstar, andpnpm whoami.pnpm viewnow honors the network retry settings.pnpm reponow fetches the repository URLs of several packages in parallel.Platinum Sponsors
Gold Sponsors
postcss/postcss (postcss)
v8.5.33Compare Source
url()with/*after a comma (by @MFA-G).url (…)with a space before the bracket being parsed as URL.URL()parsing (by @Don-Yin).CssSyntaxErroron long lines (by @simpleqt).Declaration#importanttypes (by @johnhldiver-beep).v8.5.32Compare Source
Input#origin()withoutopts.from(by @wleeaf).startinWarning#toString()(by @Don-Yin).Promisesemantics inLazyResult#finally()(by @Don-Yin).v8.5.31Compare Source
</style>escaping (by @firefoxic).v8.5.30Compare Source
</style>escaping (by @Rufflet).predis/predis (predis/predis)
v3.8.0Compare Source
Added
BITRANGEINTARRAYcommand (#1754)ZMOVE,BZMOVE,ZMOVEMEMBERcommands (#1762)Fixed
MULTIafter a queued command was rejected (#1755)TypeErroron protocol errors in transactions with replication or cluster (#1758)TypeErrorwhen retrying a transaction after a failed connect (#1758)exec()running commands outside ofMULTIand failing ondiscard()(#1758)MULTIwhen Redis before 6.0.6 rejectedEXEC(#1758)disconnect()or failing the next command (#1761)StreamInitException, which skipped retries (#1768)MULTIas an open transaction (#1766)WATCHas aServerExceptionand ignoringretry(#1765)WATCHafter a server error beforemulti()(#1764)WATCHafter anASKredirect (#1767)v3.7.1Compare Source
Added
Changed
SENTINEL REPLICASfor Sentinel replica discovery when available (#776)Fixed
INFOparsing warnings with Valkey 9 (#1748)prefixis set (#1292)TypeErrorwhen selecting a non-integer database (#1751)Security
MONITORevents (GHSA-8hxw-46gv-qcm9)v3.7.0Compare Source
Added
BLESS *command family (#1733)CELL_SIZEargument forCMS.INITBY(DIM|PROB)(#1729)Fixed
StreamInitException(#1717)*StreamConnectionlooping forever when closed in the middle of a bulk reply (#1731)MULTItwice (#1735)MultiExec::multi()being ignored as the first call of a CAS transaction (#1735)spl_object_hash()deprecation on PHP 8.6 inConnectionErrorProofpipeline (#1738)ConnectionErrorProofpipeline returning too few responses or throwingValueError(#1739)Security
MULTI(#1735)getsentry/sentry-laravel (sentry/sentry-laravel)
v4.31.0Compare Source
The Sentry SDK team is happy to announce the immediate availability of Sentry Laravel SDK v4.31.0.
Bug Fixes
SplObjectStorage::attach()andSplObjectStorage::contains()when monitoring scheduled tasks. (#1242)QueryExecutedevents whenbreadcrumbs.sql_queriesortracing.sql_queriesis disabled, so database drivers that only do extra work when the event has a listener, such asmongodb/laravel-mongodb, no longer pay for it. (#1240)view.renderspans only once per view factory, so composers no longer pile up and run on every render when view engines are resolved again, for example on Laravel Octane. (#1236)Misc
4.38.0v4.30.0Compare Source
The Sentry SDK team is happy to announce the immediate availability of Sentry Laravel SDK v4.30.0.
Features
Add the
crons.monitor_scheduled_tasksconfig option to monitor every scheduled task without adding->sentryMonitor()to each one. (#1202)The schedule of each task is sent along with its check-ins, so Sentry creates the monitors and keeps them in sync. Use
crons.exclude_scheduled_tasksto skip tasks by command, job class, task name or monitor slug, with*as a wildcard.Tasks with
->sentryMonitor()keep their own settings. Closures without aname(), sub-minute tasks, tasks that can skip runs (when,skip,between), tasks without a named timezone in a non-UTC app and tasks whose schedule Sentry would read differently are not monitored automatically.Ignore Laravel Horizon, Laravel Telescope and Laravel Debugbar transactions by default. (#1223)
This only applies if you have not published the config file. To ignore them with a published config, add the pattern to
ignore_transactions:Shorten the description of
view.renderspans for views rendered from a file, such as Laravel Folio pages, by removing the application base path. (#1228)Bug Fixes
app.bootstrapspan with a negative duration, which could happen on Laravel Octane or when a route usedArtisan::call. (#1221)cache.ttlandsession.ttlspan attributes when an entry never expires instead of sendingnull. (#1205)v4.29.0Compare Source
The Sentry SDK team is happy to announce the immediate availability of Sentry Laravel SDK v4.29.0.
Features
Add the
data_collectionconfig option to control which data is collected automatically. (#1179)When
data_collectionisnull(the default), data collection keeps followingsend_default_pii.When
data_collectionis set, thebreadcrumbs.sql_bindingsandtracing.sql_bindingsoptions are ignored.Show the data collection status in
php artisan about. (#1198)Add the origin of slow HTTP client requests to their spans. Configure this with the
tracing.http_client_requests_originandtracing.http_client_requests_origin_threshold_msoptions (default:250). (#1066)Add
gen_ai.evaluatespans forlaravel/ai1.0 classifications. Configure this with thetracing.gen_ai_evaluateoption. (#1181), (#1182), (#1199)Add
Integration::setConversationId()to set the gen AI conversation ID for integrations that do not provide it, such as classifications, or for AI calls proxied across multiple requests. (#1193)Bug Fixes
session.*spans and breadcrumbs instead ofcache.*. (#1129)laravel/aiagent invocations so later requests do not inherit them. (#1160)Misc
4.34.0smalot/pdfparser (smalot/pdfparser)
v2.13.1: - Security hardening and refinementsCompare Source
Mitigation of Denial-of-Service vulnerabilities
This release introduces safeguards against potential denial-of-service attacks caused by specially crafted PDF files.
LZWDecodeandRunLengthDecode).Limitations and backward compatibility
To preserve backward compatibility, the default decompression limit remains
0(unlimited). Applications processing untrusted PDFs should explicitly configureConfig::setDecodeMemoryLimit().The nesting depth limit defaults to 5,000 levels but does not currently cover recursion caused by consecutive PDF comments. These safeguards therefore mitigate, but do not completely eliminate, the reported risks.
Acknowledgments
Special thanks to Eduardo Santos de Abreu (@blackrose-0xday) for responsibly reporting both vulnerabilities and providing detailed proof-of-concept examples.
CVE identifiers will be added once available.
See #843 for further details.
v2.13.0: - Bugfixes and performance gainsCompare Source
Summary
@kernie, @bernemann, @splitbrain and @NiekNijland contributed bug fixes and performance optimizations for this release. Thank you. 🚀
What's Changed
New Contributors
Full Changelog: https://github.com/smalot/pdfparser/compare/v2.12.5...v2.13.0
sveltejs/svelte (svelte)
v5.59.1Compare Source
Patch Changes
hydrateandmounttype parameters in sync so a union of them is callable (#19357)v5.59.0Compare Source
Minor Changes
v5.58.1Compare Source
Patch Changes
fix: don't throw when committing a fork whose changes were all superseded by other updates (#19030)
fix: apply the branch changes of blocks that re-run while effects are flushed when the batch with the effects' writes commits (#19030)
fix: keep values computed in a batch's view of the world local to that batch, and don't needlessly re-run deriveds while several batches are pending (#19030)
fix: don't skip sibling listeners added with
on()when an earlier one callsstopPropagation()(#19317)fix: update
bind:fileswhen the form is reset (#19298)fix: restore teardown context when destroying effects after outros (#19030)
fix: print raw input text unchanged, respect whitespace rules (#19292)
breaking: in experimental async mode,
getAbortSignal()must be called before anawait(#19030)fix: remove related comments when effects are removed from server rune modules. (#19289)
fix: commit the state that hydration ran with, so that updates while hydration is pending don't undo it (#19347)
fix: don't run
$inspectand$state.eagerwith the values of a fork before it is committed (#19030)fix: read a never-reassigned
$state.rawdeclaration tag directly when it shadows reassigned state (#19294)fix: revert state changes in effect teardowns based on the currently committing batch (#19030)
v5.58.0Compare Source
Minor Changes
feat: include
snippetNameinrenderentries of the dev__svelte_metastack (#19283)feat: include the
componentinstance an element was rendered in for Svelte devtools to track (#19286)Patch Changes
perf: let the garbage collector free each component's AST after it is compiled (#19241)
fix: render the same
<title>on the server as on the client and ignore titles inside failed boundaries (#19176)fix: allow
autocorrecton all elements (#19105)fix: parse snippet type parameters containing arrow function types (#19141)
fix: keep directive values that match the directive name in
print(#19229)fix: correctly assign dev element locations after components during hydration (#19287)
perf: don't compare the whole template on every expression when a source is parsed again (#19215)
docs: avoid binding to read-only current values in Spring and Tween examples (#19226)
fix: keep positions right after optional properties in template type annotations (#19217)
perf: speed up server rendering of pages with many or deeply nested components (#19177)
fix: remove all of the server-rendered content when hydrating a different branch that contains a failed boundary (#19166)
fix: preserve effect tree order across batch traversal passes (#19132)
fix: reset dev update counters for sources written during batch traversal (#19092)
chore: bump esrap (#19290)
fix: don't leak reactive context past nested awaits in production (#19134)
v5.57.3Compare Source
Patch Changes
fix: use the first valid fallback role in
rolefor a11y checks (#19045)chore: remove obsolete code (#19051)
fix: keep creating state sources for property checks during component init (#18949)
fix: skip redundant attribute writes during hydration (#18869)
fix: track missing state property checks in unowned deriveds (#18944)
fix:
devaluelink inhydratable_serialization_failederror (#18999)vitejs/vite (vite)
v8.3.8Compare Source
Bug Fixes
magicStringandastin transform hook meta (#24012) (a3b28e8)build.cssCodeSplit: false(#23112) (e4ad62b)yarn config geton Windows (#24013) (3f6c4cd)Performance Improvements
net useuntil a UNC path is resolved on Windows (#24014) (b643046)Miscellaneous Chores
magicStringandastin transform hook meta (#24012)" (#24065) (afc44f0)Code Refactoring
Tests
v8.3.7Compare Source
Bug Fixes
Miscellaneous Chores
Tests
onTestFinishedfor tear downs (#24003) (a579e35)Build System
v8.3.6Compare Source
Bug Fixes
@rollup/plugin-aliasto v6.0.1 (#23862) (67c965b)server.forwardConsole(#23933) (4f340fd)build.sourcemapfrom environment (#23879) (82e7aa0)$patterns in static alias replacements (#23703) (1b6ed05)ssr.target=webworker(#23759) (a711f1c)inputfor SSR build whenbuild.ssr: true(#23898) (90bc034).wasmoutsideserver.fs(#23914) (64e2467)new URL(..., import.meta.url)(#23780) (e954a9c)Performance Improvements
cssScopeTo(#23889) (1b905e5)Miscellaneous Chores
Build System
v8.3.5Compare Source
Bug Fixes
server.originto asset URLs (#23683) (52ba877)import.meta.env.*defines in theimport.meta.envobject (#23713) (6019aa7)%inurl()(#23676) (50b382d)oxc.jsxInjectimports (#23758) (38f3cb4)#(#23631) (0d86b34)Performance Improvements
Miscellaneous Chores
Code Refactoring
@vercel/detect-agentwithstd-env(#23744) (ce4293f)v8.3.4Compare Source
Features
import.meta.hot.acceptExports(#23463) (bc0f21c)Bug Fixes
/@vite/clientand stub@vite/env(#23664) (5afc5a8)ensureWatchedFile(#23673) (12bb28c)Performance Improvements
Code Refactoring
/@vite/client(#23674) (182f5b2)katspaugh/wavesurfer.js (wavesurfer.js)
v8.1.1Compare Source
v8.1.0Compare Source
v8.0.5Compare Source
a2fd973ca6b174ac8c6fb174ac8c6f8690da34948690da34945ab71871ee5ab71871eea87c24b1aca87c24b1ac61d138f9b961d138f9b98274297a0c8274297a0c98f506fa4a98f506fa4aca4ec035c0ca4ec035c054747b80c354747b80c3704230206070423020606686af44516686af44512c3f4fb9452c3f4fb945d7b261176cd7b261176c135404f840135404f840f85671eaeff85671eaefb48bda1560b48bda156051ca20591051ca20591044248578894424857889b369d01662b369d0166223dfeda16923dfeda1697ebb6796c47ebb6796c49ab364acbf9ab364acbf96a521410396a5214103422e41677a422e41677a82c6b5658782c6b56587e18fb6d74fe18fb6d74f8b3508116a8b3508116aeb094c3ffceb094c3ffc07e813676d07e813676d07cc19894007cc1989408061842b828061842b82eb0915a9a6eb0915a9a6561f2c924e561f2c924e338fa227dd338fa227dd2fa4bcd8742fa4bcd874015447ec22015447ec2237f5e361f437f5e361f4fff966c266fff966c2660d3cc515ffView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.