Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.6.0 #101

Merged
merged 299 commits into from
Dec 7, 2024
Merged

v0.6.0 #101

merged 299 commits into from
Dec 7, 2024

Conversation

Rinrin0413
Copy link
Owner

@Rinrin0413 Rinrin0413 commented Dec 7, 2024

Breaking Changes

Bug Fixes

…cord-search-endpoint [#15]

# Implement method for Record Search endpoint

- ✨ Implemented `Client::search_record` method [#47]
…l-latest-news-endpoint [#15]

# Implement method for "All Latest News" endpoint

- ✨ Implemented `Client::get_news_all` method [#49]
…est-news-endpoint [#15]

# Conform to new Latest News endpoint

- 🛠️  Updated and added method and models to conform to the new Latest News endpoint [#51]
…bs-scoreflow-endpoint [#15]

# Implement method for Labs Scoreflow endpoint

- ✨ Implemented `Client::get_labs_scoreflow` method [#53]
…bs-leagueflow-endpoint [#15]

# Implement method for Labs Leagueflow endpoint

- ✨ Implemented `Client::get_labs_leagueflow` method [#55]
…bs-league-ranks-endpoint [#15]

# Implement method for Labs League Ranks endpoint

- ✨ Implemented `Client::get_labs_league_ranks` method [#57]
…hievement-info-endpoint [#15]

# Implement method for Achievement Info endpoint

- ✨ Implemented `Client::get_achievement_info` method [#59]
    - 🛠️ The `Achievement::order` field is now optional [9c76219]
# X+ Rank

- ✨ Added supports for the new rank X+ [#61]
Because the `Client::get_user_records_old` is removed.
Because the `Client::get_user_records_old` is removed.
#15]

# Update the examples

- 🛠️ Updated the examples (`/examples/``) [#81]
…-2-0

# Add support for TETR.IO BETA 1.2.0+

- 💥 Added support for TETR.IO BETA 1.2.0+. [#15]
    - 🛠️ Conformed to the new endpoints:
        - #16
        - ✨ Conform to new Server Activity endpoint [23a3d17]
        - #19
        - #21
        - #51
    - ✨ Implemented new methods for the new endpoints:
        - ✨ Implemented new methods for the User Summaries endpoints:
            - #23
            - #25
            - #27
            - #29
            - #31
            - #33
            - #35
            - #37
        - #39
        - #41
        - #43
        - #45
        - #47
            -  #71
        - #49    
        - ✨ Implement new methods for the Labs endpoints:
            - #53
            - #55
            - #57
        - #59
    - ✨ Added the new rank X+ [#61]
    - 🔥 Removed the elements for the discontinued endpoints [#64]
    - ♻️ Improved the structures of the files and elements [#63]
    - ✨ Implemented some useful methods for the models [#67]
    - 📚 Improved the documentation [#69]
    - 🛠️ Conformed to the new error response structure [#84]
    - 🩹 Fixed some problems:
        - 🩹 The `RecordsLeaderboardId::to_param` method was ignoring its `revolution_id` field [#73]
        - 📚  Wrote missing "Panics" sections in some documentations [#77]
        - 🐛 The `SearchCriteria::init` methods are now working [f90cbc1]
    - 🛠️ Final adjustments:
        - 🛠️ The option in the `Client::get_news_all` method is now mandatory, just like the `Client::get_news_latest` method [#75]
        - ♻️ Improved the panic handling [#79]
        - 🛠️  A deserialization is now tried before returning a HTTP error [#82]
        - 🛠️ The color constant for the XX rank is now deprecated [b361c0f]
        - 🛠️ The optional boolean fields in the models are now completely boolean [#87]
        - 🛠️ The enumerators of the `ResponseError` enum now have appropriate types [#89]
        - 📚 Added mentions about the exceptions in the API responses in the documentation [04aed5a]
        - ✨ Added re-exports in the `model::util` module [0ead1dd, 8da2a1c]
        - ✨ Added `model::prelude` module [96fc77b, eba3236]
        - ✨ Added `crate::prelude` module [28739db, 14dc0d6, 47626a8]
        - 🛠️ Added the derives `Clone` and `Debug` to some types for parameters [64f9ac7]
        - 🛠️ Added URL encodings [21443e4]
    - ✏️ Renamed some models to appropriate names [#91]
    - ✨ Provided additional utility types [#93]
    - ♻️ Implement some methods of the models with macros [#95]
        - 🚚 Moved the utility types to `model::util` module
        - 🛠️ Some methods of the `Client` struct now have generic parameters
    - ✨ Added support for `X-Session-ID` [#97]
        - 🛠️ The `Client` struct is now reusable [ed10aef]
    - 🛠️ Updated the examples [#81]
    - 🛠️ Updated the READMEs. (`README.md` and `src/lib.rs`) [b76b8e4]
… instead of ownership

Because functions that take ownerships and return non- `impl Copy` ownerships should be named `into_*`.
This is not good for naming consistency.
Functions that take references and return non- `impl Copy` ownerships should be named `to_*`.
Functions that take references and return non- `impl Copy` ownerships should be named `to_*`.
- 🙈 Unignore: `tetr_ch_bin/`
- 🙈 Ignore: `examples/bin.rs`
@codecov-commenter
Copy link

codecov-commenter commented Dec 7, 2024

Codecov Report

Attention: Patch coverage is 9.77131% with 434 lines in your changes missing coverage. Please review.

Project coverage is 17.83%. Comparing base (ca322b5) to head (ad7f06c).
Report is 300 commits behind head on master.

Files with missing lines Patch % Lines
src/client.rs 28.07% 41 Missing ⚠️
src/client/param/record.rs 0.00% 34 Missing ⚠️
src/client/param/user_leaderboard.rs 0.00% 32 Missing ⚠️
src/client/param/record_leaderboard.rs 0.00% 31 Missing ⚠️
src/model/util/role.rs 0.00% 30 Missing ⚠️
src/model/macros/mod.rs 0.00% 24 Missing ⚠️
src/model/news.rs 0.00% 24 Missing ⚠️
src/model/macros/role.rs 0.00% 18 Missing ⚠️
src/model/server_activity.rs 0.00% 18 Missing ⚠️
src/model/summary/record.rs 0.00% 16 Missing ⚠️
... and 34 more
Additional details and impacted files
@@             Coverage Diff             @@
##           master     #101       +/-   ##
===========================================
- Coverage   32.98%   17.83%   -15.16%     
===========================================
  Files          14       46       +32     
  Lines         955      572      -383     
===========================================
- Hits          315      102      -213     
+ Misses        640      470      -170     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Rinrin0413 Rinrin0413 marked this pull request as ready for review December 7, 2024 10:15
@Rinrin0413 Rinrin0413 merged commit 052796f into master Dec 7, 2024
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment