You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: site/src/content/docs/guide/migrate-v14.mdx
+18-18Lines changed: 18 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Migrate to 14
3
3
description: Migration guide for upgrading from syncpack v13 to v14 with breaking changes and new features
4
4
---
5
5
6
-
```bash
6
+
```bash frame="none"
7
7
npm install --save-dev syncpack
8
8
```
9
9
@@ -13,7 +13,7 @@ npm install --save-dev syncpack
13
13
14
14
`list-mismatches` and `lint-semver-ranges` have been merged into a single `lint` command which checks whether every specifier matches the semver group and version group they belong to. The `lint` command no longer checks formatting, which is now handled by `syncpack format ––check`.
`list-mismatches` and `lint-semver-ranges` have been merged into a single `lint` command which checks whether every specifier matches the semver group and version group they belong to. The `lint` command no longer checks formatting, which is now handled by `syncpack format ––check`. It's no longer possible to manage semver ranges without also checking version mismatches, because the two things are so closely linked. Changes to semver ranges affect which versions are considered valid and can indirectly cause version mismatches, so they are now always checked and changed together via the `lint` and `fix` commands.
26
26
27
-
```bash
27
+
```bash frame="none"
28
28
# v13
29
29
syncpack lint-semver-ranges
30
30
# v14
@@ -35,7 +35,7 @@ syncpack lint
35
35
36
36
`fix-mismatches` and `set-semver-ranges` have been merged into a single `fix` command which autofixes issue found by `syncpack lint`. The `fix` command no longer fixes formatting, which is now handled by `syncpack format`.
37
37
38
-
```bash
38
+
```bash frame="none"
39
39
# v13
40
40
syncpack fix-mismatches
41
41
# v14
@@ -46,7 +46,7 @@ syncpack fix
46
46
47
47
`fix-mismatches` and `set-semver-ranges` have been merged into a single `fix` command which autofixes issue found by `syncpack lint`. The `fix` command no longer fixes formatting, which is now handled by `syncpack format`. It's no longer possible to manage semver ranges without also checking version mismatches, because the two things are so closely linked. Changes to semver ranges affect which versions are considered valid and can indirectly cause version mismatches, so they are now always checked and changed together via the `lint` and `fix` commands.
48
48
49
-
```bash
49
+
```bash frame="none"
50
50
# v13
51
51
syncpack set-semver-ranges
52
52
# v14
@@ -57,7 +57,7 @@ syncpack fix
57
57
58
58
The `prompt` command is an interactive prompt which lists all current issues which syncpack can't fix automatically. It is not yet available in v14 and will be added at a later date. Syncpack can't automatically fix mismatches between specifiers it does not support, which are usually specifiers which are not semver, such as pnpm overrides, or complex semver specifiers like `^1.2.3 || ^2.0.0`.
59
59
60
-
```bash
60
+
```bash frame="none"
61
61
# v13
62
62
syncpack prompt
63
63
# v14
@@ -70,7 +70,7 @@ syncpack prompt
70
70
71
71
Renamed for consistency and also to differentiate it from other types such as specifier types.
@@ -92,7 +92,7 @@ syncpack format --specifier-types exact,range
92
92
93
93
This has been renamed to `dependencies` to match the equivalent property of version groups and semver groups. Regular expressions are no longer supported and instead a glob pattern should be provided in the same way as they are for version groups and semver groups.
94
94
95
-
```bash
95
+
```bash frame="none"
96
96
# v13
97
97
syncpack list-mismatches --filter "^@types\/.+"
98
98
# v14
@@ -122,7 +122,7 @@ The `dependencyTypes` config has been removed in favour of using `versionGroups`
122
122
123
123
Or use the `--dependency-types` CLI option to filter on an ad hoc basis:
124
124
125
-
```bash
125
+
```bash frame="none"
126
126
syncpack lint --dependency-types prod,dev,peer
127
127
```
128
128
@@ -147,7 +147,7 @@ The `specifierTypes` config has been removed in favour of using `versionGroups`
147
147
148
148
Or use the `--specifier-types` CLI option to filter on an ad hoc basis:
149
149
150
-
```bash
150
+
```bash frame="none"
151
151
syncpack format --specifier-types exact,range
152
152
```
153
153
@@ -164,7 +164,7 @@ The `lint` command no longer checks formatting, only version mismatches, so the
164
164
}
165
165
```
166
166
167
-
```bash
167
+
```bash frame="none"
168
168
# Check if formatting needed (exit 1 if needed)
169
169
syncpack format --check
170
170
# Safely see what formatting fixes would look like
@@ -207,7 +207,7 @@ This option is redundant in V14.
207
207
208
208
The `workspace` dependency type has been renamed to `local` for clarity.
0 commit comments