@adbayb/stack 0.0.0-next-a5e3335 → 0.0.0-next-d8214c9
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/configs/eslint/presets/unicorn.js +1 -4
- package/dist/index.js +5 -5
- package/package.json +16 -16
package/dist/index.js
CHANGED
|
@@ -196,7 +196,7 @@ const ESLINT_EXTENSIONS = [
|
|
|
196
196
|
"mdx"
|
|
197
197
|
];
|
|
198
198
|
|
|
199
|
-
var version = "0.0.0-next-
|
|
199
|
+
var version = "0.0.0-next-d8214c9";
|
|
200
200
|
|
|
201
201
|
const createWatchCommand = (program)=>{
|
|
202
202
|
program.command({
|
|
@@ -628,7 +628,7 @@ const checkDependencyVersionRange = ({ name, dependencies, devDependencies, peer
|
|
|
628
628
|
name: dependencyName,
|
|
629
629
|
consumedBy: name
|
|
630
630
|
});
|
|
631
|
-
if (version !== "workspace:*" && !
|
|
631
|
+
if (version !== "workspace:*" && !isExcluded(version) && !/^\d/.test(version)) throw createPackageError(`As a dev dependency, \`${dependencyName}\` version must be fixed (or set as "workspace:*" for local packages) to reduce accidental breaking change risks due to an implicit semver upgrade.`, {
|
|
632
632
|
name: dependencyName,
|
|
633
633
|
consumedBy: name
|
|
634
634
|
});
|
|
@@ -639,7 +639,7 @@ const checkDependencyVersionRange = ({ name, dependencies, devDependencies, peer
|
|
|
639
639
|
name: dependencyName,
|
|
640
640
|
consumedBy: name
|
|
641
641
|
});
|
|
642
|
-
if (version !== "workspace:^" && !hasCaret(version) && !
|
|
642
|
+
if (version !== "workspace:^" && !hasCaret(version) && !isExcluded(version)) throw createPackageError(`As a dependency, \`${dependencyName}\` version must be prefixed with a caret (or set as "workspace:^" for local packages) to optimize the size (whether of installation or bundle output) on the consumer side.`, {
|
|
643
643
|
name: dependencyName,
|
|
644
644
|
consumedBy: name
|
|
645
645
|
});
|
|
@@ -650,7 +650,7 @@ const checkDependencyVersionRange = ({ name, dependencies, devDependencies, peer
|
|
|
650
650
|
name: dependencyName,
|
|
651
651
|
consumedBy: name
|
|
652
652
|
});
|
|
653
|
-
if (!hasCaret(version) && !
|
|
653
|
+
if (!hasCaret(version) && !isExcluded(version)) /*
|
|
654
654
|
* Why disallowing workspace protocol as a version resolver?
|
|
655
655
|
* To reduce the update frequency needs consumer-side and guarantee on our side the minimum compatible version,
|
|
656
656
|
* the best practice should be to keeping an explicit number version which represents the lowest compatible version from an API perspective.
|
|
@@ -699,7 +699,7 @@ function assertVersion(version, { name, consumedBy }) {
|
|
|
699
699
|
consumedBy
|
|
700
700
|
}));
|
|
701
701
|
}
|
|
702
|
-
const
|
|
702
|
+
const isExcluded = (version)=>{
|
|
703
703
|
const isPreReleaseVersion = /\d+\.\d+\.\d+-(alpha|beta|experimental|next|rc).*/.exec(version);
|
|
704
704
|
const isNpmProtocol = version.startsWith("npm:");
|
|
705
705
|
return isNpmProtocol || isPreReleaseVersion;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adbayb/stack",
|
|
3
|
-
"version": "0.0.0-next-
|
|
3
|
+
"version": "0.0.0-next-d8214c9",
|
|
4
4
|
"description": "My opinionated JavaScript-based toolchain",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"stack",
|
|
@@ -43,36 +43,36 @@
|
|
|
43
43
|
"@changesets/cli": "^2.29.5",
|
|
44
44
|
"@commitlint/cli": "^19.8.1",
|
|
45
45
|
"@commitlint/config-conventional": "^19.8.1",
|
|
46
|
-
"@eslint-react/eslint-plugin": "^1.52.
|
|
46
|
+
"@eslint-react/eslint-plugin": "^1.52.3",
|
|
47
47
|
"@eslint/compat": "^1.3.1",
|
|
48
48
|
"@eslint/eslintrc": "^3.3.1",
|
|
49
|
-
"@stylistic/eslint-plugin": "^5.2.
|
|
49
|
+
"@stylistic/eslint-plugin": "^5.2.2",
|
|
50
50
|
"@vitest/eslint-plugin": "^1.3.3",
|
|
51
|
-
"eslint": "^9.
|
|
52
|
-
"eslint-config-prettier": "^10.1.
|
|
51
|
+
"eslint": "^9.32.0",
|
|
52
|
+
"eslint-config-prettier": "^10.1.8",
|
|
53
53
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
54
54
|
"eslint-plugin-depend": "^1.2.0",
|
|
55
55
|
"eslint-plugin-import-x": "^4.16.1",
|
|
56
56
|
"eslint-plugin-jest-formatting": "^3.1.0",
|
|
57
|
-
"eslint-plugin-jsdoc": "^51.
|
|
58
|
-
"eslint-plugin-mdx": "^3.
|
|
59
|
-
"eslint-plugin-n": "^17.
|
|
60
|
-
"eslint-plugin-prettier": "^5.5.
|
|
57
|
+
"eslint-plugin-jsdoc": "^51.4.1",
|
|
58
|
+
"eslint-plugin-mdx": "^3.6.2",
|
|
59
|
+
"eslint-plugin-n": "^17.21.0",
|
|
60
|
+
"eslint-plugin-prettier": "^5.5.3",
|
|
61
61
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
62
62
|
"eslint-plugin-sonarjs": "^3.0.4",
|
|
63
63
|
"eslint-plugin-sort-keys-custom-order": "^2.2.1",
|
|
64
|
-
"eslint-plugin-unicorn": "^
|
|
64
|
+
"eslint-plugin-unicorn": "^60.0.0",
|
|
65
65
|
"fdir": "^6.4.6",
|
|
66
|
-
"globals": "^16.
|
|
66
|
+
"globals": "^16.3.0",
|
|
67
67
|
"prettier": "^3.6.2",
|
|
68
|
-
"prettier-plugin-packagejson": "^2.5.
|
|
69
|
-
"termost": "^1.
|
|
70
|
-
"turbo": "^2.5.
|
|
68
|
+
"prettier-plugin-packagejson": "^2.5.19",
|
|
69
|
+
"termost": "^1.8.0",
|
|
70
|
+
"turbo": "^2.5.5",
|
|
71
71
|
"typescript": "^5.8.3",
|
|
72
|
-
"typescript-eslint": "^8.
|
|
72
|
+
"typescript-eslint": "^8.38.0"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
|
-
"@types/node": "22.16.
|
|
75
|
+
"@types/node": "22.16.5",
|
|
76
76
|
"quickbundle": "2.13.0"
|
|
77
77
|
},
|
|
78
78
|
"publishConfig": {
|