diff --git a/langchain-core/.gitignore b/langchain-core/.gitignore index a2a996516871..927d25edbf1c 100644 --- a/langchain-core/.gitignore +++ b/langchain-core/.gitignore @@ -166,10 +166,6 @@ utils/async_caller.cjs utils/async_caller.js utils/async_caller.d.ts utils/async_caller.d.cts -utils/beta_warning.cjs -utils/beta_warning.js -utils/beta_warning.d.ts -utils/beta_warning.d.cts utils/chunk_array.cjs utils/chunk_array.js utils/chunk_array.d.ts diff --git a/langchain-core/langchain.config.js b/langchain-core/langchain.config.js index b62973d89a51..0b4f41da98ba 100644 --- a/langchain-core/langchain.config.js +++ b/langchain-core/langchain.config.js @@ -54,7 +54,6 @@ export const config = { "tracers/tracer_langchain": "tracers/tracer_langchain", "tracers/tracer_langchain_v1": "tracers/tracer_langchain_v1", "utils/async_caller": "utils/async_caller", - "utils/beta_warning": "utils/beta_warning", "utils/chunk_array": "utils/chunk_array", "utils/env": "utils/env", "utils/event_source_parse": "utils/event_source_parse", diff --git a/langchain-core/package.json b/langchain-core/package.json index 0be8e54f28e1..258045f35fee 100644 --- a/langchain-core/package.json +++ b/langchain-core/package.json @@ -473,15 +473,6 @@ "import": "./utils/async_caller.js", "require": "./utils/async_caller.cjs" }, - "./utils/beta_warning": { - "types": { - "import": "./utils/beta_warning.d.ts", - "require": "./utils/beta_warning.d.cts", - "default": "./utils/beta_warning.d.ts" - }, - "import": "./utils/beta_warning.js", - "require": "./utils/beta_warning.cjs" - }, "./utils/chunk_array": { "types": { "import": "./utils/chunk_array.d.ts", @@ -771,10 +762,6 @@ "utils/async_caller.js", "utils/async_caller.d.ts", "utils/async_caller.d.cts", - "utils/beta_warning.cjs", - "utils/beta_warning.js", - "utils/beta_warning.d.ts", - "utils/beta_warning.d.cts", "utils/chunk_array.cjs", "utils/chunk_array.js", "utils/chunk_array.d.ts", diff --git a/langchain-core/src/utils/beta_warning.ts b/langchain-core/src/utils/beta_warning.ts deleted file mode 100644 index 20fb443295da..000000000000 --- a/langchain-core/src/utils/beta_warning.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * Util function for logging a warning when a method is called. - * @param {string} func The name of the function that is in beta. - */ -export function betaWarning(func: string) { - console.warn( - `The function '${func}' is in beta. It is actively being worked on, so the API may change.` - ); -}