Releases: langchain-ai/langchain
langchain==0.3.28
Changes since langchain==0.3.27
fix(langchain): bump minimum langchain-core to 0.3.73 (#35608)
release(langchain): 0.3.28 (#35607)
fix(langchain): backport patch ReDoS vulnerability in MRKL and ReAct action regex (CVE-2024-58340) (#35603)
feat(core,langchain,text-splitters): (v0.3) use uuid7 for run ids (#34732)
fix(core): serialization patch (#34458)
feat(openai): enable stream_usage when using default base URL and client (#33296)
fix(langchain): handle gpt-5 model name in init_chat_model (#33148)
fix(langchain): add context_management to Anthropic chat model init (#33150)
docs: more standardization (#33124)
refactor(langchain): resolve pydantic deprecation warnings (#33125)
docs: standardize .. code-block directive usage (#33122)
chore: bump ruff version to 0.13 (#33043)
fix: update method calls from dict to model_dump in Chain (#33035)
chore: update pyproject.toml files, remove codespell (#33028)
chore(langchain): drop cap on python version (#32974)
chore: restore commented out optional deps (#32971)
docs(langchain): add docstring for _load_map_reduce_chain (#32961)
docs(langchain): add docstring for _load_stuff_chain (#32932)
revert: "chore: remove ruff target-version" (#32895)
fix(openai): ainvoke uses async _aget_response; add async tests (#32459)
chore: remove ruff target-version (#32880)
chore(langchain): enable ruff docstring-code-format in langchain (#32858)
chore(langchain): add ruff rule BLE (#32868)
chore(docs): update package READMEs (#32869)
chore(langchain): add ruff rule ERA (#32867)
fix(langchain): preserve supplied llm in FlareChain.from_llm (#32847)
chore(langchain): add ruff rules D (except D100 and D104) (#31994)
chore(langchain): add ruff rules N (#32098)
chore(langchain): improve PostgreSQL Manager upsert SQLAlchemy API calls. (#32748)
chore: adress pytest-asyncio deprecation warnings + other nits (#32696)
chore(langchain): add mypy pydantic plugin (#32610)
chore: update references to use the latest version of Claude-3.5 Sonnet (#32594)
chore(langchain): add mypy warn_unreachable setting (#32529)
docs: update outdated README.md content (#32540)
fix(tests): add anthropic_proxy to configurable test parameters
chore(langchain): select ALL rules with exclusions (#31930)
feat: port various nit changes from wip-v0.4 (#32506)
chore: formatting across codebase (#32466)
feat(openai): minimal and verbosity (#32455)
fix: use new Google model names in examples (#32288)
fix: update bar_model to use the correct model version claude-3-7-sonnet-20250219 (#32284)
refactor: remove references to unsupported model claude-3-sonnet-20240229 (#32281)
fix(core): track within-batch deduplication in indexing num_skipped count (#32273)
fix: formatting issues in docstrings (#32265)
fix: devcontainer (#32260)
chore(langchain): add ruff rules ARG (#32110)
chore(langchain): add ruff rules TC (#31921)
feat(docs): improve devx, fix Makefile targets (#32237)
chore(langchain): add ruff rules D1 (except D100 and D104) (#32123)
chore(langchain): add ruff rules SLF (#32112)
chore(langchain): strip_ansi fucntion to remove ANSI escape sequences (#32200)
fix(docs): capitalization, codeblock formatting, and hyperlinks, note blocks (#32235)
refactor(langchain): refactor unit test stub classes (#32209)
langchain-classic==1.0.2
Changes since langchain-classic==1.0.1
release(langchain): bump langchain-classic to 1.0.2 (#35601)
fix(langchain-classic): patch ReDoS vulnerability in MRKL and ReAct action regex (CVE-2024-58340) (#35598)
chore: bump the langchain-deps group across 3 directories with 7 updates (#35513)
chore: bump the langchain-deps group across 3 directories with 14 updates (#35441)
chore: bump google-cloud-aiplatform from 1.117.0 to 1.133.0 in /libs/langchain (#35392)
docs: fix docstring inaccuracies and update outdated LangSmith URLs (#35283)
feat(openai): support automatic server-side compaction (#35212)
chore: bump langchainhub from 0.1.18 to 0.1.21 in /libs/langchain in the langchain-deps group across 1 directory (#35280)
chore: bump the langchain-deps group across 3 directories with 8 updates (#35257)
style: bump ruff version to 0.15 (#35042)
docs(langchain-classic): clarify MultiVectorRetriever usage (#35053)
fix(langchain-classic): validate ensemble retriever weights (#35078)
chore(deps): bump pillow from 11.3.0 to 12.1.1 in /libs/langchain (#35175)
chore(deps): bump cryptography from 46.0.1 to 46.0.5 in /libs/langchain (#35147)
chore(deps): bump the langchain-deps group across 3 directories with 40 updates (#35129)
chore(deps): bump the langchain-deps group across 3 directories with 11 updates (#35121)
docs(langchain-classic): warn about older create_react_agent (#35052)
docs(langchain-classic): add warning for initialize_agent function (#35051)
feat: support state updates from wrap_model_call with command(s) (#35033)
chore: add make type target (#35015)
revert: "chore: add typing target in Makefile" (#35013)
chore: add typing target in Makefile (#35012)
chore: enrich pyproject.toml files (#34980)
chore(deps): bump the uv group across 20 directories with 3 updates (#34941)
chore: upgrade urllib3 to 2.6.3 (#34940)
refactor: replace print with logger.info in llm_summarization_checker (#34903)
fix(langchain): fix typo 'safegaurd' -> 'safeguard' (#34789)
chore(deps): bump langgraph-checkpoint from 2.1.2 to 3.0.0 in /libs/cli in the uv group across 1 directory (#34787)
chore(deps): bump the uv group across 5 directories with 5 updates (#34785)
chore(deps): bump the uv group across 3 directories with 1 update (#34741)
chore: update twitter URLs (#34736)
test(langchain): delete ontotext graphdb test (#34710)
fix(core): make yield_keys prefix keyword-only to match BaseStore (#34659)
chore: ban relative imports on all packages (#34691)
style: bump ruff version to 0.14.11 (#34674)
fix(langchain,langchain-classic): more descriptive error msg when dep is not installed (#34679)
fix(langchain): correct typo 'langchain experiment' to 'langchain_experimental' in error messages (#34608)
fix(infra): use langchain_v1 for dev container deps (#34534)
chore(deps): bump mypy to v1.19 and ruff to v1.14 (#34521)
chore(langchain-classic): bump markupsafe lock for python 3.14 (#34523)
fix(langchain-classic): pass default to config.getoption (#34034)
style(core): fix mypy no-any-return violations (#34204)
langchain-openrouter==0.1.0
Changes since langchain-openrouter==0.0.2
fix(openrouter): include role in sdk model_construct for min dep compat (#35562)
release(openrouter): 0.1.0 (#35560)
feat(openrouter): add streaming token usage support (#35559)
feat(fireworks,groq,openrouter): add standard model property (#35542)
feat(openrouter): surface cost and cost_details in response_metadata (#35461)
chore(model-profiles): refresh model profile data (#35477)
feat(openrouter): default headers (#35369)
fix(model-profiles): sort generated profiles by model ID for stable diffs (#35344)
chore: bump model profiles (#35294)
fix(infra): create GitHub releases for partner package releases (#35234)
langchain-huggingface==1.2.1
Changes since langchain-huggingface==1.2.0
fix(huggingface): switch integration test provider to together (#35525)
fix(huggingface): resolve huggingface-hub 1.x compat (#35524)
fix(huggingface): bump transformers and sentence-transformers lower bounds (#35522)
chore: bump langgraph-checkpoint from 3.0.0 to 4.0.0 in /libs/partners/huggingface (#35447)
fix(model-profiles): sort generated profiles by model ID for stable diffs (#35344)
chore: bump model profiles (#35294)
release(huggingface): 1.2.1 (#35182)
chore(huggingface): version bump for huggingface-hub and transformers deps (#35061)
chore(deps): bump pillow from 11.3.0 to 12.1.1 in /libs/partners/huggingface (#35179)
chore(deps): bump langsmith from 0.4.32rc0 to 0.6.3 in /libs/partners/huggingface (#35152)
feat(model-profiles): add text_inputs and text_outputs (#35084)
chore: add make type target (#35015)
revert: "chore: add typing target in Makefile" (#35013)
chore: add typing target in Makefile (#35012)
chore: enrich pyproject.toml files (#34980)
chore(deps): bump the uv group across 20 directories with 3 updates (#34941)
chore: upgrade urllib3 to 2.6.3 (#34940)
docs: add missing module-level docstrings to partner integrations (#34838)
chore(deps): bump the uv group across 8 directories with 6 updates (#34773)
chore: update twitter URLs (#34736)
chore: ban relative imports on all packages (#34691)
langchain-core==1.2.17
Changes since langchain-core==1.2.16
release(core): 1.2.17 (#35527)
fix(core): extract usage metadata from serialized tracer message outputs (#35526)
chore: bump the langchain-deps group across 3 directories with 7 updates (#35513)
chore: bump the langchain-deps group across 3 directories with 14 updates (#35441)
langchain-core==1.2.16
langchain-anthropic==1.3.4
Changes since langchain-anthropic==1.3.3
release(anthropic): 1.3.4 (#35418)
fix(anthropic): filter out common OpenAI Responses block types (#35417)
fix(anthropic): update integration tests (#35396)
revert: add ChatAnthropicBedrockWrapper (#35371)
fix(anthropic): replace retired model IDs in tests and docstrings (#35365)
feat(anthropic): add ChatAnthropicBedrock wrapper (#35091)
fix(model-profiles): sort generated profiles by model ID for stable diffs (#35344)
fix(anthropic): set max input tokens based on 1m context beta header (#35341)
chore: bump model profiles (#35294)
feat(anthropic): add User-Agent header for Anthropic API calls (#35268)
chore(anthropic): add version (#35293)
fix(anthropic): hoist cache_control from tool_result content sub-blocks to tool_result level (#35126)
chore(deps): bump langsmith from 0.4.43 to 0.6.3 in /libs/partners/anthropic (#35150)
langchain-core==1.2.15
Changes since langchain-core==1.2.14
fix(core): improve error message for non-JSON-serializable tool schemas (#34376)
fix(core): improve typing/docs for on_chat_model_start to clarify required positional args (#35324)
perf(core): defer specific langsmith imports to reduce import time (#35298)
revert: add ChatAnthropicBedrockWrapper (#35371)
release(core): 1.2.15 (#35367)
fix(anthropic): replace retired model IDs in tests and docstrings (#35365)
feat(anthropic): add ChatAnthropicBedrock wrapper (#35091)
style: fix some ruff noqa (#35321)
langchain-core==1.2.14
Changes since langchain-core==1.2.13
release(core): 1.2.14 (#35328)
chore(core): remove langserve from sys info util, add deepagents (#35325)
fix(core): fix merge_lists incorrectly merging parallel tool calls (#35281)
fix(core): accept int temperature in _get_ls_params for LangSmith tracing (#35302)
revert: accept integer temperature values in _get_ls_params (#35319)
fix(core): accept integer temperature values in _get_ls_params (#35317)
docs(core): update load note to be precise (#35309)
fix(core): prevent recursion error when args_schema is dict (#35260)
fix(core): preserve index and timestamp fields when merging (#34731)
docs(core): add security warnings and best practices for deserialization (#35282)
docs: fix docstring inaccuracies and update outdated LangSmith URLs (#35283)
fix(core): correct misleading jinja2 sandboxing comment (#35183)
chore: bump the langchain-deps group across 3 directories with 8 updates (#35257)
langchain-text-splitters==1.1.1
Changes since langchain-text-splitters==1.1.0
release(text-splitters): 1.1.1 (#35318)
fix(text-splitters): prevent JSFrameworkTextSplitter from mutating self._separators on each split_text() call (#35316)
chore: bump transformers from 5.1.0 to 5.2.0 in /libs/text-splitters in the other-deps group across 1 directory (#35279)
chore: bump the other-deps group across 3 directories with 2 updates (#35255)
style: bump ruff version to 0.15 (#35042)
fix: Server-Side Request Forgery (SSRF) in HTMLHeaderTextSplitter.split_text_from_url (#35196)
feat(text-splitters): add model_kwargs to SentenceTransformersTokenTextSplitter (#35113)
chore(deps): bump langsmith from 0.4.31 to 0.6.3 in /libs/text-splitters (#35162)
chore(deps): bump the other-deps group across 3 directories with 12 updates (#35127)
chore(deps): bump the other-deps group across 3 directories with 8 updates (#35120)
chore: add make type target (#35015)
revert: "chore: add typing target in Makefile" (#35013)
chore: add typing target in Makefile (#35012)
fix(text-splitters): reverse preserved elements iterator in HTMLSemanticPreservingSplitter (#34080)
chore: enrich pyproject.toml files (#34980)
chore(deps): bump the uv group across 20 directories with 3 updates (#34941)
chore: upgrade urllib3 to 2.6.3 (#34940)
style(text-splitters): lint (#34865)
fix(text-splitters): fix typo 'seperator' -> 'separator' in test docs… (#34857)
chore(deps): bump the uv group across 8 directories with 6 updates (#34773)
chore(deps): bump the uv group across 3 directories with 1 update (#34741)
chore: update twitter URLs (#34736)
style(text-splitters): fix some ruff preview rules (#34665)
chore: ban relative imports on all packages (#34691)
style: bump ruff version to 0.14.11 (#34674)
test(text-splitters): add edge case tests for CharacterTextSplitter (#34628)
fix(text-splitters): HTMLSemanticPreservingSplitter nested preserved … (#34587)
chore(deps): bump mypy to v1.19 and ruff to v1.14 (#34521)
chore(text-splitters): bump dependency locks for python 3.14 (#34522)
style(text-splitters,standard-tests,cli): add ruff TC and RUF012 rules (#34495)
style: add ruff ISC001 rule (#34493)
release(core): 1.2.3 (#34421)
feat(infra): add CI check for out of date lockfiles (#34397)