diff --git a/GOMC_REST_VERSION b/GOMC_REST_VERSION index b7c0a9b..a20e2d8 100644 --- a/GOMC_REST_VERSION +++ b/GOMC_REST_VERSION @@ -1 +1 @@ -v1.6.0 +v1.7.0 diff --git a/README.md b/README.md index d767cd3..685ad9b 100644 --- a/README.md +++ b/README.md @@ -107,12 +107,12 @@ boundary is the trust boundary here. ## Versions -This package bundles a pinned `gomc-rest` binary (currently **v1.6.0**, set in +This package bundles a pinned `gomc-rest` binary (currently **v1.7.0**, set in `GOMC_REST_VERSION`) that must satisfy `gomc-rest-client`'s `MINIMUM_SUPPORTED_GOMC_REST_VERSION`; `launch()` verifies this on startup. The -`gomc-rest-client` dependency is capped (`>=0.10.0,<0.11`) so a future client -that raises its minimum server version can't be installed without also bumping -the bundled binary. +`gomc-rest-client` dependency is capped (`>=1.0,<2`) so a breaking client +release can't be pulled in silently. If a 1.x client ever requires a newer +server than the bundled one, `launch()` fails at startup with a clear error. ## Development diff --git a/README_JP.md b/README_JP.md index 2e1743a..4bfa337 100644 --- a/README_JP.md +++ b/README_JP.md @@ -117,13 +117,14 @@ finally: ## バージョン 同梱するgomc-restのバージョンは `GOMC_REST_VERSION` で固定しています -(現在は **v1.6.0**)。`launch()` は起動時に、サーバーが +(現在は **v1.7.0**)。`launch()` は起動時に、サーバーが `gomc-rest-client` の `MINIMUM_SUPPORTED_GOMC_REST_VERSION` を満たしているか 確認します。 -`gomc-rest-client` の依存バージョンも `>=0.10.0,<0.11` に制限しています。 -これにより、より新しいサーバーを必要とするクライアントが意図せず -インストールされることを防ぎます。 +`gomc-rest-client` の依存バージョンは `>=1.0,<2` に制限しています +(破壊的変更はメジャーバージョンで入るため)。仮に 1.x のクライアントが +同梱サーバーより新しいバージョンを要求するようになった場合は、 +`launch()` が起動時に明確なエラーで停止します。 ## 開発者向け diff --git a/checksums/v1.7.0.sha256 b/checksums/v1.7.0.sha256 new file mode 100644 index 0000000..dc2eaf4 --- /dev/null +++ b/checksums/v1.7.0.sha256 @@ -0,0 +1,5 @@ +c8cf8beab397aacb09a11d80bd32d81b12e43cd22bd0b7885effdbeb9c2ddbc7 gomc-rest.exe +94080d929c15dc5d4b6af3bd02448bf08f535d6a55b224c8bc4793696cf1da33 gomc-rest-linux-amd64 +6614ec9a9dc3a8c9ecfa01b7ce56ce1d2f89a2f0e06711eac51001cbc0fe70c4 gomc-rest-linux-arm64 +55e7aa929149d2ad81c37b0eb08d087821dee77faa4ecbc5e8bb6a97ff44a7c3 gomc-rest-darwin-amd64 +a4059a9303a06bda79e08ebc34224514a6899dd58a1a099605ed66d7a0597181 gomc-rest-darwin-arm64 diff --git a/pyproject.toml b/pyproject.toml index 973e179..f9a5bda 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,10 +17,11 @@ keywords = ["mitsubishi", "plc", "mc-protocol", "slmp", "gomc-rest"] # HTTP layer is delegated to gomc-rest-client (pattern A). We only add the # bundled-binary + subprocess lifecycle on top. dependencies = [ - # Cap the client to a range known to accept the bundled server version - # (GOMC_REST_VERSION). A future client that raises its minimum server - # version must not be pulled in without bumping the bundled binary too. - "gomc-rest-client>=0.10.0,<0.11", + # Cap at the next major: the client follows semver from 1.0, so breaking + # API changes land in 2.x. If a 1.x release raises its minimum server + # version above the bundled one, launch() still fails loudly at startup + # via is_supported_version(), which is the backstop for that case. + "gomc-rest-client>=1.0,<2", ] [project.urls]