From 887c07c227c6e81a3fd9112ea040e1d09abea759 Mon Sep 17 00:00:00 2001 From: Sung Yoon Whang Date: Wed, 4 Jan 2023 09:27:10 -0800 Subject: [PATCH] Release v1.19.0 (#1011) --- CHANGELOG.md | 27 +++++++++++++++++++++++++-- version.go | 2 +- 2 files changed, 26 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c54e5d64..b157adb7a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,8 +10,31 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). -## Unreleased -- No changes yet. +## [1.19.0](https://github.com/uber-go/fx/compare/v1.18.2...v1.19.0) - 2023-01-03 +### Added +- `fx.RecoverFromPanics` Option which allows Fx to recover from user-provided constructors + and invoked functions. +- `fx.Private` that allows the constructor to limit the scope of its outputs to the wrapping + `fx.Module`. +- `ExitCode` ShutdownOption which allows setting custom exit code at the end of app + lifecycle. +- `Wait` which returns a channel that can be used for waiting on application shutdown. +- fxevent/ZapLogger now exposes `UseLogLevel` and `UseErrorLevel` methods to set + the level of the Zap logs produced by it. +- Add lifecycle hook-convertible methods: `StartHook`, `StopHook`, `StartStopHook` + that can be used with more function signatures. + +### Changed +- `fx.WithLogger` can now be passed at `fx.Module` level, setting custom logger at + `Module` scope instead of the whole `App`. + +### Fixed +- `fx.OnStart` and `fx.OnStop` Annotations now work with annotated types that was + provided by the annotated constructor. +- fxevent/ZapLogger: Errors from `fx.Supply` are now logged at `Error` level, not + `Info`. +- A race condition in lifecycle Start/Stop methods. +- Typos in docs. ## [1.18.2](https://github.com/uber-go/fx/compare/v1.18.1...v1.18.2) - 2022-09-28 diff --git a/version.go b/version.go index 6a7dd540d..9fe266817 100644 --- a/version.go +++ b/version.go @@ -21,4 +21,4 @@ package fx // Version is exported for runtime compatibility checks. -const Version = "1.19.0-dev" +const Version = "1.19.0"