ai-resumable-stream 2.0.0 → 3.1.0

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,13 +1,14 @@
1
1
  {
2
2
  "name": "ai-resumable-stream",
3
- "version": "2.0.0",
4
- "description": "AI SDK: resume and stop UI message streams",
3
+ "version": "3.1.0",
4
+ "description": "Resume and stop AI SDK streams, backed by S3, Redis, or any store you provide",
5
5
  "keywords": [
6
6
  "ai",
7
7
  "ai-sdk",
8
8
  "redis",
9
9
  "resumable",
10
10
  "resumable-stream",
11
+ "s3",
11
12
  "stream"
12
13
  ],
13
14
  "license": "MIT",
@@ -23,6 +24,9 @@
23
24
  "types": "./dist/index.d.mts",
24
25
  "exports": {
25
26
  ".": "./dist/index.mjs",
27
+ "./adapters/redis": "./dist/adapters/redis/index.mjs",
28
+ "./adapters/s3-express": "./dist/adapters/s3-express/index.mjs",
29
+ "./ai-sdk": "./dist/ai-sdk/index.mjs",
26
30
  "./package.json": "./package.json"
27
31
  },
28
32
  "dependencies": {
@@ -32,6 +36,7 @@
32
36
  "devDependencies": {
33
37
  "@ai-sdk/provider": "^4.0.3",
34
38
  "@arethetypeswrong/cli": "^0.18.5",
39
+ "@aws-sdk/client-s3": "^3.1131.0",
35
40
  "@total-typescript/tsconfig": "^1.0.4",
36
41
  "@types/node": "^26.1.1",
37
42
  "@vitest/coverage-v8": "^4.1.10",
@@ -39,7 +44,6 @@
39
44
  "ai-test-kit": "^3.0.1",
40
45
  "husky": "^9.1.7",
41
46
  "lint-staged": "^17.0.8",
42
- "mitata": "^1.0.34",
43
47
  "oxfmt": "^0.58.0",
44
48
  "oxlint": "^1.73.0",
45
49
  "pkg-pr-new": "^0.0.75",
@@ -49,15 +53,27 @@
49
53
  "redis-v5": "npm:redis@^5.12.1",
50
54
  "redis-v6": "npm:redis@^6.1.0",
51
55
  "tsdown": "^0.22.7",
52
- "tsx": "^4.23.1",
56
+ "tsx": "^4.23.13",
53
57
  "typescript": "^7.0.2",
54
58
  "vitest": "^4.1.10",
55
59
  "zod": "^4.4.3"
56
60
  },
57
61
  "peerDependencies": {
62
+ "@aws-sdk/client-s3": "^3.700.0",
58
63
  "ai": "^7.0.0",
59
64
  "redis": "^5.0.0 || ^6.0.0"
60
65
  },
66
+ "peerDependenciesMeta": {
67
+ "@aws-sdk/client-s3": {
68
+ "optional": true
69
+ },
70
+ "ai": {
71
+ "optional": true
72
+ },
73
+ "redis": {
74
+ "optional": true
75
+ }
76
+ },
61
77
  "lint-staged": {
62
78
  "*.{js,ts,tsx,jsx}": [
63
79
  "pnpm lint",
@@ -69,8 +85,11 @@
69
85
  },
70
86
  "scripts": {
71
87
  "build": "tsdown",
72
- "test": "vitest",
88
+ "test": "vitest run",
89
+ "test:watch": "vitest",
73
90
  "typecheck": "tsc --noEmit",
91
+ "example:redis": "tsx examples/redis.ts",
92
+ "example:s3-express": "tsx examples/s3-express.ts",
74
93
  "lint": "oxlint --fix",
75
94
  "lint:ci": "oxlint",
76
95
  "format": "oxfmt --write",