@thi.ng/csp 2.1.113 → 2.1.115

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2024-04-08T14:59:29Z
3
+ - **Last updated**: 2024-04-20T14:42:45Z
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
@@ -7,7 +7,7 @@
7
7
  [![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](https://mastodon.thi.ng/@toxi)
8
8
 
9
9
  > [!NOTE]
10
- > This is one of 191 standalone projects, maintained as part
10
+ > This is one of 192 standalone projects, maintained as part
11
11
  > of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
12
12
  > and anti-framework.
13
13
  >
@@ -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://cdn.skypack.dev/@thi.ng/csp"></script>
80
+ <script type="module" src="https://esm.run/@thi.ng/csp"></script>
81
81
  ```
82
82
 
83
- [Skypack documentation](https://docs.skypack.dev/)
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> | undefined;
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> | undefined;
15
+ close(flush?: boolean): Maybe<Promise<void>>;
16
16
  }
17
17
  export interface IReadableChannel<T> extends IChannel<T> {
18
- read(): Promise<T | undefined>;
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 | undefined>;
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.113",
3
+ "version": "2.1.115",
4
4
  "description": "ES6 promise based CSP primitives & operations",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -40,12 +40,12 @@
40
40
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
41
41
  },
42
42
  "dependencies": {
43
- "@thi.ng/api": "^8.10.0",
44
- "@thi.ng/arrays": "^2.9.2",
45
- "@thi.ng/checks": "^3.6.0",
46
- "@thi.ng/dcons": "^3.2.108",
47
- "@thi.ng/errors": "^2.5.3",
48
- "@thi.ng/transducers": "^9.0.0"
43
+ "@thi.ng/api": "^8.11.0",
44
+ "@thi.ng/arrays": "^2.9.4",
45
+ "@thi.ng/checks": "^3.6.2",
46
+ "@thi.ng/dcons": "^3.2.110",
47
+ "@thi.ng/errors": "^2.5.5",
48
+ "@thi.ng/transducers": "^9.0.2"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@microsoft/api-extractor": "^7.43.0",
@@ -104,5 +104,5 @@
104
104
  "status": "deprecated",
105
105
  "year": 2016
106
106
  },
107
- "gitHead": "85ac4bd4d6d89f8e3689e2863d5bea0cecdb371c\n"
107
+ "gitHead": "8339d05ecc857e529c7325a9839c0063b89e728d\n"
108
108
  }