@yarnpkg/cli
4.18.1 · 24 Sep 2026BSD-2-Clause121.1k / weekRepositorynpmAtom feed
Upgrading @yarnpkg/cli From 2.4.3 to 3.0.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 14
- changes to make
- 0
- advisories fixed
- 3
- new
- 12
- fixes
Before you upgrade
Tick each one off as you go- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
Release by release
- Breaking
Node 10 isn't supported anymore.
- Breaking
Plugins can't access
yupanymore (we migrated to Typanion as part of Clipanion v3). - Breaking
The
enableImmutableInstallswill now default totrueon CI (we still recommend to explicitly use--immutableon the CLI). - Breaking
The
initVersionandinitLicenseconfiguration options have been removed.initFieldsshould be used instead.
- Breaking
40 other lines we could not sort, mostly version bumps
- 3.0.0
@yarnpkg/sdksnow contains the Editor SDKs - 3.0.0
- 3.0.0
@yarnpkg/nmnow contains thenode_modulestree builder and hoister - 3.0.0
structUtils.requirableIdentgot removed; usestructUtils.stringifyIdentinstead, which is strictly the same. - 3.0.0
configuration.formatgot removed; useformatUtils.prettyinstead, which is strictly the same, but type-safe. - 3.0.0
httpUtils.Options['json']got removed; usehttpUtils.Options['jsonResponse']instead, which is strictly the same. - 3.0.0
PackageExtension['description']got removed, useformatUtils.json(packageExtension, formatUtils.Type.PACKAGE_EXTENSION)instead, which is strictly the same. - 3.0.0
Project.tryWorkspaceByDescriptorandProject.getWorkspaceByDescriptornow match on virtual descriptors. - 3.0.0
Workspaces now get self-references even when under the
node-moduleslinker (just like how it already worked with thepnplinker). This means that a workspace calledfoocan now safely assume that calls torequire('foo/package.json')will always work, removing the need for absolute aliases in the majority of cases. - 3.0.0
Projects that make use of such dependencies will have to be run with the
--preserve-symlinksNode option if they wish to access their dependencies.
1 internal line (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.