Skip to content

Conversation

@benfrancis
Copy link
Member

@benfrancis benfrancis commented Oct 7, 2025

Make Zigbee Adapter 0.23 available, but only for gateways running Node.js 20.

Note: Excludes Darwin because addon-builder currently broken on macOS.

@benfrancis benfrancis changed the title Make Zigbee Adapter v0.23 available to gateway 2.0.0-alpha.1 and above Make Zigbee Adapter v0.23 available when running node20 Oct 7, 2025
@benfrancis benfrancis changed the title Make Zigbee Adapter v0.23 available when running node20 Make Zigbee Adapter v0.23 available when running Node.js 20 Oct 7, 2025
@benfrancis
Copy link
Member Author

benfrancis commented Oct 7, 2025

I wanted to make this only available to gateway version 2.0.0-alpha.1 and above, but that's a bit tricky without also making the adapter completely unavailable to 1.x versions of the gateway.

  • The regex used in the automatic checks in addon-list doesn't allow pre-release semver versions
  • If I set the minimum version to 2.0.0 I don't think it will be visible for a gateway running 2.0.0-alpha.1 or 2.0.0-beta.1 because it will evaluate as being not a new enough gateway version
  • If I set the minimum version as 2.0.0 in the addon-list only for gateways running node.js 20, the minimum version in the list won't match the minimum version in package.json
  • If I change the minimum gateway version in package.json to 2.0.0 then 1.x gateways won't be able to install the zigbee-addon

Therefore setting the minimum gateway version to 1.0.0 but requiring Node.js 20 (aka 115), it will allow the new version of the add-on to be installed on any gateway 1.0.0 and above running Node.js 20. Given gateway 1.0.0 doesn't work with Node.js 20 I think it's safe to rely on that, until such a time as we can deprecate 1.x.

@benfrancis benfrancis merged commit cd9a924 into WebThingsIO:master Oct 10, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant