-
Notifications
You must be signed in to change notification settings - Fork 2.8k
chore: upgrade to TypeScript 5.8 #8315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
examples/src/guides/expression_language/zep/zep_cloud_message_history.ts
Outdated
Show resolved
Hide resolved
I saw the comment about |
I don't think so, since |
libs/langchain-community/src/vectorstores/tests/azure_cosmosdb.test.ts
Outdated
Show resolved
Hide resolved
We've never gotten a report on the gauth version having issues, so I wasn't worried about that. Anyway - outside this issue, apparently. Thanks! |
6c0f2d5
to
cafd50a
Compare
Using similar tactics as in langchain-ai/langgraphjs#1216, with addition of following: 1. Fix new TypeScript errors that are actually valid bugs (unreachable code after `??`) 2. Dedupe packages such as `mongo`, `dpdm` etc. to avoid TypeScript resolution errors whenever possible (exception is Zep since it imports `langchain` as peerDep) 3. Add `@ts-ignore` flags to package imports that export types that are incompatible with CJS (@langchain/google-webauth, @langchain/ollama) 4. Fix default imports such as @langchain/anthropic, Neo4j etc. (`dep.default` -> `dep`) Fix format Avoid circular dependency check for dynamic imports Fix test Add test for @langchain/google-gauth Make as a peer dep
cafd50a
to
19a66da
Compare
Using similar tactics as in langchain-ai/langgraphjs#1216, with addition of following:
??
)mongo
,dpdm
etc. to avoid TypeScript resolution errors whenever possible (exception is Zep since it importslangchain
as peerDep)@ts-ignore
flags to package imports that export types that are incompatible with CJS (@langchain/google-webauth, @langchain/ollama).@langchain/ollama
seems to properly work with CJS, whereas@langchain/google-webauth
does not export CJS at all.dep.default
->dep
)