@thi.ng/csp 2.1.114 → 2.1.116
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.
- package/CHANGELOG.md +7 -1
- package/README.md +2 -2
- package/api.d.ts +4 -4
- package/channel.d.ts +2 -2
- package/package.json +9 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2024-04-
|
|
3
|
+
- **Last updated**: 2024-04-23T07:02:17Z
|
|
4
4
|
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
5
5
|
|
|
6
6
|
All notable changes to this project will be documented in this file.
|
|
@@ -9,6 +9,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
|
|
|
9
9
|
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
10
10
|
and/or version bumps of transitive dependencies.
|
|
11
11
|
|
|
12
|
+
### [2.1.115](https://github.com/thi-ng/umbrella/tree/@thi.ng/csp@2.1.115) (2024-04-20)
|
|
13
|
+
|
|
14
|
+
#### ♻️ Refactoring
|
|
15
|
+
|
|
16
|
+
- update type usage ([749b24c](https://github.com/thi-ng/umbrella/commit/749b24c))
|
|
17
|
+
|
|
12
18
|
### [2.1.113](https://github.com/thi-ng/umbrella/tree/@thi.ng/csp@2.1.113) (2024-04-08)
|
|
13
19
|
|
|
14
20
|
#### ♻️ Refactoring
|
package/README.md
CHANGED
|
@@ -77,10 +77,10 @@ import * as csp from "@thi.ng/csp";
|
|
|
77
77
|
Browser ESM import:
|
|
78
78
|
|
|
79
79
|
```html
|
|
80
|
-
<script type="module" src="https://
|
|
80
|
+
<script type="module" src="https://esm.run/@thi.ng/csp"></script>
|
|
81
81
|
```
|
|
82
82
|
|
|
83
|
-
[
|
|
83
|
+
[JSDelivr documentation](https://www.jsdelivr.com/)
|
|
84
84
|
|
|
85
85
|
For Node.js REPL:
|
|
86
86
|
|
package/api.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Fn, IID, ILength, IRelease } from "@thi.ng/api";
|
|
1
|
+
import type { Fn, IID, ILength, IRelease, Maybe } from "@thi.ng/api";
|
|
2
2
|
import type { Channel } from "./channel.js";
|
|
3
3
|
export interface ChannelItem<T> {
|
|
4
4
|
value(): Promise<T>;
|
|
@@ -7,15 +7,15 @@ export interface ChannelItem<T> {
|
|
|
7
7
|
export interface IBuffer<T> extends ILength, IRelease {
|
|
8
8
|
isEmpty(): boolean;
|
|
9
9
|
isFull(): boolean;
|
|
10
|
-
drop(): ChannelItem<T
|
|
10
|
+
drop(): Maybe<ChannelItem<T>>;
|
|
11
11
|
push(x: ChannelItem<T>): boolean;
|
|
12
12
|
}
|
|
13
13
|
export interface IChannel<T> extends IID<string> {
|
|
14
14
|
channel(): Channel<T>;
|
|
15
|
-
close(flush?: boolean): Promise<void
|
|
15
|
+
close(flush?: boolean): Maybe<Promise<void>>;
|
|
16
16
|
}
|
|
17
17
|
export interface IReadableChannel<T> extends IChannel<T> {
|
|
18
|
-
read(): Promise<T
|
|
18
|
+
read(): Promise<Maybe<T>>;
|
|
19
19
|
}
|
|
20
20
|
export interface IWriteableChannel<T> extends IChannel<T> {
|
|
21
21
|
write(val: any): Promise<boolean>;
|
package/channel.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Fn, Fn0, Fn2, FnAny, Predicate } from "@thi.ng/api";
|
|
1
|
+
import type { Fn, Fn0, Fn2, FnAny, Maybe, Predicate } from "@thi.ng/api";
|
|
2
2
|
import { DCons } from "@thi.ng/dcons/dcons";
|
|
3
3
|
import type { Reducer, Transducer } from "@thi.ng/transducers";
|
|
4
4
|
import type { ChannelItem, ErrorHandler, IBuffer, IReadWriteableChannel } from "./api.js";
|
|
@@ -132,7 +132,7 @@ export declare class Channel<T> implements IReadWriteableChannel<T> {
|
|
|
132
132
|
constructor(id: string, buf: number | IBuffer<T>, tx: Transducer<any, T>, err: ErrorHandler);
|
|
133
133
|
channel(): this;
|
|
134
134
|
write(value: any): Promise<boolean>;
|
|
135
|
-
read(): Promise<T
|
|
135
|
+
read(): Promise<Maybe<T>>;
|
|
136
136
|
tryRead(timeout?: number): Promise<unknown>;
|
|
137
137
|
close(flush?: boolean): Promise<void> | undefined;
|
|
138
138
|
isClosed(): boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/csp",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.116",
|
|
4
4
|
"description": "ES6 promise based CSP primitives & operations",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"build": "yarn build:esbuild && yarn build:decl",
|
|
28
28
|
"build:decl": "tsc --declaration --emitDeclarationOnly",
|
|
29
29
|
"build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
|
|
30
|
-
"clean": "
|
|
30
|
+
"clean": "bun ../../tools/src/clean-package.ts",
|
|
31
31
|
"doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
|
|
32
32
|
"doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
|
|
33
33
|
"doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
|
|
@@ -40,17 +40,16 @@
|
|
|
40
40
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@thi.ng/api": "^8.
|
|
44
|
-
"@thi.ng/arrays": "^2.9.
|
|
45
|
-
"@thi.ng/checks": "^3.6.
|
|
46
|
-
"@thi.ng/dcons": "^3.2.
|
|
47
|
-
"@thi.ng/errors": "^2.5.
|
|
48
|
-
"@thi.ng/transducers": "^9.0.
|
|
43
|
+
"@thi.ng/api": "^8.11.1",
|
|
44
|
+
"@thi.ng/arrays": "^2.9.5",
|
|
45
|
+
"@thi.ng/checks": "^3.6.3",
|
|
46
|
+
"@thi.ng/dcons": "^3.2.111",
|
|
47
|
+
"@thi.ng/errors": "^2.5.6",
|
|
48
|
+
"@thi.ng/transducers": "^9.0.3"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@microsoft/api-extractor": "^7.43.0",
|
|
52
52
|
"esbuild": "^0.20.2",
|
|
53
|
-
"rimraf": "^5.0.5",
|
|
54
53
|
"typedoc": "^0.25.12",
|
|
55
54
|
"typescript": "^5.4.3"
|
|
56
55
|
},
|
|
@@ -104,5 +103,5 @@
|
|
|
104
103
|
"status": "deprecated",
|
|
105
104
|
"year": 2016
|
|
106
105
|
},
|
|
107
|
-
"gitHead": "
|
|
106
|
+
"gitHead": "5dd66c18a3862a3af69a5b2f49563f7cbdd960c2\n"
|
|
108
107
|
}
|