aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisXander <xandersmith2008@gmail.com>2023-09-28 16:26:51 +0100
committerisXander <xandersmith2008@gmail.com>2023-09-28 16:26:51 +0100
commitccaeeba0cd3982029e07ec5a9d2d71092d4d60d5 (patch)
treeb35345e84404c4fbc1b388a8ed60fab5acd8bb59
parent6e9e9cd4fbcd6f2f87b6246f8aef446802a7b443 (diff)
downloadYetAnotherConfigLib-ccaeeba0cd3982029e07ec5a9d2d71092d4d60d5.tar.gz
YetAnotherConfigLib-ccaeeba0cd3982029e07ec5a9d2d71092d4d60d5.tar.bz2
YetAnotherConfigLib-ccaeeba0cd3982029e07ec5a9d2d71092d4d60d5.zip
Bump version 3.2.1+1.20.2 and add changelog
-rw-r--r--build.gradle.kts2
-rw-r--r--changelogs/3.2.1+1.20.2.md20
2 files changed, 21 insertions, 1 deletions
diff --git a/build.gradle.kts b/build.gradle.kts
index d469063..28bbb2d 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -13,7 +13,7 @@ architectury {
minecraft = libs.versions.minecraft.get()
}
-version = "3.2.0+1.20.2"
+version = "3.2.1+1.20.2"
val isBeta = "beta" in version.toString()
val changelogText = rootProject.file("changelogs/${project.version}.md").takeIf { it.exists() }?.readText() ?: "No changelog provided."
diff --git a/changelogs/3.2.1+1.20.2.md b/changelogs/3.2.1+1.20.2.md
new file mode 100644
index 0000000..81b8757
--- /dev/null
+++ b/changelogs/3.2.1+1.20.2.md
@@ -0,0 +1,20 @@
+# YetAnotherConfigLib 3.2.1 for 1.20.2
+
+## Changes
+
+### Config API
+
+- Added `ConfigClassHandler#save` and `ConfigClassHandler#load` and deprecated `ConfigClassHandler#serializer`.
+ - The serializer should now never be called directly.
+ - New load method tells serializer to load into a new instance of the config class. Only applied if the load was fully successful.
+ - Deprecated `ConfigSerializer#load` for `ConfigSerializer#loadSafely`.
+- Added new parameter on `SerialEntry`, called `required`.
+ - If set to true, and the entry is not found in the config, the config will be re-saved with the default value.
+ - If set to false, and the entry is not found in the config, the default value will be used, but the config will not be re-saved.
+- Added new parameter on `SerialEntry`, called `nullable`.
+ - If set to false, and the entry is found in the config, but the value is null, the default value will be used, and the config will be re-saved.
+
+## Bug Fixes
+
+- Fixed error when using the same image twice.
+- Removed debug log from WEBP and GIF image loaders.