@mastra/memory 1.37.1-alpha.3 → 1.37.1

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.
@@ -3,7 +3,7 @@ name: mastra-memory
3
3
  description: Documentation for @mastra/memory. Use when working with @mastra/memory APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/memory"
6
- version: "1.37.1-alpha.3"
6
+ version: "1.37.1"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -42,7 +42,7 @@ Read the individual reference documents for detailed explanations and code examp
42
42
  - [MongoDB](references/integrations-databases-mongodb.md) - Store Mastra application data and vectors in MongoDB, configure connections and collections, initialize schemas, and add persistent agent memory.
43
43
  - [OracleDB](references/integrations-databases-oracledb.md) - Persist Mastra memory, workflows, observability, scores, MCP metadata, and agent registry data in Oracle Database with OracleStore.
44
44
  - [PostgreSQL](references/integrations-databases-postgresql.md) - Persist Mastra application data in PostgreSQL with PostgresStore, configure connections and pools, initialize schemas, and enable observability.
45
- - [Redis](references/integrations-databases-redis.md) - Store Mastra application data in Redis using connection strings, host settings, or custom clients, including Sentinel and Cluster deployments.
45
+ - [Redis](references/integrations-databases-redis.md) - Store Mastra application data in Redis using connection strings, host settings, or custom clients, including Sentinel deployments.
46
46
  - [Upstash](references/integrations-databases-upstash.md) - Use Upstash Redis as serverless Mastra storage with REST credentials, namespaced keys, durable persistence, and deployment-friendly connections.
47
47
  - [Valkey](references/integrations-databases-valkey.md) - Configure Valkey storage and caching for Mastra through the GLIDE client, including authentication, connection options, persistence, and cleanup.
48
48
 
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.37.1-alpha.3",
2
+ "version": "1.37.1",
3
3
  "package": "@mastra/memory",
4
4
  "exports": {},
5
5
  "modules": {
@@ -4,7 +4,7 @@
4
4
 
5
5
  # Redis
6
6
 
7
- The Redis storage implementation provides a high-performance storage solution using direct Redis connections via [`node-redis`](https://github.com/redis/node-redis) (the official Redis client for Node.js). It supports standalone Redis, and through custom client configuration, Redis Sentinel and Cluster deployments.
7
+ The Redis storage implementation provides a high-performance storage solution using direct Redis connections via [`node-redis`](https://github.com/redis/node-redis) (the official Redis client for Node.js). It supports standalone Redis and, through a custom client, Redis Sentinel. Redis Cluster isn't supported.
8
8
 
9
9
  ## Installation
10
10
 
@@ -45,7 +45,7 @@ await storage.init()
45
45
 
46
46
  ### Using Pre-configured Client
47
47
 
48
- For advanced configurations like Sentinel or Cluster, you can pass a pre-configured Redis client:
48
+ For advanced configurations such as Sentinel, you can pass a pre-configured Redis client:
49
49
 
50
50
  ```typescript
51
51
  import { RedisStore } from '@mastra/redis'
@@ -122,27 +122,7 @@ const storage = new RedisStore({
122
122
 
123
123
  ### Redis Cluster
124
124
 
125
- For Redis Cluster deployments, use the cluster client:
126
-
127
- ```typescript
128
- import { RedisStore } from '@mastra/redis'
129
- import { createCluster } from 'redis'
130
-
131
- const cluster = createCluster({
132
- rootNodes: [
133
- { url: 'redis://node-1:6379' },
134
- { url: 'redis://node-2:6379' },
135
- { url: 'redis://node-3:6379' },
136
- ],
137
- })
138
-
139
- await cluster.connect()
140
-
141
- const storage = new RedisStore({
142
- id: 'redis-cluster-storage',
143
- client: cluster,
144
- })
145
- ```
125
+ Redis Cluster isn't supported. `RedisStore` accepts only a standalone client from `createClient()`, and several operations read or write keys that hash to different slots, which Redis Cluster rejects with a `CROSSSLOT` error.
146
126
 
147
127
  ### Accessing the Underlying Client
148
128
 
@@ -66,6 +66,8 @@ const storage = new ValkeyStore({
66
66
 
67
67
  For an existing `GlideClient`, connect it before passing it to `ValkeyStore`. The caller remains responsible for closing injected clients.
68
68
 
69
+ `ValkeyStore` needs a standalone Valkey server. Valkey Cluster and `GlideClusterClient` aren't supported.
70
+
69
71
  ## Constructor parameters
70
72
 
71
73
  **id** (`string`): Unique identifier for the storage instance.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/memory",
3
- "version": "1.37.1-alpha.3",
3
+ "version": "1.37.1",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -52,7 +52,7 @@
52
52
  "probe-image-size": "^7.4.0",
53
53
  "xxhash-wasm": "^1.1.0",
54
54
  "zod": "^4.6.4",
55
- "@mastra/schema-compat": "1.3.14-alpha.0"
55
+ "@mastra/schema-compat": "1.3.14"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@ai-sdk/openai": "^1.3.24",
@@ -69,12 +69,12 @@
69
69
  "typescript": "^6.0.3",
70
70
  "typescript-eslint": "^8.57.0",
71
71
  "vitest": "4.1.11",
72
- "@internal/ai-v6": "0.0.89",
73
- "@internal/lint": "0.0.142",
74
- "@internal/ai-sdk-v5": "0.0.89",
75
- "@internal/types-builder": "0.0.117",
76
- "@mastra/core": "1.77.0-alpha.4",
77
- "@internal/ai-sdk-v4": "0.0.89"
72
+ "@internal/ai-sdk-v4": "0.0.90",
73
+ "@internal/ai-v6": "0.0.90",
74
+ "@internal/lint": "0.0.143",
75
+ "@internal/ai-sdk-v5": "0.0.90",
76
+ "@internal/types-builder": "0.0.118",
77
+ "@mastra/core": "1.77.0"
78
78
  },
79
79
  "peerDependencies": {
80
80
  "@mastra/core": ">=1.4.1-0 <2.0.0-0"