- Update dependencies
- Small improvements and test fixes
- Updated structs to Labrinth
v2.5.0 - Reordered struct fields to match documentation, and removed redundant doc-comments
- Updated
api_calls::check_id_slugto use the regex provided in the documentation - Renamed
structures::user::Notification'stype_fieldtonotification_type
- Update dependencies
- Add support for authorised requests
- Remove
_callsand_structsfrom filenames - Change
resolve_id_slug()todoes_exist() - Add
follow(),add_user(),list_multiple_teams_members(),join_team(),transfer_ownership(),get_current_user(),get_notification(),followed_projects(), andsubmit_report() - Add
ProjectType::Plugin,FileExt,Notification,Report,ReportSubmission,NotificationAction,ReportItemType,NotificationType
- Update dependencies
- Add a new API call
- Add resource packs to the project types enum
- Make
ProjectType,UserRole, andDependencyTypenon-exhaustive
- Fixed a bug where if an empty string was provided for an
Option<URL>field, the deserialiser would try to parse the url and error out rather than returnNone - Renamed the
Datetimealias toUtcTime
- Manually implement
DefaultforFerinthso that the user agent is set tocrate_name/version - Add
Ferinth::newwith a user agent based on the documentation - Added
DependencyType::Embeddedto fix gorilla-devs/ferium#169
- #7 File hashes are no longer behind an
Option - Remove the
Optionfrom theProject.donation_urlsvector - Replace
Stringwithurl::Urlwhere appropriate
- Changed the way URLs are constructed and requests are made
- Specified dependencies properly
- Replaced
Furse::new()withDefault - Added all the new API calls (that do not need authentication)
- Slugs with underscores are now considered valid
Add support for rate limits using a new error
Update all structs to the latest https://docs.modrinth.com/api-spec specifications (Labrinth v2.2.4)
- Update description
- Fix
Ferinthdoctest
- Removed example project and the one in the description
- Added
get_project_dependencies() - Moved
ProjectTypeto project_structs.rs - Added new tag calls and their respective structs
- Made tag call struct fields public
- Improved documentation
- Removed user agent
- All enums now consistently have
PartialEqandEqimplemented - All structs now have proper doc comments
Update to the Modrinth API v2. The most breaking changes are the following:
get_mod()is nowget_project()- Most of the structure definition have had fields added/changed
A lot of the changed are under the hood
Check out PR #4 to see all the changes made
- Implement
CloneandDebugforFerinth
- Edit doctest for
user_calls::list_mods()so that the order of the mod_ids returned doesn't matter - The following were implemented as per a suggestion by 4JX here
- Removed
regexand usedlazy-regexwhich is faster as the regexes are parsed at compile time - Update base62 and SHA1 checkers to use
lazy_regex::regex_is_matchfor much faster and more readable code
- New error
NotSHA1to show that an argument provided an invalid SHA1 hash - Added a new function to verify that a string is SHA1 compliant
- Added new api call,
get_version_from_file_hash()which gets the version of a version file from the version file's hash (PR #1 by @4JX)
- Added doctests for every method and struct, which means more documentation and tests!
- Update readme and docs front page
- Added more extensive error handling
- Made many return statements more concise
- Methods accepting IDs now verify that they are base62 compliant using a RegEx
- Added
Cloneto all structs and enums - Added
PartialEqto all enums
- This crate now makes
reqwestuserustlsbecause OpenSSL = bad - Made API calls' return syntaz more concise
- Made date/time fields use Chrono's
DateTime<Utc> - Made documentation better and more consistent
- Added an example project
- Prepared the project for crates.io release
- Renamed the library to Ferinth (
ferinth) - All names
ModrinthAPIhave been renamed to `Ferinth - Error checking removed because only
reqwest::Errors are encountered - All
api_calls now accept&stronly - Only
structuresis exported - Added
list_team_members()API call - Added
TeamMemberandTeamRole - Made version file hashes a new struct
First commit