Skip to content

Releases: spf13/viper

v1.9.0

19 Sep 23:26
v1.9.0

Choose a tag to compare

This is a maintenance release primarily containing minor fixes and improvements.

Changes

Added

  • Experimental new encoding layer
  • Add support for tfvars files

Fixed

  • Writing hidden files with no extension
  • InConfig processing paths

In addition to the above changes, this release comes with tons of minor improvements, documentation changes an dependency updates.

Many thanks to everyone who contributed to this release!

v1.8.1

25 Jun 11:58
v1.8.1

Choose a tag to compare

This patch releases fixes two minor issues:

  • Replace %s with %w when wrapping errors
  • Fix pflag.StringArray processing

v1.8.0

16 Jun 01:22
v1.8.0

Choose a tag to compare

This is a maintenance release primarily containing fixes and improvements. The most prominent change is the etcd update to 3.5.0. Thanks to proper Go modules support, the dependency graph became much smaller.

Changes

Added

  • Allow BindEnv to register multiple environment variables
  • Support for accessing slices
  • Experimental WASM support: Viper compiles on WASM
  • INI load options

Changed

  • Ensure BindPFlag detects a nil flag parameter

Fixed

  • Merging a key into a nil target
  • Panics during saving INI files

Security

  • Updated etcd to 3.5 which should make a lot of false positive vulnerability reports disappear

In addition to the above changes, this release comes with tons of minor improvements, documentation changes an dependency updates. Find more details in the 1.8.0 milestone.

Many thanks to everyone who contributed to this release!

v1.7.1

31 Jul 21:40

Choose a tag to compare

This release contains a bugfix for environment variable expansion. See #495 and #940 for details.

v1.7.0

09 May 09:56
13df721

Choose a tag to compare

This release mostly contains bug and security fixes, but there are a few new features as well:

Release v1.6.3

09 Apr 18:22
v1.6.3
59b1917

Choose a tag to compare

Fixes uninstallable library on clean GOPATH

Fix extensionless config lookup

16 Jan 18:31
v1.6.2
4525543

Choose a tag to compare

This is a patch release fixing a(n edge case) bug introduced in v1.6.0

See #818 and #827 for details

Fix config path lookup

06 Dec 16:30

Choose a tag to compare

This is a patch release fixing a bug introduced in v1.6.0

v1.6.0

06 Dec 14:25

Choose a tag to compare

Changes

Added

  • Global UnmarshalExact method
  • StringReplacer interface for custom environment key replacing logic
  • GolangCI Lint
  • INI support
  • Key delimiter made configurable
  • Support for config files without extensions

Changed

  • Moved to GitHub actions build from Travis

Fixed

  • IsSet no longer returns true when an unset key has a flags bound
  • SafeWriteConfigAs works as expected

Happy Holidays!

v1.5.0

01 Nov 11:50
v1.5.0

Choose a tag to compare

Documentation and other fixes