init-xmcp 1.9.0 → 1.10.2

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.
@@ -1,4 +1,4 @@
1
1
 
2
- > init-xmcp@1.9.0 build /home/runner/work/xmcp/xmcp/packages/init-xmcp
2
+ > init-xmcp@1.10.2 build /home/runner/work/xmcp/xmcp/packages/init-xmcp
3
3
  > tsc
4
4
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # init-xmcp
2
2
 
3
+ ## 1.10.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 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.
8
+
9
+ ## 1.10.1
10
+
11
+ ### Patch Changes
12
+
13
+ - f48c55e: Update dependencies to their latest versions.
14
+
15
+ ## 1.10.0
16
+
3
17
  ## 1.9.0
4
18
 
5
19
  ## 1.8.0
@@ -4,10 +4,10 @@ import chalk from "chalk";
4
4
  */
5
5
  export function checkNodeVersion() {
6
6
  const nodeVersion = process.version;
7
- const majorVersion = parseInt(nodeVersion.slice(1).split(".")[0]);
8
- if (majorVersion < 22) {
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.9.0",
3
+ "version": "1.10.2",
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": "^5.6.2",
43
+ "chalk": "^6.0.1",
41
44
  "commander": "^11.1.0",
42
- "fs-extra": "^11.3.2",
43
- "inquirer": "^9.3.8",
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/inquirer": "^9.0.9",
49
- "@types/node": "^22.19.2",
51
+ "@types/node": "^22.20.5",
50
52
  "typescript": "^5.9.3"
51
53
  },
52
54
  "peerDependencies": {
@@ -5,13 +5,13 @@ import chalk from "chalk";
5
5
  */
6
6
  export function checkNodeVersion(): void {
7
7
  const nodeVersion = process.version;
8
- const majorVersion = parseInt(nodeVersion.slice(1).split(".")[0]);
8
+ const [major, minor] = process.versions.node.split(".").map(Number);
9
9
 
10
- if (majorVersion < 22) {
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
  );