@mastra/upstash 1.0.0-beta.1 → 1.0.0-beta.11

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/upstash",
3
- "version": "1.0.0-beta.1",
3
+ "version": "1.0.0-beta.11",
4
4
  "description": "Upstash provider for Mastra - includes both vector and db storage capabilities",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -20,23 +20,22 @@
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "dependencies": {
23
- "@upstash/redis": "^1.35.6",
23
+ "@upstash/redis": "^1.36.0",
24
24
  "@upstash/vector": "^1.2.2"
25
25
  },
26
26
  "devDependencies": {
27
- "@microsoft/api-extractor": "^7.52.8",
28
27
  "@types/node": "22.13.17",
29
- "@vitest/coverage-v8": "4.0.8",
30
- "@vitest/ui": "4.0.8",
28
+ "@vitest/coverage-v8": "4.0.12",
29
+ "@vitest/ui": "4.0.12",
31
30
  "dotenv": "^17.0.0",
32
31
  "eslint": "^9.37.0",
33
32
  "tsup": "^8.5.0",
34
- "typescript": "^5.8.3",
35
- "vitest": "^4.0.8",
36
- "@internal/types-builder": "0.0.28",
33
+ "typescript": "^5.9.3",
34
+ "vitest": "4.0.16",
37
35
  "@internal/lint": "0.0.53",
38
- "@mastra/core": "1.0.0-beta.3",
39
- "@internal/storage-test-utils": "0.0.49"
36
+ "@internal/storage-test-utils": "0.0.49",
37
+ "@mastra/core": "1.0.0-beta.22",
38
+ "@internal/types-builder": "0.0.28"
40
39
  },
41
40
  "peerDependencies": {
42
41
  "@mastra/core": ">=1.0.0-0 <2.0.0-0"
@@ -62,7 +61,8 @@
62
61
  "test": "vitest run",
63
62
  "posttest": "docker compose down",
64
63
  "lint": "eslint .",
65
- "build": "tsup --silent --config tsup.config.ts",
64
+ "build:lib": "tsup --silent --config tsup.config.ts",
65
+ "build:docs": "pnpx tsx ../../scripts/generate-package-docs.ts stores/upstash",
66
66
  "build:watch": "tsup --watch --silent --config tsup.config.ts"
67
67
  }
68
68
  }
@@ -1,40 +0,0 @@
1
- import { StoreOperations } from '@mastra/core/storage';
2
- import type { TABLE_NAMES, StorageColumn } from '@mastra/core/storage';
3
- import type { Redis } from '@upstash/redis';
4
- export declare class StoreOperationsUpstash extends StoreOperations {
5
- private client;
6
- constructor({ client }: {
7
- client: Redis;
8
- });
9
- createTable({ tableName: _tableName, schema: _schema, }: {
10
- tableName: TABLE_NAMES;
11
- schema: Record<string, StorageColumn>;
12
- }): Promise<void>;
13
- alterTable({ tableName: _tableName, schema: _schema, ifNotExists: _ifNotExists, }: {
14
- tableName: TABLE_NAMES;
15
- schema: Record<string, StorageColumn>;
16
- ifNotExists: string[];
17
- }): Promise<void>;
18
- clearTable({ tableName }: {
19
- tableName: TABLE_NAMES;
20
- }): Promise<void>;
21
- dropTable({ tableName }: {
22
- tableName: TABLE_NAMES;
23
- }): Promise<void>;
24
- insert({ tableName, record }: {
25
- tableName: TABLE_NAMES;
26
- record: Record<string, any>;
27
- }): Promise<void>;
28
- batchInsert(input: {
29
- tableName: TABLE_NAMES;
30
- records: Record<string, any>[];
31
- }): Promise<void>;
32
- load<R>({ tableName, keys }: {
33
- tableName: TABLE_NAMES;
34
- keys: Record<string, string>;
35
- }): Promise<R | null>;
36
- hasColumn(_tableName: TABLE_NAMES, _column: string): Promise<boolean>;
37
- scanKeys(pattern: string, batchSize?: number): Promise<string[]>;
38
- scanAndDelete(pattern: string, batchSize?: number): Promise<number>;
39
- }
40
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/operations/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACvE,OAAO,KAAK,EAAE,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