init-xmcp 1.10.0 → 1.10.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/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +16 -0
- package/dist/utils/check-node.js +3 -3
- package/package.json +8 -6
- package/src/utils/check-node.ts +3 -3
package/.turbo/turbo-build.log
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# init-xmcp
|
|
2
2
|
|
|
3
|
+
## 1.10.3
|
|
4
|
+
|
|
5
|
+
No changes in this release.
|
|
6
|
+
|
|
7
|
+
## 1.10.2
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 6e13b56: The compiler now runs on Rspack 2, which is ESM-only, so xmcp requires Node.js 22.12 or later. Configs passed to the `bundler` hook receive Rspack 2 options. The Better Auth plugin bundles its sign-in UI, so React and React Router are no longer installed as runtime dependencies.
|
|
12
|
+
|
|
13
|
+
## 1.10.1
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- f48c55e: Update dependencies to their latest versions.
|
|
18
|
+
|
|
3
19
|
## 1.10.0
|
|
4
20
|
|
|
5
21
|
## 1.9.0
|
package/dist/utils/check-node.js
CHANGED
|
@@ -4,10 +4,10 @@ import chalk from "chalk";
|
|
|
4
4
|
*/
|
|
5
5
|
export function checkNodeVersion() {
|
|
6
6
|
const nodeVersion = process.version;
|
|
7
|
-
const
|
|
8
|
-
if (
|
|
7
|
+
const [major, minor] = process.versions.node.split(".").map(Number);
|
|
8
|
+
if (major < 22 || (major === 22 && minor < 12)) {
|
|
9
9
|
console.error(chalk.red(`❌ Node.js version ${nodeVersion} is not supported.`));
|
|
10
|
-
console.error(chalk.red(`xmcp requires Node.js 22 or higher.`));
|
|
10
|
+
console.error(chalk.red(`xmcp requires Node.js 22.12 or higher.`));
|
|
11
11
|
console.error(chalk.yellow(`Please upgrade your Node.js version and try again.`));
|
|
12
12
|
console.error(chalk.blue(`Visit https://nodejs.org/ to download the latest version.`));
|
|
13
13
|
process.exit(1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "init-xmcp",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.3",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "xmcp",
|
|
6
6
|
"email": "support@xmcp.dev",
|
|
@@ -36,17 +36,19 @@
|
|
|
36
36
|
"init-xmcp": "dist/index.js"
|
|
37
37
|
},
|
|
38
38
|
"type": "module",
|
|
39
|
+
"engines": {
|
|
40
|
+
"node": ">=22.12"
|
|
41
|
+
},
|
|
39
42
|
"dependencies": {
|
|
40
|
-
"chalk": "^
|
|
43
|
+
"chalk": "^6.0.1",
|
|
41
44
|
"commander": "^11.1.0",
|
|
42
|
-
"fs-extra": "^11.
|
|
43
|
-
"inquirer": "^
|
|
45
|
+
"fs-extra": "^11.4.1",
|
|
46
|
+
"inquirer": "^12.11.1",
|
|
44
47
|
"ora": "^7.0.1"
|
|
45
48
|
},
|
|
46
49
|
"devDependencies": {
|
|
47
50
|
"@types/fs-extra": "^11.0.4",
|
|
48
|
-
"@types/
|
|
49
|
-
"@types/node": "^22.19.2",
|
|
51
|
+
"@types/node": "^22.20.5",
|
|
50
52
|
"typescript": "^5.9.3"
|
|
51
53
|
},
|
|
52
54
|
"peerDependencies": {
|
package/src/utils/check-node.ts
CHANGED
|
@@ -5,13 +5,13 @@ import chalk from "chalk";
|
|
|
5
5
|
*/
|
|
6
6
|
export function checkNodeVersion(): void {
|
|
7
7
|
const nodeVersion = process.version;
|
|
8
|
-
const
|
|
8
|
+
const [major, minor] = process.versions.node.split(".").map(Number);
|
|
9
9
|
|
|
10
|
-
if (
|
|
10
|
+
if (major < 22 || (major === 22 && minor < 12)) {
|
|
11
11
|
console.error(
|
|
12
12
|
chalk.red(`❌ Node.js version ${nodeVersion} is not supported.`)
|
|
13
13
|
);
|
|
14
|
-
console.error(chalk.red(`xmcp requires Node.js 22 or higher.`));
|
|
14
|
+
console.error(chalk.red(`xmcp requires Node.js 22.12 or higher.`));
|
|
15
15
|
console.error(
|
|
16
16
|
chalk.yellow(`Please upgrade your Node.js version and try again.`)
|
|
17
17
|
);
|