mangadex_library 2.0.5 copy "mangadex_library: ^2.0.5" to clipboard
mangadex_library: ^2.0.5 copied to clipboard

A mangadex library for dart to facilitate easier access to the Mangadex API (https://api.mangadex.org)

1.0.0 #

  • First release

1.0.1 #

  • Minor fixes.

1.0.2 #

  • Added JsonSearchCommands.dart, contains a few handy functions.
  • Added getFileNames function to JsonSearchCommands, can return all the filenames of a specific chapter if chapter data and chapter ID is provided

1.0.3 #

  • Added getChapterDataByChapterId function, returns an instance of Result class with chapter data of the chapter ID provided inside it. It requires a ChapterData instance.

1.0.4 #

  • Chapter class name changed to ChapterData.

1.0.5 #

  • Added ConstructThumbUrl function, it returns the uri to a thumbnail in the form of a String, it requires manga ID and cover filename.

1.0.6 #

  • Changed class name jsonSearch to JsonSearch in jsonSearchCommands.dart
  • Cdded a Quickstart in README.md until proper documentation is created.

1.0.7 #

  • Cdded getCoverArt function to retrieve cover art details.

1.0.8 #

  • Fixed issues while retireving cover art.

1.0.9 #

  • Added resolution options to getCoverArtUrl. Can be '256', '512' or null

1.1.0 #

  • Now prints 'Rate limit exceeded' if the rate limit is exceeded by the requests.

1.1.1 #

  • All the functions that are to return a value are now nullable, that is if the results are empty (for example you search for a manga and no manga is found) the function will return null and print the results were not found.

1.1.2 #

  • Minor fixes

1.1.3 #

  • Minor info changes

1.1.4 #

  • Disabled description class for TagAttributes because of an error, shouldn't be a concern as long as the description of a tag isn't required (note: the description here isn't the manga description.)

1.1.5 #

  • Minor fixes

1.1.6 #

  • getCoverArtUrl() no longer returns a nullable String.

1.1.7 #

  • getChapterDataByChapterId() and getMangaDataByMangaId() both shifted to jsonSearchCommands. None of them require a Chapter instance as a parameter anymore and are now Future functions.

1.1.8 #

  • added null handling for Login class.

1.1.9 #

  • added refresh function to refresh token, returns a Login instance.

1.2.0 #

  • minor fixes related to refresh.

1.2.1 #

  • added options to set a limit and offset for getChapters function.

1.2.2 #

  • added function getUserFollowedManga() to retrieve followed manga by the logged in user.

1.2.3 #

  • added function checkIfUserFollowsManga() to check if a users follows a certain manga.
  • added function getUserFollowedUsers() to retrieve followed users by the logged in user.
  • added function checkIfUserFollowsUser() to check if a users follows a certain user.
  • added function getUserFollowedGroups() to retrieve followed groups by the logged in user.
  • added function checkIfUserFollowsGroup() to check if a users follows a certain group.
  • added function getLoggedUserDetails() to get the profile details of the logged in user.

1.2.4 #

  • fixed issues related to all the user specific functions in 1.2.3

1.2.5 #

  • Added followManga() and unfollowManga() functions to follow / unfollow a manga.

1.2.6 #

  • the functions checkIfUserFollowsManga() checkIfUserFollowsUser() and checkIfUserFollowsGroup() now return a bool rather than a MangaCheck.

1.2.7 #

  • minor bug fixes.

1.2.7+1 #

  • minor bug fixes

1.2.7+2 #

  • fixed bug where search would return null despite having results.

1.2.8 #

  • Model classes updated and rearranged according to the JSON structure changes in Mangadex API 5.2.35.

1.2.8+1 #

  • Fixed problems with JsonSearch.

1.2.8+2 #

  • Changed Cover model class according to Mangadex API update 5.2.35

1.2.8+3 #

  • User data models related changes according to Mangadex API update 5.2.35

1.2.9 #

  • fixed all major bugs related to Mangadex API update 5.2.35

1.2.9+1 #

  • minor bug fixes related to login.

1.2.9+2 #

  • even more bug fixes related to chapterData.

1.2.9+3 #

  • more bug fixes related to chapterData.

1.2.9+4 #

  • fixed errors in model classes(again)

1.2.9+5 #

  • tried fixing the data model for getMangaDataByMangaId()

1.2.9+6 #

  • finally fixed the data model for getMangaDataByMangaId()

1.2.9+7 #

  • fixed issues related to getChapterFilenames() in JsonSearch

1.2.10 #

  • added getAllMangaReadingStatus() and getMangaReadingStatus() functions
  • fixed getLoggedUserDetails() function

1.2.10+1 #

  • minor changes related to UserDetails model class.

1.2.10+2 #

  • more changes related to UserDetails model class.

1.2.10+3 #

  • more changes related to UserDetails model class.

1.2.10+4 #

  • more changes related to UserDetails model class (I swear it's working this time)

1.2.11 #

  • added getAllReadChapters(), markChapterRead(), markChapterUnread(), markMultileChaptersRead() and markMultileChaptersUnread functions

1.2.12 #

  • added offset and limit parameters to getUserFollowedManga(),getUserFollowedGroups() and getUserFollowedUsers() functions

1.2.13 #

  • fixed a few typos in the check functions for user followed responses.

1.2.13+1 #

  • fixed typos related to follow and unfollow manga

1.2.14 #

  • renamed function getAllMangaReadingStatus() to getAllUserMangaReadingStatus
  • fixed type errors when paring json for function getAllUserMangaReadingStatus()

1.2.15 #

  • added getMangaReadingStatus() to get reading status of a certain manga ID.
  • added setMangaReadingStatus() to set reading status of a certain manga ID.
  • moved all model classes to src folder to make the code more organised.
  • started work on wiki documentation on github (it will take time to finish it) https://github.com/Riktam-Santra/mangadex_library/wiki.

1.2.16 #

  • fixed a cast on null error in getAllReadChapters()

1.2.17 #

  • revoked the move of all models into src/ folder (see point 3 of 1.2.15).
  • added enum ReadingStatus to keep the values of reading status fixed.
  • added removeMangaReadingStatus() to remove the reading status of a manga but still keep it as followed.
  • using followManga() now automatically sets the reading status for the manga as 'reading', this can can be changed to other status by supplying the optional ReadingStatus enum. It is not possible to asign a null value to the status, this can be done using the removeMangaReadingStatus().
  • using unfollowManga() now first removes the reading status and then unfollows the manga (just to be on the safe side).
  • changed class name JsonSearchCommands() to JsonUtils(), the class can no longer be instantiated since all of it's functions are now static.

1.2.18 #

  • fixed a typo which broke getCoverArtUrl() function when requesting for different resolutions.

1.2.19 #

  • added reportImageStatus() function, read here to understand it's use.
    Note: this is not the user image reporting function but rather to report whether an image was successfully recieved from the server or not.

1.2.20 #

  • using unfollowManga() no longer removes the manga status first.

1.2.21 #

  • getAllUserMangaReadingStatus() now takes in an optional ReadingStatus parameter to get manga with only a certain reading status.

1.2.22 #

  • fixed a type error in AllMangaReadingStatus model class while parsing data.

1.2.23 #

  • fixed setMangaReadingStatus function.

1.2.24 #

  • fixed issues with markChapterRead(), markChapterUnread(), getAllReadChapters(), getAllReadChaptersForAListOfManga() and markMultipleChaptersRead().

1.2.25 #

  • removed option to set manga reading status for a manga as null.

1.2.26 #

  • fixed unfollowManga() not unfollowing manga.

1.2.27 #

  • getChapters() now supports the following parameters: ids, groups, title, uploader, manga, volume, chapter, translated language, original language, excluded original language, content rating, include future updates, created at since, updated at since, published at since, includes.
  • added enums: ContentRating, FutureUpdates and LanguageCodes.

1.2.28 #

  • added MangadexServerException to handle server exceptions
  • every model class now throws a MangadexServerException that can be caught and will contain a ServerException class which will have error details as returned by the server (including the response code).
  • updated /test/mangadex_library_example.dart with error handling.

1.2.29 #

  • Updated according to the changes in Mangadex API update 5.4.8
  • getChapterDataByChapterID() function is now to be used to get chapter filenames, base url and chapter hash.
  • Removed class JsonUtils.
  • Moved getChapterFilenames(), getChapterDataByChapterId() and getMangaDataByMangaId() functions to mangadex_library.dart.

1.2.30 #

  • Added all filter parameters for search function.
  • Search function parameters changed to named parameters. Previously search('manga name'), now search(query: 'manga name')
  • All parameters are now optional for search function. Query parameter is no longer required to use search functions.
  • Created enums MangaStatus, PublicationDemographic, TagsMode to fix values for search parameters.
  • Created abstract class EnumUtils.
  • All fuctions used to parse enums to Strings and vice versa are transferred to EnumUtils.
  • Deleted JsonUtils class.
  • Created Model class for BaseUrl returned by getBaseUrl() to parse response from get /at-home/server endpoint. ConstructPageUrl() can be used to construct page urls using data provided by the BaseUrl class.

1.3.0 #

  • Added proper comment documentation to all functions.
  • Renamed ResultOk model class to Result.
  • Deleted the MangaCheck model class, replaced by Result class.
  • All functions now throw the MangadexServerException exception rather than the model classes themselves.
  • Moved mangadex_library_example from /test to /example directory.

1.3.1 (Handling for Custom List Endpoints) #

  • Added getUserFeed() function to get User's feed and return the data in a UserFeed class instance.
  • Added functions: getLoggedInUserCustomLists(), getUserCustomLists(), createCustomList(), getCustomList(),updateCustomList(), deleteCustomList(), followCustomList(), unfollowCustomList(), addMangaToCustomList(), removeMangaFromCustomList(), getUserCustomLists().
  • Created enum Visibility.
  • Created enum_utls function parseVisibilityFromEnum().

1.3.2 (Stared Function for Author Data) #

  • Added model class AuthorSearchResult.
  • Added function searchAuthor() to search for authors, returns a AuthorSearchResult class instance.
  • Added model lass AuthorInfo
  • Added function getAuthorById() to get author data by their UUID, returns an AuthorInfo class Instance. Note: documentation has not been updated for this patch, it will be updated after all features of the /author endpoint implemented.

1.3.3 #

  • Fixed problems with AuthorInfo model class.

1.3.4 #

  • Fixed even more problems with AuthorInfo model class.

1.3.5 #

  • Added Order parameter to search() function.

1.3.6 #

  • Removed 'biography' field from AuthorInfo model class until a known bug is solved.

1.3.7 #

  • Added documentation for all functions added since 1.3.1

1.3.8 #

  • Added logout() function for endpoint /auth/logout

1.3.9 #

  • Added getScanlationGroupResponse(), getScanlationGroup(), getScanlationGroupById(), getScanlationGroupByIdResponse(), createScanlationGroupResponse(), and createScanlationGroupResponse() functions.

1.3.10 #

  • Fixed critical searchResponse() and getScanlationGroupResponse() related issues.
  • getCoverArt() and getCoverArtResponse() now take in mangaIds and coverIds parameters as List<String> which was previously just String values.
  • added locales, uploaders, order, limit, offset parameters to getCoverArt() and getCoverArtResponse
  • changed search() function's query parameter name to 'title'

1.3.11 #

  • Fixed multiple problems with json parsing in the Data class under scanlationsResult.dart
  • Added /test/test.dart for testing.

1.3.12 #

  • Removed package 'test' as a dependency due to incompability with flutter.
  • Slightly updated the documentation.
  • Deleted /test/test.dart

1.3.13 #

  • Fixed getCoverArt() function where limit and offset were set to null.

1.3.14 #

  • Fixed getCoverArtUrl() function adding [] brackets around the manga id it was supplied to.
  • getCoverArt() now returns a List<String> (previously String).

1.3.15 #

  • Added getMangaAggregate() function to get details about the volumes and chapters of a manga.

1.3.16 #

  • Fixed a typo in the Search.dart model class mentioned in one of the issues.
  • The constructPageUrl() function no longer required the session token argument.
  • Fixed a bug where the constructPageUrl() fuction returned forbidden addresses.
  • Updated the example on the readme page to the latest changes.

1.3.17 #

  • Added result and resource fields to ChapterData model class.
  • Order parameters of all functions now take a Map of Enums rather than String values, for example an order for search was previously
    search(
      order: {'createdAt':'asc'},
    );
    
    HAS BEEN CHANGED TO
    search(
          orders: {SearchOrders.createdAt: OrderDirections.ascending},
        );
    
    I'll try to write the documentation specifically for this part for now but feel free to ping me if you need any help.
  • Created order_enums.dart to hold all possible order enums for order parameters of different functions.

1.3.18 #

  • Fixed a null error in function getAllUserMangaReadingStatus() when not passing in any reading status.

1.3.19 #

  • getChapterFilenames is now Depricated. getChapterDataByChapterId() should be used instead.
  • Fixed a cast error in AllMangaReadingStatus model class.

1.4.0 #

  • Added toJson() method to most the important model classes.
  • Removed the unnecessary root folder (changed from mangadex_libray/mangadex_libray/ to mangadex_library/).
  • Updated documentation of constructPageUrl(), I had forgotten to remove the use of session token from it's documentation.

1.4.1 #

  • Added toJson() to all model classes.

1.4.2 #

  • There are now two functions for getting manga aggregate (previously one). getMangaAggregateResponse() for getting the response for the aggregate and getMangaAggregate() to get the data in an Aggregate model class.
  • Added Aggregate model class for getMangaAggregate() function.

1.4.3 #

  • Fixed issues related to layout of the project structure.
  • Added documentation for getMangaAggregate().

1.4.4 #

  • markChapterRead() and markChapterUnread() are now deprecated as per the Mangadex API version 5.7.1 changes, please use use markChapterReadOrUnRead() instead.
  • markMultipleChaptersRead() and markMultipleChaptersUnread() are now deprecated, please use use markChapterReadOrUnRead() instead.

1.4.5 #

  • Fixed a json parsing problem with Aggregate model class.
  • Added a temporary fix to the Search function throwing exceptions when the description of a manga maybe an empty list instead of an empty object. An empty Description class is returned now.

1.4.6 #

  • Fixed a type in search function when using includes parameter
  • getCoverArtUrl() has now been renamed to getCoverArtUrlMap() uses the /manga endpoint and returns a Map<String, String> with manga ids mapped to their cover filenames in the format {id: filename} for example {a9dd451c-3c45-4d66-a818-4e1b78855838: 70f84295-9515-4518-8699-bb85ec41ea98.jpg}
  • Created new Utils class which contains a constructCoverPageUrl() function which can take in these functions to automatically give you a list of type List<String> containing all the required urls.

1.4.7 #

  • made Utils class non abstract

1.4.8 #

  • getCoverArtUrlMap() now takes in a Search class instance to get the filename urls of exactly the ids requested for. Previously wrong filenames were mapped to wrong ids.

1.5.0 ( #

  • auto generated all models using json_serializable. One must be careful when using properties like Description, Name etc which should be an empty object if null but maybe be returned as a list by the server when empty and as an object when non-empty. Still waiting for this to get fixed.
  • made Utils class abstract
  • getCoverArtUrlMap() doesn't return a future any more, it now directly returns Map<String, dynamic> and takes in a Search class instance.
  • both constructCoverPageUrl() and getCoverArtUrlMap() have been shifted to utils class.

1.5.1 #

  • Removed Attribues in the Relationship class specifically for SingleCustomList

1.5.2 #

  • Changed conflicting json types in aggregate json model

1.5.3 #

  • Changed the volumes field in aggregate json model to be a map<String, Volume>

1.5.4 #

  • Marked all login endpoints as deprecated until further action is taken by mangadex to add new login system.
  • Added getMangaFeed() and getMangaFeedResponse() functions for /manga/{id}/feed endpoint
  • Added each function's requested endpoint to it's documentation.
  • Removed getChapterDataByChapterId() function, replaced by getBaseUrl()
  • Moved all enum types to a separate enums folder

1.5.5 #

  • Fixed issues with language filters not applying in getMangaFeed()

2.0.0 ( #

  • Moved completely to a client based approach rather than simple static functions to make it easier to automate trivial tasks like token refresh.
  • Refactored functions to their respective repositories.
  • Added class MangadexClient, who instance will be used to acces all required functions.
  • Added arguments:
    • autoRefresh: Whether to auto refresh auth tokens.
    • refreshDuration: Takes in a duration which is the interval at which tokens are refreshed (Defaults to 14 minutes).
    • onRefresh: Takes in a callback function that executes on successful token refreshes.

2.0.1 #

  • Added exports for all necessary modules and models
  • genberated dart doc

2.0.2 #

  • Fixed conlicting exported class names
  • Bumped up version for json_annotation (4.8.0 => 4.8.1)

2.0.3 #

  • Added missing exports

2.0.4 #

  • Fixed incorrect class use in Cover.dart

2.0.5 #

  • Changed the Client class of MangadexClient to PersonalMangadexClient for separating Public and Private clients in the future. As of now Mangadex Client has been converted into a base class for MangadexPrivateClient (Public client to be added when Mangadex introduces one).
  • Added login and refresh methods that uses https://auth.mangadex.org instead of the deprecated login methods.
  • login and refresh methods now return a Token class instance rather than a Login class instance.
  • Removed Login class.
3
likes
150
pub points
44%
popularity

Publisher

unverified uploader

A mangadex library for dart to facilitate easier access to the Mangadex API (https://api.mangadex.org)

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

http, json_annotation

More

Packages that depend on mangadex_library