As I'm fairly new to the Magento ecosystem, I'm wondering what the best practice is for writing extensions. Is it better to write an extension for each major release (2.0, 2.1, 2.2), or can one extension work on all releases?
I've written an extension for 2.1, and I'm trying to port it to 2.0, but I'm running into several problems, i. e. classes like
\Magento\Framework\App\Request\DataPersistorInterface are missing and XML tags like
listingToolbar aren't recognized. The
translate attribute is not allowed in menu.xml