File tree Expand file tree Collapse file tree 15 files changed +40
-38
lines changed Expand file tree Collapse file tree 15 files changed +40
-38
lines changed Original file line number Diff line number Diff 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
3734 run : composer require "illuminate/database:^${{ 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
Original file line number Diff line number Diff line change 33All 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+ ## [ 3.0.0] - 2023-02-14
7+
8+ ### Changed
9+
10+ - Upgrade to Laravel 10 and set minimum PHP version to 8.1.
11+ - ** BREAKING** : The schema's id field must now always be provided to the ` CursorPagination::make() ` method and/or
12+ constructor.
13+
614## [ 2.1.0] - 2023-01-24
715
816### Added
Original file line number Diff line number Diff line change 2323 }
2424 ],
2525 "require" : {
26- "php" : " ^7.4|^8.0 " ,
26+ "php" : " ^8.1 " ,
2727 "ext-json" : " *" ,
28- "illuminate/database" : " ^8.0|^9 .0" ,
29- "illuminate/pagination" : " ^8.0|^9 .0" ,
30- "illuminate/support" : " ^8.0|^9 .0" ,
31- "laravel-json-api/eloquent" : " ^2 .0"
28+ "illuminate/database" : " ^10 .0" ,
29+ "illuminate/pagination" : " ^10 .0" ,
30+ "illuminate/support" : " ^10 .0" ,
31+ "laravel-json-api/eloquent" : " ^3 .0"
3232 },
3333 "require-dev" : {
34- "orchestra/testbench" : " ^6.23|^7 .0" ,
35- "phpunit/phpunit" : " ^9.5.10 "
34+ "orchestra/testbench" : " ^8 .0" ,
35+ "phpunit/phpunit" : " ^9.5.28 "
3636 },
3737 "autoload" : {
3838 "psr-4" : {
4848 },
4949 "extra" : {
5050 "branch-alias" : {
51- "dev-develop" : " 2 .x-dev"
51+ "dev-develop" : " 3 .x-dev"
5252 }
5353 },
5454 "minimum-stability" : " stable" ,
Original file line number Diff line number Diff line change 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.
Original file line number Diff line number Diff line change 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.
Original file line number Diff line number Diff line change 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.
Original file line number Diff line number Diff line change 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.
Original file line number Diff line number Diff line change 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.
@@ -31,11 +31,6 @@ class CursorPagination implements Paginator
3131{
3232 use HasPageMeta;
3333
34- /**
35- * @var ID|null
36- */
37- private ?ID $ id ;
38-
3934 /**
4035 * @var string
4136 */
@@ -79,22 +74,21 @@ class CursorPagination implements Paginator
7974 /**
8075 * Fluent constructor.
8176 *
82- * @param ID|null $id
77+ * @param ID $id
8378 * @return CursorPagination
8479 */
85- public static function make (ID $ id = null ): self
80+ public static function make (ID $ id ): self
8681 {
8782 return new static ($ id );
8883 }
8984
9085 /**
9186 * CursorPagination constructor.
9287 *
93- * @param ID|null $id
88+ * @param ID $id
9489 */
95- public function __construct (ID $ id = null )
90+ public function __construct (private readonly ID $ id )
9691 {
97- $ this ->id = $ id ;
9892 $ this ->before = 'before ' ;
9993 $ this ->after = 'after ' ;
10094 $ this ->limit = 'limit ' ;
Original file line number Diff line number Diff line change 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.
Original file line number Diff line number Diff line change 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.
You can’t perform that action at this time.
0 commit comments