monorepo-next 12.5.0 → 12.5.1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/version.js +1 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "monorepo-next",
3
- "version": "12.5.0",
3
+ "version": "12.5.1",
4
4
  "description": "Detach monorepo packages from normal linking",
5
5
  "bin": {
6
6
  "next": "bin/next.js"
package/src/version.js CHANGED
@@ -18,14 +18,8 @@ function trackNewVersion({
18
18
  // https://github.com/npm/node-semver/commit/bcab95a966413b978dc1e7bdbcb8f495b63303cd
19
19
  range.set[0][0].operator
20
20
  ) {
21
- let hint = range.raw[0];
22
-
23
- if (hint !== '^' && hint !== '~') {
24
- hint = '~';
25
- }
26
-
27
21
  // This behaviour can probably be removed in the next major.
28
- newRange = `${hint}${newVersion}`;
22
+ newRange = `~${newVersion}`;
29
23
  } else if (
30
24
  // NOTE: wildcard range is empty string
31
25
  // SEE: https://github.com/npm/node-semver/blob/bcab95a966413b978dc1e7bdbcb8f495b63303cd/test/ranges/to-comparators.js#L10-L12