Consistent dependency versions in large JavaScript Monorepos.
See also the release notes for 12.0.0-alpha.0 and 12.0.0-alpha.1 for all changes made in
latest
since 11.2.1.
$LOCAL
keyword in config, Closes #161dependencies: ["**"]
and packages: ["**"]
to be omittedsyncpack list
, Closes #162--indent ‘\t’
workspace:~
and workspace:*
npm:[email protected]
>=1.0.0 <=3.0.0
git://github.com/user/project.git#0.3.0
4.0.0-alpha.61
semverRange
has been deprecated in config files, if you'd like to define a global policy for semver ranges you can achieve this with a semver group.
{
- "semverRange": "^",
+ "semverGroups": [{ "range": "^" }]
}
There is no longer a default Semver Group. By default, version mismatches will be fixed while leaving the semver ranges as they were. This is intended to make it easier for new users to onboard, but it is recommended that you define Semver Groups yourself which match your project's requirements.
See the Getting Started guide for a walkthrough on this.
This is the biggest syncpack release to date and has taken a couple of months to complete. Given the scale of the changes, it is an alpha release.
The tests have been rewritten to be easier to maintain and bugs were found along the way, so there will be other small improvements and bug fixes which I've lost track of that are not listed here.
Please give it a try in a local branch and submit an issue if you find any problems.
There is a brand new Getting Started guide and other new documentation which I encourage you to read.
Finally, if anyone reading this finds syncpack useful then please tell people about it – it's completely free and has been a ton of work.
'!peer'
and '**'
(06f2e88)'workspace'
to 'local'
(463c936), closes #154
In command line options:
- syncpack list --types prod,workspace
+ syncpack list --types prod,local
In configuration files:
- dependencyTypes: ['prod', 'workspace'],
+ dependencyTypes: ['prod', 'local'],