From 90d8428eeafbcc3cecabe7f5a7311bd8d2e9434a Mon Sep 17 00:00:00 2001 From: igerber Date: Sun, 25 Jan 2026 06:51:32 -0500 Subject: [PATCH] Bump version to 2.1.7 Co-Authored-By: Claude Opus 4.5 --- CHANGELOG.md | 13 +++++++++++++ diff_diff/__init__.py | 2 +- pyproject.toml | 2 +- rust/Cargo.toml | 2 +- 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 87e1b29..c4411fc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,18 @@ 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.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [2.1.7] - 2026-01-25 + +### Fixed +- **`plot_event_study` reference period normalization behavior** + - Effects are now only normalized when `reference_period` is explicitly provided + - Auto-inferred reference periods only apply hollow marker styling (no normalization) + - Reference period SE is set to NaN during normalization (constraint, not estimate) + - Updated docstring to clarify explicit vs auto-inferred behavior + +### Changed +- Refactored visualization tests to reuse `cs_results` fixture for better performance + ## [2.1.6] - 2026-01-24 ### Added @@ -530,6 +542,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `to_dict()` and `to_dataframe()` export methods - `is_significant` and `significance_stars` properties +[2.1.7]: https://github.com/igerber/diff-diff/compare/v2.1.6...v2.1.7 [2.1.6]: https://github.com/igerber/diff-diff/compare/v2.1.5...v2.1.6 [2.1.5]: https://github.com/igerber/diff-diff/compare/v2.1.4...v2.1.5 [2.1.4]: https://github.com/igerber/diff-diff/compare/v2.1.3...v2.1.4 diff --git a/diff_diff/__init__.py b/diff_diff/__init__.py index e32c1d7..c0d728c 100644 --- a/diff_diff/__init__.py +++ b/diff_diff/__init__.py @@ -136,7 +136,7 @@ load_mpdta, ) -__version__ = "2.1.6" +__version__ = "2.1.7" __all__ = [ # Estimators "DifferenceInDifferences", diff --git a/pyproject.toml b/pyproject.toml index d76002c..4f0b938 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "maturin" [project] name = "diff-diff" -version = "2.1.6" +version = "2.1.7" description = "A library for Difference-in-Differences causal inference analysis" readme = "README.md" license = "MIT" diff --git a/rust/Cargo.toml b/rust/Cargo.toml index eed07f0..d34b02e 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "diff_diff_rust" -version = "2.1.6" +version = "2.1.7" edition = "2021" description = "Rust backend for diff-diff DiD library" license = "MIT"