github dmno-dev/varlock varlock@0.4.1

latest releases: @varlock/vite-integration@1.1.0, @varlock/nextjs-integration@1.1.0, @varlock/expo-integration@1.1.0...
one month ago

Patch Changes

  • #358 c7e2d7a - Add shell output format to varlock load command. --format shell outputs export KEY=VALUE lines suitable for eval or sourcing into the current shell session, enabling easy integration with tools like direnv.

  • #371 1b9797e - Fix dynamic @required being incorrectly resolved after type generation runs.

    When generateTypesIfNeeded() ran before resolveEnvValues() (as it does in the CLI), getTypeGenInfo() would call resolve() on dynamic decorators like @required=eq($OTHER, foo) before their dependencies were resolved. This cached a stale result on the decorator, causing processRequired() to return the wrong value when env values were later resolved.

    The fix skips calling resolve() for dynamic decorators in getTypeGenInfo() — their runtime value is irrelevant for type generation anyway (dynamic required items are always typed as optional).

  • #364 78307f9 - fix: varlock printenv MY_VAR was failing with Variable "printenv" not found in schema because gunshi includes the subcommand name in ctx.positionals. Now correctly slices past the subcommand path to extract the variable name.

  • #356 61e2094 - Add enabled option to @setValuesBulk decorator, allowing conditional bulk value injection based on boolean expressions (including dynamic expressions referencing other config items).

  • #352 0e4d39a - Support XDG Base Directory Specification for user config directory. Varlock now respects $XDG_CONFIG_HOME and defaults to ~/.config/varlock instead of ~/.varlock for new installations, while maintaining backwards compatibility with existing ~/.varlock directories.

Don't miss a new varlock release

NewReleases is sending notifications on new releases.