Skip to content

Commit 3d7a6f0

Browse files
committed
Merge branch 'release/2.0.0'
2 parents 28f4b3a + f38746e commit 3d7a6f0

File tree

9 files changed

+44
-51
lines changed

9 files changed

+44
-51
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,12 @@ jobs:
1414
strategy:
1515
fail-fast: true
1616
matrix:
17-
php: [7.4, '8.0', 8.1]
18-
laravel: [8, 9]
19-
exclude:
20-
- php: 7.4
21-
laravel: 9
17+
php: [8.1, 8.2]
18+
laravel: [10]
2219

2320
steps:
2421
- name: Checkout Code
25-
uses: actions/checkout@v2
22+
uses: actions/checkout@v3
2623

2724
- name: Setup PHP
2825
uses: shivammathur/setup-php@v2
@@ -37,7 +34,7 @@ jobs:
3734
run: composer require "laravel/framework:^${{ matrix.laravel }}" --no-update
3835

3936
- name: Install dependencies
40-
uses: nick-invision/retry@v1
37+
uses: nick-fields/retry@v2
4138
with:
4239
timeout_minutes: 5
4340
max_attempts: 5

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
vendor/
22
composer.lock
3-
.phpunit.result.cache
3+
.phpunit.cache/

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
All notable changes to this project will be documented in this file. This project adheres to
44
[Semantic Versioning](http://semver.org/) and [this changelog format](http://keepachangelog.com/).
55

6+
## [2.0.0] - 2023-02-27
7+
8+
### Changed
9+
10+
- Minimum PHP version is now 8.1.
11+
- Upgraded to Laravel 10, dropping support for 8 and 9.
12+
613
## [1.1.0] - 2022-02-09
714

815
### Added

composer.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@
2323
}
2424
],
2525
"require": {
26-
"php": "^7.4|^8.0",
27-
"laravel-json-api/core": "^1.0|^2.0",
28-
"laravel-json-api/eloquent": "^1.0.1|^2.0",
29-
"vinkla/hashids": "^9.1|^10.0"
26+
"php": "^8.1",
27+
"laravel-json-api/core": "^3.0",
28+
"laravel-json-api/eloquent": "^3.0",
29+
"vinkla/hashids": "^11.0"
3030
},
3131
"require-dev": {
32-
"orchestra/testbench": "^6.23|^7.0",
33-
"phpunit/phpunit": "^9.5.10"
32+
"orchestra/testbench": "^8.0",
33+
"phpunit/phpunit": "^10.0"
3434
},
3535
"autoload": {
3636
"psr-4": {
@@ -44,7 +44,7 @@
4444
},
4545
"extra": {
4646
"branch-alias": {
47-
"dev-develop": "1.x-dev"
47+
"dev-develop": "2.x-dev"
4848
}
4949
},
5050
"minimum-stability": "stable",

phpunit.xml

Lines changed: 21 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,23 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
backupGlobals="false"
4-
backupStaticAttributes="false"
5-
beStrictAboutTestsThatDoNotTestAnything="false"
6-
bootstrap="vendor/autoload.php"
7-
colors="true"
8-
convertErrorsToExceptions="true"
9-
convertNoticesToExceptions="true"
10-
convertWarningsToExceptions="true"
11-
convertDeprecationsToExceptions="true"
12-
processIsolation="false"
13-
stopOnError="false"
14-
stopOnFailure="false"
15-
verbose="true"
16-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
17-
>
18-
<coverage>
19-
<include>
20-
<directory suffix=".php">src/</directory>
21-
</include>
22-
</coverage>
23-
<testsuites>
24-
<testsuite name="Unit">
25-
<directory suffix="Test.php">./tests/Unit/</directory>
26-
</testsuite>
27-
<testsuite name="Integration">
28-
<directory suffix="Test.php">./tests/Integration/</directory>
29-
</testsuite>
30-
</testsuites>
31-
<php>
32-
<ini name="error_reporting" value="E_ALL"/>
33-
</php>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false"
3+
beStrictAboutTestsThatDoNotTestAnything="false" bootstrap="vendor/autoload.php" colors="true"
4+
processIsolation="false" stopOnError="false" stopOnFailure="false"
5+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd" cacheDirectory=".phpunit.cache"
6+
backupStaticProperties="false">
7+
<coverage>
8+
<include>
9+
<directory suffix=".php">src/</directory>
10+
</include>
11+
</coverage>
12+
<testsuites>
13+
<testsuite name="Unit">
14+
<directory suffix="Test.php">./tests/Unit/</directory>
15+
</testsuite>
16+
<testsuite name="Integration">
17+
<directory suffix="Test.php">./tests/Integration/</directory>
18+
</testsuite>
19+
</testsuites>
20+
<php>
21+
<ini name="error_reporting" value="E_ALL"/>
22+
</php>
3423
</phpunit>

src/HashId.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/*
3-
* Copyright 2022 Cloud Creativity Limited
3+
* Copyright 2023 Cloud Creativity Limited
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

tests/Integration/Test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/*
3-
* Copyright 2022 Cloud Creativity Limited
3+
* Copyright 2023 Cloud Creativity Limited
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

tests/Integration/TestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/*
3-
* Copyright 2022 Cloud Creativity Limited
3+
* Copyright 2023 Cloud Creativity Limited
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

tests/Integration/TestModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/*
3-
* Copyright 2022 Cloud Creativity Limited
3+
* Copyright 2023 Cloud Creativity Limited
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy