Skip to content

Commit 1524e33

Browse files
authored
Merge pull request #23 from albetnov/2.x
2.x
2 parents deed8ab + 3627560 commit 1524e33

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+788
-1217
lines changed

.github/workflows/get-code-coverage.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Setup PHP
1313
uses: shivammathur/setup-php@v2
1414
with:
15-
php-version: '8.1'
15+
php-version: '8.2'
1616
extensions: 'xdebug'
1717

1818
- name: Install Dependencies

.github/workflows/phpstan.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Setup PHP
1717
uses: shivammathur/setup-php@v2
1818
with:
19-
php-version: '8.1'
19+
php-version: '8.2'
2020
coverage: none
2121

2222
- name: Install composer dependencies

.github/workflows/run-tests.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ jobs:
1313
fail-fast: true
1414
matrix:
1515
os: [ubuntu-latest, windows-latest]
16-
php: [8.2, 8.1]
17-
laravel: [10.*, 9.*]
16+
php: [8.3]
17+
laravel: [12.*, 11.*]
1818
stability: [prefer-lowest, prefer-stable]
1919
include:
20-
- laravel: 10.*
21-
testbench: 8.*
22-
carbon: ^2.65
23-
- laravel: 9.*
24-
testbench: 7.*
25-
carbon: ^2.63
20+
- laravel: 12.*
21+
testbench: 10.*
22+
carbon: ^3.8
23+
- laravel: 11.*
24+
testbench: 9.*
25+
carbon: ^3.8
2626

2727
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
2828

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.idea
22
.phpunit.result.cache
3+
.phpunit.cache
34
build
45
composer.lock
56
coverage

CHANGELOG.md

+20
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,23 @@ Albet\SanctumRefresh\Traits\HasRefreshableToken::class
8888
```php
8989
Albet\SanctumRefresh\Repositories\RefreshTokenRepository::class
9090
```
91+
92+
## 2.0.1
93+
94+
Apart from being 1 version difference from beta, this version introduces major changes including breaking ones:
95+
96+
- Removed `Albet\SanctumRefresh\Helpers\CheckForRefreshToken` class
97+
- Removed `config_builder` in favor of `Albet\SanctumRefresh\Factories\TokenConfig` class
98+
- Removed `getToken` from `Albet\SanctumRefresh\Factories\Token` class
99+
- Removed `sanctum_refresh` entry from the `sanctum_refresh.php` config file
100+
- Removed `AuthController` and its affected routes (`login`, `refresh`)
101+
- Removed `InvalidModelException`, `InvalidTokenException`, `MustExtendsHasApiTokens` exceptions in favor of `SanctumRefreshExceptions`
102+
- Removed `Albet\SanctumRefresh\Helpers\CheckForRefreshToken` helper in favor of `Albet\SanctumRefresh\Helpers::getRefreshToken`
103+
- Renamed `revokeRefreshTokenFromTokenId` to `revokeFromTokenId` in `RefreshTokenRepository`
104+
- Renamed `revokeRefreshTokenFromToken` to `revokeFromTokenText` in `RefreshTokenRepository`
105+
- Removed `LoginRequest`
106+
- Removed `boot` and `routes` method in SanctumRefresh facade
107+
- Renamed `HasRefreshable` to `HasRefreshableToken`
108+
- Added `WithRefreshable` trait for relationship with `RefreshToken` model
109+
110+
and many more changes can be check on: https://github.com/albetnov/sanctum-refresh/compare/2.0.0-beta...2.x

0 commit comments

Comments
 (0)