Releases: JamieMason/syncpack
Releases · JamieMason/syncpack
7.0.0
7.0.0 (2022-04-27)
Bug Fixes
Features
BREAKING CHANGES
- cli: If a package developed in your Monorepo depends on another package developed in your Monorepo, syncpack will now fix the installed version of the dependent to match the actual version from the package.json file of the local package.
You can disable this functionality by setting "workspace": false
in your .syncpackrc
config file, or by omitting the new --workspace
option when using --dev
, --prod
etc. to define which dependency types you wish to include.
6.2.1
6.2.0
6.2.0 (2022-01-03)
Features
- groups: target specific dependency types (565c1e7)
Examples
Use loose semver ranges for devDependencies
only, with the rest of the repo using the default setting.
{
"semverGroups": [
{
"dependencies": ["**"],
"dependencyTypes": ["devDependencies"],
"packages": ["**"],
"semverRange": "^"
}
]
}
Force the version of jest
to *
(latest) for the whole monorepo, but only within peerDependencies
.
{
"versionGroups": [
{
"dependencies": ["jest"],
"dependencyTypes": ["peerDependencies"],
"packages": ["**"],
"pinVersion": "*"
}
]
}
6.1.0
6.1.0 (2022-01-03)
Features
Examples
Set every dependency from the AWS SDK to all use 1.64.1
in the whole monorepo.
- @aws-cdk/assert 1.64.1
- @aws-cdk/aws-s3 1.64.1
- @aws-cdk/aws-ssm 1.64.1
- @aws-cdk/core 1.64.1
{
"versionGroups": [
{
"dependencies": ["@aws-cdk/**"],
"packages": ["**"],
"pinVersion": "1.64.1"
}
]
}
Set every dependency from the AWS SDK to 1.64.1
in your alpha packages, and 0.37.0
for those packages in the rest of the monorepo:
{
"versionGroups": [
{
"dependencies": ["@aws-cdk/**"],
"packages": ["@alpha/**"],
"pinVersion": "1.64.1"
},
{
"dependencies": ["@aws-cdk/**"],
"packages": ["**"],
"pinVersion": "0.37.0"
}
]
}
Lock the version of lodash
everywhere
{
"versionGroups": [
{
"dependencies": ["lodash"],
"packages": ["**"],
"pinVersion": "14.17.0"
}
]
}
Use webpack@4
in some packages and webpack@5
in others
{
"versionGroups": [
{
"dependencies": ["webpack"],
"packages": ["@old-stuff/server", "@old-stuff/ui"],
"pinVersion": "4.x.x"
},
{
"dependencies": ["webpack"],
"packages": ["@new-stuff/server", "@new-stuff/ui"],
"pinVersion": "5.x.x"
}
]
}
6.0.0
6.0.0 (2022-01-01)
Bug Fixes
- npm: update dependencies (fdef0a2)
Features
- core: add glob support and semver range rule groups (787757c)
BREAKING CHANGES
- core: Dependencies defined within the
resolutions
andoverrides
fields are now processed by syncpack and are enabled by default. To exclude these new fields you will need to define only the fields you do want to process, either in your configuration file:
{
"dev": true,
"peer": true,
"prod": true
}
or via the command line:
syncpack list --dev --peer --prod