From e5e5e7ebdea8836f284acd3bf8f9d3f5dcdc71eb Mon Sep 17 00:00:00 2001 From: Simon Guest Date: Thu, 22 Aug 2024 09:39:50 +1200 Subject: [PATCH] Update to 0.13.0, opportunistically claim Nu protocol compatability Plugin breakage will only occur if the protocol changes, not on harmless version bumps of Nu. Fixes #25 --- README.md | 31 ++++++++++++++++++------------- nu_plugin_bash_env | 4 ++-- 2 files changed, 20 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index d9ff5aa..0e36efb 100644 --- a/README.md +++ b/README.md @@ -20,19 +20,24 @@ Since Nushell 0.91.0 the plugin protocol was enhanced and now requires version c The following versions are compatible. -| Nushell | bash-env plugin | -| ------- | --------------- | -| 0.89 | 0.5.0 | -| 0.90 | 0.5.0 | -| 0.91 | 0.6.2 | -| 0.92 | 0.7.1 | -| 0.93 | 0.8.0 | -| 0.93 | 0.9.0 | -| 0.94 | 0.10.0 | -| 0.95 | 0.11.0 | -| 0.96 | 0.12.1 | - -If you find a new version of Nushell rejects this plugin as incompatible, please report an [issue](https://github.com/tesujimath/nu_plugin_bash_env/issues). +| Nushell | bash-env plugin | +| -------- | --------------- | +| 0.89 | 0.5.0 | +| 0.90 | 0.5.0 | +| 0.91 | 0.6.2 | +| 0.92 | 0.7.1 | +| 0.93 | 0.8.0 | +| 0.93 | 0.9.0 | +| 0.94 | 0.10.0 | +| 0.95 | 0.11.0 | +| 0.96 | 0.12.1 | +| 0.97+ | 0.13.0 | + +Since version 0.13, the plugin claims compatability with whatever version of Nu happens to be on the path. This avoids having to keep version-bumping the plugin for each new release of Nu. + +The drawback is unexpected breakage may occur. + +If you find a new version of Nushell breaks the plugin, please report an [issue](https://github.com/tesujimath/nu_plugin_bash_env/issues). ## Dependencies diff --git a/nu_plugin_bash_env b/nu_plugin_bash_env index 948c812..7ea24b1 100755 --- a/nu_plugin_bash_env +++ b/nu_plugin_bash_env @@ -22,8 +22,8 @@ # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -VERSION="0.12.1" -PROTOCOL_VERSION="0.96.1" +VERSION="0.13.0" +PROTOCOL_VERSION="$(nu --version)" shopt -s extglob