@serwist/streams 9.0.0-preview.19 → 9.0.0-preview.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ import type { RouteHandlerCallback, RouteHandlerCallbackOptions } from "@serwist
2
2
  import type { StreamSource } from "./_types.js";
3
3
  export type StreamsHandlerCallback = ({ url, request, event, params }: RouteHandlerCallbackOptions) => Promise<StreamSource> | StreamSource;
4
4
  /**
5
- * A shortcut to create a strategy that could be dropped-in to Serwist's router.
5
+ * A shortcut to create a strategy that could be dropped-in to Serwist's `Router`.
6
6
  *
7
7
  * On browsers that do not support constructing new `ReadableStream`s, this
8
8
  * strategy will automatically wait for all the `sourceFunctions` to complete,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serwist/streams",
3
- "version": "9.0.0-preview.19",
3
+ "version": "9.0.0-preview.20",
4
4
  "type": "module",
5
5
  "description": "A library that makes it easier to work with Streams in the browser.",
6
6
  "files": [
@@ -30,13 +30,13 @@
30
30
  "./package.json": "./package.json"
31
31
  },
32
32
  "dependencies": {
33
- "@serwist/core": "9.0.0-preview.19",
34
- "@serwist/routing": "9.0.0-preview.19"
33
+ "@serwist/core": "9.0.0-preview.20",
34
+ "@serwist/routing": "9.0.0-preview.20"
35
35
  },
36
36
  "devDependencies": {
37
37
  "rollup": "4.13.0",
38
38
  "typescript": "5.5.0-dev.20240323",
39
- "@serwist/constants": "9.0.0-preview.19"
39
+ "@serwist/constants": "9.0.0-preview.20"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "typescript": ">=5.0.0"
package/src/strategy.ts CHANGED
@@ -17,7 +17,7 @@ import { createHeaders } from "./utils/createHeaders.js";
17
17
  export type StreamsHandlerCallback = ({ url, request, event, params }: RouteHandlerCallbackOptions) => Promise<StreamSource> | StreamSource;
18
18
 
19
19
  /**
20
- * A shortcut to create a strategy that could be dropped-in to Serwist's router.
20
+ * A shortcut to create a strategy that could be dropped-in to Serwist's `Router`.
21
21
  *
22
22
  * On browsers that do not support constructing new `ReadableStream`s, this
23
23
  * strategy will automatically wait for all the `sourceFunctions` to complete,