syncpack 14.0.1 → 14.1.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/package.json +9 -9
- package/syncpack.d.ts +12 -2
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
|
|
4
|
+
"version": "14.1.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
|
|
77
|
-
"syncpack-linux-x64-musl": "14.0
|
|
78
|
-
"syncpack-linux-arm64": "14.0
|
|
79
|
-
"syncpack-linux-arm64-musl": "14.0
|
|
80
|
-
"syncpack-darwin-x64": "14.0
|
|
81
|
-
"syncpack-darwin-arm64": "14.0
|
|
82
|
-
"syncpack-windows-x64": "14.0
|
|
83
|
-
"syncpack-windows-arm64": "14.0
|
|
76
|
+
"syncpack-linux-x64": "14.1.0",
|
|
77
|
+
"syncpack-linux-x64-musl": "14.1.0",
|
|
78
|
+
"syncpack-linux-arm64": "14.1.0",
|
|
79
|
+
"syncpack-linux-arm64-musl": "14.1.0",
|
|
80
|
+
"syncpack-darwin-x64": "14.1.0",
|
|
81
|
+
"syncpack-darwin-arm64": "14.1.0",
|
|
82
|
+
"syncpack-windows-x64": "14.1.0",
|
|
83
|
+
"syncpack-windows-arm64": "14.1.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: [
|
|
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 {};
|