Skip to content

flatconfig 0.5.0

Latest

Choose a tag to compare

@grumpypixel grumpypixel released this 27 Oct 22:07
· 71 commits to main since this release

0.5.0

Added:

  • FlatDocument.hasAllKeys()
    Checks whether all specified keys exist in the document.

    • ignoreNulls (default: true) skips null-valued keys.
    • caseSensitive (default: true) controls case matching.
  • FlatDocument.slice(prefix)
    Extracts a subdocument containing only keys that start with the given prefix.
    Operates on the resolved/latest view (unique keys; last value wins) and preserves key order.

  • FlatDocument.stripPrefix(prefix)
    Returns a new document with all keys that start with the given prefix —
    but removes the prefix from each key.
    Ideal for working with grouped or sectioned configurations.

Full Changelog: v0.4.0...v0.5.0