From a8a1a43f5f6ae4080eea3bd521d0f867b7750e0a Mon Sep 17 00:00:00 2001 From: Michael Matloka Date: Wed, 22 Jan 2025 13:59:41 +0100 Subject: [PATCH 1/2] fix: Account for `import posthog` in posthoganalytics release --- posthog/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/posthog/version.py b/posthog/version.py index 9b58e337..620bc5d9 100644 --- a/posthog/version.py +++ b/posthog/version.py @@ -1,4 +1,4 @@ -VERSION = "3.9.0" +VERSION = "3.9.1" if __name__ == "__main__": print(VERSION, end="") # noqa: T201 From 1fc49a0a29d8e9a9c68aa904e542708b48eff5c4 Mon Sep 17 00:00:00 2001 From: Michael Matloka Date: Wed, 22 Jan 2025 13:59:45 +0100 Subject: [PATCH 2/2] chore: Bump patch --- CHANGELOG.md | 8 ++++++-- Makefile | 2 ++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fa038541..3bfa23fc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ -## 3.8.5 - 2025-01-22 +## 3.9.1 - 2025-01-22 -1. Add tracing event to langchain callbacks. +1. Fix importing of LangChain callback handler under certain circumstances. + +## 3.9.0 - 2025-01-22 + +1. Add `$ai_trace` event emission to LangChain callback handler. ## 3.8.4 - 2025-01-17 diff --git a/Makefile b/Makefile index 960fba91..00d1b124 100644 --- a/Makefile +++ b/Makefile @@ -17,11 +17,13 @@ release_analytics: rm -rf posthoganalytics mkdir posthoganalytics cp -r posthog/* posthoganalytics/ + find ./posthoganalytics -type f -exec sed -i '' -e 's/import posthog/import posthoganalytics/g' {} \; find ./posthoganalytics -type f -exec sed -i '' -e 's/from posthog\./from posthoganalytics\./g' {} \; rm -rf posthog python setup_analytics.py sdist bdist_wheel twine upload dist/* mkdir posthog + find ./posthoganalytics -type f -exec sed -i '' -e 's/import posthoganalytics/import posthog/g' {} \; find ./posthoganalytics -type f -exec sed -i '' -e 's/from posthoganalytics\./from posthog\./g' {} \; cp -r posthoganalytics/* posthog/ rm -rf posthoganalytics