Open-EO / openeo-js-client

JavaScript and TypeScript client for the openEO API.
https://open-eo.github.io/openeo-js-client/latest/
Apache License 2.0
15 stars 6 forks source link

Set MAX_API_VERSION to allow patch releases #40

Closed marcjansen closed 3 years ago

marcjansen commented 3 years ago

Previously a server that responded with "api_version": "1.0.1" would be considered to be not supported, as

Versions.compare('1.0.1', '1', "<=")

… correctly evaluates to false. Changing the maximum supprted API version to allow patch releases fixes this.

This is also in concordance with the supported version range of the README.

The testfailure happens for me locally with or without this patch being applied.

I wasn't sure whether to point this PR towards the master or development branch.

Please review.

mmacata commented 3 years ago

Locally tested, works for me with https://openeo.mundialis.de/.well-known/openeo (api_version 1.0.1). Thanks!