From 048af28a5a5d139a6a99129d57e06e5c4216d091 Mon Sep 17 00:00:00 2001 From: Christopher Gammie Date: Sat, 28 Mar 2026 17:06:43 +0000 Subject: [PATCH] feat: add Laravel 13 compatibility --- .github/workflows/tests.yml | 18 ++++++++---------- CHANGELOG.md | 4 ++++ composer.json | 10 +++++----- 3 files changed, 17 insertions(+), 15 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0ccf703..fcf7653 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,16 +18,17 @@ jobs: strategy: fail-fast: true matrix: - php: [8.2, 8.3, 8.4] - core: ['4.3.2', '5.2'] - laravel: [11, 12] + php: [8.2, 8.3, 8.4, 8.5] + laravel: [11, 12, 13] exclude: - - laravel: 12 - core: '4.3.2' + - php: 8.5 + laravel: 11 + - php: 8.2 + laravel: 13 steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup PHP uses: shivammathur/setup-php@v2 @@ -38,14 +39,11 @@ jobs: coverage: none ini-values: error_reporting=E_ALL - - name: Set Laravel JSON:API Core Version - run: composer require "laravel-json-api/core:^${{ matrix.core }}" --no-update - - name: Set Laravel Version run: composer require "illuminate/contracts:^${{ matrix.laravel }}" --no-update - name: Install dependencies - uses: nick-fields/retry@v3 + uses: nick-fields/retry@v4 with: timeout_minutes: 5 max_attempts: 5 diff --git a/CHANGELOG.md b/CHANGELOG.md index 8df50d3..4fff715 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. This projec ## Unreleased +### Changed + +- Removed support for `laravel-json-api/core` v4. + ## [4.3.0] - 2025-02-24 ### Added diff --git a/composer.json b/composer.json index 9974f29..face5a0 100644 --- a/composer.json +++ b/composer.json @@ -25,12 +25,12 @@ "require": { "php": "^8.2", "ext-json": "*", - "illuminate/contracts": "^11.0|^12.0", - "illuminate/support": "^11.0|^12.0", - "laravel-json-api/core": "^4.3.2|^5.2" + "illuminate/contracts": "^11.0|^12.0|^13.0", + "illuminate/support": "^11.0|^12.0|^13.0", + "laravel-json-api/core": "^5.3" }, "require-dev": { - "orchestra/testbench": "^9.0|^10.0", + "orchestra/testbench": "^9.0|^10.0|^11.0", "phpunit/phpunit": "^10.5|^11.0" }, "autoload": { @@ -53,7 +53,7 @@ ] } }, - "minimum-stability": "stable", + "minimum-stability": "dev", "prefer-stable": true, "config": { "sort-packages": true