fix(deps): update configurate3 to v4 #21
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
6b6t/FasterVelocity!21
Loading…
Reference in a new issue
No description provided.
Delete branch "renovate/major-configurate3"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
3.7.3→4.2.03.7.3→4.2.03.7.3→4.2.0Release Notes
SpongePowered/Configurate (org.spongepowered:configurate-gson)
v4.2.0: Configurate v4.2.0Compare Source
At long last, Configurate 4.2.0 is here. This release offers a variety of smaller features and fixes, please see below for a full listing. Thank you for your patience -- hopefully we have some bigger things to offer in the near future.
(you didn't see any mistakes in the publishing of this release)
what's changed
core
06c4e3c- Fix list value cannot be de-serialized (#421)2ed493f- fix(core): Pass through exceptions from TypeSerializers621e791- fix(core): Be stricter about implicitly creating list nodes169bbdc- feat(core): Add TypeSerializer for Optional8c35fd3- core: Add new PatternFlags annotation to modify the Pattern serializer0edfdcf- core: Box when setting values with a Typeb448919- core: Correct documentation on BooleanSerializer for 4.0.0 changes48dd2c8- core: Allow type serializers to work with annotated types (#296)66092f4- core: Add an object discoverer for only instantiable objects255c724- core: Allow building empty transformationsea956f5- core: Add support for object mapper post-processing (#294)1333c96- Add a LoaderOptionSource to configure loaders (#215)3c48e84- core: Handle interaction of implicit initialization and default valuesb8df03e- core: Actually stop trying to write files when successful49575dd- core: Correct javadoc in ConfigurationOptions for implicit init optionfa4ccd1- Fix getString serialization. (#245)1392ef7- Remove some erroneous nullable annotations from ConfigurationNode (#217)hocon
41dc9e4- fix(hocon): out of bounds exception with empty comment line (#451)458466c- hocon: fix round-tripping of extraneous comment indent (#449)4d58ce3- hocon: Add option for indent level (#448)53201ee- hocon: setup vendor project, remove config sorting on write and use order preserving collections (#446)yaml
f8bb158- yaml: Move to bundled patched copy of SnakeYAML5e745c3- fix(snakeyaml): Avoid emitting unnecessary whitespace with commentsextra-kotlin
3ad6a69- Add Kotlin extensions and helpers around ObjectMapper and Processors (#409)extra-dfu4
859aec5- extra-dfu4: Add cross-compatibility with SLF4J-using versions of DFUtooling changes
352310e- build: Publish javadoc to Sponge-wide indexa9becef- build: Fix aggregate javadoc exclusions (#205)New Contributors
Full Changelog: https://github.com/SpongePowered/Configurate/compare/4.1.2...4.2.0
v4.1.2: Configurate v4.1.2Compare Source
v4.1.1: Configurate v4.1.1Compare Source
v4.1.0: Configurate v4.1.0Compare Source
This is a minor feature release to the Configurate v4 series that addresses a variety of bugfixes, small API additions, and Javadoc tweaks that have built up in the months since the 4.0.0 release.
Thanks to forresthopkinsa, jpenilla, and ItsTehBrian for their contributions to this release.
Added
NodePath.plusadded to combine pathsAbstractListChildSerializeris now part of Configurate's public APIConfigurationLoaderto load/save from strings.so they appear hidden in file viewersConfigurationOptionsandAbstractConfigurationLoaderConfigurationNode.requiremethods for cases where a return value is known to be non-null, to avoid nullabilty warnings in IDEsflagsfield to the@Matchesconstrant annotation to pass throughPatternflagsGsonConfigurationLoader.gsonSerializers())ConfigurationNodeFixed
EnumSets rather thanHashSetsTypes.box/unboxnull-valued non-virtual nodes (#187)getmethod to use the appropriate Java overload ofget(#185)Deprecated
NodePath.plusextension function has been deprecated since it is replaced by theplusmethod inNodePathitself.v4.0.0: Configurate v4.0.0Compare Source
Welcome to a new major release of Configurate! We've taken the time to review a lot of longstanding pain points, so there are a variety of breaking changes in this release. Some of the behaviour changes can be subtle, so please read the changelog carefully.
To ease upgrading for IntelliJ users, a migration XML file has been attached to this release. This can be imported as IDE settings, or placed in your
$INTELLIJ_HOME/migrationfolder (in%APPDATA%/Roaming/JetBrainson Windows).New features
TypeSerializers forPathandFileregisterExactmethod toTypeSerializerCollection.Builderto register serializers for only a single type and not its subtypes.DynamicOpsimplementation,DataFix-using transformations, and conversions betweenCodecs andTypeSerializers.NodePathacross the whole API, for operations like resolving nodes and specifying transformation paths.ConfigurateException, which provide more machine-readable metadata.ConfigurateExceptionextendsIOException, so existing error handling may not break.NodeFactoryinterface to provide a common view for creating configuration nodes.YAMLfiles indented with tabs.TypeSerializers. This will, for collection types, resolvenullnode values as empty collections. Implicit initialization is enabled by default.Breaking changes
ninja.leapingtoorg.spongepoweredpackage.objectmapping.serializetoserializepackage.getandsetprefixes from method names across the API.TypeTokenmoving to use eitherjava.lang.reflect.Typeor the GeAnTyRefTypeToken.configurate-jsonimplementation toconfigurate-jackson.configurate-ext-kotlintoconfigurate-extra-kotlin.coreintoconfigurate-extra-guice.nullvalues instead.YamlConfigurationLoadernow returnsCommentedConfigurationNodeinstances, in preparation for full comment support coming in a future release.YAMLandHOCONloaders, the underlying libraries used are now to be treated as an implementation detail. All API that directly referenced them has been replaced with equivalents that use Configurate types.ConfigurationOptionsvalues forshouldCopyDefaultshas been set totrue.Object Mapper
The object mapper has changed quite a bit, so most users will need to change their use in some way.
TypeSerializerCollectionto be immutable. A new child collection must be created to add custom type serializers.ObjectMapper.Factory.Builderfor a more thorough overview.configurate-extra-kotlinmodule, Kotlindataclasses.The
@Settingannotation is now optional. By default, all non-transient fields will be included in objects, and names will be converted to thekebab-casenaming scheme. Both of these can be customized with a customObjectMapper.FactoryshouldCopyDefaultsoption is now respected for mapped object fields.ObjectMapperFactoryfield has been removed fromConfigurationOptions. Instead, the object mapper can be registered like any other type serializer, using theTypeSerializerCollection.Builder#registerAnnotatedObjectsmethod.Bugs fixed
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.