Skip to content

Commit

Permalink
Merge branch '3.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
irfan-dahir committed May 24, 2022
2 parents b1d5326 + 3803cc1 commit 1e72498
Show file tree
Hide file tree
Showing 265 changed files with 9,029 additions and 1,649 deletions.
152 changes: 76 additions & 76 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,46 +59,46 @@ $genres = $jikan->getMangaGenres(

- Parser bug fixes
- Improved image quality parsing for some requests
`\Jikan\Helper\Parser::parseImageQuality($imageUrl)` now removes `v` from the end of images, which resulted in a smaller thumbnail
`\Jikan\Helper\Parser::parseImageQuality($imageUrl)` now removes `v` from the end of images, which resulted in a smaller thumbnail


### 2.9.0 - Nov 11, 19
- **[Anime Episode Details]**
- Added feature request [jikan#229](https://github.com/jikan-me/jikan/issues/229)
- Added feature request [jikan#229](https://github.com/jikan-me/jikan/issues/229)
- **[User Profile]**
- Added `userId` property [jikan-rest#74](https://github.com/jikan-me/jikan-rest/issues/74)
- Added `userId` property [jikan-rest#74](https://github.com/jikan-me/jikan-rest/issues/74)

### 2.8.6 - Aug 18, 19
- Bug fixes
- **[Search]**
- Throws `BadResponseException` if search query is < 3
- Throws `BadResponseException` if search query is < 3

### 2.8.0 - Apr 30, 19
- **[User List : Anime|Manga]**
- Throw `BadResponseException` instead of `ParserException` when the request fails [#217](/../../issues/217)
- Add list filtering & sorting [jikan-rest#49](https://github.com/jikan-me/jikan-rest/issues/49)
- Replace `StudioMeta`, `LicensorMeta` & `MagazineMeta` with `MalUrl` intead
- This will further provide properties like `type`, `url`
- Throw `BadResponseException` instead of `ParserException` when the request fails [#217](/../../issues/217)
- Add list filtering & sorting [jikan-rest#49](https://github.com/jikan-me/jikan-rest/issues/49)
- Replace `StudioMeta`, `LicensorMeta` & `MagazineMeta` with `MalUrl` intead
- This will further provide properties like `type`, `url`
- **[Search : Anime|Manga]**
- Add result ordering & sorting [jikan-rest#48](https://github.com/jikan-me/jikan-rest/issues/48)
- Add result ordering & sorting [jikan-rest#48](https://github.com/jikan-me/jikan-rest/issues/48)

### 2.7.0 - Apr 14, 19
- **[Anime|Manga]**
- `EpisodeListItem` `aired` property to return `DateTimeImmutable` instead of `DateRange`
- [Bug Fix] Stats Score refactoring; returns `AnimeStatsScore`/`MangaStatsScore` object instead of array now - [#216](/../../issues/216)
- Fix `AnimeListItem`/`MangaListItem` parsing date formats incorrectly
- **[Anime|Manga]**
- `EpisodeListItem` `aired` property to return `DateTimeImmutable` instead of `DateRange`
- [Bug Fix] Stats Score refactoring; returns `AnimeStatsScore`/`MangaStatsScore` object instead of array now - [#216](/../../issues/216)
- Fix `AnimeListItem`/`MangaListItem` parsing date formats incorrectly
- **[Helper]** fix `parseDateMDY` returning incorrect date
- **[Jikan.php]**
- fix `PersonSearch`incorrect Request class hinting
- add `UserMangaList`
- fix `PersonSearch`incorrect Request class hinting
- add `UserMangaList`
- **[MalClient.php]**
- `getAnimeEpisodes` with no episodes return empty episodes array now instead of BadResponseException (404)
- `getPersonSearch` with no results returns empty array now instead of BadResponseException (404)
- `getCharacterSearch` with no results returns empty array now instead of BadResponseException (404)
- `getCharacter` returns BadResponseException (404) now if invalid ID is provided
- Fix guzzle dep injection being overriden in some cases
- `getAnimeEpisodes` with no episodes return empty episodes array now instead of BadResponseException (404)
- `getPersonSearch` with no results returns empty array now instead of BadResponseException (404)
- `getCharacterSearch` with no results returns empty array now instead of BadResponseException (404)
- `getCharacter` returns BadResponseException (404) now if invalid ID is provided
- Fix guzzle dep injection being overriden in some cases
- **[User]**
- Fix `UserProfileParser`'s `getUsername()` returning the URL instead of the username
- Fix `UserProfileParser`'s `getUsername()` returning the URL instead of the username
- Added default values to some models
- Other minor code and bug fixes

Expand Down Expand Up @@ -144,24 +144,24 @@ $genres = $jikan->getMangaGenres(

### 2.0.0-rc.1 - Aug 5, 18
- Complete refactor using better dependencies
- Parser is more robust and stable
- Library now implements PSR2
- Parser is more robust and stable
- Library now implements PSR2
- Clean data values
- Added **Season List**
- Added **Top**
- Characters
- People
- Characters
- People
- Added **Genre**
- Anime listing by genre
- Manga listing by genre
- Anime listing by genre
- Manga listing by genre
- Added **Producers**
- Anime listing by producer
- Anime listing by producer
- Added **Magazine**
- Manga listing by magazine
- Manga listing by magazine
- Added **User**
- Profile
- History
- Friends
- Profile
- History
- Friends
- Complete syntax revamp
- And a whole lot more!

Expand All @@ -184,14 +184,14 @@ $genres = $jikan->getMangaGenres(
- Only supported for `ANIME` and `MANGA` type searches

### 1.15.9 stable - May 14, 18
- **[Search]**
- **[Search]**
- Bug fix for `genre`, `genreInclude`, `startDate` & `endDate`
- **[SearchConfig]** `Jikan\Helpers\SearchConfig`
- `setGenre` now no longer takes an array for multiple genres, but rather Variadic arguments.
e.g `setGenre(1, 18)`
e.g `setGenre(1, 18)`

### 1.15.8 stable - May 12, 18
- **[Search]**
- **[Search]**
- Bug fix for [#139](/../../issues/139) - 1.15.6
- Bug fix for [#138](/../../issues/138) - 1.15.7
- HTML special character decode for some titles
Expand Down Expand Up @@ -240,7 +240,7 @@ $genres = $jikan->getMangaGenres(

### 1.9.0 stable - March 3, 18
- **[Anime|Manga]**
- Add extended data "forum topics" parsing [#19](/../../issues/19) - 1.8.0
- Add extended data "forum topics" parsing [#19](/../../issues/19) - 1.8.0
- Add extended data "more_info" parsing [#17](/../../issues/17)

### 1.7.2 stable - February 25, 18
Expand All @@ -260,7 +260,7 @@ $genres = $jikan->getMangaGenres(
### 1.6.2 stable - January 26, 18
- **[Anime|Manga]**
- Add stats parsing - 1.6.0
- **[Core]**
- **[Core]**
- Fixed an impactful bug which had the parser requesting the page *twice* in some extend cases (was i drunk coding this part?!) - 1.6.1
- Was doubling chances of rate limiting
- Slowing down the script 2x
Expand Down Expand Up @@ -318,7 +318,7 @@ $genres = $jikan->getMangaGenres(
- Fixed parsing bug for anime and manga that only have one `aired` and `published` date.

### 1.2.0 stable - December 2, 17
- **[Anime|Manga]**
- **[Anime|Manga]**
- Convert Dates to ISO Format - Enhancement [#72](/../../issues/72)
- `aired` will now be an array returning ISO 8601
- You can find the string version of the date, like before, in a new field; `aired_string`
Expand All @@ -327,7 +327,7 @@ $genres = $jikan->getMangaGenres(
- Remmoved extra forward slash in the related item URL
- Added boolean field `airing` & `publishing` for anime & manga respectively
- **[Manga]** Removed extra whitespace for `title_japanese`
- **[Person]**
- **[Person]**
- Fixed `More` field not parsing - Issue [#61](/../../issues/61)
- Changed `website` to `website_url`

Expand All @@ -346,7 +346,7 @@ $genres = $jikan->getMangaGenres(
- **[Character]** Added `link_canonical`

### 1.1.0 stable - November 9, 17
- **[Character]**
- **[Character]**
- Fixed name having whitespace appended to it
- Fixed name not showing up for characters without kanji names
- Rename name_japanese -> name_kanji (since that's what it actually is)
Expand All @@ -356,18 +356,18 @@ $genres = $jikan->getMangaGenres(

### 1.0.1 stable - October 5, 17
- **[Anime]**
- Fixed [#65](/../../issues/65)
- Fixed [#65](/../../issues/65)

### 1.0.0 stable - July 11, 17
- **Added** Composer
- **Refactored** entire code base to meet with proper PSR compliants
- **[Person]**
- Name Parsing [#44](/../../issues/44)
- Alternate name issue fixed [#47](/../../issues/47)
- **[Anime/Manga]**
- Adaption contains HTML tags [#45](/../../issues/45)
- Related anime/manga parse the ID now [#52](/../../issues/52)
- **[Episodes]** Romanji/Japanese titles swapped now fixed [#46](/../../issues/46)
- **[Person]**
- Name Parsing [#44](/../../issues/44)
- Alternate name issue fixed [#47](/../../issues/47)
- **[Anime/Manga]**
- Adaption contains HTML tags [#45](/../../issues/45)
- Related anime/manga parse the ID now [#52](/../../issues/52)
- **[Episodes]** Romanji/Japanese titles swapped now fixed [#46](/../../issues/46)
- **Fixed** Some responses showing HTML tags
- HTML special characters are now decoded to Unicode
- **[Character]** Canonical Link parsing [#50](/../../issues/50)
Expand Down Expand Up @@ -408,9 +408,9 @@ $genres = $jikan->getMangaGenres(
- Check response types @ [http://jikan.me/docs#rest-manga](http://jikan.me/docs#rest-manga)
- Returns empty array if there's no authors set
- `authors` is renamed to `author`
- Refactors `genres` array response
- Refactors `genres` array response
- Check response types @ [http://jikan.me/docs#rest-manga](http://jikan.me/docs#rest-manga)
- `genres` is renamed to `genre`
- `genres` is renamed to `genre`
- `background` returns empty string if there's no background available

### 0.2.2 alpha - June 2, 17
Expand Down Expand Up @@ -451,11 +451,11 @@ $genres = $jikan->getMangaGenres(
### 0.1.4 alpha - May 16, 17
- Jikan library is renamed from **mal-uapi.php** to **jikan.php**
- Namespace changed from **MAL** to **Jikan**
```php
$jikan = new \Jikan\GET;
$jikan->anime(1);
$anime = $jikan->data;
```
```php
$jikan = new \Jikan\GET;
$jikan->anime(1);
$anime = $jikan->data;
```
- Main class is changed from **GET** to **Get**
- Completed person fetch
- Added canonical link for Characters in the return data
Expand Down Expand Up @@ -496,10 +496,10 @@ $genres = $jikan->getMangaGenres(
### 0.1.3 alpha - May 15, 17
- Completed character fetch data
- You can now fetch animeography, mangaography, voice actors and member favorites of that character
```php
$mal = new \MAL\GET;
$character = $mal->character(1)->data;
```
```php
$mal = new \MAL\GET;
$character = $mal->character(1)->data;
```

### 0.1.2 alpha - May 12, 17
- Added Character fetch, you can now get character data.
Expand All @@ -509,23 +509,23 @@ $genres = $jikan->getMangaGenres(
- Added chaining methods (return $this)
- Note that this only works for similar type gets, for example Anime, Manga, Characters
- So you can fetch extra stuff such as videos, episodes, reviews, etc from their own respective pages like this:
```php
$mal = new \MAL\GET;
$anime = $mal->anime(1)->videos()->episode()->reviews();
```
```php
$mal = new \MAL\GET;
$anime = $mal->anime(1)->videos()->episode()->reviews();
```
- This will be slower as every method is fetching a completely new page dedicated to that data
- Simply calling the anime or manga method like this,
```php
$anime = $mal->anime(1)
```
will no longer return the data! The data will be saved to its array, which you'll need to use a new method to return it.
The reason for this is chained methods to fetch other related data as stated above!
```php
$anime = $mal->anime(1)->return();
//or
$anime = $mail->anime(1)->data;
//same stuff
```
```php
$anime = $mal->anime(1)
```
will no longer return the data! The data will be saved to its array, which you'll need to use a new method to return it.
The reason for this is chained methods to fetch other related data as stated above!
```php
$anime = $mal->anime(1)->return();
//or
$anime = $mail->anime(1)->data;
//same stuff
```


### 0.1.1 alpha - Apr 17, 17
Expand Down
20 changes: 11 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"authors": [
{
"name": "Irfan",
"email": "[email protected]"
"email": "[email protected]"
}
],
"autoload": {
Expand All @@ -25,19 +25,18 @@
}
},
"require": {
"fabpot/goutte": "^3.2",
"php": "^7.1",
"ext-json": "*"
"php": "^8.0",
"ext-json": "*",
"fabpot/goutte": "^4.0"
},
"require-dev": {
"brianium/paratest": "~4.0",
"brianium/paratest": "^6.4.1",
"doctrine/collections": "^1.5",
"friendsofphp/php-cs-fixer": "^2.16",
"jakub-onderka/php-parallel-lint": "^1.0",
"jikan-me/jikan-fixtures": "dev-master",
"php-vcr/php-vcr": "~1.4",
"php-vcr/phpunit-testlistener-vcr": "~3.2",
"phpro/grumphp": "^0.19",
"php-vcr/php-vcr": "^1.6",
"phpro/grumphp": "^1.7.0",
"phpunit/phpunit": "~9.0",
"squizlabs/php_codesniffer": "^3.3"
},
Expand All @@ -51,7 +50,10 @@
]
},
"config": {
"sort-packages": true
"sort-packages": true,
"allow-plugins": {
"phpro/grumphp": true
}
},
"repositories": {
}
Expand Down
37 changes: 19 additions & 18 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
<phpunit bootstrap="./test/bootstrap.php" colors="true">
<listeners>
<listener class="VCR\PHPUnit\TestListener\VCRTestListener" file="vendor/php-vcr/phpunit-testlistener-vcr/src/VCRTestListener.php" />
</listeners>
<testsuites>
<testsuite name="Unit">
<directory>./test/JikanTest</directory>
</testsuite>
<testsuite name="Fast">
<directory>./test/JikanTest/JikanTest.php</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">src</directory>
</whitelist>
</filter>
</phpunit>
<?xml version="1.0"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="./test/bootstrap.php" colors="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">src</directory>
</include>
</coverage>
<listeners>
<listener class="VCR\PHPUnit\TestListener\VCRTestListener" file="vendor/php-vcr/phpunit-testlistener-vcr/src/VCRTestListener.php"/>
</listeners>
<testsuites>
<testsuite name="Unit">
<directory>./test/JikanTest</directory>
</testsuite>
<testsuite name="Fast">
<directory>./test/JikanTest/JikanTest.php</directory>
</testsuite>
</testsuites>
</phpunit>
Loading

0 comments on commit 1e72498

Please sign in to comment.