Skip to content

Commit 049471b

Browse files
chore: deprecate cloud packages (#2143)
1 parent 1e296eb commit 049471b

File tree

6 files changed

+37
-0
lines changed

6 files changed

+37
-0
lines changed

.changeset/public-olives-brush.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@llamaindex/cloud": minor
3+
---
4+
5+
Add deprecation warning

.changeset/silent-spiders-wash.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"llamaindex": patch
3+
---
4+
5+
Moved LlamaCloudFileService, LlamaCloudIndex and LlamaCloudRetriever to llama-cloud-services

packages/cloud/src/api.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
// Deprecation warning
2+
console.warn(`
3+
The package @llamaindex/cloud has been deprecated since version 4.1.0
4+
* Please migrate to llama-cloud-services.
5+
* See the documentation: https://docs.cloud.llamaindex.ai
6+
`);
7+
18
import { client } from "./client/client.gen";
29

310
client.setConfig({

packages/cloud/src/beta/agent/index.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
// Deprecation warning
2+
console.warn(`
3+
The package @llamaindex/cloud has been deprecated since version 4.1.0
4+
* Please migrate to llama-cloud-services.
5+
* See the documentation: https://docs.cloud.llamaindex.ai
6+
`);
7+
18
export { AgentClient, createAgentDataClient } from "./client";
29

310
export type {

packages/cloud/src/parse.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
// Deprecation warning
2+
console.warn(`
3+
The package @llamaindex/cloud has been deprecated since version 4.1.0
4+
* Please migrate to llama-cloud-services.
5+
* See the documentation: https://docs.cloud.llamaindex.ai
6+
`);
7+
18
import { createClient, createConfig } from "@hey-api/client-fetch";
29
import { createWorkflow, type InferWorkflowEventData } from "@llama-flow/core";
310
import { createStatefulMiddleware } from "@llama-flow/core/middleware/state";

packages/llamaindex/src/cloud/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
console.warn(`
2+
The classes LlamaCloudFileService, LlamaCloudIndex and LlamaCloudRetriever have been moved to the package llama-cloud-services.
3+
* Please migrate your imports to llama-cloud-services, e.g. import { LlamaCloudIndex } from "llama-cloud-services";
4+
* See the documentation: https://docs.cloud.llamaindex.ai
5+
`);
6+
17
export { LLamaCloudFileService } from "./LLamaCloudFileService.js";
28
export { LlamaCloudIndex } from "./LlamaCloudIndex.js";
39
export {

0 commit comments

Comments
 (0)