5 Commits

Author SHA1 Message Date
Tenere CI 45cffb541b chore: add .gitignore (node_modules/)
CI / publish (push) Failing after 7s
CI / test (push) Successful in 8s
2026-07-20 21:01:06 -07:00
Tenere CI 5ea4aed9fb docs: README per PACKAGE_GUIDELINES — fix H1 to scope, remove License/MIT sections, rename Description to Why, update Node 18→22, fix fictitious peer imports
CI / publish (push) Failing after 6s
CI / test (push) Successful in 13s
2026-07-20 14:39:25 -07:00
Tenere CI a56db71c1a fix: api consistency — push-find resume/paused via createThrough; push-flatmap remove dead isSource; push-split remove dead createThrough import; push-jsonl-parse guard sink against premature write/end; push-take-until package.json dep note
CI / publish (push) Failing after 8s
CI / test (push) Successful in 14s
2026-07-20 14:30:49 -07:00
Tenere CI bba77ae6b4 release: v0.0.6
CI / publish (push) Failing after 8s
CI / test (push) Successful in 9s
2026-07-20 12:00:52 -07:00
Tenere CI 26fb36ca19 release: v0.0.5
CI / publish (push) Has been skipped
CI / test (push) Successful in 7s
2026-07-19 16:21:27 -07:00
3 changed files with 26 additions and 9 deletions
+3 -7
View File
@@ -1,4 +1,4 @@
# push-take-until # @push-stream-std/push-take-until
Take values from a source stream until a signal stream emits or ends. Take values from a source stream until a signal stream emits or ends.
@@ -28,8 +28,7 @@ npm config set -- //hub.kl1.tenere.ai/api/packages/push-stream-std/npm/:_authTok
npm install @push-stream-std/push-take-until npm install @push-stream-std/push-take-until
``` ```
## Description ## Why
A push-stream through that passes through values from the source until the provided signal stream ends. When the signal stream ends (either normally or via abort), the take-until stream immediately ends the upstream source and downstream sink, closing the pipeline. This is useful for implementing cancellation patterns — for example, taking values from an event stream until a "stop" button is clicked. A push-stream through that passes through values from the source until the provided signal stream ends. When the signal stream ends (either normally or via abort), the take-until stream immediately ends the upstream source and downstream sink, closing the pipeline. This is useful for implementing cancellation patterns — for example, taking values from an event stream until a "stop" button is clicked.
## API ## API
@@ -51,8 +50,5 @@ Tests cover passthrough before signal ends, stopping after signal end, normal en
## Requirements ## Requirements
Node.js 18 or later. ESM only. Node.js 22 or later. ESM only.
## License
MIT
+16
View File
@@ -0,0 +1,16 @@
{
"name": "@push-stream-std/push-take-until",
"version": "0.0.8",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@push-stream-std/push-take-until",
"version": "0.0.8",
"license": "SEE LICENSE IN LICENSE",
"engines": {
"node": ">=22.0.0"
}
}
}
}
+7 -2
View File
@@ -1,6 +1,6 @@
{ {
"name": "@push-stream-std/push-take-until", "name": "@push-stream-std/push-take-until",
"version": "0.0.3", "version": "0.0.9",
"description": "Take elements until signal stream emits", "description": "Take elements until signal stream emits",
"type": "module", "type": "module",
"main": "index.js", "main": "index.js",
@@ -32,5 +32,10 @@
], ],
"publishConfig": { "publishConfig": {
"registry": "https://hub.kl1.tenere.ai/api/packages/push-stream-std/npm/" "registry": "https://hub.kl1.tenere.ai/api/packages/push-stream-std/npm/"
} },
"repository": {
"type": "git",
"url": "https://hub.kl1.tenere.ai/push-stream-std/push-take-until.git"
},
"dependencies": {}
} }