From 2d457b783a81164c7e8c22f45b11362ac7b34cdd Mon Sep 17 00:00:00 2001 From: isamu Date: Fri, 24 Jul 2026 13:03:34 +0900 Subject: [PATCH] chore: move gui-chat-protocol to peerDependencies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The protocol is provided by the host application (mulmocast / MulmoChat), so bundling it as a regular dependency risks two copies at runtime and breaks type/instance identity across the plugin boundary — the same reason `vue` is already a peer dependency here. - `dependencies.gui-chat-protocol` -> `peerDependencies` (same range) - kept in `devDependencies` so `yarn dev` / the demo still install it - README install command now shows `gui-chat-protocol` alongside the plugin, with a short note that it is a peer dependency No version bump and no publish — this only changes how the dependency is declared. Co-Authored-By: Claude Opus 4.7 (1M context) --- README.md | 5 ++++- package.json | 6 ++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f43ca4b..2bd152d 100644 --- a/README.md +++ b/README.md @@ -14,9 +14,12 @@ Google Map location plugin for GUI Chat applications. Display locations on an in ## Installation ```bash -yarn add @gui-chat-plugin/map +yarn add @gui-chat-plugin/map gui-chat-protocol ``` +> `gui-chat-protocol` is a peer dependency — install it alongside the plugin; the host application provides the runtime and this plugin only declares the compatible range. + + ## Usage ### Vue Integration diff --git a/package.json b/package.json index 90d9d9d..b86beae 100644 --- a/package.json +++ b/package.json @@ -30,9 +30,6 @@ "typecheck": "vue-tsc --noEmit", "lint": "eslint src" }, - "dependencies": { - "gui-chat-protocol": "^1.2.0" - }, "devDependencies": { "@eslint/js": "^10.0.1", "@tailwindcss/vite": "^4.3.3", @@ -51,6 +48,7 @@ "vue-tsc": "^3.3.8" }, "peerDependencies": { - "vue": "^3.5.0" + "vue": "^3.5.0", + "gui-chat-protocol": "^1.2.0" } }