odota / dotaconstants

Constant data for Dota applications
MIT License
299 stars 121 forks source link

Should subpatches be added to patch.json? #135

Open vovavili opened 2 years ago

vovavili commented 2 years ago

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.

howardchung commented 2 years ago

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