Sfoglia il codice sorgente

chore(deps): migrate zod 3 -> 4.6.7

- runtime dependency major; @modelcontextprotocol/sdk 1.32.x peer explicitly
  supports zod ^3.25 || ^4.0
- tool schemas use only APIs that are stable across v4 (z.string/z.number/
  z.boolean/z.array/z.enum + min/max/optional/default/describe/coerce)
- verified end-to-end over stdio MCP handshake: initialize + tools/list
  (10 read tools / 16 with WIKIJS_ENABLE_EDIT) and tools/call validation
  both reject missing args (-32602) and pass valid ones

Gate: lint clean, tsc clean, jest 2/2 green
Paul Klumpp 2 settimane fa
parent
commit
8acb48b2f8
2 ha cambiato i file con 13 aggiunte e 7 eliminazioni
  1. 4 4
      package-lock.json
  2. 9 3
      package.json

+ 4 - 4
package-lock.json

@@ -14,7 +14,7 @@
 				"graphql": "^16.11.0",
 				"graphql-request": "^7.2.0",
 				"graphql-tag": "^2.12.6",
-				"zod": "^3.25.64"
+				"zod": "^4.6.7"
 			},
 			"bin": {
 				"wikijs-mcp-edit": "build/index.js"
@@ -10919,9 +10919,9 @@
 			}
 		},
 		"node_modules/zod": {
-			"version": "3.25.76",
-			"resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz",
-			"integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==",
+			"version": "4.6.7",
+			"resolved": "https://registry.npmjs.org/zod/-/zod-4.6.7.tgz",
+			"integrity": "sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg==",
 			"license": "MIT",
 			"funding": {
 				"url": "https://github.com/sponsors/colinhacks"

+ 9 - 3
package.json

@@ -17,7 +17,13 @@
 		"url": "https://github.com/cahaseler/wikijs-mcp/issues"
 	},
 	"homepage": "https://github.com/cahaseler/wikijs-mcp#readme",
-	"keywords": ["mcp", "wikijs", "model-context-protocol", "ai", "assistant"],
+	"keywords": [
+		"mcp",
+		"wikijs",
+		"model-context-protocol",
+		"ai",
+		"assistant"
+	],
 	"files": [
 		"build/**/*",
 		"README.md",
@@ -38,11 +44,11 @@
 	},
 	"dependencies": {
 		"@modelcontextprotocol/sdk": "^1.12.3",
-		"zod": "^3.25.64",
 		"dotenv": "^16.3.1",
 		"graphql": "^16.11.0",
 		"graphql-request": "^7.2.0",
-		"graphql-tag": "^2.12.6"
+		"graphql-tag": "^2.12.6",
+		"zod": "^4.6.7"
 	},
 	"devDependencies": {
 		"@graphql-codegen/cli": "^5.0.7",