Skip to content

Commit

Permalink
feat: support pipe splitting (like tee) and delayed piping (#914)
Browse files Browse the repository at this point in the history
* feat: support pipe splitting

BREAKING CHANGE: `p.halt()` should be replaced with `$({halt: true})`, stdio defaults to `pipe`

* test: add delayed `pipe()` test

* feat: add `pid` getter to `ProcessPromise`

* test: check chainable pipe literals

* test: kill nc process on end

* refactor!: remove `halt()` method

* refactor: remove runner logic from getters

* fix: enhance `Shell` result type

* chore: bring back `halt` method to avoid breaking change

* style: improve `Options` block formatting

* perf: improve cmd formatter

* chore: update internal reexports

* chore: up build deps

* chore(deps): update which to v5.0.0
  • Loading branch information
antongolub authored Oct 29, 2024
1 parent b9f78c3 commit c38363f
Show file tree
Hide file tree
Showing 8 changed files with 835 additions and 425 deletions.
2 changes: 1 addition & 1 deletion .size-limit.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"name": "zx/index",
"path": "build/*.{js,cjs}",
"limit": "797 kB",
"limit": "800 kB",
"brotli": false,
"gzip": false
},
Expand Down
906 changes: 648 additions & 258 deletions package-lock.json

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
"@types/node": ">=20"
},
"devDependencies": {
"@size-limit/file": "^11.1.5",
"@size-limit/file": "^11.1.6",
"@types/fs-extra": "^11.0.4",
"@types/minimist": "^1.2.5",
"@types/node": ">=20.11.30",
Expand All @@ -104,8 +104,8 @@
"create-require": "^1.1.1",
"depseek": "^0.4.1",
"dts-bundle-generator": "^9.5.1",
"esbuild": "^0.23.1",
"esbuild-node-externals": "^1.14.0",
"esbuild": "^0.24.0",
"esbuild-node-externals": "^1.15.0",
"esbuild-plugin-entry-chunks": "^0.1.15",
"esbuild-plugin-extract-helpers": "^0.0.6",
"esbuild-plugin-hybrid-export": "^0.2.5",
Expand All @@ -119,12 +119,12 @@
"minimist": "^1.2.8",
"node-fetch-native": "^1.6.4",
"prettier": "^3.3.3",
"size-limit": "^11.1.5",
"size-limit": "^11.1.6",
"ts-node": "^10.9.2",
"tsd": "^0.31.2",
"tsx": "^4.19.1",
"typescript": "^5.6.2",
"which": "^4.0.0",
"tsx": "^4.19.2",
"typescript": "^5.6.3",
"which": "^5.0.0",
"yaml": "^2.5.1",
"zurk": "^0.6.0"
},
Expand Down
Loading

0 comments on commit c38363f

Please sign in to comment.