Skip to content

Releases: Carleslc/Simple-YAML

1.6

04 Jul 07:28
82290ee
Compare
Choose a tag to compare
1.6
  • Comments can now be retrieved via code (getComment).
    • Use setComment to add comments programmatically.
  • Added a method to get a String representation of the file configuration including comments (saveToStringWithComments).
    • YamlFile now has a toString method to get a String representation of the file configuration, with or without comments depending on the method used to load the file configuration (load or loadWithComments).
  • Addition of comments take into account the path separator (. by default) and indentation (2 by default) set by YamlConfigurationOptions. Edit those configurations with YamlFile options().

1.5

03 Jul 11:26
Compare
Choose a tag to compare
1.5
  • Comments bugfixes (#6 #9)
  • Added side comments support
  • Comments can now be added programmatically

If you want to use comments you must use saveWithComments instead of save. In addition, when adding comments via code loadWithComments should be used too instead of load to preserve comments that may already exist.

1.4.2

02 Jul 14:29
Compare
Choose a tag to compare
700~ kb File size reduced.