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: README.md
+12-6Lines changed: 12 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,14 +78,20 @@ This ensures upgrades stay on your radar without overwhelming you. No more "oops
78
78
79
79
We know we're behind the latest versions of our dependencies, but where to start? Which versions should be force to update first? We can get lot of conflicts if we try to bump wrong end of knot.
80
80
81
-
Instead, let composer handle it. How? We open-up package versions to the next version:
81
+
Instead, let Composer handle it. How? We open-up package versions to the next version:
82
+
83
+
```bash
84
+
vendor/bin/jack open-versions
85
+
```
86
+
87
+
This command opens up 5 versions to their next nearest step, e.g.:
82
88
83
89
```diff
84
90
{
85
91
"require": {
86
92
"php": "^7.4",
87
-
- "symfony/console": "^5.0"
88
-
+ "symfony/console": "^5.0|^6.0"
93
+
- "symfony/console": "5.1.*"
94
+
+ "symfony/console": "5.2.*|5.2.*"
89
95
},
90
96
"require-dev": {
91
97
- "phpunit/phpunit": "^9.0"
@@ -95,14 +101,14 @@ Instead, let composer handle it. How? We open-up package versions to the next ve
95
101
}
96
102
```
97
103
98
-
This "opens up" 5 versions without forcing updates. If no blockers exist, Composer will upgrade to the next version.
99
-
100
-
Then we run composer and let it do the work:
104
+
Then we run Composer to do the work:
101
105
102
106
```bash
103
107
composer update
104
108
```
105
109
110
+
If no blockers exist, Composer will update packages to their next version.
111
+
106
112
<br>
107
113
108
114
To change the number of packages, use `--limit` option:
0 commit comments