lamadaemon / phigros-save-manager

A Typescript library for parse and modify the save file of game Phigros
14 stars 0 forks source link

API v2 #6

Open lamadaemon opened 3 months ago

lamadaemon commented 3 months ago

Overall

A new API structure is here! This update will BREAK existing code!

The purpose of this update is to support editing save without any online features, and also decrease code coupling by moving online save management features into another class. The original PhigrosSave class will be preserved and will have breaking changes to online features. Another benefit is to be able to add tests without a valid token. In the current version, I didn't write too many tests because PhigrosSave requires a token and can't parse save files fully offline.

This update will be released after a full change log has published at here and all features has been tested out. However, as I mentioned in another issue, I don't have many different accounts and I am not a very active phigros player, so phigros-save-manager may not be very stable for a short period of time depending on feedbacks by users.

A CLI update is planned but has a low priority and will not be in this update.

Changes to the current API

Private members are not included in this change list

TODOs

lamadaemon commented 4 days ago

After this gets done and merged, I will rename the default branch from main to master. This is because I forgot to change the default branch to master when I created this account. I have been typing master so many times when I work on this project, and now, it is a great opportunity to fix this. Please be aware of this branch name change in the short future.