Skip to content

Best practice for plugin upgrade on major Craft releases #10210

Answered by brandonkelly
matfish2 asked this question in Q&A
Discussion options

You must be logged in to vote

I would definitely recommend keeping the same repo. A new repo would also mean a new plugin handle (both must be unique), which really means it would be treated as a whole new plugin, which would drastically complicate the upgrade process.

  1. How does Craft handle the same plugin for different major releases? e.g can both versions of the plugin co-exist in the store?

We keep track of which Craft version(s) each plugin/version is compatible with. The Plugin Store will only show plugins that have at least one version compatible with the current Craft version, and when you click Install, you will get the most recent compatible version.

So when Craft 4 is out, plugins can start releasing new…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by brandonkelly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants