fix(deps): update configurate3 to v4 (major) #244
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
3.7.3
->4.1.2
3.7.3
->4.1.2
3.7.3
->4.1.2
Release Notes
SpongePowered/Configurate (org.spongepowered:configurate-gson)
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.plus
added to combine pathsAbstractListChildSerializer
is now part of Configurate's public APIConfigurationLoader
to load/save from strings.
so they appear hidden in file viewersConfigurationOptions
andAbstractConfigurationLoader
ConfigurationNode.require
methods for cases where a return value is known to be non-null, to avoid nullabilty warnings in IDEsflags
field to the@Matches
constrant annotation to pass throughPattern
flagsGsonConfigurationLoader.gsonSerializers()
)ConfigurationNode
Fixed
EnumSet
s rather thanHashSet
sTypes.box/unbox
null
-valued non-virtual nodes (#187)get
method to use the appropriate Java overload ofget
(#185)Deprecated
NodePath.plus
extension function has been deprecated since it is replaced by theplus
method inNodePath
itself.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/migration
folder (in%APPDATA%/Roaming/JetBrains
on Windows).New features
TypeSerializer
s forPath
andFile
registerExact
method toTypeSerializerCollection.Builder
to register serializers for only a single type and not its subtypes.DynamicOps
implementation,DataFix
-using transformations, and conversions betweenCodec
s andTypeSerializer
s.NodePath
across the whole API, for operations like resolving nodes and specifying transformation paths.ConfigurateException
, which provide more machine-readable metadata.ConfigurateException
extendsIOException
, so existing error handling may not break.NodeFactory
interface to provide a common view for creating configuration nodes.YAML
files indented with tabs.TypeSerializer
s. This will, for collection types, resolvenull
node values as empty collections. Implicit initialization is enabled by default.Breaking changes
ninja.leaping
toorg.spongepowered
package.objectmapping.serialize
toserialize
package.get
andset
prefixes from method names across the API.TypeToken
moving to use eitherjava.lang.reflect.Type
or the GeAnTyRefTypeToken
.configurate-json
implementation toconfigurate-jackson
.configurate-ext-kotlin
toconfigurate-extra-kotlin
.core
intoconfigurate-extra-guice
.null
values instead.YamlConfigurationLoader
now returnsCommentedConfigurationNode
instances, in preparation for full comment support coming in a future release.YAML
andHOCON
loaders, 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.ConfigurationOptions
values forshouldCopyDefaults
has 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.
TypeSerializerCollection
to be immutable. A new child collection must be created to add custom type serializers.ObjectMapper.Factory.Builder
for a more thorough overview.configurate-extra-kotlin
module, Kotlindata
classes.The
@Setting
annotation is now optional. By default, all non-transient fields will be included in objects, and names will be converted to thekebab-case
naming scheme. Both of these can be customized with a customObjectMapper.Factory
shouldCopyDefaults
option is now respected for mapped object fields.ObjectMapperFactory
field has been removed fromConfigurationOptions
. Instead, the object mapper can be registered like any other type serializer, using theTypeSerializerCollection.Builder#registerAnnotatedObjects
method.Bugs fixed
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 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 has been generated by Mend Renovate. View repository job log here.