Skip to content

feat: allow configuring version environment compatibility (fixes #82) - #84

Closed
rev2ret wants to merge 2 commits into
modrinth:masterfrom
rev2ret:issue-82
Closed

rev2ret wants to merge 2 commits into
modrinth:masterfrom
rev2ret:issue-82

Conversation

@rev2ret

@rev2ret rev2ret commented May 25, 2026

Copy link
Copy Markdown

Resolves issue #82. Exposes clientSide and serverSide configurations in the modrinth extension block to allow developers to configure version environment compatibility states when deploying via Minotaur. It maps them to client_side and server_side payload fields on the version creation request.

if (ext.getServerSide().isPresent()) {
dataBuilder.serverSide(ext.getServerSide().get());
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Could be getOrNull() instead, which removes the need for isPresent() and lets you chain it fluently like before

private ProjectStatus requestedStatus;

/** The client side environment support setting */
private String clientSide;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Consider enum types (especially as their values can be documented)

@Sychic

Sychic commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Closing this PR as the client_side and server_side fields are deprecated. See more here: https://discord.com/channels/734077874708938864/974050507150729236/1536490181413044364

@Sychic Sychic closed this Sep 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants