Skip to content

Update version to 1.21.11-2.72.1 and correct config path documentation#271

Merged
twisti-dev merged 2 commits intoversion/1.21.11from
fix/config-versioning
Mar 29, 2026
Merged

Update version to 1.21.11-2.72.1 and correct config path documentation#271
twisti-dev merged 2 commits intoversion/1.21.11from
fix/config-versioning

Conversation

@twisti-dev
Copy link
Copy Markdown
Contributor

This pull request introduces a version bump and fixes a critical configuration manager instantiation bug, along with a documentation update for config versioning. The most important changes are:

Versioning and release:

  • Bumped the project version from 1.21.11-2.72.0 to 1.21.11-2.72.1 in gradle.properties to reflect the new release.

Configuration management:

  • Fixed a bug in SurfConfigApi where the createConfigManager method was incorrectly calling createSpongeYmlConfigManager instead of createSpongeJsonConfigManager, ensuring the correct configuration manager is used for JSON configs.

Documentation:

  • Updated the documentation in SpongeConfigClass to reflect that the default config version key is now "_config_version" instead of "config-version".

@twisti-dev twisti-dev self-assigned this Mar 29, 2026
Copilot AI review requested due to automatic review settings March 29, 2026 10:10
@twisti-dev twisti-dev merged commit d9dd51f into version/1.21.11 Mar 29, 2026
3 checks passed
@twisti-dev twisti-dev deleted the fix/config-versioning branch March 29, 2026 10:10
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR bumps the project version and fixes SurfConfigApi’s JSON config manager factory to instantiate the correct JSON-based manager, plus updates documentation around the default config schema version key.

Changes:

  • Bump release version from 1.21.11-2.72.0 to 1.21.11-2.72.1.
  • Fix createSpongeJsonConfigManager(...) default overload to call the JSON manager factory (not the YAML one).
  • Update SpongeConfigClass documentation to reflect the default version key "_config_version".

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
surf-api-core/surf-api-core-api/src/main/kotlin/dev/slne/surf/surfapi/core/api/config/SurfConfigApi.kt Fixes incorrect delegation for the JSON config manager factory overload.
surf-api-core/surf-api-core-api/src/main/kotlin/dev/slne/surf/surfapi/core/api/config/SpongeConfigClass.kt Updates KDoc for the default schema version key path.
gradle.properties Bumps the project version for the release.

Comment on lines 112 to 116
/**
* Sets the path in the config file where the version number is stored.
*
* Defaults to `"config-version"`. Call this in the `init` block before
* Defaults to `"_config_version"`. Call this in the `init` block before
* any migration registrations if you need a custom key.
Copy link

Copilot AI Mar 29, 2026

Choose a reason for hiding this comment

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

The updated default version key here is now "_config_version", but ConfigMigrationBuilder.versionKey KDoc still states the default is "config-version" (see ConfigMigrationBuilder.kt). Consider updating that KDoc too so docs are consistent and users don’t get conflicting guidance on the default schema version path.

Copilot uses AI. Check for mistakes.
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.

2 participants