meumobi / AMS.Connect

1 stars 0 forks source link

Upgrade composer packages #114

Closed vdias38 closed 4 years ago

vdias38 commented 4 years ago

run composer outdated to check packages to upgrade. Upgrade them when recommended.

danconte72 commented 4 years ago

Outdated options

composer->doc->outdated -f json json do be more readable -m to check only minors updates

Finding out outdated packages

$ composer outdated -m -f json

MacBook-Pro-de-Daniel:AMS.Connect danielconte$ composer outdated -m -f json
{
    "installed": [
        {
            "name": "aws/aws-sdk-php",
            "version": "3.36.33",
            "latest": "3.112.28",
            "latest-status": "semver-safe-update",
            "description": "AWS SDK for PHP - Use Amazon Web Services in your PHP project"
        },
        ....
    ]
}

Running Update

$ composer update --ignore-platform-reqs --prefer-stable --dry-run

MacBook-Pro-de-Daniel:AMS.Connect danielconte$ composer update --ignore-platform-reqs --prefer-stable  --dry-run
Loading composer repositories with package information
Updating dependencies (including require-dev)
file_put_contents(/Users/danielconte/.composer/cache/repo/https---repo.packagist.org/provider-symfony$polyfill-php73.json): failed to open stream: Permission denied
http://repo.packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date
Package operations: 8 installs, 44 updates, 0 removals
  - Installing kylekatarnls/update-helper (1.2.0)
  - Installing symfony/polyfill-ctype (v1.12.0)
  - Updating vlucas/phpdotenv (v2.4.0) to vlucas/phpdotenv (v2.6.1)
  - Installing ralouphie/getallheaders (3.0.3)
  - Updating guzzlehttp/psr7 (1.4.2) to guzzlehttp/psr7 (1.6.1)
  - Updating guzzlehttp/guzzle (6.3.0) to guzzlehttp/guzzle (6.4.1)
  - Updating paragonie/random_compat (v2.0.11) to paragonie/random_compat (v2.0.18)
  - Updating phpseclib/phpseclib (2.0.7) to phpseclib/phpseclib (2.0.23)
  - Updating psr/log (1.0.2) to psr/log (1.1.1)
  - Updating monolog/monolog (1.23.0) to monolog/monolog (1.25.1)
  - Updating google/apiclient-services (v0.31) to google/apiclient-services (v0.120)
  - Updating google/auth (v1.1.0) to google/auth (v1.6.0)
  - Updating google/apiclient (v2.2.0) to google/apiclient (v2.4.0)
  - Updating lcobucci/jwt (3.2.2) to lcobucci/jwt (3.3.1)
  - Updating fig/http-message-util (1.1.2) to fig/http-message-util (1.1.3)
  - Installing psr/simple-cache (1.0.1)
  - Installing kreait/clock (1.0.1)
  - Updating kreait/firebase-tokens (1.6.1) to kreait/firebase-tokens (1.9.2)
  - Updating kreait/firebase-php (3.3.2) to kreait/firebase-php (3.9.3)
  - Updating aws/aws-sdk-php (3.36.33) to aws/aws-sdk-php (3.112.28)
  - Updating league/flysystem (1.0.41) to league/flysystem (1.0.57)
  - Updating league/flysystem-aws-s3-v3 (1.0.18) to league/flysystem-aws-s3-v3 (1.0.23)
  - Updating fzaninotto/faker (v1.7.1) to fzaninotto/faker (v1.8.0)
  - Updating myclabs/deep-copy (1.7.0) to myclabs/deep-copy (1.9.3)
  - Updating symfony/yaml (v3.3.10) to symfony/yaml (v4.3.5)
  - Updating webmozart/assert (1.2.0) to webmozart/assert (1.5.0)
  - Updating phpdocumentor/reflection-common (1.0.1) to phpdocumentor/reflection-common (2.0.0)
  - Updating phpdocumentor/type-resolver (0.4.0) to phpdocumentor/type-resolver (1.0.1)
  - Updating phpdocumentor/reflection-docblock (4.1.1) to phpdocumentor/reflection-docblock (4.3.2)
  - Updating doctrine/instantiator (1.1.0) to doctrine/instantiator (1.2.0)
  - Updating phpspec/prophecy (v1.7.2) to phpspec/prophecy (1.9.0)
  - Updating phpunit/php-token-stream (2.0.1) to phpunit/php-token-stream (2.0.2)
  - Updating phpunit/php-file-iterator (1.4.2) to phpunit/php-file-iterator (1.4.5)
  - Updating phpunit/phpunit (5.7.23) to phpunit/phpunit (5.7.27)
  - Updating mockery/mockery (0.9.9) to mockery/mockery (0.9.11)
  - Updating mtdowling/cron-expression (v1.2.0) to mtdowling/cron-expression (v1.2.1)
  - Updating nikic/fast-route (v1.2.0) to nikic/fast-route (v1.3.0)
  - Updating symfony/debug (v3.3.10) to symfony/debug (v3.4.32)
  - Updating symfony/polyfill-mbstring (v1.6.0) to symfony/polyfill-mbstring (v1.12.0)
  - Installing symfony/polyfill-php70 (v1.12.0)
  - Updating symfony/http-foundation (v3.3.10) to symfony/http-foundation (v3.4.32)
  - Installing symfony/event-dispatcher-contracts (v1.1.7)
  - Updating symfony/event-dispatcher (v3.3.10) to symfony/event-dispatcher (v4.3.5)
  - Updating symfony/http-kernel (v3.3.10) to symfony/http-kernel (v3.4.32)
  - Installing symfony/translation-contracts (v1.1.7)
  - Updating symfony/translation (v3.3.10) to symfony/translation (v4.3.5)
  - Updating nesbot/carbon (1.22.1) to nesbot/carbon (1.39.1)
  - Updating symfony/process (v3.3.10) to symfony/process (v3.4.32)
  - Updating doctrine/inflector (v1.2.0) to doctrine/inflector (v1.3.0)
  - Updating symfony/finder (v3.3.10) to symfony/finder (v3.4.32)
  - Updating symfony/console (v3.3.10) to symfony/console (v3.4.32)
  - Updating niellles/lumen-commands (dev-master 1897398) to niellles/lumen-commands (dev-master fa195a4)
