@mastra/dynamodb 0.10.1-alpha.2 → 0.10.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.
package/dist/index.cjs CHANGED
@@ -560,9 +560,12 @@ function getElectroDbService(client, tableName) {
560
560
 
561
561
  // src/storage/index.ts
562
562
  var DynamoDBStore = class extends storage.MastraStorage {
563
+ tableName;
564
+ client;
565
+ service;
566
+ hasInitialized = null;
563
567
  constructor({ name, config }) {
564
568
  super({ name });
565
- this.hasInitialized = null;
566
569
  if (!config.tableName || typeof config.tableName !== "string" || config.tableName.trim() === "") {
567
570
  throw new Error("DynamoDBStore: config.tableName must be provided and cannot be empty.");
568
571
  }
@@ -0,0 +1,2 @@
1
+ export { DynamoDBStoreConfig } from './_tsup-dts-rollup.cjs';
2
+ export { DynamoDBStore } from './_tsup-dts-rollup.cjs';
@@ -0,0 +1,2 @@
1
+ export { DynamoDBStoreConfig } from './_tsup-dts-rollup.js';
2
+ export { DynamoDBStore } from './_tsup-dts-rollup.js';
package/dist/index.js CHANGED
@@ -558,9 +558,12 @@ function getElectroDbService(client, tableName) {
558
558
 
559
559
  // src/storage/index.ts
560
560
  var DynamoDBStore = class extends MastraStorage {
561
+ tableName;
562
+ client;
563
+ service;
564
+ hasInitialized = null;
561
565
  constructor({ name, config }) {
562
566
  super({ name });
563
- this.hasInitialized = null;
564
567
  if (!config.tableName || typeof config.tableName !== "string" || config.tableName.trim() === "") {
565
568
  throw new Error("DynamoDBStore: config.tableName must be provided and cannot be empty.");
566
569
  }
package/package.json CHANGED
@@ -1,10 +1,23 @@
1
1
  {
2
2
  "name": "@mastra/dynamodb",
3
- "version": "0.10.1-alpha.2",
3
+ "version": "0.10.1",
4
4
  "description": "DynamoDB storage adapter for Mastra",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": {
11
+ "types": "./dist/index.d.ts",
12
+ "default": "./dist/index.js"
13
+ },
14
+ "require": {
15
+ "types": "./dist/index.d.cts",
16
+ "default": "./dist/index.cjs"
17
+ }
18
+ },
19
+ "./package.json": "./package.json"
20
+ },
8
21
  "files": [
9
22
  "dist",
10
23
  "src"
@@ -15,7 +28,7 @@
15
28
  "electrodb": "^3.4.1"
16
29
  },
17
30
  "peerDependencies": {
18
- "@mastra/core": "^0.10.0-alpha.0"
31
+ "@mastra/core": "^0.10.2-alpha.0"
19
32
  },
20
33
  "devDependencies": {
21
34
  "@microsoft/api-extractor": "^7.52.1",
@@ -27,11 +40,11 @@
27
40
  "tsup": "^8.4.0",
28
41
  "typescript": "^5.8.2",
29
42
  "vitest": "^3.0.9",
30
- "@internal/lint": "0.0.7",
31
- "@mastra/core": "0.10.2-alpha.4"
43
+ "@internal/lint": "0.0.8",
44
+ "@mastra/core": "0.10.2"
32
45
  },
33
46
  "scripts": {
34
- "build": "tsup src/index.ts --format esm,cjs --clean --treeshake=smallest --splitting",
47
+ "build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake=smallest --splitting",
35
48
  "dev": "tsup --watch",
36
49
  "clean": "rm -rf dist",
37
50
  "lint": "eslint .",