Skip to content

Releases: moltenjson/MoltenJSON

Fix paths in ConfigurationPack

08 Dec 18:09

Choose a tag to compare

Fixed path separators in ConfigurationPack.

ConfigurationPack API + bug fixes

03 Dec 14:38

Choose a tag to compare

Added:

  • ConfigurationPack
  • DeriveFrom
  • DirectConfiguration#save(Gson, Consumer)

Bug fixes

16 Nov 19:59

Choose a tag to compare

  • Fix SelectableConfiguration not entirely using the specified GSON
  • Method additions

Full lazy handling support

15 Aug 09:11

Choose a tag to compare

Added:

  • TreeConfigurationBuilder#setLazy(boolean)
  • TreeConfiguration#lazySave()

Changed:

  • TreeConfiguration#save() - Throws IllegalStateException if configuration is lazy

Implement lazy loading in TreeConfiguration, bug fixes

09 Aug 12:29

Choose a tag to compare

Added:

  • TreeConfiguration#lazyLoad(N name, Type type): Loads the required data when requested only

Changed:

  • TreeConfigurationBuilder#setRestrictedExtensions(ImmutableList) and TreeConfigurationBuilder#setExclusionPrefixes(ImmutableList) now require the list to contain at least 1 element, and otherwise throw an IllegalArgumentException.

Bug fixes:

  • Fixed TreeFileFilter not allowing any file when restricted extensions was empty

Implement Refresh API

25 Jul 20:51

Choose a tag to compare

Most of the MoltenJSON components allow use of #refresh(), which updates any cached content appropriately to how the component is implemented.

Bug fixes, behind-the-scenes changes

10 Jul 12:55

Choose a tag to compare

Changes:

  • Prepare the project for MoltenJSON migration
  • Prepare the project for publishing to Maven Central
  • Convert the project to use org.jetbrains.annotations instead of manual Preconditions checks

Bug fixes:

  • A performance goof in TreeConfiguration, mapping the values twice instead of once when created (would have no effect in the map structure, but increases the calls to it).

Additions:

  • Added TreeConfiguration#getOrDefault(name, fallback).
  • Invalid files will throw net.moltenjson.exceptions.InvalidFileException if ignoreInvalidFiles is set to false.

TreeConfiguration implementation, bug fixes

22 Jun 17:57

Choose a tag to compare

Added:

  • Create TreeConfiguration
  • Create TreeConfigurationBuilder
  • Create TreeNamingStrategy
  • Create TreeFileFilter
  • Added DirectConfiguration#getAs(Type, Gson). See documentations for details
  • Added DirectConfiguration#getAs(Type). See documentations for details

Changed:

  • Refactored DirectConfiguration package to be in ...configuration.direct.DirectConfiguration
  • All checks use com.google.common.base.Preconditions instead of java.util.Objects (consistency)
  • All sub-classes of Lockable now return their instance on #setFile()

Bug fixes:

  • JsonWriter's #setFile() method not updating content
  • JsonWriter's #setFile() method not updating file instance

New JsonResponse component, stability, performance, documents, null checks, bug fixes, and more convenience.

07 Jun 21:00

Choose a tag to compare

New JsonResponse:
This component is mainly for handling RESTful APIs JSON responses and extract any type of information from them easily, using simple and straightforward getters.

Reflection fixes

23 Feb 18:23

Choose a tag to compare

2.0.1-SNAPSHOT

Update versioning