QuiltMC / quiltmc.org

The source for quiltmc.org
https://quiltmc.org
Other
58 stars 46 forks source link

Update url used for querying patchnotes #178

Closed TheEpicBlock closed 6 months ago

TheEpicBlock commented 6 months ago

See preview on Cloudflare Pages: https://preview-178.quiltmc-org.pages.dev

TheEpicBlock commented 6 months ago

The v1 api was generally order correctly (at least for recent versions, older ones were completely messed up, see 1.13). The v2 api however lists snapshots before release versions. That's why I pulled in the meta to achieve a proper ordering. This is probably what the launcher does too

Southpaw1496 commented 6 months ago

Are there any other differences between V1 and V2 that are relevant to our purposes?

TheEpicBlock commented 6 months ago

Nothing major, at least not in patchnote part.

The index file no longer contains the changelogs of each version ever published, those are in separate jsons now (specified by contentPath in the index). The code here has already been changed to handle that.

Note that the url for the separate json files is relative to https://launchercontent.mojang.com/v2/, but the urls for the images are still relative to https://launchercontent.mojang.com

ghost commented 6 months ago

I mean if you approve the workflow, we could easily check if anything else changed lol