check-peer-dependencies 4.3.2 → 4.3.3
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/.idea/workspace.xml +1 -3
- package/CHANGELOG.md +12 -0
- package/dist/packageUtils.js +5 -1
- package/package.json +1 -1
package/.idea/workspace.xml
CHANGED
|
@@ -22,9 +22,7 @@
|
|
|
22
22
|
<select />
|
|
23
23
|
</component>
|
|
24
24
|
<component name="ChangeListManager">
|
|
25
|
-
<list default="true" id="ebeb713d-6dc4-42d1-a42e-54aad95d9c0a" name="Default Changelist" comment="Restore green checkmark, and always return a boolean from isProblem"
|
|
26
|
-
<change beforePath="$PROJECT_DIR$/src/checkPeerDependencies.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/checkPeerDependencies.ts" afterDir="false" />
|
|
27
|
-
</list>
|
|
25
|
+
<list default="true" id="ebeb713d-6dc4-42d1-a42e-54aad95d9c0a" name="Default Changelist" comment="Restore green checkmark, and always return a boolean from isProblem" />
|
|
28
26
|
<option name="SHOW_DIALOG" value="false" />
|
|
29
27
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
30
28
|
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## 4.3.3 (2026-01-02)
|
|
2
|
+
[Compare `check-peer-dependencies` versions 4.3.0 and 4.3.3](https://github.com/christopherthielen/check-peer-dependencies/compare/4.3.0...4.3.3)
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* ?.endsWith to avoid NPE ([e605bbc](https://github.com/christopherthielen/check-peer-dependencies/commit/e605bbc))
|
|
7
|
+
* fix resolving packages that have multiple/nested package.json files ([1088836](https://github.com/christopherthielen/check-peer-dependencies/commit/1088836))
|
|
8
|
+
* fix yalc detection ([625b279](https://github.com/christopherthielen/check-peer-dependencies/commit/625b279))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
1
13
|
## 4.3.2 (2025-12-30)
|
|
2
14
|
[Compare `check-peer-dependencies` versions 4.3.0 and 4.3.2](https://github.com/christopherthielen/check-peer-dependencies/compare/4.3.0...4.3.2)
|
|
3
15
|
|
package/dist/packageUtils.js
CHANGED
|
@@ -94,7 +94,11 @@ function resolvePackageDir(basedir, packageName) {
|
|
|
94
94
|
// In resolve() v2.x this callback has a different signature
|
|
95
95
|
// function packageFilter(pkg, pkgfile, pkgdir) {
|
|
96
96
|
function packageFilter(pkg, pkgdir) {
|
|
97
|
-
if
|
|
97
|
+
// Only accept package.json if the name matches the package being resolved.
|
|
98
|
+
// This prevents picking up nested package.json files (e.g., terser/dist/package.json)
|
|
99
|
+
// that may have a different version or no name field.
|
|
100
|
+
// Only accept the first match to avoid overwriting with a later (possibly incorrect) one.
|
|
101
|
+
if (!packagePath && pkg.name === packageName) {
|
|
98
102
|
packagePath = pkgdir;
|
|
99
103
|
}
|
|
100
104
|
return pkg;
|
package/package.json
CHANGED