Packages

@yarnpkg/parsers

3.1.0 · 29 Jul 2026BSD-2-Clause6.2M / weekRepositorynpmAtom feed

Upgrading @yarnpkg/parsers From 2.3.0 to 3.1.0

10 releases in betweennotes for 4

Reading releases, release notes and advisories…

Other targets from 2.3.0Newest 2.x2.6.0
  1. 2.3.0yours
  2. 5 releases
  3. 3.0.0major
  4. 3 releases
  5. 3.1.0target
  6. 30 pre
14+
changes to make
0
advisories fixed
5+
new
25+
fixes

Counted from 4 of 10 release notes. Advisories are counted from the advisory database, in full.

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

  1. 3.1.0

    29 Jul 20262 new · 11 fixes
    • New

      Workspaces can now be referred to using workspace:^ and workspace:~. When published, those markers will turn into the actual version (just like what used to happen with workspace:*), except that they'll be prefixed with the relevant semver prefix (respectively ^ and ~).

    • New

      A new npmAuditRegistry setting 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).

    • Fixed

      Direct portal dependencies for node_modules installs will now be given priority during hoisting, preventing cases when indirect regular dependencies would block the way for direct portal dependencies.

    • Fixed

      The pnpify binary can now be used from inside directories containing spaces.

  2. 3.0.3no release note

  3. 3.0.2

    2 May 20241 fix
    • Fixed

      Fixed VirtualFS.mapToBase to preserve . characters (was converting them to empty strings).

  4. 3.0.1

    2 May 20241 fix
    • Fixed

      Fixes an edge case with the PnP loader when calling readdir with null as second parameter (instead of undefined).

  5. 3.0.0

    Migration needed22 Oct 20233 new · 12 fixes
    • Breaking

      Node 10 isn't supported anymore.

    • Breaking

      Plugins can't access yup anymore (we migrated to Typanion as part of Clipanion v3).

    • Breaking

      The enableImmutableInstalls will now default to true on CI (we still recommend to explicitly use --immutable on the CLI).

    • Breaking

      The initVersion and initLicense configuration options have been removed. initFields should be used instead.

  6. 2.4.0 – 2.6.05 releases, no release note

55 other lines we could not sort, mostly version bumps
  • The yarn workspaces list and yarn workspaces foreach commands now both support a new --since option 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.

    3.1.0
  • The yarn workspaces foreach command now handles the fact that a script containing : only becomes global if it exists in exactly one workspace.

    3.1.0
  • The yarn workspaces foreach command now supports --jobs 1 and --jobs unlimited.

    3.1.0
  • The yarn init -2 command will now add the packageManager field to your project manifest.

    3.1.0
  • The pattern matcher from logFilters will now match any part of the log entry.

    3.1.0
  • A new nodeLinker: pnpm mode 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.

    3.1.0
  • Yarn won't install anymore packages that don't match the current OS. Should you need to (for example if you check-in your cache), use the supportedArchitectures field to manually enforce the presence of specific architectures.

    3.1.0
  • The nmMode: hardlinks-global setting will now be automatically downgraded to nmMode: hardlinks-local when 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.

    3.1.0
  • The node_modules linker maximizes chances to end-up with only one top-level node_modules in the case of using workspaces

    3.1.0
  • The nmSelfReferences setting 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 focus will not create self-referencing symlinks for excluded workspaces anymore.

    3.1.0

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.