Port the core Repeater class (push/stop executor, async iterator protocol, overflow protection) from @repeaterjs/repeater into src/repeater.ts, stripping buffers and combinators we don't use. This removes the 7-year-old dependency while keeping the same API surface for all current and future adapters (Redis, WebSocket, SSE, Iroh). Also add the async utility research doc for reference.
76 lines
1.6 KiB
JSON
76 lines
1.6 KiB
JSON
{
|
|
"name": "@alkdev/pubsub",
|
|
"version": "0.1.0",
|
|
"description": "Type-safe publish/subscribe with pluggable event target adapters (in-process, Redis, WebSocket, Iroh)",
|
|
"type": "module",
|
|
"main": "./dist/index.cjs",
|
|
"module": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"import": {
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/index.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/index.d.cts",
|
|
"default": "./dist/index.cjs"
|
|
}
|
|
},
|
|
"./event-target-redis": {
|
|
"import": {
|
|
"types": "./dist/event-target-redis.d.ts",
|
|
"default": "./dist/event-target-redis.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/event-target-redis.d.cts",
|
|
"default": "./dist/event-target-redis.cjs"
|
|
}
|
|
}
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"scripts": {
|
|
"build": "tsup",
|
|
"build:tsc": "tsc --noEmit",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"test:coverage": "vitest run --coverage",
|
|
"lint": "tsc --noEmit",
|
|
"prepublishOnly": "npm run build"
|
|
},
|
|
"keywords": [
|
|
"pubsub",
|
|
"typed-event-target",
|
|
"redis",
|
|
"websocket",
|
|
"iroh",
|
|
"quic"
|
|
],
|
|
"license": "MIT OR Apache-2.0",
|
|
"dependencies": {},
|
|
"peerDependencies": {
|
|
"ioredis": "^5.0.0"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"ioredis": {
|
|
"optional": true
|
|
}
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^22.0.0",
|
|
"@vitest/coverage-v8": "^3.2.4",
|
|
"ioredis": "^5.10.1",
|
|
"tsup": "^8.5.1",
|
|
"typescript": "^5.7.0",
|
|
"vitest": "^3.1.0"
|
|
},
|
|
"engines": {
|
|
"node": ">=18.0.0"
|
|
}
|
|
}
|