Skip to content

Latest commit

 

History

History
112 lines (80 loc) · 7.38 KB

CHANGELOG.md

File metadata and controls

112 lines (80 loc) · 7.38 KB

Changelog

v2.1.0 - 2023-04-30

Added

  • Added State.Errors. #20

v2.0.1 - 2022-10-10

Added

  • Added ContextWithHealth and HealthFromContext. #18

Fixed

  • Fixed wait group race condition. #17

v2.0.0 - 2021-05-31

Added

  • The Finalize methods on process instances are now invoked when defined. #5
  • Added WithInjecter and WithHealth. #14, #16
  • Added Logger interface, LogFields type, and NilLogger variable, and WithMetaLogger method. #15, #16

Changed

  • Added context parameters to Init, Start, Stop, and Finalize methods. #5
  • Removed config parameters from Init methods. #7
  • The Init methods of initializers and processors registered at the same priority initializer or process priority are now called concurrently. #9
  • Initializers are now invoked before the processes of the same priority, but after the processes of the previous priority. #16
  • Renamed Process to Runner and its Start method to Run. #16
  • Extracted the Stop method from the Runner into a Stopper interface. #16
  • The Runner interface was replaced with a Run function returning a State value that abstracts application shutdown. #16
  • The ProcessContainer, ProcessMeta, and InitializerMeta interfaces were replaced with Container, ContainerBuilder, and Meta structs. This localizes the differences between a process and an interface to registration (and not execution). #16
  • The Health interface was replaced with Health and HealthComponentStatus structs. #16
  • Renamed With{Initializer,Process}{Option} to WithMeta{Option}, WithProcessLogFields to WithMetadata, InjectHook to Injecter, and WithSilentExit to WithEarlyExit. #16

Removed

  • Removed ParallelInitializer. #9
  • Removed mocks package. #11
  • Removed dependency on go-nacelle/service. #14
  • Removed dependency on go-nacelle/log. #15
  • Removed now irrelevant options WithStartTimeout, WithHealthCheckInterval, and WithShutdownTimeout. #16

v1.1.0 - 2020-10-03

Added

Removed

Fixed

Changed

v1.0.1 - 2019-06-07

Added

  • Added HasReason to Health. #1

v1.0.0 - 2019-06-17

Changed