diff --git a/CMakeLists.txt b/CMakeLists.txt index 9a83ec1..8b10f9b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,7 +7,7 @@ endif() # ========== Project ========== project(patternia - VERSION 0.9.6 + VERSION 0.9.7 DESCRIPTION "Header-only pattern matching library for modern C++" LANGUAGES CXX ) diff --git a/README.md b/README.md index 2f6f555..ae1861a 100644 --- a/README.md +++ b/README.md @@ -410,7 +410,7 @@ target_link_libraries(your_target PRIVATE patternia::patternia) include(FetchContent) FetchContent_Declare(patternia GIT_REPOSITORY https://github.com/sentomk/patternia.git - GIT_TAG v0.9.6 + GIT_TAG v0.9.7 ) FetchContent_MakeAvailable(patternia) diff --git a/docs/changelog/releases.md b/docs/changelog/releases.md index 185c4d6..081fb97 100644 --- a/docs/changelog/releases.md +++ b/docs/changelog/releases.md @@ -5,6 +5,7 @@ normalized where necessary so examples reflect the current supported API surface. ## 0.9.x +- [v0.9.7](v0.9.7.md) - November 2026 (Hotfix) - [v0.9.6](v0.9.6.md) - November 2026 - [v0.9.5](v0.9.5.md) - October 2026 - [v0.9.4](v0.9.4.md) - August 2026 diff --git a/docs/changelog/v0.9.7.md b/docs/changelog/v0.9.7.md new file mode 100644 index 0000000..607fcac --- /dev/null +++ b/docs/changelog/v0.9.7.md @@ -0,0 +1,67 @@ +# Patternia v0.9.7 Hotfix Release Note + +**Release Date:** November 2026 +**Version:** 0.9.7 +**Type:** Hotfix + +--- + +## Overview + +Patternia v0.9.7 is a hotfix release for v0.9.6. An installed copy of +v0.9.6 does not compile: four headers added in v0.9.6 were left out of +the install, so `#include ` fails with a +missing-file error. v0.9.7 installs every header. The library code is +the same as in v0.9.6. + +If you use v0.9.6 through vcpkg, `cmake --install` or +`find_package(patternia)`, upgrade to v0.9.7. Code that uses the source +tree directly (an include path, `add_subdirectory` or `FetchContent`) +was not affected. + +--- + +## Bug Fixes + +### Installed package missing headers + +`CMakeLists.txt` installed the headers named in a hand-written list, +and the four headers added in v0.9.6 were never added to it: + +- `ptn/core/common/index_switch.hpp` +- `ptn/core/common/inline.hpp` +- `ptn/core/common/owned_eval.hpp` +- `ptn/pattern/plain_value.hpp` + +The public headers are now collected from `include/ptn` with +`file(GLOB_RECURSE)`, so a new header is installed without a list to +update. ([#113](https://github.com/sentomk/patternia/pull/113)) + +--- + +## Internal Improvements + +- New CTest test `install.consumer`: it installs the build tree into a + scratch prefix, checks that every header under `include/` was + installed, and builds and runs a program that finds the package with + `find_package(patternia)`. It runs with the rest of the suite on + every CI configuration. + +--- + +## Documentation + +- The README is rewritten for v0.9.6, with the performance section + moved up. ([#111](https://github.com/sentomk/patternia/pull/111)) +- The documentation site moved to + [patternia.cc](https://patternia.cc/). + ([#109](https://github.com/sentomk/patternia/pull/109)) + +--- + +## Impact + +- API surface: unchanged. +- Runtime semantics and generated code: unchanged. +- Install: `cmake --install` and package managers now ship every + header. diff --git a/docs/roadmap.md b/docs/roadmap.md index c897b00..37c437b 100644 --- a/docs/roadmap.md +++ b/docs/roadmap.md @@ -32,7 +32,7 @@ Feedback on any item is welcome in | Version | Main additions | |---|---| -| v0.9.7 | Explicit result types and lazy construction/function expressions | +| v0.9.8 | Explicit result types and lazy construction/function expressions | | v0.10 | Exhaustiveness, checked intervals, and complete enum domains | | v0.11 | Nested patterns, multiple subjects, and structural coverage | | v0.12 | Broader performance work, reflection, and positional constructor patterns | @@ -43,7 +43,7 @@ delivery dependencies, not claims that the planned APIs exist today. --- -## v0.9.7 — Result types and lazy expressions { data-toc-label="v0.9.7" } +## v0.9.8 — Result types and lazy expressions { data-toc-label="v0.9.8" } **Status:** Planned @@ -525,7 +525,7 @@ concrete use case first. `array`. - **Conditional expression handlers.** `iif(cond, a, b)` would evaluate only the chosen expression. Calls and construction are scheduled for - v0.9.7; conditional evaluation still needs a concrete use case. + v0.9.8; conditional evaluation still needs a concrete use case. - **More value types on the left of `>>`.** Accepting any equality-comparable type, not only arithmetic, enum and string types. @@ -546,6 +546,7 @@ Recent releases. Earlier versions are in the | Version | Highlights | |---|---| +| [v0.9.7](changelog/v0.9.7.md) | Hotfix: the installed package includes every header (v0.9.6 left four out) | | [v0.9.6](changelog/v0.9.6.md) | `$` as the final fallback; expression handlers; plain values inside patterns; `match(std::move(x))` owns the subject; literal and variant matches compile like a hand-written `switch` on GCC | | [v0.9.5](changelog/v0.9.5.md) | `has<...>` is tuple-like for macro-free member names; `PTN_BIND` deprecated; bare `is` / `alt` reach static dispatch; handler classification no longer instantiates generic lambdas | | [v0.9.4](changelog/v0.9.4.md) | `PTN_BIND` member-anchored guard names; operator sugar for `neg`, `any` and `all` | diff --git a/mkdocs.yml b/mkdocs.yml index c7a635a..fb37dbc 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -101,6 +101,7 @@ nav: - Changelog: - Releases: changelog/releases.md + - v0.9.7: changelog/v0.9.7.md - v0.9.6: changelog/v0.9.6.md - v0.9.5: changelog/v0.9.5.md - v0.9.4: changelog/v0.9.4.md diff --git a/packaging/vcpkg/vcpkg.json b/packaging/vcpkg/vcpkg.json index a7c2b73..72b0f38 100644 --- a/packaging/vcpkg/vcpkg.json +++ b/packaging/vcpkg/vcpkg.json @@ -1,6 +1,6 @@ { "name": "patternia", - "version": "0.9.6", + "version": "0.9.7", "description": "Header-only pattern matching library for modern C++", "homepage": "https://github.com/SentoMK/patternia", "license": "MIT",