Hello @raul_baricevic,
Greetings!
Yes, you can directly upgrade from 2.4.2 p1 to Magento 2.4.3 p1.
Here are the following requirements for upgrading from 2.4.2 p1 to Magento 2.4.3 p1.
Magento 2.4 supports PHP 7.4. so before going to upgrade set require a PHP version.
If you are planning to upgrade Magento 2.4.2-p1 to Magento 2.4.3 p1, there are a few changes that you need to do to your composer.json
Run below command step by step to upgrade Magento 2.4.2 p1 to Magento 2.4.3 p1:
1) cp composer.json composer.json.bak (this command create backup of composer.json)
2) composer require magento/product-community-edition=2.4.3-p1 --no-update
Now open composer.json file and do following required changes in version manually:
(a) "friendsofphp/php-cs-fixer": "~2.16.0"
(b) "magento/magento2-functional-testing-framework": "^3.0"
(c) "pdepend/pdepend": "~2.7.1"
(d) "phpmd/phpmd": "^2.8.0"
(e) "phpstan/phpstan": ">=0.12.3 <=0.12.23"
(f) "phpunit/phpunit": "^9"
(g) "sebastian/phpcpd": "~5.0.0"
(h) "squizlabs/php_codesniffer": "~3.5.4"
(4) Last and final step run following command:
composer update
After completing this command, you have to run the Magento setup upgrade, di compile, deploy command also.
I hope this will help you to upgrade your store.
If not, do not hesitate to contact us.
If worked, click KUDOS and accept as a solution.
Thank you!