GetPublii / Publii

The most intuitive Static Site CMS designed for SEO-optimized and privacy-focused websites.
https://getpublii.com
GNU General Public License v3.0
6.06k stars 407 forks source link

[Feature Request]: Plugin .json file needs to be flexible when setting the publii version(s) - e.g. semantic versioning #1281

Open reedjones opened 8 months ago

reedjones commented 8 months ago

Feature Description

right now the plugin.json file has minimumPubliiVersion this should just be PubliiVersion, and support minimum, maximum, latest, etc... and if it's not set it should default to latest

should use semantic versioning like npm's package.json

{
  "publiiVersion": "^1.0.0 | ~1.0.4 | * | etc... "
}

@svallory I was looking for the same. I found a post from Tomasz Dziuda in the forum from August 13th:

At this moment documentation for the plugins is unavailable, because plugins API is still experimental, and we want to share documentation, when we will know that API is stable to avoid situation that some Publii changes in API will break plugins created by community.

The plugin API itself should always be expected to change and potentially break plugins. It should be up to the plugin if it needs to be pinned to a specific Publii version, etc...

related https://github.com/GetPublii/Publii/issues/1152 https://github.com/GetPublii/Publii/issues/1279