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
When the user chooses to include a package in the release, they may be
asked to also include dependencies or dependents of that package. The
UI for these error messages, as well as the messages themselves, is not
as user-friendly as it could be. This commit adds an expandable "help
text" for each kind of error to explain what actions the user should
take and why.
description={`The following packages are dependencies or peer dependencies of ${pkg.name}. Because they may have introduced new changes that ${pkg.name} is now using, you need to verify whether to include them in the release.
157
-
158
-
To do this, look at the change history for each package and compare it with the change history for ${pkg.name}. If ${pkg.name} uses any new changes from a package, then you need to include it by bumping its version. If you have confirmed that the changes to a package do not affect ${pkg.name}, you may omit it from the release by choosing "Skip" instead.`}
description={`Because ${pkg.name} is being released with a new major version, to prevent peer dependency warnings in consuming projects, all of the following packages which list ${pkg.name} as a peer dependency need to be included in the release. Please choose new versions for these packages. If for some reason you feel it is safe to omit a package you may choose "Skip".`}
errorSubject={`You've included ${pkg.name} in the release. However, this package has direct or peer dependencies which have unreleased changes, and you may need to include them as well.`}
155
+
errorDetails={
156
+
<>
157
+
<pclassName="mb-2">
158
+
To resolve these errors, you need to look the changelog or
159
+
commit history for {pkg.name} (and possibly each dependency
160
+
listed below) to make the following decision:
161
+
</p>
162
+
<ulclassName="list-disc ml-8 mt-2">
163
+
<liclassName="mb-2">
164
+
<spanclassName="font-semibold">
165
+
Did a dependency introduce a new feature that {pkg.name}{' '}
166
+
now uses? If so, you need to include the dependency in
167
+
the release by bumping its version.
168
+
</span>
169
+
</li>
170
+
<li>
171
+
Once you've verified that changes to a dependency do not
172
+
affect {pkg.name}, you may omit it from the release by
errorSubject={`You've bumped ${pkg.name} by a major version, indicating that there are breaking changes. However, this package has peer dependents (that is, other packages that list this one as a peer dependency) that you should include in the release.`}
187
+
errorDetails={
188
+
<>
189
+
<pclassName="mb-2">
190
+
If a package has a peer dependency on other package, it
191
+
means that a project which declares the first package as a
192
+
dependency must also declare the second one in order for the
193
+
first one to function correctly, and the version used for
194
+
the second package must satisfy the requested version range.
195
+
If this is not the case, a peer dependency warning will
196
+
appear when dependencies are installed. (For instance, if{' '}
0 commit comments