claudiowilson / LeagueJS

A Javascript Wrapper for the League of Legends API
MIT License
171 stars 45 forks source link

RIOT API V3 - V1/2 endpoints deprecated on July 24th #64

Closed Colorfulstan closed 7 years ago

Colorfulstan commented 7 years ago

RIOT released their V3 of the league api recently and there will be a deprecation period of 90 days starting soon until the old endpoints will not be working anymore.

https://discussion.developer.riotgames.com/articles/652/riot-games-api-v3.html

I will update my Fork for the endpoints I use and might also look into the general endpoint construction about half way through the deprecation period (around end of May I assume I will have the time to spare)

EldoranDev commented 7 years ago

I am currently in the middle of the prep for my finals, as soon as I can get time slots free i'll start working on this again and will port everything to v3 or integrate your changes (just open an pr).

Colorfulstan commented 7 years ago

90 days start now, endpoints v1/2 will be removed on July 24th https://discussion.developer.riotgames.com/articles/1053/v1v2-90-day-deprecation-period-has-begun.html

EldoranDev commented 7 years ago

@Colorfulstan I am currently freeing up timeslots and using them for LeagueJS i think V3 coverage should done with my "rework" of the code and I'll ping you and claudio in the next 1-3 weeks about reviewing my implementation

Colorfulstan commented 7 years ago

@EldoranDev It makes sense to include the V3 Endpoints within the rework and release the library as v1.0.0. with semver in mind. Started looking into the new endpoints, a lot of things change and in some regards will not be compatible out of the box to code that expects the previous API version (e.g. Match endpoint queue information).

So getting this done before the old endpoints deprecate might be the best course of action and gives a certain urgency so the project gets moving again ;)

Is there still a lot of architectural/design work to do, or is it just straight forward "timesink work" that needs to be done to make this happen?

Colorfulstan commented 7 years ago

I added the new endpoints to my Fork and migrated most of the methods since I need to work with the v3 endpoints asap, but I kind of doubt that it's suited for public use. Replaced the dynamic parameters with default-values, which might not have been the smartest idea in terms of development comfort.

EldoranDev commented 7 years ago

I just pushed my v3 implementation to the rework branch f09435ecc1678c6131c581ae62dccb2cd8841fd9. I still need to implement the caching.

Also I need to rewrite the documentation and add tests. But nevertheless I would ask you ( @Colorfulstan and @claudiowilson ) to maybe look over the reworked code and tell me if you like it or we should dismiss this idea and follow the old style of implementation.

Colorfulstan commented 7 years ago

Thanks, Ill try to have commented on it by monday.

Colorfulstan commented 7 years ago

@EldoranDev I think I commented on all the things, I assume you did get notifications for all the comments!?

In general I like splitting it up into smaller and more atomic parts. I think the architecture is fine so far and makes it more obvious which endpoint you will be using and to discover the methods related to that endpoint.

Summary:

EldoranDev commented 7 years ago

I'll look into your Comments, while short skimming your notes, i think i saw a lot of useful stuff. I have to learn for my Finals the next two days and then I'll go trough the comments.

Colorfulstan commented 7 years ago

@EldoranDev Any unpublished progress yet? I want to start working on it today, propably starting with adding factory functions for the endpoints and implementing the endpoints v3 (without caching).