symfony/event-dispatcher-contracts suggests installing psr/event-dispatcher

Run without dry run Re-run Outdated to check the status after update

MacBook-Pro-de-Daniel:AMS.Connect danielconte$ composer outdated -m
illuminate/auth              v5.4.36 v5.8.35 The Illuminate Auth package.
illuminate/broadcasting      v5.4.36 v5.8.35 The Illuminate Broadcasting package.
illuminate/bus               v5.4.36 v5.8.35 The Illuminate Bus package.
illuminate/cache             v5.4.36 v5.8.35 The Illuminate Cache package.
illuminate/config            v5.4.36 v5.8.35 The Illuminate Config package.
illuminate/console           v5.4.36 v5.8.35 The Illuminate Console package.
illuminate/container         v5.4.36 v5.8.35 The Illuminate Container package.
illuminate/contracts         v5.4.36 v5.8.35 The Illuminate Contracts package.
illuminate/database          v5.4.36 v5.8.35 The Illuminate Database package.
illuminate/encryption        v5.4.36 v5.8.35 The Illuminate Encryption package.
illuminate/events            v5.4.36 v5.8.35 The Illuminate Events package.
illuminate/filesystem        v5.4.36 v5.8.35 The Illuminate Filesystem package.
illuminate/hashing           v5.4.36 v5.8.35 The Illuminate Hashing package.
illuminate/http              v5.4.36 v5.8.35 The Illuminate Http package.
illuminate/pagination        v5.4.36 v5.8.35 The Illuminate Pagination package.
illuminate/pipeline          v5.4.36 v5.8.35 The Illuminate Pipeline package.
illuminate/queue             v5.4.36 v5.8.35 The Illuminate Queue package.
illuminate/session           v5.4.36 v5.8.35 The Illuminate Session package.
illuminate/support           v5.4.36 v5.8.35 The Illuminate Support package.
illuminate/translation       v5.4.36 v5.8.35 The Illuminate Translation package.
illuminate/validation        v5.4.36 v5.8.35 The Illuminate Validation package.
illuminate/view              v5.4.36 v5.8.35 The Illuminate View package.
laravel/lumen-framework      v5.4.7  v5.8.13 The Laravel Lumen Framework.
phpunit/phpunit-mock-objects 3.4.4   3.4.4   Mock Object library for PHPUnit

Iluminate packages were not updated, because Lumen v5.4.7 requires illuminate packages on v5.4.* To update lumen it demands changes as seen on Lumen Upgrade Guide. This should be done in another issue

danconte72 commented 4 years ago

Upgrade Lumen demands several changes based on Laravel Upgrade Guide like

If you were using the configureMonologUsing method to customize the Monolog instance for your application, you should now create a custom Log channel.