Commit 7b89d01
authored
fix: remove overly strict checks on peer versions (#306)
1) ProjectInfo was verifying that the specified version range in
peerDependencies is exactly the same as the version range in regular
dependencies. This is not necessary, the only requirement is that
the actual concrete dependency version satisfies the peer dependency
version (which is already checked in _loadDependencies).
2) Assembler was verifying that the concrete version of a library found
in dependencies was the same as that same concrete library found in
peerDependencies. But since there's ever only one concrete copy of
any dependency, this check can never fail.1 parent 094a215 commit 7b89d01
2 files changed
+6
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1085 | 1085 | | |
1086 | 1086 | | |
1087 | 1087 | | |
| 1088 | + | |
1088 | 1089 | | |
1089 | 1090 | | |
1090 | 1091 | | |
| |||
1094 | 1095 | | |
1095 | 1096 | | |
1096 | 1097 | | |
1097 | | - | |
1098 | | - | |
1099 | | - | |
1100 | | - | |
1101 | | - | |
1102 | | - | |
1103 | | - | |
1104 | | - | |
1105 | | - | |
1106 | | - | |
1107 | 1098 | | |
1108 | 1099 | | |
1109 | 1100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
49 | 47 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
| 48 | + | |
| 49 | + | |
60 | 50 | | |
61 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
62 | 54 | | |
63 | 55 | | |
64 | 56 | | |
| |||
0 commit comments