Skip to content

Converts modpack.json dependencies format to include version information#33

Merged
nickesc merged 7 commits intomainfrom
dev
Mar 10, 2026
Merged

Converts modpack.json dependencies format to include version information#33
nickesc merged 7 commits intomainfrom
dev

Conversation

@nickesc
Copy link
Owner

@nickesc nickesc commented Mar 10, 2026

Swaps the list version of the dependencies for an object. Similar pattern to package.json dependencies. Moves the old version to a supported "legacy" format, which can be converted to the new format using the publicly exposed normalizeDependencies function.

  • Better diffing (don't have to rely on the modpack.lock for version changes anymore)
  • Potentially breaking changes for those using modpack-lock as a library or relying on the current Jsonfile shape

Also adds explicit api timeout for modrinth requests

@nickesc nickesc self-assigned this Mar 10, 2026
@nickesc nickesc added the enhancement New feature or request label Mar 10, 2026
@nickesc
Copy link
Owner Author

nickesc commented Mar 10, 2026

This is a breaking change! But will be a much better experience for modpack developers. Willing to make the change, especially while we are still <1.0.0. If anyone runs into problems that they feel should be addressed at the library level, please create an issue.

Otherwise, use the new normalizeDependencies function to convert old modpack.json dependencies objects to the new format.

Copy link
Owner Author

@nickesc nickesc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. merge and release a new version

@nickesc nickesc merged commit 2c2a717 into main Mar 10, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant