syncpack 14.0.2 → 14.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -8,7 +8,6 @@
8
8
 
9
9
  Syncpack is used by [AWS](https://github.com/aws/aws-pdk), [Cloudflare](https://github.com/cloudflare/mcp-server-cloudflare), [DataDog](https://github.com/DataDog/datadog-ci), [Electron](https://github.com/electron/forge), [GoDaddy](https://github.com/godaddy/gasket), [LiveStore](https://github.com/livestorejs/livestore), [Lottie](https://github.com/LottieFiles/dotlottie-web), [Microsoft](https://github.com/microsoft/fluentui), [PostHog](https://github.com/PostHog/posthog), [Qwik](https://github.com/QwikDev/qwik), [Raycast](https://github.com/raycast/extensions), [Salesforce](https://github.com/SalesforceCommerceCloud/pwa-kit), [TopTal](https://github.com/toptal/picasso), [Vercel](https://github.com/vercel/vercel), [VoltAgent](https://github.com/VoltAgent/voltagent), [WooCommerce](https://github.com/woocommerce/woocommerce) and others.
10
10
 
11
-
12
11
  ## Installation
13
12
 
14
13
  ```bash
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "syncpack",
3
3
  "description": "Consistent dependency versions in large JavaScript Monorepos",
4
- "version": "14.0.2",
4
+ "version": "14.2.0",
5
5
  "author": "Jamie Mason <jamie@foldleft.io> (https://github.com/JamieMason)",
6
6
  "bugs": "https://github.com/JamieMason/syncpack/issues",
7
7
  "contributors": [
@@ -73,14 +73,14 @@
73
73
  "syncpack": "./index.cjs"
74
74
  },
75
75
  "optionalDependencies": {
76
- "syncpack-linux-x64": "14.0.2",
77
- "syncpack-linux-x64-musl": "14.0.2",
78
- "syncpack-linux-arm64": "14.0.2",
79
- "syncpack-linux-arm64-musl": "14.0.2",
80
- "syncpack-darwin-x64": "14.0.2",
81
- "syncpack-darwin-arm64": "14.0.2",
82
- "syncpack-windows-x64": "14.0.2",
83
- "syncpack-windows-arm64": "14.0.2"
76
+ "syncpack-linux-x64": "14.2.0",
77
+ "syncpack-linux-x64-musl": "14.2.0",
78
+ "syncpack-linux-arm64": "14.2.0",
79
+ "syncpack-linux-arm64-musl": "14.2.0",
80
+ "syncpack-darwin-x64": "14.2.0",
81
+ "syncpack-darwin-arm64": "14.2.0",
82
+ "syncpack-windows-x64": "14.2.0",
83
+ "syncpack-windows-arm64": "14.2.0"
84
84
  },
85
85
  "types": "./syncpack.d.ts"
86
86
  }
package/syncpack.d.ts CHANGED
@@ -143,17 +143,18 @@ type SemverRange = '' | '*' | '>' | '>=' | '.x' | '<' | '<=' | '^' | '~';
143
143
  type DependencyType = 'dev' | 'local' | 'overrides' | 'peer' | 'pnpmOverrides' | 'prod' | 'resolutions' | AnyString;
144
144
  type SpecifierType = 'alias' | 'exact' | 'file' | 'git' | 'latest' | 'major' | 'minor' | 'missing' | 'range' | 'range-complex' | 'range-major' | 'range-minor' | 'tag' | 'unsupported' | 'url' | 'workspace-protocol' | AnyString;
145
145
  type AnyString = string & {};
146
- /** Each Instance printed by `syncpack json` */
146
+ /** Each Instance printed by `syncpack json` and `syncpack fix --reporter json` */
147
147
  export type JsonOutput = {
148
148
  dependency: string;
149
149
  dependencyGroup: string;
150
150
  dependencyType: DependencyType;
151
151
  package: string;
152
- property: ['dependencies'];
152
+ property: string[];
153
153
  strategy: CustomType.Any['strategy'];
154
154
  versionGroup: VersionGroupVariant;
155
155
  preferredSemverRange: SemverRange | null;
156
156
  statusCode: StatusCode;
157
+ statusType: StatusType;
157
158
  actual: {
158
159
  raw: string;
159
160
  type: SpecifierType;
@@ -163,6 +164,15 @@ export type JsonOutput = {
163
164
  type: SpecifierType;
164
165
  } | null;
165
166
  };
167
+ export type StatusType = 'Valid' | 'Fixable' | 'Unfixable' | 'Suspect' | 'Conflict';
168
+ /** Each formatting mismatch printed by `syncpack format --reporter json` */
169
+ export type FormatJsonOutput = {
170
+ package: string;
171
+ filePath: string;
172
+ property: string[];
173
+ statusCode: FormatStatusCode;
174
+ };
175
+ export type FormatStatusCode = 'BugsPropertyIsNotFormatted' | 'RepositoryPropertyIsNotFormatted' | 'PropertyIsNotSortedAz' | 'PackagePropertiesAreNotSorted' | 'ExportsPropertyIsNotSorted';
166
176
  export type VersionGroupVariant = 'Banned' | 'HighestSemver' | 'Ignored' | 'LowestSemver' | 'Pinned' | 'SameRange' | 'SameMinor' | 'SnappedTo';
167
177
  export type StatusCode = 'IsHighestOrLowestSemver' | 'IsIdenticalToLocal' | 'IsIdenticalToPin' | 'IsIdenticalToSnapTarget' | 'IsIgnored' | 'IsLocalAndValid' | 'IsNonSemverButIdentical' | 'SatisfiesHighestOrLowestSemver' | 'SatisfiesLocal' | 'SatisfiesSameRangeGroup' | 'SatisfiesSameMinorGroup' | 'SatisfiesSnapTarget' | 'DiffersToHighestOrLowestSemver' | 'DiffersToLocal' | 'DiffersToNpmRegistry' | 'DiffersToPin' | 'DiffersToSnapTarget' | 'IsBanned' | 'PinOverridesSemverRange' | 'PinOverridesSemverRangeMismatch' | 'SameMinorOverridesSemverRange' | 'SameMinorOverridesSemverRangeMismatch' | 'SemverRangeMismatch' | 'DependsOnInvalidLocalPackage' | 'NonSemverMismatch' | 'SameRangeMismatch' | 'SameMinorMismatch' | 'DependsOnMissingSnapTarget' | 'InvalidLocalVersion' | 'RefuseToBanLocal' | 'RefuseToPinLocal' | 'RefuseToSnapLocal' | 'MatchConflictsWithHighestOrLowestSemver' | 'MatchConflictsWithLocal' | 'MatchConflictsWithSnapTarget' | 'MismatchConflictsWithHighestOrLowestSemver' | 'MismatchConflictsWithLocal' | 'MismatchConflictsWithSnapTarget';
168
178
  export {};