Impossible to update drupal/core to 8.7.0 with Composer >= 1.7.3 if drupal/jsonapi is installed

Migrated issue

Reported by: br0ken

composer update installs drupal/core:8.7.0-alpha2 if you have jsonapi:1.24.

A try to composer require drupal/core:8.7.0 result in:

  Problem 1
    - don't install drupal/core 8.7.0|remove drupal/jsonapi 1.24.0
    - don't install drupal/jsonapi 1.24.0|don't install drupal/core 8.7.0
    - don't install drupal/core 8.7.0|don't install drupal/jsonapi 1.24.0
    - Installation request for drupal/core 8.7.0 -> satisfiable by drupal/core[8.7.0].
    - Installation request for drupal/jsonapi 1.24 -> satisfiable by drupal/jsonapi[1.24.0].

This means you cannot update to 8.7.0 unless removing jsonapi:1.24. However, the release notes says the opposite:

Sites using the 8.x-1.x branch may require changes to API clients, but the contributed module may be left in place with Drupal 8.7 until any needed conversions are complete.

Related issue: Issue #3020337

Related issue: Issue #3043975

Related issue: Issue #3005229

Edited by drupalbot