Skip to content

Data package handling improvements#230

Open
DrAwesome4333 wants to merge 5 commits intoThePhar:mainfrom
DrAwesome4333:data-package-pr
Open

Data package handling improvements#230
DrAwesome4333 wants to merge 5 commits intoThePhar:mainfrom
DrAwesome4333:data-package-pr

Conversation

@DrAwesome4333
Copy link

@DrAwesome4333 DrAwesome4333 commented Dec 4, 2025

This PR is provided as a suggestion to improve data package handling. I have put these to use in my fork of archipelago.js and have had good results. This PR should help reduce the initial stress that clients using archipelago.js put on the Archipelago servers they connect to.

This PR does the following:

  • Makes it possible to used cached data packages #packages cache is reset when connecting #225
  • Adds an interface DataPackageCache that can be supplied by the using application to allow archipelago.js to request specific game packages rather than having the using application supply all data packages at once. Example Implentation
  • Addresses some incompatibilities between what was set in the config, vs what was defined in the code. .toSorted() requires ES 2023 and above.

@DrAwesome4333 DrAwesome4333 marked this pull request as ready for review December 4, 2025 02:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant