Become compatible with Drupal 9.1
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3187549. -->
Reported by: [auth](https://www.drupal.org/user/378489)
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>Drupal core made the class \Drupal\jsonapi\ResourceResponse not implement CacheableResponseInterface anymore. This introduces issues for the module in 9.1. The new class Drupal\jsonapi\CacheableResourceResponse can be used on Drupal >= 9.1.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Use the new class Drupal\jsonapi\CacheableResourceResponse if it exists but use \Drupal\jsonapi\ResourceResponse as a fallback to not force everyone to update to Drupal 9.1 immediately.</p>
issue