Releases: BenWoodworth/knbt
Releases · BenWoodworth/knbt
knbt v0.9.2
Fixes
- #8 Config option
ignoreUnknownKeys
breaks when there are unknown keys at the end
knbt v0.9.1
Changes
- Removed APIs deprecated in v0.9.0
knbt v0.9.0
Changes
- Added a
StringifiedNbt
format, and moved all SNBT-related APIs inNbt
to it - Added an
NbtFormat
interface thatNbt
andStringifiedNbt
both implement - Require
Nbt
to be configured, withvariant
andcompression
no longer being optional- Removed
Nbt
's companion object with default configuration
- Removed
knbt v0.8.1
Changes
- Removed APIs deprecated in v0.8.0
If you're updating from v0.7 or earlier, update to v0.8.0 and fix deprecations before using v0.8.1. See Upgrading knbt for details.
knbt v0.8.0
This release is the same as the v0.7.0 release, except with fixed deprecations to help with migration:
- Made old API deprecations errors instead of warnings
- Fixed some broken replacement refactorings
knbt v0.7.1
Changes
- Removed APIs deprecated in v0.7.0
If you're updating from v0.6 or earlier, update to v0.7.0 and fix deprecations before using v0.7.1. See Upgrading knbt for details.
knbt v0.7.0
Changes
- Change API to match conventions set by kotlinx.serialization
- Move
NbtTag
classes/extensions fromnet.benwoodworth.knbt.tag
tonet.benwoodworth.knbt
- Use
NbtTag
constructors andvalue
properties instead of conversion functions- e.g.
NbtInt(val value: Int)
instead ofInt.toNbtInt()
andNbtInt.toInt()
- e.g.
- Add convenience properties for casting
NbtTag
to a specific tag types - Rename
Nbt.encodeTo(...)
and.decodeFrom(...)
to e.g..encodeToStream(...)
NbtTag.toString()
now returns Stringified NBT, instead of the backing Kotlin value's.toString()
- e.g.
NbtByte(1).toString()
will return"1b"
instead of just"1"
- e.g.
- Move
Nbt*Array
types are now backed by arrays instead of lists- Add
@BuilderInference
tobuildNbtList {}
so the type parameter can be inferred
Fixes
- Stringified
NbtCompound
entries with empty names (""
) will now render their names with quotes
Breaking changes
- Deprecated old API that's changed to match kotlinx.serialization's (see above)
knbt v0.6.1
Changes
- Added
NbtConfiguration.prettyPrint
and.prettyPrintIndent
for Stringified NBT
knbt v0.6.0
Changes
- Made
NbtTag
polymorphic - Allow
NbtTag
s to be serialized without passingNbtTag.serializer()
Breaking Changes
- Removed generic type from
NbtCompound
knbt v0.5.0
Changes
- Remove deprecated
@NbtFile
annotation - Simplify the way compression level is configured
Fixes
- Make
NbtCompound.serializer()
andNbtList.serializer()
public
Breaking Changes
- Changed compression level configuration:
- From
Nbt { compression = Gzip { level = # } }
- To
Nbt { compression = Gzip; compressionLevel = # }
- From