Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update yarn to v4.5.3 #468

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jun 29, 2023

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
yarn (source) 4.0.0-rc.46 -> 4.5.3 age adoption passing confidence

Release Notes

yarnpkg/berry (yarn)

v4.5.3

Compare Source

v4.5.2

Compare Source

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 in yarn workspaces foreach; -v will now only print the prefixes, -vv will be necessary to also print the timings.

  • Adds a new --json option to yarn run when called without script name

  • Fixes node-modules linker link: dependencies mistreatment as inner workspaces, when they point to a parent folder of a workspace

  • Fixes 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 changes

  • Fixes yarn npm login when the remote registry is Verdaccio

v4.0.2

Compare Source

v4.0.1

Compare Source

v4.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 set version will prefer using packageManager rather than yarnPath when possible.
    • 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.
    • 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.
  • 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).

    • This doesn't change anything to the plugin API we provide, which will keep being maintained.
    • Yarn still has a modular architecture and uses the exact same APIs as contrib plugins; all that changes is how we distribute our own features.
  • Yarn's UI during installs has been greatly improved:

    • Packages added and removed from the lockfile are now explicitly reported.
    • Fluctuations in the project cache size are now reported as a single line.
    • Unactionable warnings (node-gyp and transitive peer dependency errors) have been removed.
    • Skipped builds are now only reported during initial installs and manual yarn rebuild calls.
    • The Yarn version is now displayed on installs to help us investigate issues when reported as screenshots.
    • Deprecation checks have been moved to yarn npm audit.
  • Some settings were renamed or removed:

    • caFilePath is now httpsCaFilePath
    • 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:

    • The audit registry must now implement the /-/npm/v1/security/advisories/bulk endpoint.
    • The npmAuditRegistry can be used to temporarily route audit queries to the npm registry.
    • Deprecations are now returned by default. To silence them, use yarn npm audit ! --no-deprecations.
  • Some legacy layers have been sunset:

    • Plugins cannot access the Clipanion 2 APIs anymore (upgrade to Clipanion 3)
    • Plugins cannot access the internal copy of Yup anymore (use Typanion instead)
    • Yarn will no longer remove the old Yarn 2.x .pnp.js file when migrating.
    • The --assume-fresh-project flag of yarn init has been removed.
API Changes

