Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ org.jetbrains.dokka.experimental.gradle.pluginMode=V2Enabled
javaVersion=25
mcVersion=1.21.11
group=dev.slne.surf
version=1.21.11-2.72.0
version=1.21.11-2.72.1
relocationPrefix=dev.slne.surf.surfapi.libs
snapshot=false
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ sealed class SpongeConfigClass<C>(
/**
* 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.
Comment on lines 112 to 116
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.
*
* @param path the path components to the version key
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ interface SurfConfigApi {
configFolder: Path,
configFileName: @JsonConfigFileNamePattern String,
): SpongeConfigManager<C> =
createSpongeYmlConfigManager(configClass, configFolder, configFileName, ConfigMigrationBuilder())
createSpongeJsonConfigManager(configClass, configFolder, configFileName, ConfigMigrationBuilder())

/**
* Creates a Sponge JSON configuration manager.
Expand Down