From 4ec9a7f4265499981177acd916dbb0bf4f2cbcfc Mon Sep 17 00:00:00 2001 From: Brace Sproul Date: Thu, 8 Feb 2024 15:16:23 -0800 Subject: [PATCH] langchain[patch]: Rm unwanted build artifacts (#4345) --- environment_tests/test-exports-bun/src/entrypoints.js | 1 - environment_tests/test-exports-cf/src/entrypoints.js | 1 - environment_tests/test-exports-cjs/src/entrypoints.js | 1 - environment_tests/test-exports-esbuild/src/entrypoints.js | 1 - environment_tests/test-exports-esm/src/entrypoints.js | 1 - environment_tests/test-exports-vercel/src/entrypoints.js | 1 - environment_tests/test-exports-vite/src/entrypoints.js | 1 - langchain/src/load/import_constants.ts | 1 + langchain/src/load/import_map.ts | 1 - 9 files changed, 1 insertion(+), 8 deletions(-) diff --git a/environment_tests/test-exports-bun/src/entrypoints.js b/environment_tests/test-exports-bun/src/entrypoints.js index 16c4b917fc7e..bb6834483e2b 100644 --- a/environment_tests/test-exports-bun/src/entrypoints.js +++ b/environment_tests/test-exports-bun/src/entrypoints.js @@ -50,7 +50,6 @@ export * from "langchain/text_splitter"; export * from "langchain/memory"; export * from "langchain/document"; export * from "langchain/document_loaders/base"; -export * from "langchain/document_loaders/web/sitemap"; export * from "langchain/document_loaders/web/searchapi"; export * from "langchain/document_loaders/web/serpapi"; export * from "langchain/document_loaders/web/sort_xyz_blockchain"; diff --git a/environment_tests/test-exports-cf/src/entrypoints.js b/environment_tests/test-exports-cf/src/entrypoints.js index 16c4b917fc7e..bb6834483e2b 100644 --- a/environment_tests/test-exports-cf/src/entrypoints.js +++ b/environment_tests/test-exports-cf/src/entrypoints.js @@ -50,7 +50,6 @@ export * from "langchain/text_splitter"; export * from "langchain/memory"; export * from "langchain/document"; export * from "langchain/document_loaders/base"; -export * from "langchain/document_loaders/web/sitemap"; export * from "langchain/document_loaders/web/searchapi"; export * from "langchain/document_loaders/web/serpapi"; export * from "langchain/document_loaders/web/sort_xyz_blockchain"; diff --git a/environment_tests/test-exports-cjs/src/entrypoints.js b/environment_tests/test-exports-cjs/src/entrypoints.js index 146d5901b21e..6dadbeae3e86 100644 --- a/environment_tests/test-exports-cjs/src/entrypoints.js +++ b/environment_tests/test-exports-cjs/src/entrypoints.js @@ -50,7 +50,6 @@ const text_splitter = require("langchain/text_splitter"); const memory = require("langchain/memory"); const document = require("langchain/document"); const document_loaders_base = require("langchain/document_loaders/base"); -const document_loaders_web_sitemap = require("langchain/document_loaders/web/sitemap"); const document_loaders_web_searchapi = require("langchain/document_loaders/web/searchapi"); const document_loaders_web_serpapi = require("langchain/document_loaders/web/serpapi"); const document_loaders_web_sort_xyz_blockchain = require("langchain/document_loaders/web/sort_xyz_blockchain"); diff --git a/environment_tests/test-exports-esbuild/src/entrypoints.js b/environment_tests/test-exports-esbuild/src/entrypoints.js index 6fb117d9c2a3..8ff33f203aee 100644 --- a/environment_tests/test-exports-esbuild/src/entrypoints.js +++ b/environment_tests/test-exports-esbuild/src/entrypoints.js @@ -50,7 +50,6 @@ import * as text_splitter from "langchain/text_splitter"; import * as memory from "langchain/memory"; import * as document from "langchain/document"; import * as document_loaders_base from "langchain/document_loaders/base"; -import * as document_loaders_web_sitemap from "langchain/document_loaders/web/sitemap"; import * as document_loaders_web_searchapi from "langchain/document_loaders/web/searchapi"; import * as document_loaders_web_serpapi from "langchain/document_loaders/web/serpapi"; import * as document_loaders_web_sort_xyz_blockchain from "langchain/document_loaders/web/sort_xyz_blockchain"; diff --git a/environment_tests/test-exports-esm/src/entrypoints.js b/environment_tests/test-exports-esm/src/entrypoints.js index 6fb117d9c2a3..8ff33f203aee 100644 --- a/environment_tests/test-exports-esm/src/entrypoints.js +++ b/environment_tests/test-exports-esm/src/entrypoints.js @@ -50,7 +50,6 @@ import * as text_splitter from "langchain/text_splitter"; import * as memory from "langchain/memory"; import * as document from "langchain/document"; import * as document_loaders_base from "langchain/document_loaders/base"; -import * as document_loaders_web_sitemap from "langchain/document_loaders/web/sitemap"; import * as document_loaders_web_searchapi from "langchain/document_loaders/web/searchapi"; import * as document_loaders_web_serpapi from "langchain/document_loaders/web/serpapi"; import * as document_loaders_web_sort_xyz_blockchain from "langchain/document_loaders/web/sort_xyz_blockchain"; diff --git a/environment_tests/test-exports-vercel/src/entrypoints.js b/environment_tests/test-exports-vercel/src/entrypoints.js index 16c4b917fc7e..bb6834483e2b 100644 --- a/environment_tests/test-exports-vercel/src/entrypoints.js +++ b/environment_tests/test-exports-vercel/src/entrypoints.js @@ -50,7 +50,6 @@ export * from "langchain/text_splitter"; export * from "langchain/memory"; export * from "langchain/document"; export * from "langchain/document_loaders/base"; -export * from "langchain/document_loaders/web/sitemap"; export * from "langchain/document_loaders/web/searchapi"; export * from "langchain/document_loaders/web/serpapi"; export * from "langchain/document_loaders/web/sort_xyz_blockchain"; diff --git a/environment_tests/test-exports-vite/src/entrypoints.js b/environment_tests/test-exports-vite/src/entrypoints.js index 16c4b917fc7e..bb6834483e2b 100644 --- a/environment_tests/test-exports-vite/src/entrypoints.js +++ b/environment_tests/test-exports-vite/src/entrypoints.js @@ -50,7 +50,6 @@ export * from "langchain/text_splitter"; export * from "langchain/memory"; export * from "langchain/document"; export * from "langchain/document_loaders/base"; -export * from "langchain/document_loaders/web/sitemap"; export * from "langchain/document_loaders/web/searchapi"; export * from "langchain/document_loaders/web/serpapi"; export * from "langchain/document_loaders/web/sort_xyz_blockchain"; diff --git a/langchain/src/load/import_constants.ts b/langchain/src/load/import_constants.ts index f3e954404215..1adaaaa2510a 100644 --- a/langchain/src/load/import_constants.ts +++ b/langchain/src/load/import_constants.ts @@ -97,6 +97,7 @@ export const optionalImportEntrypoints: string[] = [ "langchain/document_loaders/web/pdf", "langchain/document_loaders/web/recursive_url", "langchain/document_loaders/web/s3", + "langchain/document_loaders/web/sitemap", "langchain/document_loaders/web/sonix_audio", "langchain/document_loaders/web/confluence", "langchain/document_loaders/web/youtube", diff --git a/langchain/src/load/import_map.ts b/langchain/src/load/import_map.ts index 047ad5a35f58..aad2d2ceae00 100644 --- a/langchain/src/load/import_map.ts +++ b/langchain/src/load/import_map.ts @@ -25,7 +25,6 @@ export * as llms__fake from "../llms/fake.js"; export * as vectorstores__memory from "../vectorstores/memory.js"; export * as text_splitter from "../text_splitter.js"; export * as document_loaders__base from "../document_loaders/base.js"; -export * as document_loaders__web__sitemap from "../document_loaders/web/sitemap.js"; export * as document_loaders__web__searchapi from "../document_loaders/web/searchapi.js"; export * as document_loaders__web__serpapi from "../document_loaders/web/serpapi.js"; export * as document_loaders__web__sort_xyz_blockchain from "../document_loaders/web/sort_xyz_blockchain.js";