-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
239 lines (239 loc) · 11.7 KB
/
Copy pathpackage.json
File metadata and controls
239 lines (239 loc) · 11.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
{
"name": "actor-ts",
"version": "0.11.0",
"description": "An actor-model framework for TypeScript — runs on Bun, Node.js and Deno",
"author": "pathosDev",
"repository": {
"type": "git",
"url": "git+https://github.com/pathosDev/actor-ts.git"
},
"bugs": {
"url": "https://github.com/pathosDev/actor-ts/issues"
},
"homepage": "https://actor-ts.dev",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"module": "dist/index.js",
"type": "module",
"sideEffects": false,
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"default": "./dist/index.js"
},
"./testkit": {
"types": "./dist/testkit/index.d.ts",
"import": "./dist/testkit/index.js",
"default": "./dist/testkit/index.js"
},
"./devtools": {
"types": "./dist/devtools/index.d.ts",
"import": "./dist/devtools/index.js",
"default": "./dist/devtools/index.js"
},
"./package.json": "./package.json"
},
"files": [
"dist/",
"README.md",
"CHANGELOG.md",
"LICENSE"
],
"scripts": {
"build": "bun run build:ui && bunx tsc",
"build:ui": "bun scripts/build-devtools-ui.mjs",
"dev:devtools": "bun scripts/devtools-dev.ts",
"watch": "bunx tsc --watch",
"clean": "rm -rf dist",
"typecheck": "bunx tsc --noEmit && bunx tsc -p devtools-ui --noEmit && bunx tsc -p devtools-ui/tsconfig.test.json --noEmit",
"typecheck:dev": "bunx tsc -p tsconfig.dev.json --noEmit",
"test": "bun test",
"test:coverage": "bun test --coverage",
"test:coverage:gate": "bun scripts/coverage-gate.mjs",
"test:integration": "docker compose -f tests/integration/docker-compose.integration.yml up --build --abort-on-container-exit --exit-code-from controller",
"test:integration:teardown": "docker compose -f tests/integration/docker-compose.integration.yml down -v --remove-orphans",
"test:integration:s3": "docker compose -f tests/integration/brokers/s3/docker-compose.s3.yml up --build --abort-on-container-exit --exit-code-from runner",
"test:integration:s3:teardown": "docker compose -f tests/integration/brokers/s3/docker-compose.s3.yml down -v --remove-orphans",
"test:integration:mqtt": "docker compose -f tests/integration/brokers/mqtt/docker-compose.mqtt.yml up --build --abort-on-container-exit --exit-code-from runner",
"test:integration:mqtt:teardown": "docker compose -f tests/integration/brokers/mqtt/docker-compose.mqtt.yml down -v --remove-orphans",
"test:integration:kafka": "docker compose -f tests/integration/brokers/kafka/docker-compose.kafka.yml up --build --abort-on-container-exit --exit-code-from runner",
"test:integration:kafka:teardown": "docker compose -f tests/integration/brokers/kafka/docker-compose.kafka.yml down -v --remove-orphans",
"test:integration:amqp": "docker compose -f tests/integration/brokers/amqp/docker-compose.amqp.yml up --build --abort-on-container-exit --exit-code-from runner",
"test:integration:amqp:teardown": "docker compose -f tests/integration/brokers/amqp/docker-compose.amqp.yml down -v --remove-orphans",
"test:integration:nats": "docker compose -f tests/integration/brokers/nats/docker-compose.nats.yml up --build --abort-on-container-exit --exit-code-from runner",
"test:integration:nats:teardown": "docker compose -f tests/integration/brokers/nats/docker-compose.nats.yml down -v --remove-orphans",
"test:integration:redis": "docker compose -f tests/integration/brokers/redis-streams/docker-compose.redis-streams.yml up --build --abort-on-container-exit --exit-code-from runner",
"test:integration:redis:teardown": "docker compose -f tests/integration/brokers/redis-streams/docker-compose.redis-streams.yml down -v --remove-orphans",
"test:integration:grpc": "docker compose -f tests/integration/brokers/grpc/docker-compose.grpc.yml up --build --abort-on-container-exit --exit-code-from runner",
"test:integration:grpc:teardown": "docker compose -f tests/integration/brokers/grpc/docker-compose.grpc.yml down -v --remove-orphans",
"test:integration:k8s": "docker compose -f tests/integration/brokers/k8s/docker-compose.k8s.yml up --build --abort-on-container-exit --exit-code-from runner",
"test:integration:k8s:teardown": "docker compose -f tests/integration/brokers/k8s/docker-compose.k8s.yml down -v --remove-orphans",
"test:integration:postgres": "docker compose -f tests/integration/brokers/postgres/docker-compose.postgres.yml up --build --abort-on-container-exit --exit-code-from runner",
"test:integration:postgres:teardown": "docker compose -f tests/integration/brokers/postgres/docker-compose.postgres.yml down -v --remove-orphans",
"test:integration:mariadb": "docker compose -f tests/integration/brokers/mariadb/docker-compose.mariadb.yml up --build --abort-on-container-exit --exit-code-from runner",
"test:integration:mariadb:teardown": "docker compose -f tests/integration/brokers/mariadb/docker-compose.mariadb.yml down -v --remove-orphans",
"test:integration:libsql": "docker compose -f tests/integration/brokers/libsql/docker-compose.libsql.yml up --build --abort-on-container-exit --exit-code-from runner",
"test:integration:libsql:teardown": "docker compose -f tests/integration/brokers/libsql/docker-compose.libsql.yml down -v --remove-orphans",
"test:integration:mssql": "docker compose -f tests/integration/brokers/mssql/docker-compose.mssql.yml up --build --abort-on-container-exit --exit-code-from runner",
"test:integration:mssql:teardown": "docker compose -f tests/integration/brokers/mssql/docker-compose.mssql.yml down -v --remove-orphans",
"test:integration:cockroachdb": "docker compose -f tests/integration/brokers/cockroachdb/docker-compose.cockroachdb.yml up --build --abort-on-container-exit --exit-code-from runner",
"test:integration:cockroachdb:teardown": "docker compose -f tests/integration/brokers/cockroachdb/docker-compose.cockroachdb.yml down -v --remove-orphans",
"test:integration:yugabytedb": "docker compose -f tests/integration/brokers/yugabytedb/docker-compose.yugabytedb.yml up --build --abort-on-container-exit --exit-code-from runner",
"test:integration:mongodb": "docker compose -f tests/integration/brokers/mongodb/docker-compose.mongodb.yml up --build --abort-on-container-exit --exit-code-from runner",
"test:integration:dynamodb": "docker compose -f tests/integration/brokers/dynamodb/docker-compose.dynamodb.yml up --build --abort-on-container-exit --exit-code-from runner",
"test:integration:dynamodb:teardown": "docker compose -f tests/integration/brokers/dynamodb/docker-compose.dynamodb.yml down -v --remove-orphans",
"test:integration:mongodb:teardown": "docker compose -f tests/integration/brokers/mongodb/docker-compose.mongodb.yml down -v --remove-orphans",
"test:integration:yugabytedb:teardown": "docker compose -f tests/integration/brokers/yugabytedb/docker-compose.yugabytedb.yml down -v --remove-orphans",
"test:integration:brokers": "bun run test:integration:s3 && bun run test:integration:mqtt && bun run test:integration:kafka && bun run test:integration:amqp && bun run test:integration:nats && bun run test:integration:redis && bun run test:integration:grpc && bun run test:integration:k8s && bun run test:integration:postgres && bun run test:integration:mariadb && bun run test:integration:libsql && bun run test:integration:mssql && bun run test:integration:cockroachdb && bun run test:integration:yugabytedb && bun run test:integration:mongodb && bun run test:integration:dynamodb",
"test:integration:brokers:teardown": "bun run test:integration:s3:teardown; bun run test:integration:mqtt:teardown; bun run test:integration:kafka:teardown; bun run test:integration:amqp:teardown; bun run test:integration:nats:teardown; bun run test:integration:redis:teardown; bun run test:integration:grpc:teardown; bun run test:integration:k8s:teardown; bun run test:integration:postgres:teardown; bun run test:integration:mariadb:teardown; bun run test:integration:libsql:teardown; bun run test:integration:mssql:teardown; bun run test:integration:cockroachdb:teardown; bun run test:integration:yugabytedb:teardown; bun run test:integration:mongodb:teardown; bun run test:integration:dynamodb:teardown",
"smoke:bun": "bun tests/smoke/run-cases.mjs",
"smoke:node": "bun run build && ACTOR_TS_SMOKE_USE_DIST=1 node tests/smoke/run-cases.mjs",
"smoke:deno": "bun run build && ACTOR_TS_SMOKE_USE_DIST=1 deno run --allow-read --allow-env --allow-write --allow-net tests/smoke/run-cases.mjs",
"smoke": "bun run smoke:bun && bun run smoke:node && bun run smoke:deno",
"lint:publint": "bun run build && bunx publint",
"lint:types-exports": "bun run build && bunx attw --pack --profile esm-only",
"lint:knip": "bunx knip --no-progress",
"lint:package": "bun run lint:publint && bun run lint:types-exports && bun run lint:knip",
"bench": "bun run benchmarks/run-all.ts",
"prepublishOnly": "bun run clean && bun run build && bun run typecheck && bun test"
},
"keywords": [
"actor",
"actor-model",
"concurrency",
"cluster",
"typescript",
"bun",
"node",
"deno"
],
"license": "Apache-2.0",
"devDependencies": {
"@arethetypeswrong/cli": "^0.18.2",
"@fastify/static": "^10.1.0",
"@fastify/websocket": "^11.3.0",
"@hono/node-server": "^2.0.9",
"@hono/node-ws": "^1.3.1",
"@types/better-sqlite3": "^7.6.13",
"@types/bun": "^1.3.14",
"@types/express": "^5.0.6",
"@types/node": "^24.13.3",
"better-sqlite3": "^13.0.1",
"express": "^5.2.1",
"fast-check": "^4.9.0",
"knip": "^6.29.0",
"publint": "^0.3.22",
"hono": "^4.12.30",
"typescript": "^7.0.2"
},
"peerDependencies": {
"@aws-sdk/client-dynamodb": "^3.1095.0",
"@aws-sdk/client-s3": "^3.1048.0",
"@libsql/client": "^0.15.15",
"mongodb": "^6.21.0",
"mssql": "^12.7.0",
"@fastify/websocket": "^11.0.0",
"@grpc/grpc-js": "^1.14.3",
"@grpc/proto-loader": "^0.8.1",
"@hono/node-server": "^2.0.0",
"@hono/node-ws": "^1.0.0",
"amqplib": "^2.0.1",
"better-sqlite3": "^12.9.0 || ^13.0.0",
"cassandra-driver": "^4.0.0",
"express": "^4.0.0 || ^5.0.0",
"fzstd": "^0.1.0",
"hono": "^4.0.0",
"ioredis": "^5.10.1",
"kafkajs": "^2.2.4",
"mariadb": "^3.5.2",
"memjs": "^1.3.0",
"mqtt": "^5.15.1",
"nats": "^2.29.3",
"pg": "^8.21.0",
"typescript": "^5.6.0 || ^6.0.0 || ^7.0.0",
"ws": "^8.0.0"
},
"peerDependenciesMeta": {
"@aws-sdk/client-dynamodb": {
"optional": true
},
"@aws-sdk/client-s3": {
"optional": true
},
"@libsql/client": {
"optional": true
},
"mongodb": {
"optional": true
},
"mssql": {
"optional": true
},
"@fastify/websocket": {
"optional": true
},
"@grpc/grpc-js": {
"optional": true
},
"@hono/node-ws": {
"optional": true
},
"@grpc/proto-loader": {
"optional": true
},
"@hono/node-server": {
"optional": true
},
"amqplib": {
"optional": true
},
"better-sqlite3": {
"optional": true
},
"cassandra-driver": {
"optional": true
},
"express": {
"optional": true
},
"fzstd": {
"optional": true
},
"hono": {
"optional": true
},
"ioredis": {
"optional": true
},
"kafkajs": {
"optional": true
},
"mariadb": {
"optional": true
},
"memjs": {
"optional": true
},
"mqtt": {
"optional": true
},
"nats": {
"optional": true
},
"pg": {
"optional": true
},
"ws": {
"optional": true
}
},
"engines": {
"bun": ">=1.3.0",
"node": ">=24.0.0"
},
"dependencies": {
"fastify": "^5.10.0",
"ts-pattern": "^5.9.0"
}
}