@langchain/core 0.2.22-rc.1 → 0.2.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,6 +18,7 @@ exports.EventStreamContentType = "text/event-stream";
18
18
  async function getBytes(
19
19
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
20
20
  stream, onChunk) {
21
+ // TODO: Use Async iteration for both cases?
21
22
  // eslint-disable-next-line no-instanceof/no-instanceof
22
23
  if (stream instanceof ReadableStream) {
23
24
  const reader = stream.getReader();
@@ -15,6 +15,7 @@ export const EventStreamContentType = "text/event-stream";
15
15
  export async function getBytes(
16
16
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
17
17
  stream, onChunk) {
18
+ // TODO: Use Async iteration for both cases?
18
19
  // eslint-disable-next-line no-instanceof/no-instanceof
19
20
  if (stream instanceof ReadableStream) {
20
21
  const reader = stream.getReader();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/core",
3
- "version": "0.2.22-rc.1",
3
+ "version": "0.2.22",
4
4
  "description": "Core LangChain.js abstractions and schemas",
5
5
  "type": "module",
6
6
  "engines": {