From 49164689e31c1fa20441e08f3a5ed17d73e2e6f4 Mon Sep 17 00:00:00 2001 From: Jacob Oaks Date: Wed, 29 May 2024 13:48:27 -0400 Subject: [PATCH 1/2] Prepare Release 1.22.0 This updates the changelog and the version for a 1.22.0 release. I will wait to merge this until #1207 is reviewed. Ref: #1204 --- CHANGELOG.md | 17 +++++++++++++++-- version.go | 2 +- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index eca94b10a..5c94a92d8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,8 +10,21 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## Unreleased -- No changes yet. +## [1.22.0](https://github.com/uber-go/fx/compare/v1.21.1...v1.22.0) - 2024-05-29 + +### Added +- Add `fx.Self` which can be passed to the `fx.As` annotation to signify + that a type should be provided as itself. +- Add `fxtest.EnforceTimeout` that can be passed to `fxtest.NewLifecycle` + to force `Start` and `Stop` to return context errors when hook context expires. + +### Changed +- `fx.Private` can now be used with `fx.Supply`. + +### Fixed +- Fx apps will no longer listen to OS signals when they are stopped, + solving blocking issues in programs that depended on OS signals + after an Fx app stops. ## [1.21.1](https://github.com/uber-go/fx/compare/v1.21.0...v1.21.1) - 2024-04-24 diff --git a/version.go b/version.go index 261732e4d..130cb33f7 100644 --- a/version.go +++ b/version.go @@ -21,4 +21,4 @@ package fx // Version is exported for runtime compatibility checks. -const Version = "1.22.0-dev" +const Version = "1.22.0" From da79543ba06ce8007784acc3761216b5618159e0 Mon Sep 17 00:00:00 2001 From: Jacob Oaks Date: Thu, 30 May 2024 10:05:22 -0400 Subject: [PATCH 2/2] Update date --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c94a92d8..1d7286f18 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,7 +10,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [1.22.0](https://github.com/uber-go/fx/compare/v1.21.1...v1.22.0) - 2024-05-29 +## [1.22.0](https://github.com/uber-go/fx/compare/v1.21.1...v1.22.0) - 2024-05-30 ### Added - Add `fx.Self` which can be passed to the `fx.As` annotation to signify