Skip to content

The agent engineering platform.

fix(core): set deprecation `since` to 1.3.3 to match release (#37200)

Nick Hollon55a770783774
diff --git a/libs/core/langchain_core/load/load.py b/libs/core/langchain_core/load/load.py
index 0c992e8c7a..c58189837a 100644
--- a/libs/core/langchain_core/load/load.py
+++ b/libs/core/langchain_core/load/load.py
@@ -398,7 +398,7 @@ class Reviver:
"""
if allowed_objects is None:
warn_deprecated(
- since="1.4.0",
+ since="1.3.3",
message=(
"The default value of `allowed_objects` will change in a future "
"version. Pass an explicit value (e.g., "
@@ -648,7 +648,7 @@ def loads(
"""
if allowed_objects is None:
warn_deprecated(
- since="1.4.0",
+ since="1.3.3",
message=(
"The default value of `allowed_objects` will change in a future "
"version. Pass an explicit list of allowed classes (or "
@@ -781,7 +781,7 @@ def load(
"""
if allowed_objects is None:
warn_deprecated(
- since="1.4.0",
+ since="1.3.3",
message=(
"The default value of `allowed_objects` will change in a future "
"version. Pass an explicit list of allowed classes (or "
diff --git a/libs/core/langchain_core/runnables/base.py b/libs/core/langchain_core/runnables/base.py
index ac6374faf9..6aa33c919c 100644
--- a/libs/core/langchain_core/runnables/base.py
+++ b/libs/core/langchain_core/runnables/base.py
@@ -1291,7 +1291,7 @@ class Runnable(ABC, Generic[Input, Output]):
"""
warn_deprecated(
- since="1.4.0",
+ since="1.3.3",
message=("astream_log is deprecated. Use astream instead."),
removal="2.0.0",
)
@@ -1545,7 +1545,7 @@ class Runnable(ABC, Generic[Input, Output]):
)
elif version == "v1":
warn_deprecated(
- since="1.4.0",
+ since="1.3.3",
message=(
"astream_events version='v1' is deprecated. "
"Use version='v2' or astream instead."
diff --git a/libs/core/langchain_core/runnables/history.py b/libs/core/langchain_core/runnables/history.py
index 8e197c0379..c85386735c 100644
--- a/libs/core/langchain_core/runnables/history.py
+++ b/libs/core/langchain_core/runnables/history.py
@@ -322,7 +322,7 @@ class RunnableWithMessageHistory(RunnableBindingBase): # type: ignore[no-redef]
"""
warn_deprecated(
- since="1.4.0",
+ since="1.3.3",
message=(
"RunnableWithMessageHistory is deprecated. "
"Use LangGraph's built-in persistence instead."