From 00129072fda571bab1e074b4e3a5aced52c66ce9 Mon Sep 17 00:00:00 2001 From: Danil Petrov Date: Fri, 16 Aug 2024 12:34:18 +1000 Subject: [PATCH 1/3] Fix panicking when handling type aliases in static analysis. --- CHANGELOG.md | 7 + static/adaptor_test.go | 2 +- static/analysis.go | 2 + static/app_test.go | 14 +- static/constructor_test.go | 2 +- static/handler_test.go | 166 +++++++++++++++++- static/ident_test.go | 6 +- static/invalid_test.go | 2 +- static/static.go | 11 ++ .../testdata/handlers/typealias/aggregate.go | 48 +++++ static/testdata/handlers/typealias/app.go | 28 +++ .../handlers/typealias/integration.go | 47 +++++ static/testdata/handlers/typealias/process.go | 72 ++++++++ .../testdata/handlers/typealias/projection.go | 55 ++++++ 14 files changed, 441 insertions(+), 21 deletions(-) create mode 100644 static/testdata/handlers/typealias/aggregate.go create mode 100644 static/testdata/handlers/typealias/app.go create mode 100644 static/testdata/handlers/typealias/integration.go create mode 100644 static/testdata/handlers/typealias/process.go create mode 100644 static/testdata/handlers/typealias/projection.go diff --git a/CHANGELOG.md b/CHANGELOG.md index ba279f79..15c3a3be 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,12 @@ The format is based on [Keep a Changelog], and this project adheres to [keep a changelog]: https://keepachangelog.com/en/1.0.0/ [semantic versioning]: https://semver.org/spec/v2.0.0.html +## [0.13.5] - 2024-08-16 + +### Fixed + +- Fixed panicking when handling type aliases in static analysis. + ## [0.13.4] - 2024-08-16 ### Added @@ -308,6 +314,7 @@ interfaces. It does not yet include support for static analysis of the new [0.13.2]: https://github.com/dogmatiq/configkit/releases/v0.13.2 [0.13.3]: https://github.com/dogmatiq/configkit/releases/v0.13.3 [0.13.4]: https://github.com/dogmatiq/configkit/releases/v0.13.4 +[0.13.5]: https://github.com/dogmatiq/configkit/releases/v0.13.5