Skip to content

fix(links): check only declared minimum versions - #300

Merged
engram-design merged 1 commit into
verbb:craft-5from
robuust:feature/hyper-plugin-version
Nov 24, 2026
Merged

engram-design merged 1 commit into
verbb:craft-5from
robuust:feature/hyper-plugin-version

Conversation

@joostwaaijer

Copy link
Copy Markdown
Contributor

Hyper’s Product and Variant link types declare ['commerce'] as their requirement. When Craft reports a development branch such as dev-main, Hyper compares that version against an implicit minimum of 0 and drops both link types. As a result, GraphQL queries that reference their inline fragments fail even when Commerce is installed and enabled.

Use null for an unspecified minimum and call version_compare() only when a link type declares a minimum version. The installed and enabled checks still apply to every required plugin.

@engram-design
engram-design merged commit a203784 into verbb:craft-5 Nov 24, 2026
@engram-design

Copy link
Copy Markdown
Member

Thanks!

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.

2 participants