Skip to content

v1.2.0

Choose a tag to compare

@autorelease3 autorelease3 released this 04 Sep 17:19
· 6 commits to master since this release
Immutable release. Only release title and notes can be modified.
v1.2.0
89ab006

✨ Features

  • ✨ Add PrintInfoLevelErrorAndParamsWithDebugTransformer error handler (#410)

  • Adds the clipackager module.

    This module provides functions that can be used to download and package CLIs within Go programs.
    (#417)

  • Add NewFileRefreshableWithReaderFunc for custom file processing (#414)

  • refreshable: Add NewFileRefreshable[WithTicker] for periodically reading file contents. (#400)

  • Add MapFromValidated and MergeValidatedAndRefreshable helpers for Validated refreshables (#428)

  • Auto-cleanup derived refreshable subscriptions via runtime.AddCleanup (#435)

🐛 Fixes

  • Updates the safejson.FromYAMLValue function such that it can handle converting input maps that have any key type that can marshalled by json.Marshal (string, number, and types that implement encoding.TextMarshaler).

    Previously, only handled input maps where the key type was string, which is a subset of the types that can actually be marshalled by json.Marshal.
    (#407)

  • Use correct tags slice when context has no registry stored (#422)

💡 Improvements

  • Add more configurability for updating CertPools for servers and clients (#408)
  • Adds support for parsing times of the form "2006-01-02T15:04Z", which are valid according to ISO 8601 (and produced by Java's OffsetDateTime), but not according to RFC 3339. (#429)
  • Adds the RunGenerate function to the clipackager package. Adds reusable logic to make it simpler to write "go generate" files that fetch assets to package. (#427)
  • Document safejson.Unmarshal trailing bytes behavior (#406)
  • Add MapFromValidatedChecked as a validating util (#432)
  • Add CollectMutable for dynamically adding Refreshables to a collection (#412)
  • Pull apart Validated and Refreshable interfaces to ensure that error propagation is possible (#424)
  • Add a MapValues utilities function and use it to implement a NewMultiFileRefreshable (#409)
  • metrics: Use single context value for both Registry and tags (#420)
  • Add logic into refreshable/refreshable_file.go to skip reading files from disk unless there is an indication that the file has changes (#423)
  • Add a generic ticker refreshable and have the file based refreshable use it (#425)
  • Update specdir functions to use filepath rather than path to construct paths. (#411)

Full Changelog: v1.1.0...v1.2.0