Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
1 change: 1 addition & 0 deletions docs/changelog/releases.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
67 changes: 67 additions & 0 deletions docs/changelog/v0.9.7.md
Original file line number Diff line number Diff line change
@@ -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 <ptn/patternia.hpp>` 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.
7 changes: 4 additions & 3 deletions docs/roadmap.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand All @@ -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

Expand Down Expand Up @@ -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.
Expand All @@ -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) |
Comment thread
sentomk marked this conversation as resolved.
Resolved
| [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<T>` / `alt<I>` 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` |
Expand Down
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packaging/vcpkg/vcpkg.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Loading