Update Yarn to v4 #4064
Open
teckids_renovate_bot
wants to merge 1 commit from
renovate/yarn-4.x into master
pull from: renovate/yarn-4.x
merge into: aleksis:master
aleksis:master
aleksis:renovate/playwright-test-1.x-lockfile
aleksis:renovate/node-25.x-lockfile
aleksis:renovate/sentry-sdk-3.x
aleksis:4034-maintenance-mode-banner
aleksis:4044-rule-based-group-provisioning
aleksis:4049-fix-availability-calendar-own-events-always-shown
aleksis:fix/ci-config
aleksis:release/6.3.1
aleksis:fix/celery-realtime-processor
aleksis:fix/scim
aleksis:renovate/scim2-client-0.x
aleksis:4040-session-not-remembered
aleksis:renovate/django-phonenumber-field-9.x
aleksis:improve/global-search
aleksis:release/6.2.0
aleksis:4000-adapt-calendarfeedfield
aleksis:3981-get-i18n-namespace-across-apps
aleksis:weblate-frontend
aleksis:bug/3973
aleksis:release/5.4.0
aleksis:fix/vite-build-2
aleksis:aleksolotl-checks
aleksis:remove-vite-legacy-plugin
aleksis:renovate/selenium-4.x
aleksis:renovate/node-26.x
aleksis:renovate/django-health-check-4.x
aleksis:1643-calendar-dashboardwidgets-throw-500er-error
aleksis:renovate/django-dbbackup-5.x
aleksis:1064-backchannel-logout
aleksis:sis2-with-sl
aleksis:fix/adapt-some-urls
aleksis:1533-notifications-reminders-for-events-todos
aleksis:1294-expose-free-busy-state-in-ui-for-personal-events
aleksis:1303-correctly-implement-recurring-todos-with-amends-recurrence-id
aleksis:1345-introduce-annotate-methods-for-more-person-related-rules
aleksis:1603-search-index-is-deleted-on-cache-flush
aleksis:1068-oidc-rp-initiated-registration
aleksis:1065-oidc-device-code-grant-flow
aleksis:1599-vite-build-fails-with-too-many-apps
aleksis:fix/sort-models
aleksis:1066-oidc-dynamic-client-registration
aleksis:tmp-ticdesk-dev
aleksis:ticdesk-search-map
aleksis:cherry-pick-2b8d2e01
aleksis:643-one-time-login-links
aleksis:1461-birthday-calendar-oom
aleksis:tmp-ticdesk-related-names-for-paweljong
aleksis:1459-manifest-json-not-found
aleksis:integrate-disable-into-usecrud
aleksis:update-container-image-base-to-trixie
aleksis:check/update-pyproject-toml
aleksis:check/update-builddeps-package-json
aleksis:check/update-prettier-ignore
aleksis:1445-todo-list-broken
aleksis:1364-track-date-of-beginning-and-end-of-group-membership
aleksis:1259-generalise-places
aleksis:use-object-form-reactivity
aleksis:1435-cruddaylist-does-not-detect-changes-in-existing-intervals
aleksis:tmp-ticdesk
aleksis:stable/4.0.0
aleksis:1366-frontend-for-creating-and-modifying-generic-personrelationships
aleksis:master-without-vue-3
aleksis:1376-expand-row-feature-of-v-data-table-doesn-t-work-when-items-include-date-time-objects
aleksis:release/4.1.0.dev2
aleksis:1372-fix-import-of-crudlist
aleksis:1353-adapt-chipselectfield
aleksis:check/update-eslint-rc-js
aleksis:check/update-tox-ini
aleksis:improve-selenium-startup
aleksis:1268-add-specific-availability-planning-frontend
aleksis:1343-fix-person-related-permissions
aleksis:newer-and-rebased-migrate-crud-to-vue-3-and-generalize
aleksis:1314-fix-handling-of-end-datetime-in-calendar-events-query
aleksis:migrate-to-uv
aleksis:tmp-ticdesk-4-0
aleksis:fix-inline-crud-list-is-create
aleksis:tmp-split-calendar-event-dialog
aleksis:release/4.1.0
aleksis:1260-refactor-account-registration-form-and-generalize-parts-of-it
aleksis:add-datacheck-fix-in-changelog
aleksis:1232-group-calendars
aleksis:1251-registryobjects-are-their-own-parent-registries
aleksis:1209-introduce-django-rest-framework-serializers
aleksis:1162-strange-behaviour-with-personal-events
aleksis:revert-7fe8b8b1
aleksis:check/delete-eslint-rc-js
aleksis:check/update-gitignore
aleksis:stable-3.2
aleksis:stable-3.1
aleksis:update/eslint
aleksis:1158-add-sorting-functionality-to-get_single_events
aleksis:1055-introduce-sub-school-terms
aleksis:1082-colorfield-sometimes-returns-8-digit-alpha-color-hex-code
aleksis:test-build
aleksis:emit-extracted-items-from-save-event
aleksis:886-prevent-graphql-query-mutation-name-collisions
aleksis:release/3.2.1
aleksis:1038-make-dialogobjectform-send-a-diff-on-edit-instead-of-the-whole-object
aleksis:release/3.1.6
aleksis:fix/counter-chip
aleksis:1021-allow-matching-of-social-accounts-to-local-accounts-by-email
aleksis:991-set-title-attribute-for-all-unclear-frontend-spots
aleksis:update-docs-without-release-distribution
aleksis:850-do-not-restart-vite-serve-on-every-uwsgi-reload
aleksis:991-use-tooltips-for-all-unclear-frontend-spots
aleksis:983-add-groups-by-person-query
aleksis:826-otp-token-emails-don-t-contain-anything-besides-the-token
aleksis:781-error-if-creating-a-new-school-term-without-a-start-and-end-date
aleksis:966-allow-setting-of-custom-queryset-when-creating-calendar-feeds
aleksis:tmp-for-add-simple-course-book-list
aleksis:release/3.2.0
aleksis:868-introduce-uuid-field-for-extensiblemodel
aleksis:958-introduce-parent-model-resource
aleksis:954-evaluate-strawberry-and-strawberry-django
aleksis:948-error-handling-with-personal-event-creation-is-not-usable
aleksis:fix-custom-events-fss
aleksis:923-introduce-vue-styleguidist
aleksis:899-move-person-type-fields-into-constant
aleksis:892-remove-model-extension-api
aleksis:manage-holidays
aleksis:831-data-management-for-the-model-room
aleksis:fix/oauth-toolkit-migration
aleksis:release-3.0
aleksis:stable-2.12
aleksis:819-fix-some-minor-issues-in-graphql-queries
aleksis:fix-container-image
aleksis:stable-2.11
aleksis:stable-2.10
aleksis:stable-2.13
aleksis:806-expose-string-representation-of-models-via-graphql-api
aleksis:800-move-generic-components-from-aleksis-app-plank-to-core
aleksis:debug-foo
aleksis:oidc-docs
aleksis:migrate-to-vue3
aleksis:789-remove-syncable-fields
aleksis:remove/ical-feed
aleksis:194-enable-async-framework-channels
aleksis:726-dynamically-build-vue-forms
aleksis:766-selfclosing-components-in-vue_base-html-break-the-page
aleksis:492-follow-up-view_persons_rule-not-usable-due-to-use-of-queryset_rules_filter
aleksis:751-include-fields-of-non-extensible-model-in-syncable-fields
aleksis:kort-core
aleksis:feature/vuejs
aleksis:717-docker-improve-image-size-by-fixing-cleanup-layer
aleksis:build-improvements
aleksis:697-3-0-meta-issue-for-graphql-back-end-and-vue-js-frontend
aleksis:185-create-notifications-for-announcement
aleksis:stable-2.7
aleksis:update/translation-files-13
aleksis:update/translation-files-12
aleksis:599-add-oauth-oidc-tests
aleksis:i10n-ru-ua
aleksis:tmp/cbes
aleksis:do-release-2.9
aleksis:docs/notifications
aleksis:180-add-template-management
aleksis:fix-import
aleksis:653-remove-cachalot
aleksis:635-test-e-mail-button
aleksis:397-dedicated-public-dashboard
aleksis:396-external-link-widet-auto-discovery
aleksis:511-allow-custom-redirect-uri-schemes
aleksis:update/translation-files-8
aleksis:585-barcode-widget-for-person-fields
aleksis:dot-1.6.2
aleksis:281-corporate-design-for-html-mails
aleksis:592-oauth2-broken-in-2-4
aleksis:574-rewrite-password-change-templates
aleksis:reduce-docker-steps
aleksis:571-age-calculation-broken
aleksis:559-oauth-add-feature-to-limit-apps-to-groups
aleksis:feature/push-notifications
aleksis:feature/i18n-maintenance
aleksis:fix/oauth-skip-auth-detail
aleksis:523-integrate-sentry-for-performance-and-error-tracing
aleksis:prepare-release-2.1.dev0
aleksis:release/2.0
aleksis:387-jwt-provider-consumer-support
aleksis:update/translation-files
aleksis:496-service-worker-safari-does-not-support-broadcastchannel-api
aleksis:group-members-permissions
aleksis:prepare-release-2.0b2
aleksis:fix/trans-conflicts
aleksis:bp-2.0-use-importlib-instead-of-pkg-resources
aleksis:update/translation-files-2.0b0-1
aleksis:test-migration-test
aleksis:376-prevent-deep-linking-to-media-files
aleksis:feature/build-icons-automatically
aleksis:421-update-to-django-3-2
aleksis:set-sast-config-1
aleksis:feature/test-selenium-capabilities
aleksis:arg-apps
aleksis:feature/review-app
aleksis:test-docker-app-version
aleksis:feature/allow-app-source
aleksis:fix-ci-config
aleksis:feature/curlylint
aleksis:feature/gin-index-on-ext-data
aleksis:backup-over-ssh
aleksis:feature/keep_local_password_ldap
aleksis:340-correctly-implement-the-ckeditor
aleksis:143-mark-menu-entries-as-active-with-sub-sub-menu-entries
aleksis:feature/django-notifs
aleksis:2021-update-copyright
aleksis:catch-error
aleksis:update/poetry
aleksis:selenium
aleksis:269-photo-cropping-broken-2
aleksis:269-photo-cropping-broken
aleksis:fix-docker-build
aleksis:has-person
aleksis:update-poetry-lockfile
aleksis:pages-staging
aleksis:mix/conn-dne
aleksis:236-support-saml-and-oauth2-logins-as-consumer
aleksis:feature/custom-auth-backends-dev
aleksis:dev
aleksis:fix-isort
aleksis:214-add-notification-dashboard-widget-anything-to-notify-of-upcoming-birthdays
aleksis:157-include-django-letsagree
aleksis:215-add-geolocation-of-persons
aleksis:267-lint-add-spell-check
aleksis:291-rename-template-references
aleksis:270-ci-replace-kaniko-with-buildah
aleksis:217-add-support-for-defining-group-types
aleksis:feature/docker-extras
aleksis:153-use-complex-name-field-with-i18n-support
aleksis:debug-docker-build
aleksis:feature/material-admin
aleksis:pages-jonglieren
aleksis:179-group-contact
aleksis:169-support-nextcloud-talk-for-notifications
aleksis:develop-dashboard-feeds
aleksis:134-merge-dashboard-ajax
No reviewers
Labels
Clear labels
Security
TeX
Needs LaTeX template
auto-update
board
done
board
ready
board
todo
check
delete-eslint-rc-js
check
update-builddeps-package-json
check
update-eslint-rc-js
check
update-gitignore
check
update-merge-request-template
check
update-prettier-ignore
check
update-pyproject-toml
check
update-renovate-json
check
update-tox-ini
part
backend
Backend (view code, models, logic, etc.)
part
ci
part
docs
Issue or addition to the documentation
part
frontend
Frontend (templates, etc.)
part
i18n
Translation or internationalisation issue
part
non-technical
Non-technical (policy, maintenance, etc.) issue or discussion
part
packaging
Issue concerning the packaging of AlekSIS and components
prio
1
Priority High
prio
2
Priority Medium
prio
3
Priority Low
release-mr-5.x
size
large
size
medium
size
small
source
customer
Requested by a customer or affiliated user
source
customer::fsmw
source
customer::fss
source
customer::teckids
source
downstream
Issue or merge request from other projects using AlekSIS or parts of it
type
breaking
type
bug
Bug
type
feature
New feature
type
refactoring
workflow
blocked
Issue is blocked by another issue
workflow
confirmed
The bug is reproducible and will be fixed
workflow
current-todo
workflow
discussing
Needs to be discussed before implementation
workflow
new-app
Requires new AlekSIS app, which has to be created
workflow
wontfix
The bug is not reproducible or the feature was decided against
source::aleksolotl
No labels
Security
TeX
auto-update
board
done
board
ready
board
todo
check
delete-eslint-rc-js
check
update-builddeps-package-json
check
update-eslint-rc-js
check
update-gitignore
check
update-merge-request-template
check
update-prettier-ignore
check
update-pyproject-toml
check
update-renovate-json
check
update-tox-ini
part
backend
part
ci
part
docs
part
frontend
part
i18n
part
non-technical
part
packaging
prio
1
prio
2
prio
3
release-mr-5.x
size
large
size
medium
size
small
source
customer
source
customer::fsmw
source
customer::fss
source
customer::teckids
source
downstream
type
breaking
type
bug
type
feature
type
refactoring
workflow
blocked
workflow
confirmed
workflow
current-todo
workflow
discussing
workflow
new-app
workflow
wontfix
source::aleksolotl
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set
Reference
aleksis/AlekSIS-Core!4064
Loading…
Reference in a new issue
No description provided.
Delete branch "renovate/yarn-4.x"
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:
1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e→4.19.0Release Notes
yarnpkg/berry (yarn)
v4.1.0Tweaks
-,--verboseinyarn workspaces foreach;-vwill now only print the prefixes,-vvwill be necessary to also print the timings.Adds a new
--jsonoption toyarn runwhen called without script nameFixes
node-moduleslinkerlink: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: pnpmFixes packages being incorrectly flagged as optional
Fixes cache key corruptions due to uncontrolled git merges
Fixes
yarn version apply --all --dry-runmaking unexpected changesFixes
yarn npm loginwhen the remote registry is Verdacciov4.0.1node-moduleslinker when inner workspace depends on outer workspaceyarn npm audit --ignore NUMwhich didn't apply to deprecationsyarn npm audit --jsonwhich didn't print the right output format@yarnpkg/coreyarn explain peer-requirementscommandv4.0.0Major 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 initandyarn set versionwill prefer usingpackageManagerrather thanyarnPathwhen possible (when they detectCOREPACK_ROOTin your environment variables).yarn initwill 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.enableGlobalCachenow defaults totrue. If your project uses Zero-Installs, the firstyarn installyou run after migrating to 4.0 will automatically setenableGlobalCache: falsein your local.yarnrc.yml.yarn workspaces foreachnow requires one of--all,--recursive,--since, or--worktreeto be explicitly specified; the previous default was--worktree, but it was rarely what users expected.compressionLevelnow defaults to0rather 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: 0vscompressionLevel: mixed).yarn installafter migrating from 3.6 to 4.0. If you do, it will automatically set the old default (compressionLevel: mixed) in your.yarnrc.ymlfile. 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 importfor official plugins (you still need to do it for third-party plugins, of course).Yarn's UI during installs has been greatly improved:
node-gypand transitive peer dependency errors) have been removed.yarn rebuildcalls.yarn npm audit.Some settings were renamed or removed:
caFilePathis nowhttpsCaFilePathpreferAggregateCacheInfohas been removed (it's now always on)pnpDataPathhas 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 auditcommand has been reimplemented:/-/npm/v1/security/advisories/bulkendpoint.npmAuditRegistrycan be used to temporarily route audit queries to the npm registry.yarn npm audit ! --no-deprecations.Some legacy layers have been sunset:
.pnp.jsfile when migrating.--assume-fresh-projectflag ofyarn inithas been removed.API Changes
The following changes only affect people writing Yarn plugins:
The
ZipFSandZipOpenFSclasses have been moved from@yarnpkg/fslibto@yarnpkg/libzip. They no longer need or accept thelibzipparameter.open,ZIP_CREATE, andZIP_TRUNCATEbindings are no longer needed forZipFSand have also been removed.The
dependenciesfield sent returned byResolver#resolvemust now be the result of aConfiguration#normalizeDependencyMapcall. 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#getResolutionDependenciesare now expected to be the result ofConfiguration#normalizeDependencycalls.Note that this only applies to the
dependenciesfield; thepeerDependenciesfield is unchanged, as it must only contains semver ranges without any protocol (with an exception forworkspace:, but that's not relevant here).The
Resolve#getResolutionDependenciesfunction must now return an object of arbitrary string keys and descriptor values (instead of a map withDescriptorHashkeys). 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
generateLoaderfunction in@yarnpkg/pnpno longer generates the$$SETUP_STATEfunction, it now needs to be present in theloaderpassed to the function.The
getCustomDataKeyfunction inInstallerfrom@yarnpkg/corehas been moved toLinker.renderForm'soptionsargument is now required to enforce that custom streams are always specified.npmConfigUtils.getAuditRegistryno longer takes aManifestas its first argument.The
FetchOptions.skipIntegrityCheckoption has been removed. UseFetchOptions.cacheOptions.skipIntegrityCheckinstead.MapConfigurationValuehas been removed. UsemiscUtils.ToMapValueinstead.Manifest.isManifestFieldCompatibleandManifest.prototype.isCompatibleWith{OS,CPU}have been removed. UseManifest.prototype.getConditionsandstructUtils.isPackageCompatibleinstead.versionUtils.{fetchBase,fetchRoot,fetchChangedFiles}have been moved from@yarnpkg/plugin-versionto@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}FakeFSclasses are now required to implementlutimes{Sync,Promise}.workspace.dependencieshas been removed. Useworkspace.anchoredPackage.dependenciesinstead.The
Installerclass must now returnBuildRequeststructures instead ofBuildDirective[]. This lets you mark that the build must be skipped, and the reason why.startCacheReporthas been removed, and is now part of the output generated byfetchEverything.forgettableNames&forgettableBufferSizehave been removed (the only messages using them have been removed, making the forgettable logs implementation obsolete).workspace.locatorhas been removed. You can instead use:workspace.anchoredLocatorto get the locator that's used throughout the dependency tree.workspace.manifest.versionto get the workspace version.configuration.{packageExtensions,refreshPackageExtensions}have been removed. Useconfiguration.getPackageExtensionsinstead.configuration.normalizePackagenow requires apackageExtensionsoption.ProjectLookuphas been removed. BothConfiguration.findandConfiguration.findProjectCwdnow always do a lockfile lookup.Installs
pnpmlinker avoids creating symlinks that lead to loops on the file system, by moving them higher up in the directory structure.pnpmlinker no longer reports duplicate "incompatible virtual" warnings.Features
enableOfflineModeis 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 binnow injects the environment variables defined in.env.yarnwhen spawning a process. This can be configured using theinjectEnvironmentFilesvariable.yarn workspaces foreachnow automatically enables theyarn workspaces foreach ! --verboseflag in interactive terminals.Bugfixes
yarn dlxwill no longer report false-positiveUNUSED_PACKAGE_EXTENSIONwarningsyarn workspacewill now set$INIT_CWDto the CLI working directory rather than the workspace root.Shell
Compatibility
FileHandle.readLines.v3.4.1yarn init.v3.4.0Node.js parity
--conditionsflag.--watchflag on Node 18 (it previously only supported it on Node 19).Bugfixes
pnpapi) can now be imported from ESM modules.ZipFS.prototype.getBufferAndClosewill not error on empty archives resulting from an unlink after write.YN0000) fromyarn workspaces foreach.Compatibility
v3.3.0Installs
hardlinks-globalnode-moduleslinker mode by 1.5xCompatibility
v3.2.4Compatibility
v3.2.3Bugfixes
Compatibility
v3.2.2Compatibility
ftruncate.fchmod.throwIfNoEntry.npm_package_jsonenvironment variable is now set by Yarn.v3.2.1Installs
node_modulesdirectory, whennode-moduleslinker is activesupportedArchitecturesBugfixes
v3.2.0Various improvements have been made in the core to improve performance. Additionally:
Commands
yarn workspaces foreach runcommand is now able to run binaries.yarn npm infocommand now supports displaying information about a tagged version of a package (e.g.yarn npm info vue@next).yarn explaincommand has been added. It can be used to explain an error code, or list all available error codes.yarn explain YN0002.yarn npm publishcommand now accepts a new--otpoption, to set the One-Time Password from the CLI.yarn upgrade-interactivenow has improved paging:Installs
node_modulesis a symbolic link, and doesn't recreate it.cpuandarchfields, Yarn now support a newlibcfield which can be used in tandem withoptionalDependenciesto avoid downloading packages that have been linked against incompatible standard libraries (we currently support two values:glibcandmusl).node_modules/.storeandnode_modulesfolders if they are empty.node_modules/@yarnpkg) if they are empty or after removing a scoped dependency..pnp.cjsfiles with inlined data will now store the data in a JSON string literal instead of an object literal to improve startup performance.Compatibility
${FOO:+}.readandreadSyncusing options.pathproperty on streams created bycreateReadStream()and obtained from zip archives.ERR_REQUIRE_ESMerror when attempting to require an ES Module, matching the default Node.js behaviour.Bugfixes
@yarnpkg/pnpifynow escapes paths correctly.nodefield inside thenpm_config_user_agentYarn sets will now include a leadingv.platformisn't set to Node.YARN_IGNORE_NODEenvironment variable will now be parsed using the same mechanism as env variable configuration settings (i.e. both1/0andtrue/falsewill be accepted)ZipFS Extension
Miscellaneous Features
wrapNetworkRequesthook now lets you wrap network requests (for example to log them).v3.1.1v3.1.0Commands
yarn workspaces listandyarn workspaces foreachcommands now both support a new--sinceoption that lets you filter the workspace list by changes (only workspaces that changed since the specified commit will be iterated on). This feature is still a little experimental, especially when used with-R,--recursive.yarn workspaces foreachcommand now handles the fact that a script containing:only becomes global if it exists in exactly one workspace.yarn workspaces foreachcommand now supports--jobs 1and--jobs unlimited.yarn init -2command will now add thepackageManagerfield to your project manifest.Settings
patternmatcher fromlogFilterswill now match any part of the log entry.Installs
nodeLinker: pnpmmode will let you install packages using the pnpm install strategy, where packages are stored flat and referenced by each others through symlinks. This mode is still a little experimental, so please send our way bugs you might find.supportedArchitecturesfield to manually enforce the presence of specific architectures.nmMode: hardlinks-globalsetting will now be automatically downgraded tonmMode: hardlinks-localwhen global caches and install folders are kept on different devices, thus letting the install continue normally. A warning will still be produced explaining this behaviour.node_moduleslinker maximizes chances to end-up with only one top-level node_modules in the case of using workspacesnmSelfReferencessetting has been added to the nm linker to control whether workspaces are allowed to require themselves - results in creation of self-referencing symlinks.yarn workspaces focuswill not create self-referencing symlinks for excluded workspaces anymore.node_modulesinstalls.Miscellaneous Features
workspace:^andworkspace:~. When published, those markers will turn into the actual version (just like what used to happen withworkspace:*), except that they'll be prefixed with the relevant semver prefix (respectively^and~).npmAuditRegistrysetting will let you define which registry to use when running audits. If unset, we'll fallback to the currently configured publish registry (we'll likely change this behavior in Yarn 4 to rather use the fetch registry).Bugfixes
node_modulesinstalls will now be given priority during hoisting, preventing cases when indirect regular dependencies would block the way for direct portal dependencies.pnpifybinary can now be used from inside directories containing spaces.--versionstring.node-moduleslinker.node-moduleslinker, since they cannot be used from the code anyway.fsmodule, allowing users to patch it.require.resolve('pnpapi')will be handled correctly even when usingexports.yarn runimmediately after adding or removing dependencies inside large monorepos.@typesversion. This matches the behaviour for peer dependencies.Compatibility
pnpEnableEsmLoader.resolvewill no longer resolve missing modules to a file with the same name that would happen to be located next to the issuer.v3.0.2VirtualFS.mapToBaseto preserve.characters (was converting them to empty strings).v3.0.1readdirwithnullas second parameter (instead ofundefined).v3.0.0Breaking Changes
yupanymore (we migrated to Typanion as part of Clipanion v3).workspace-tools, remove it from your.yarnrc.yml, upgrade, then import it back.enableImmutableInstallswill now default totrueon CI (we still recommend to explicitly use--immutableon the CLI).YARN_ENABLE_IMMUTABLE_INSTALLS=falsein your environment variables.initVersionandinitLicenseconfiguration options have been removed.initFieldsshould be used instead..pnp.cjsfiles (instead of.pnp.js) when using PnP, regardless of what thetypefield inside the manifest is set to.$$virtualinto__virtual__.-aalias flag ofyarn workspaces foreachgot removed; use-A,--allinstead, which is strictly the same..vscode/pnpify) won't be cleaned up anymore.--skip-buildsflag fromyarn installgot renamed into--mode=skip-build.bstatePathconfiguration option has been removed. The build state (.yarn/build-state.yml) has been moved into the install state (.yarn/install-state.gz)@yarnpkg/pnpifyhas been refactored into 3 packages:@yarnpkg/sdksnow contains the Editor SDKs@yarnpkg/pnpifynow contains the PnPify CLI compatibility tool that creates in-memorynode_modules@yarnpkg/nmnow contains thenode_modulestree builder and hoister@yarnpkg/plugin-node-moduleshas been renamed to@yarnpkg/plugin-nm--clipanion=definitionscommands supported by our CLIs will now expose the definitions on the entry point (rather than on.command)API
structUtils.requirableIdentgot removed; usestructUtils.stringifyIdentinstead, which is strictly the same.configuration.formatgot removed; useformatUtils.prettyinstead, which is strictly the same, but type-safe.httpUtils.Options['json']got removed; usehttpUtils.Options['jsonResponse']instead, which is strictly the same.PackageExtension['description']got removed, useformatUtils.json(packageExtension, formatUtils.Type.PACKAGE_EXTENSION)instead, which is strictly the same.Project.generateBuildStateFilehas been removed, the build state is now inProject.storedBuildState.Project.tryWorkspaceByDescriptorandProject.getWorkspaceByDescriptornow match on virtual descriptors.Installs
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.The node-modules linker now does its best to support the
portal:protocol. This support comes with two important limitations:--preserve-symlinksNode option if they wish to access their dependencies.portal:must be hoisted outside of the portal. Failing that (for example if the portal package depends on something incompatible with the version hoisted via another package), the linker will produce an error and abandon the install.The node-modules linker can now utilize hardlinks. The new setting
nmMode: classic | hardlinks-local | hardlinks-globalspecifies whichnode_modulesstrategy should be used:classic- standardnode_moduleslayout, without hardlinkshardlinks-local- standardnode_moduleslayout with hardlinks inside the project onlyhardlinks-global- standardnode_moduleslayout with hardlinks pointing to global content storage across all the projects using this optionBugfixes
node-moduleslinker will now ensure that the generated install layouts are terminal, by doing several rounds when needed.node-moduleslinker will no longer print warnings about postinstall scripts when a workspace depends on another workspace listing install scripts.${ENV_VAR}syntax.preinstall,install,postinstallfail, the remaining scripts will be skipped.git:protocol will now default to fetchingHEAD(rather than the hardcodedmaster).SIGTERMsignal will now be propagated to child processes.yarn config unsetwill now correctly unset non-nested propertiesSettings
initFieldsedge cases have been fixed.preferAggregateCacheInfoflag will now also aggregate cleanup reports.enableMessageNamesflag can be set tofalseto exclude theYNxxxxfrom the output.Commands
yarn initcan now be run even from within existing projects (will create missing files).yarn initandyarn set versionwill set thepackageManagerfield.yarn set versionnow downloads binaries from the official Yarn website (rather than GitHub).yarn set version from sourceswill now upgrade the builtin plugins as well unless--skip-pluginsis set.yarn version applynow supports a new--prereleaseflag which replaces how prereleases were previously handled.yarn runshould be significantly faster to boot on large projects.yarn workspaces foreach --verbosewill now print when processes start and end, even if they don't have an output.yarn workspaces foreachnow supports a--from <glob>flag, which when combined with-Rwill target workspaces reachable from the 'from' glob.yarn patch-commitcan now be used as many times as you want on the same patch folder.yarn patch-commitnow supports a new-s,--saveflag which will save the patch instead of just printing it.yarn upnow supports a new-R,--recursiveflag which will upgrade the specified package, regardless where it is.yarn config unsetis a new command that will remove a setting from the local configuration (or home if-His set).yarn execgot support for running shell scripts using Yarn's portable shell.yarn plugin importcan now install specific versions of the official plugins.yarn plugin importwill now download plugins compatible with the current CLI by default.yarn unlinkhas been added which removes resolutions previously set byyarn link.Builtin Shell
Compatibility
yarn installinside a Yarn v1 project will now automatically enable thenode-moduleslinker. This should solve most of the problems people have had in their migrations. We still recommend to keep the default PnP for new projects, but the choice is yours.bigint, andfstat.@yarnpkg/esbuild-plugin-pnp. We use it to bundle Yarn itself!exportsfield - regardless of the Node version.node:protocol (new in Node 16)pluginsconfiguration property.Miscellaneous
v2.4.2Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate CLI.
b3aad5750cd5e56b6bf6d5e56b6bf67c6f32d31dView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.