Releases: JamieMason/syncpack
Releases · JamieMason/syncpack
10.1.0
10.0.0
10.0.0 (2023-05-28)
Summary
- When using the
workspace
dependency type, packages installing that dependency no longer have to exactly match theversion
property of the package.json of origin.
If the version or version range used by every dependent package matches, it is considered valid. - JavaScript config files now have support for TypeScript IntelliSense.
See https://jamiemason.github.io/syncpack/config-file#typescript-intellisense. - Unsupported versions can now at least be managed via
pinVersion
, where previously anything which was not valid semver would be ignored. - TypeScript IntelliSense support helps catch invalid config, but more work is needed to display useful error messages at runtime.
- Syncpack's internals are now better organised, so providing a Node.js API and general lint and fix CLI commands are now closer to being released.
Bug Fixes
- core: rewrite core architecture (dc9355f), closes #124 #130 #131 #114, refs #109 #125 #111 #132 #48 #3
- npm: update typescript (2c5cd7f)
BREAKING CHANGES
- core:
fix-mismatches
will now exit with a status code of 1 if there are mismatches among unsupported versions which syncpack cannot auto-fix.- Although they are still not auto-fixable, unsupported versions which were previously ignored are now acknowledged, which may introduce mismatches which previously would have been considered valid.
- This release was also a huge rewrite of Syncpack's internals and, while there is a large amount of tests, some scenarios may have been missed.
- If you run into any problems, please create an issue.
9.8.6
9.8.4
9.7.4
9.7.4 (2023-02-19)
Bug Fixes
Features
- engines: increase node from 10 to 14 (603f058)
- groups: handle long and multi-line labels (ecc58ff)
- semver: recognise ^6, >=5 etc as valid (be637f0), closes #122
- versionGroups: add optional snapTo property (fd0edb6), closes #87
Performance Improvements
- imports: skip barrel files where possible (1ee2776)
9.3.2
9.1.2
9.0.2
9.0.0
9.0.0 (2023-02-14)
Features
- custom: support custom version locations (2cd34fd), closes #112 #113
- fix-mismatches: remove any empty objects (a279e56)
BREAKING CHANGES
-
The following options were replaced in
[email protected]
:-p, --prod include dependencies -d, --dev include devDependencies -P, --peer include peerDependencies -R, --resolutions include resolutions (yarn) -o, --overrides include overrides (npm) -O, --pnpmOverrides include overrides (pnpm) -w, --workspace include locally developed package versions
Instead use the new
--types
option like so:--types dev,prod,peer
-
In
.syncpackrc
, the following options were replaced:"dev": true, "overrides": true, "peer": true, "pnpmOverrides": true, "prod": true, "resolutions": true, "workspace": true,
Instead use the new
dependencyTypes
array like so:"dependencyTypes": ["dev", "prod", "peer"]