dotaconstants icon indicating copy to clipboard operation
dotaconstants copied to clipboard

Should subpatches be added to patch.json?

Open vovavili opened this issue 2 years ago • 1 comments

Suppose I want to periodically query whether my local cache of DotA 2 constants corresponds to the latest DotA 2 version (7.32c). As right now, I have to do this using patchnotes.json, which loads ~800 kb of information I don't really need. But if I were to make this query on a very lightweight patch.json (< 10kb), I would only get information on the latest major DotA 2 patch (7.32).

Would it be possible to add subpatches to patch.json? This would make cache pruning a lot more efficient for some of my scripts.

vovavili avatar Nov 17 '22 06:11 vovavili

Rather than change the format I would support creating a separate file for this. And ideally it would be automated, as it may be a lot of manual effort otherwise to keep up to date

howardchung avatar Nov 17 '22 06:11 howardchung