Updating and downgrading modules in Drupal 8 via composer
A short note on how to upgrade the module version through composer, for example, from alpha4 to alpha5. You just need to indicate the update of the module, without the version, and the most recent one, including the alpha, will be automatically pulled, using the example of the feeds module
composer update drupal/feeds --with-dependencies
Also, if it is necessary to downgrade a module, for example, if errors are pouring with the new version, but for the last work, for sure, we install the module with the required version, for example, the gin_toolbar module
composer require drupal/gin_toolbar:1.0.0-beta14
As a result, with the 19th version of the alpha installed, we will be supplied with the 14th version and thus we will be able to return to work.