@mastra/memory 0.0.2-alpha.43 → 0.0.2-alpha.45

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/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @mastra/memory
2
2
 
3
+ ## 0.0.2-alpha.45
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [e66643a]
8
+ - @mastra/core@0.1.27-alpha.65
9
+
10
+ ## 0.0.2-alpha.44
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [f368477]
15
+ - Updated dependencies [d5ec619]
16
+ - @mastra/core@0.1.27-alpha.64
17
+
3
18
  ## 0.0.2-alpha.43
4
19
 
5
20
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/memory",
3
- "version": "0.0.2-alpha.43",
3
+ "version": "0.0.2-alpha.45",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -29,7 +29,7 @@
29
29
  "pg-pool": "^3.7.0",
30
30
  "postgres": "^3.4.5",
31
31
  "redis": "^4.7.0",
32
- "@mastra/core": "0.1.27-alpha.63"
32
+ "@mastra/core": "0.1.27-alpha.65"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@babel/preset-env": "^7.26.0",
@@ -38,12 +38,11 @@
38
38
  "@types/node": "^22.9.0",
39
39
  "@types/pg": "^8.11.10",
40
40
  "dts-cli": "^2.0.5",
41
- "jest": "^29.7.0",
42
- "ts-jest": "^29.2.5"
41
+ "vitest": "^2.1.8"
43
42
  },
44
43
  "scripts": {
45
44
  "build": "dts build",
46
45
  "build:dev": "dts watch",
47
- "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js"
46
+ "test": "vitest run"
48
47
  }
49
48
  }
@@ -1,6 +1,7 @@
1
1
  import { MessageType, ThreadType } from '@mastra/core';
2
2
  import { randomUUID } from 'crypto';
3
3
  import dotenv from 'dotenv';
4
+ import { describe, it, expect, beforeAll, afterAll, beforeEach } from 'vitest';
4
5
 
5
6
  import { UpstashKVMemory } from './upstash';
6
7
 
@@ -1,4 +1,5 @@
1
1
  import dotenv from 'dotenv';
2
+ import { describe, it, expect, beforeAll, afterAll } from 'vitest';
2
3
 
3
4
  import { PgMemory } from './';
4
5
 
@@ -0,0 +1,11 @@
1
+ import { defineConfig } from 'vitest/config';
2
+
3
+ export default defineConfig({
4
+ test: {
5
+ environment: 'node',
6
+ include: ['src/**/*.test.ts'],
7
+ exclude: ['**/node_modules/**', '**/dist/**'],
8
+ globals: true,
9
+ setupFiles: ['dotenv/config'],
10
+ },
11
+ });
package/jest.config.ts DELETED
@@ -1,19 +0,0 @@
1
- import { config } from 'dotenv';
2
-
3
- config();
4
-
5
- export default {
6
- preset: 'ts-jest',
7
- extensionsToTreatAsEsm: ['.ts'],
8
- moduleNameMapper: {
9
- '^(\\.{1,2}/.*)\\.js$': '$1',
10
- },
11
- transform: {
12
- '^.+\\.tsx?$': [
13
- 'ts-jest',
14
- {
15
- useESM: true,
16
- },
17
- ],
18
- },
19
- };