Skip to content
This documentation is for v14 and up, the docs for v13 are archived.

What's New

formatRepository shortens bare github.com/ URLs Unreleased

formatRepository now shortens a repository.url which starts with github.com/, such as github.com/foo/bar, to foo/bar, as it already did for https://github.com/foo/bar.

Invalid custom types are an error Unreleased

A customTypes entry with an unrecognised strategy, or with strategy: "name~version" and no namePath, now exits 1 with a message naming the entry, such as customTypes.x.namePath is required when strategy is 'name~version'., instead of crashing.

Complex ranges with prerelease versions Unreleased

Specifiers such as >=1.0.0-rc.1 <2.0.0 are parsed as range-complex instead of being marked unsupported.

update skips local packages and fully ignored dependencies Unreleased

update no longer sends a dependency named like a package in your monorepo to the npm registry, nor one which an ignored update group matches in every instance. Before, a public package with the same name could have its version written into a semverRangeOnly group or a pnpm or bun catalog definition. See update for the full rules.

Registry cache moves to a per-user directory Unreleased

Responses are cached in $XDG_CACHE_HOME/syncpack, else $HOME/.cache/syncpack, else the system temp directory. Only update reads or writes the cache, and it writes the file only when it fetched a response.

Failed writes are listed and exit 1 Unreleased

When fix, format or update cannot write a file, syncpack still writes the others, lists every file it failed to write with its path, such as Failed to write /repo/packages/a/package.json: Permission denied (os error 13), and exits 1. Before, the first failure stopped the run and the files after it were not written.

fix removes banned pnpm overrides Unreleased

fix now deletes a dependency matched by a Banned version group from overrides in pnpm-workspace.yaml, as it already did for package.json files and catalogs. Before, the IsBanned status was reported as fixed but the override stayed in the file.

Line endings are preserved Unreleased

Files syncpack rewrites keep their line endings on every line. A CRLF package.json or pnpm-workspace.yaml used to come out with a mix of LF and CRLF. A file which mixes them is rewritten with the most common ending, and LF wins a tie.

Range Only version group 15.3.0

semverRangeOnly enforces a consistent semver range prefix (^, ~, exact) across instances without syncing the version numbers themselves.

Update summary lists only accepted updates 15.3.0

The summary printed after choosing updates to apply using syncpack update --interactive now lists only the updates you actually applied, rather than every candidate found.

Optionally override autofix per status code 15.2.0

The severity map on a version group lets you disable autofixing on a per-status code basis, and instead error or warn.

.syncpackrc.json
{
"versionGroups": [
{
"dependencies": ["lodash"],
"isBanned": true,
"severity": { "IsBanned": "warn" },
},
],
}

Extend source patterns instead of replacing 15.2.0

A new sourceMode option (and --source-mode flag) can override the default of "replace" to use "extend" to append your package.json glob patterns to those discovered from workspaces / pnpm-workspace.yaml / lerna.json.

Non-package.json files as sources 15.2.0

A fairly niche feature request, but the source option now accepts other .json filenames than package.json when explicitly listed. Some bugs with Glob and gitignore matching were also fixed in this release.

Update Groups 15.1.1

updateGroups control how and whether various parts of your monorepo should be updated from the npm registry. See Targeted and Ignored.

.syncpackrc.json
{
"updateGroups": [
{ "dependencies": ["storybook", "@storybook/**"], "target": "patch" },
{ "dependencyTypes": ["dev"], "target": "minor" },
{ "dependencyTypes": ["peer"], "isIgnored": true },
],
}

When both the CLI's --target and a group's target apply, the stricter of the two wins.

Interactive update picker 15.1.1

syncpack update --interactive opens a keyboard-driven picker so you choose which updates to apply. Use space to toggle, a to toggle all, enter to confirm.

Registry response caching 15.1.1

Registry responses are cached on disk for 30 minutes by default to avoid repeat network calls. Pass --no-cache to bypass for the current run.

pnpm and Bun catalogs 15.0.0

Full support for the catalog: protocol. Define a dependency's version once and have every package consume it via catalog: or catalog:{name}.

  • New Catalog version group enforces that matched dependencies live in a catalog and are consumed via the protocol.
  • Syncpack writes catalog entries to pnpm-workspace.yaml (pnpm) or the root package.json (Bun), creating the implicit default catalog at fix time when one does not yet exist.
  • Filter updates by catalog: syncpack update --dependency-types pnpmCatalog, or by named catalog: pnpmCatalog:react18.

minimumReleaseAge 15.0.0

minimumReleaseAge excludes versions published more recently than the configured window, reducing supply-chain attack risk. Defaults to 1440 minutes (one day). Inherits from pnpm-workspace.yaml when unset; set 0 to disable.

pnpmOverrides reads from pnpm-workspace.yaml 15.0.0

Breaking change. The default pnpmOverrides dependency type now reads overrides from pnpm-workspace.yaml instead of pnpm.overrides in package.json. See the v15 migration guide for how to restore the legacy behaviour with pnpmOverridesLegacy.