The following changes only affect people writing Yarn plugins:

  • The ZipFS and ZipOpenFS classes have been moved from @yarnpkg/fslib to @yarnpkg/libzip. They no longer need or accept the libzip parameter.

    • Reading the zip archives is now done on the Node.js side for performance; as a result, the open, ZIP_CREATE, and ZIP_TRUNCATE bindings are no longer needed for ZipFS and have also been removed.
  • The dependencies field sent returned by Resolver#resolve must now be the result of a Configuration#normalizeDependencyMap call. This change is prompted by a refactoring of how default protocols (ie npm:) 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 of Configuration#normalizeDependency calls.

    • Note that this only applies to the dependencies field; the peerDependencies field is unchanged, as it must only contains semver ranges without any protocol (with an exception for workspace:, 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 with DescriptorHash 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 the loader passed to the function.

  • The getCustomDataKey function in Installer from @yarnpkg/core has been moved to Linker.

  • renderForm's options argument is now required to enforce that custom streams are always specified.

  • npmConfigUtils.getAuditRegistry no longer takes a Manifest as its first argument.

  • The FetchOptions.skipIntegrityCheck option has been removed. Use FetchOptions.cacheOptions.skipIntegrityCheck instead.

  • MapConfigurationValue has been removed. Use miscUtils.ToMapValue instead.

  • Manifest.isManifestFieldCompatible and Manifest.prototype.isCompatibleWith{OS,CPU} have been removed. Use Manifest.prototype.getConditions and structUtils.isPackageCompatible instead.

  • versionUtils.{fetchBase,fetchRoot,fetchChangedFiles} have been moved from @yarnpkg/plugin-version to @yarnpkg/plugin-git. Use gitUtils.{fetchBase,fetchRoot,fetchChangedFiles} instead.

  • For consistency reasons:

    • Link{Resolver,Fetcher} have been renamed to Portal{Resolver,Fetcher}
    • RawLink{Resolver,Fetcher} have been renamed to Link{Resolver,Fetcher}
  • FakeFS classes are now required to implement lutimes{Sync,Promise}.

  • workspace.dependencies has been removed. Use workspace.anchoredPackage.dependencies instead.

  • The Installer class must now return BuildRequest structures instead of BuildDirective[]. 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 by fetchEverything.

  • 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. Use configuration.getPackageExtensions instead.

  • configuration.normalizePackage now requires a packageExtensions option.

  • ProjectLookup has been removed. Both Configuration.find and Configuration.findProjectCwd now always do a lockfile lookup.

Installs
  • Yarn now caches npm version metadata, leading to faster resolution steps and decreased network data usage.
  • The pnpm linker avoids creating symlinks that lead to loops on the file system, by moving them higher up in the directory structure.
  • The 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 the injectEnvironmentFiles variable.
  • yarn workspaces foreach now automatically enables the yarn workspaces foreach ! --verbose flag in interactive terminals.
  • Constraints can now be written in JavaScript. See the revamped documentation for more information.
Bugfixes
  • yarn dlx will no longer report false-positive UNUSED_PACKAGE_EXTENSION warnings
  • yarn workspace will now set $INIT_CWD to the CLI working directory rather than the workspace root.
Shell
  • The builtin shell now supports whitespace-only commands.
Compatibility
  • The patched filesystem now supports FileHandle.readLines.
  • PnP now reports missing files when in watch mode.

v4.0.0-rc.53

Compare Source

v4.0.0-rc.52

Compare Source

v4.0.0-rc.51

Compare Source

v4.0.0-rc.50

Compare Source

v4.0.0-rc.49

Compare Source

v4.0.0-rc.48

Compare Source

v4.0.0-rc.47

Compare Source


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot changed the title chore(deps): update yarn to v4.0.0-rc.47 chore(deps): update yarn to v4.0.0-rc.48 Jul 2, 2023
@renovate renovate bot force-pushed the renovate/yarn-monorepo branch 2 times, most recently from 1813272 to 91d39f1 Compare July 6, 2023 11:45
@renovate renovate bot force-pushed the renovate/yarn-monorepo branch 2 times, most recently from 32a8213 to 803faea Compare July 27, 2023 10:32
@renovate renovate bot force-pushed the renovate/yarn-monorepo branch from 803faea to 776ad48 Compare August 9, 2023 17:52
@renovate renovate bot changed the title chore(deps): update yarn to v4.0.0-rc.48 chore(deps): update yarn to v4.0.0-rc.49 Aug 17, 2023
@renovate renovate bot force-pushed the renovate/yarn-monorepo branch from 776ad48 to ffa4eef Compare August 17, 2023 10:22
@renovate renovate bot changed the title chore(deps): update yarn to v4.0.0-rc.49 chore(deps): update yarn to v4.0.0-rc.50 Aug 23, 2023
@renovate renovate bot force-pushed the renovate/yarn-monorepo branch from ffa4eef to 97fc7cc Compare August 23, 2023 23:18
@renovate renovate bot force-pushed the renovate/yarn-monorepo branch from 97fc7cc to 80240f2 Compare September 4, 2023 16:06
@renovate renovate bot force-pushed the renovate/yarn-monorepo branch 4 times, most recently from cdf909d to 9fe9604 Compare September 16, 2023 10:57
@renovate renovate bot changed the title chore(deps): update yarn to v4.0.0-rc.50 chore(deps): update yarn to v4.0.0-rc.51 Sep 17, 2023
@renovate renovate bot force-pushed the renovate/yarn-monorepo branch 5 times, most recently from 35a8cd4 to f6598be Compare September 24, 2023 00:41
@renovate renovate bot force-pushed the renovate/yarn-monorepo branch 2 times, most recently from 563f475 to 659f159 Compare September 29, 2023 19:16
@renovate renovate bot changed the title chore(deps): update yarn to v4.0.0-rc.51 chore(deps): update yarn to v4.0.0-rc.52 Sep 30, 2023
@renovate renovate bot force-pushed the renovate/yarn-monorepo branch 2 times, most recently from 2fd8c8b to c56bb8a Compare October 3, 2023 01:40
@renovate renovate bot changed the title chore(deps): update yarn to v4.0.0-rc.52 chore(deps): update yarn to v4.0.0-rc.53 Oct 4, 2023
@renovate renovate bot force-pushed the renovate/yarn-monorepo branch 3 times, most recently from 12b82d9 to 894a2d2 Compare October 9, 2023 17:37
@renovate renovate bot force-pushed the renovate/yarn-monorepo branch 2 times, most recently from 8c7662e to 6d45435 Compare August 3, 2024 00:17
@renovate renovate bot changed the title chore(deps): update yarn to v4.3.1 chore(deps): update yarn to v4.4.0 Aug 3, 2024
@renovate renovate bot force-pushed the renovate/yarn-monorepo branch from 6d45435 to 1cc7c93 Compare August 9, 2024 21:09
@renovate renovate bot force-pushed the renovate/yarn-monorepo branch 4 times, most recently from 1bfc6e9 to 3119031 Compare August 21, 2024 20:20
@renovate renovate bot force-pushed the renovate/yarn-monorepo branch from 3119031 to 5a79b2b Compare August 24, 2024 16:23
@renovate renovate bot changed the title chore(deps): update yarn to v4.4.0 chore(deps): update yarn to v4.4.1 Aug 24, 2024
@renovate renovate bot force-pushed the renovate/yarn-monorepo branch from 5a79b2b to a488943 Compare September 14, 2024 12:58
@renovate renovate bot changed the title chore(deps): update yarn to v4.4.1 chore(deps): update yarn to v4.5.0 Sep 14, 2024
@renovate renovate bot force-pushed the renovate/yarn-monorepo branch 2 times, most recently from 4cb335a to e561f94 Compare October 2, 2024 05:47
@renovate renovate bot force-pushed the renovate/yarn-monorepo branch from e561f94 to 229b1b0 Compare October 7, 2024 21:22
@renovate renovate bot force-pushed the renovate/yarn-monorepo branch from 229b1b0 to 0dbc97d Compare October 18, 2024 22:40
@renovate renovate bot changed the title chore(deps): update yarn to v4.5.0 chore(deps): update yarn to v4.5.1 Oct 18, 2024
@renovate renovate bot force-pushed the renovate/yarn-monorepo branch 3 times, most recently from 00eb79b to d779377 Compare October 23, 2024 21:24
@renovate renovate bot force-pushed the renovate/yarn-monorepo branch from d779377 to 728ab07 Compare November 22, 2024 00:53
@renovate renovate bot changed the title chore(deps): update yarn to v4.5.1 chore(deps): update yarn to v4.5.2 Nov 22, 2024
@renovate renovate bot force-pushed the renovate/yarn-monorepo branch from 728ab07 to c77862f Compare November 25, 2024 16:44
@renovate renovate bot changed the title chore(deps): update yarn to v4.5.2 chore(deps): update yarn to v4.5.3 Nov 25, 2024
@renovate renovate bot changed the title chore(deps): update yarn to v4.5.3 chore(deps): update yarn to v4.5.3 - autoclosed Dec 8, 2024
@renovate renovate bot closed this Dec 8, 2024
@renovate renovate bot deleted the renovate/yarn-monorepo branch December 8, 2024 18:30
@renovate renovate bot changed the title chore(deps): update yarn to v4.5.3 - autoclosed chore(deps): update yarn to v4.5.3 Dec 8, 2024
@renovate renovate bot reopened this Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant