sylvainjule / kirby-locator

A simple map & geolocation field, built on top of open-source services and Mapbox. Kirby 3 and 4.
99 stars 15 forks source link

Add composer version #54

Closed afbora closed 1 year ago

afbora commented 2 years ago

For 3.8 compatibility

renestalder commented 2 years ago

I thought this is discouraged?

Based on https://getcomposer.org/doc/04-schema.md#version

Optional if the package repository can infer the version from somewhere, such as the VCS tag name in the VCS repository. In that case it is also recommended to omit it.

Note: Packagist uses VCS repositories, so the statement above is very much true for Packagist as well. Specifying the version yourself will most likely end up creating problems at some point due to human error.

afbora commented 2 years ago

This is not a mandatory change, but is necessary so that it always displays the correct version no matter how the install to Kirby app.

You can check out following comments of mine and @lukasbestle https://github.com/getkirby/kirby/issues/4733#issuecomment-1264489117

renestalder commented 2 years ago

Ah, cool. Good to know. Thanks for the information. :)

lukasbestle commented 2 years ago

The migration guide for 3.8 will include this section with an explanation:

https://github.com/getkirby/getkirby.com/blob/01493db29551777cb1c9992cecb01054b68d5a7c/content/releases/3-8/2_migration-plugins/release-guide.txt#L42-L46