bithost-gmbh / pdfviewhelpers

TYPO3 CMS extension that provides various Fluid ViewHelpers to generate PDF documents.
GNU General Public License v3.0
44 stars 19 forks source link

TYPO3 dependency in composer.json is improvable #196

Closed h-e-l-l-o-w-o-r-l-d closed 2 years ago

h-e-l-l-o-w-o-r-l-d commented 2 years ago

Hi,

I see several problems with your json dependency:

To sum it up:

Now: "typo3/cms-core": ">=v9.5.0 <11.5.99", Should be: "typo3/cms-core": ">=9.5.0, <=11.5.99",

maechler commented 2 years ago

Hi @h-e-l-l-o-w-o-r-l-d

I agree that the version constraints could be improved, I disagree however that they are currently wrong. Your tool should be capable of reading such a version constraint (without comma and with <) because it is perfectly valid. Also see: https://getcomposer.org/doc/articles/versions.md

Changing it to <=11.5.99 does not make a whole lot of a difference, it just additionally allows for 11.5.99, but would still fail for 11.5.100. Thus I would recommend changing it to ^9.5 || ^10.4 || ^11.5.

h-e-l-l-o-w-o-r-l-d commented 2 years ago

You are of course right, sorry. The tool is fine without comma, just the < needs some tweaking.

However, it's a bit off from other extensions. And <= instead of < is more logical, because the version you see is in the range then, which is easier to grasp. ;)

Your suggestion with || is probably the best anyway, so go for it.