-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
182 lines (182 loc) · 7.79 KB
/
Copy pathpackage.json
File metadata and controls
182 lines (182 loc) · 7.79 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
{
"name": "actor-ts",
"version": "0.9.1",
"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",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"default": "./dist/index.js"
},
"./package.json": "./package.json"
},
"files": [
"dist/",
"README.md",
"CHANGELOG.md",
"LICENSE"
],
"scripts": {
"build": "bunx tsc",
"watch": "bunx tsc --watch",
"clean": "rm -rf dist",
"typecheck": "bunx tsc --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: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",
"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",
"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 tests/smoke/run-cases.mjs",
"smoke": "bun run smoke:bun && bun run smoke:node && bun run smoke:deno",
"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": {
"@fastify/static": "^9.1.3",
"@fastify/websocket": "^11.2.0",
"@hono/node-server": "^2.0.2",
"@types/better-sqlite3": "^7.6.13",
"@types/bun": "^1.3.14",
"@types/express": "^5.0.6",
"@types/node": "^25.8.0",
"better-sqlite3": "^12.10.0",
"express": "^5.2.1",
"fast-check": "^4.8.0",
"hono": "^4.12.18",
"typescript": "^6.0.3"
},
"peerDependencies": {
"@aws-sdk/client-s3": "^3.1048.0",
"@grpc/grpc-js": "^1.14.3",
"@grpc/proto-loader": "^0.8.1",
"@hono/node-server": "^2.0.0",
"amqplib": "^2.0.1",
"better-sqlite3": "^12.9.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.0.0 || ^6.0.0",
"ws": "^8.0.0"
},
"peerDependenciesMeta": {
"@aws-sdk/client-s3": {
"optional": true
},
"@grpc/grpc-js": {
"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.1.0",
"node": ">=20.0.0"
},
"dependencies": {
"fastify": "^5.8.5",
"ts-pattern": "^5.9.0"
}
}