chore(deps): update yarn to v4 #7
Loading…
Reference in a new issue
No description provided.
Delete branch "renovate/major-yarn-monorepo"
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:
3.8.6
->4.5.1
Release Notes
yarnpkg/berry (yarn)
v4.5.1
Compare Source
v4.5.0
Compare Source
v4.4.1
Compare Source
v4.4.0
Compare Source
v4.3.1
Compare Source
v4.3.0
Compare Source
v4.2.2
Compare Source
v4.2.1
Compare Source
v4.2.0
Compare Source
v4.1.1
Compare Source
v4.1.0
Compare Source
Tweaks
-,--verbose
inyarn workspaces foreach
;-v
will now only print the prefixes,-vv
will be necessary to also print the timings.Adds a new
--json
option toyarn run
when called without script nameFixes
node-modules
linkerlink:
dependencies mistreatment as inner workspaces, when they point to a parent folder of a workspaceFixes spurious "No candidates found" errors
Fixes missing executable permissions when using
nodeLinker: pnpm
Fixes packages being incorrectly flagged as optional
Fixes cache key corruptions due to uncontrolled git merges
Fixes
yarn version apply --all --dry-run
making unexpected changesFixes
yarn npm login
when the remote registry is Verdacciov4.0.2
Compare Source
v4.0.1
Compare Source
node-modules
linker when inner workspace depends on outer workspaceyarn npm audit --ignore NUM
which didn't apply to deprecationsyarn npm audit --json
which didn't print the right output format@yarnpkg/core
yarn explain peer-requirements
commandv4.0.0
Compare Source
Major Changes
With Node.js 16's now being End of Life'd, we dropped support for Node.js versions lower than 18.12.
Some important defaults have changed:
yarn init
andyarn set version
will prefer usingpackageManager
rather thanyarnPath
when possible (when they detectCOREPACK_ROOT
in your environment variables).yarn init
will no longer use zero-install by default. You still can enable it, but it should make it easier to start one-of projects without having to rewrite the configuration afterwards.enableGlobalCache
now defaults totrue
. If your project uses Zero-Installs, the firstyarn install
you run after migrating to 4.0 will automatically setenableGlobalCache: false
in your local.yarnrc.yml
.yarn workspaces foreach
now requires one of--all
,--recursive
,--since
, or--worktree
to be explicitly specified; the previous default was--worktree
, but it was rarely what users expected.compressionLevel
now defaults to0
rather thanmixed
. It's been proved significantly faster on installs, and the size impact was reasonable enough to change the default. Note that it benefits you even if you use Zero-Installs: as per our tests, a zero-compression is actually easier to handle for Git (you can see by yourself with those examples usingcompressionLevel: 0
vscompressionLevel: mixed
).yarn install
after migrating from 3.6 to 4.0. If you do, it will automatically set the old default (compressionLevel: mixed
) in your.yarnrc.yml
file. You can then remove it whenever you feel ready to actually change the compression settings.All official Yarn plugins are now included by default in the bundle we provide. You no longer need to run
yarn plugin import
for official plugins (you still need to do it for third-party plugins, of course).Yarn's UI during installs has been greatly improved:
node-gyp
and transitive peer dependency errors) have been removed.yarn rebuild
calls.yarn npm audit
.Some settings were renamed or removed:
caFilePath
is nowhttpsCaFilePath
preferAggregateCacheInfo
has been removed (it's now always on)pnpDataPath
has been removed to adhere to our new PnP specification. For consistency, all PnP files will now be hardcoded to a single value so that third-party tools can implement the PnP specification without relying on the Yarn configuration.The
yarn npm audit
command has been reimplemented:/-/npm/v1/security/advisories/bulk
endpoint.npmAuditRegistry
can be used to temporarily route audit queries to the npm registry.yarn npm audit ! --no-deprecations
.Some legacy layers have been sunset:
.pnp.js
file when migrating.--assume-fresh-project
flag ofyarn init
has been removed.API Changes
The following changes only affect people writing Yarn plugins:
The
ZipFS
andZipOpenFS
classes have been moved from@yarnpkg/fslib
to@yarnpkg/libzip
. They no longer need or accept thelibzip
parameter.open
,ZIP_CREATE
, andZIP_TRUNCATE
bindings are no longer needed forZipFS
and have also been removed.The
dependencies
field sent returned byResolver#resolve
must now be the result of aConfiguration#normalizeDependencyMap
call. This change is prompted by a refactoring of how default protocols (ienpm:
) are injected into descriptors. The previous implementation caused various descriptors to never be normalized, which made it difficult to know what were the descriptors each function should expect.Similarly, the descriptors returned by
Resolve#getResolutionDependencies
are now expected to be the result ofConfiguration#normalizeDependency
calls.Note that this only applies to the
dependencies
field; thepeerDependencies
field is unchanged, as it must only contains semver ranges without any protocol (with an exception forworkspace:
, but that's not relevant here).The
Resolve#getResolutionDependencies
function must now return an object of arbitrary string keys and descriptor values (instead of a map withDescriptorHash
keys). Those descriptors will be resolved and assigned to the same keys as the initial object. This change allows resolvers to wrap resolution dependencies from other resolvers, which wasn't possible before since it'd have caused the key to change.The
generateLoader
function in@yarnpkg/pnp
no longer generates the$$SETUP_STATE
function, it now needs to be present in theloader
passed to the function.The
getCustomDataKey
function inInstaller
from@yarnpkg/core
has been moved toLinker
.renderForm
'soptions
argument is now required to enforce that custom streams are always specified.npmConfigUtils.getAuditRegistry
no longer takes aManifest
as its first argument.The
FetchOptions.skipIntegrityCheck
option has been removed. UseFetchOptions.cacheOptions.skipIntegrityCheck
instead.MapConfigurationValue
has been removed. UsemiscUtils.ToMapValue
instead.Manifest.isManifestFieldCompatible
andManifest.prototype.isCompatibleWith{OS,CPU}
have been removed. UseManifest.prototype.getConditions
andstructUtils.isPackageCompatible
instead.versionUtils.{fetchBase,fetchRoot,fetchChangedFiles}
have been moved from@yarnpkg/plugin-version
to@yarnpkg/plugin-git
. UsegitUtils.{fetchBase,fetchRoot,fetchChangedFiles}
instead.For consistency reasons:
Link{Resolver,Fetcher}
have been renamed toPortal{Resolver,Fetcher}
RawLink{Resolver,Fetcher}
have been renamed toLink{Resolver,Fetcher}
FakeFS
classes are now required to implementlutimes{Sync,Promise}
.workspace.dependencies
has been removed. Useworkspace.anchoredPackage.dependencies
instead.The
Installer
class must now returnBuildRequest
structures instead ofBuildDirective[]
. This lets you mark that the build must be skipped, and the reason why.startCacheReport
has been removed, and is now part of the output generated byfetchEverything
.forgettableNames
&forgettableBufferSize
have been removed (the only messages using them have been removed, making the forgettable logs implementation obsolete).workspace.locator
has been removed. You can instead use:workspace.anchoredLocator
to get the locator that's used throughout the dependency tree.workspace.manifest.version
to get the workspace version.configuration.{packageExtensions,refreshPackageExtensions}
have been removed. Useconfiguration.getPackageExtensions
instead.configuration.normalizePackage
now requires apackageExtensions
option.ProjectLookup
has been removed. BothConfiguration.find
andConfiguration.findProjectCwd
now always do a lockfile lookup.Installs
pnpm
linker avoids creating symlinks that lead to loops on the file system, by moving them higher up in the directory structure.pnpm
linker no longer reports duplicate "incompatible virtual" warnings.Features
enableOfflineMode
is a new setting that, when set, will instruct Yarn to only use the metadata and archives already stored on the local machine rather than download them from the registry. This can be useful when performing local development under network-constrained environments (trains, planes, ...).yarn run bin
now injects the environment variables defined in.env.yarn
when spawning a process. This can be configured using theinjectEnvironmentFiles
variable.yarn workspaces foreach
now automatically enables theyarn workspaces foreach ! --verbose
flag in interactive terminals.Bugfixes
yarn dlx
will no longer report false-positiveUNUSED_PACKAGE_EXTENSION
warningsyarn workspace
will now set$INIT_CWD
to the CLI working directory rather than the workspace root.Shell
Compatibility
FileHandle.readLines
.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.
Branch automerge failure
This PR was configured for branch automerge. However, this is not possible, so it has been raised as a PR instead.
83d4a62947
to020b3b619d
020b3b619d
to523e211ba7
523e211ba7
tod3cf245167
d3cf245167
tod52a9fdecc
d52a9fdecc
tod0c61c4dcc
d0c61c4dcc
to9b76a6ef64
9b76a6ef64
to3dd5d5e8a6
3dd5d5e8a6
to1807c34cae
1807c34cae
tob51a9eb177
b51a9eb177
to7a8bb282c1
7a8bb282c1
toef840d0230
ef840d0230
to17af09a217
17af09a217
tobee02528d7
bee02528d7
to6daf70ce8f
6daf70ce8f
tob1b3854276
b1b3854276
tofe8775c55a
fe8775c55a
to6c41554f0a
6c41554f0a
toaa2b352c24
aa2b352c24
to4ea75a3d6f
4ea75a3d6f
to1b9e176f9a
1b9e176f9a
tob38a5ad2fb
b38a5ad2fb
tod7a3520787
d7a3520787
toc6b7a6c9d1
c6b7a6c9d1
tof2365fc650
f2365fc650
to19c614cf02
19c614cf02
toc26da2575a
c26da2575a
tofc670fd84f
fc670fd84f
to053211b220
053211b220
to84c17d594f
84c17d594f
to9be0a88a43
9be0a88a43
tof155437908
f155437908
to95bc797210
95bc797210
toc48d92e094
c48d92e094
toe4ebb4274f
e4ebb4274f
tob1a0528196
b1a0528196
to02ec110895
02ec110895
toa9648aaf61
a9648aaf61
to96fdf468a8
96fdf468a8
to418c0b907b
418c0b907b
to8346d7ed01
8346d7ed01
to2b50d552e7
2b50d552e7
to551ca7f55f
551ca7f55f
to3321c22bce
3321c22bce
tod939c37020
d939c37020
toe1b505bfcf
e1b505bfcf
to5004ec5a67
5004ec5a67
toe186207388
e186207388
toa921a9ac3e
a921a9ac3e
toe4d723e34a
e4d723e34a
toc0ae37744a
c0ae37744a
toea6e414045
ea6e414045
toadc8d2fc5b
adc8d2fc5b
to7fef15b871
7fef15b871
to97392963fd
97392963fd
toc0da3c7e22
c0da3c7e22
to7dcb455edf
7dcb455edf
to4cdf53e640
4cdf53e640
toc373f14ee6
c373f14ee6
to002c555463
002c555463
toae41d0cbe4
ae41d0cbe4
to18b00dab21
18b00dab21
toae3a0988a2
ae3a0988a2
to20f3325442
20f3325442
to0624e12729
0624e12729
to9055bf97cf
9055bf97cf
to751d440796
751d440796
to824424ad18
824424ad18
to70659d7fd1
70659d7fd1
to78e6b3d02b
78e6b3d02b
to187e8b28e3
187e8b28e3
tof84b9da2d6
f84b9da2d6
toa50a0b8901
a50a0b8901
tod29a2183c5
d29a2183c5
tob6c5c83afa
b6c5c83afa
to49aa7aaed7
49aa7aaed7
to26a00661d3
26a00661d3
to2fe53883f9
2fe53883f9
to7af206d9ca
7af206d9ca
tof81899f6a2
f81899f6a2
to3a3c257f2a
3a3c257f2a
to60dfe9da5f
60dfe9da5f
to9705f9c77a
9705f9c77a
to31c0c37dcf
31c0c37dcf
toa73b89b5c6
a73b89b5c6
to2ab9f25e20
2ab9f25e20
to9538697c17
9538697c17
toaa1ce5439b
aa1ce5439b
toe98eae3aec
e98eae3aec
tof25fd9a553
f25fd9a553
toac0bd24053
ac0bd24053
toe067b35241
e067b35241
toa612a1e785
a612a1e785
to56c56bc440
56c56bc440
to6a78f52858
6a78f52858
to280d67bdb7
280d67bdb7
to0095a7b4cc
0095a7b4cc
to6071223bd7
6071223bd7
tod0353f8c5d
d0353f8c5d
to689cf1ae6e
689cf1ae6e
to4211a44541
4211a44541
tob2e301f1c2
b2e301f1c2
to9c2816a2f5
9c2816a2f5
to359105d065
359105d065
to7d817639a1
7d817639a1
tobfafe60584
bfafe60584
to34e397d2f7
34e397d2f7
to4b36bcc636
4b36bcc636
tocad2de4c49
cad2de4c49
to5f3287a67c
5f3287a67c
to40d6520d85
40d6520d85
to7fe1d32d3c
7fe1d32d3c
to58e5b32fb4
58e5b32fb4
tocaddbbd3d1
caddbbd3d1
toc69c9b2da9
c69c9b2da9
to8fecdb88c7
8fecdb88c7
tod72992a613
d72992a613
to544d04d092
544d04d092
to019df0f963
019df0f963
to90a437a221
90a437a221
tof45e511081
f45e511081
tofd54b7cc1f
fd54b7cc1f
toe4d65d7352
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.