@thi.ng/pointfree 3.1.60 → 3.1.62

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-01-23T15:58:27Z
3
+ - **Last updated**: 2024-01-29T20:39:37Z
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.
package/README.md CHANGED
@@ -7,9 +7,13 @@
7
7
  ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/pointfree.svg)
8
8
  [![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](https://mastodon.thi.ng/@toxi)
9
9
 
10
- This is a standalone project, maintained as part of the
11
- [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo and
12
- anti-framework.
10
+ > [!NOTE]
11
+ > This is one of 189 standalone projects, maintained as part
12
+ > of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
13
+ > and anti-framework.
14
+ >
15
+ > 🚀 Help me to work full-time on these projects by [sponsoring me on
16
+ > GitHub](https://github.com/sponsors/postspectacular). Thank you! ❤️
13
17
 
14
18
  - [About](#about)
15
19
  - [Reading links](#reading-links)
package/array.d.ts CHANGED
@@ -1,10 +1,12 @@
1
1
  import type { StackContext, StackFn } from "./api.js";
2
2
  /**
3
- * Pushes a new empty array on the d-stack. While it's easily possible to
4
- * use `[]` as part of a stack program, the `list` word is intended to
5
- * be used as part of re-usuable {@link word} definitions to ensure a new
6
- * array is being created for every single invocation of the word (else
7
- * only a single instance is created due to the mutable nature of JS
3
+ * Pushes a new empty array on the d-stack.
4
+ *
5
+ * @remarks
6
+ * While it's easily possible to use `[]` as part of a stack program, the `list`
7
+ * word is intended to be used as part of re-usuable {@link defWord} definitions
8
+ * to ensure a new array is being created for every single invocation of the
9
+ * word (else only a single instance is created due to the mutable nature of JS
8
10
  * arrays).
9
11
  *
10
12
  * Compare:
package/cond.d.ts CHANGED
@@ -15,9 +15,9 @@ import type { StackContext, StackProc } from "./api.js";
15
15
  */
16
16
  export declare const defCond: (_then: StackProc, _else?: StackProc) => (ctx: StackContext) => StackContext;
17
17
  /**
18
- * Non-HOF version of {@link cond}, expects `test` result and both branches on
19
- * d-stack. Executes `thenq` word/quotation if `test` is truthy, else
20
- * runs `elseq`.
18
+ * Non-HOF version of {@link defCond}, expects `test` result and both branches
19
+ * on d-stack. Executes `thenq` word/quotation if `test` is truthy, else runs
20
+ * `elseq`.
21
21
  *
22
22
  * ( test thenq elseq -- ? )
23
23
  *
package/loop.d.ts CHANGED
@@ -18,7 +18,7 @@ import type { StackContext, StackProc } from "./api.js";
18
18
  */
19
19
  export declare const defLoop: (test: StackProc, body: StackProc) => (ctx: StackContext) => StackContext;
20
20
  /**
21
- * Non-HOF version of {@link loop}. Expects test result and body quotation /
21
+ * Non-HOF version of {@link defLoop}. Expects test result and body quotation /
22
22
  * word on d-stack.
23
23
  *
24
24
  * ( testq bodyq -- ? )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/pointfree",
3
- "version": "3.1.60",
3
+ "version": "3.1.62",
4
4
  "description": "Pointfree functional composition / Forth style stack execution engine",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -35,11 +35,11 @@
35
35
  "test": "bun test"
36
36
  },
37
37
  "dependencies": {
38
- "@thi.ng/api": "^8.9.17",
39
- "@thi.ng/checks": "^3.4.17",
40
- "@thi.ng/compose": "^2.1.56",
41
- "@thi.ng/equiv": "^2.1.42",
42
- "@thi.ng/errors": "^2.4.11"
38
+ "@thi.ng/api": "^8.9.19",
39
+ "@thi.ng/checks": "^3.4.19",
40
+ "@thi.ng/compose": "^2.1.58",
41
+ "@thi.ng/equiv": "^2.1.43",
42
+ "@thi.ng/errors": "^2.4.12"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@microsoft/api-extractor": "^7.39.0",
@@ -132,5 +132,5 @@
132
132
  "thi.ng": {
133
133
  "year": 2015
134
134
  },
135
- "gitHead": "417b5a7ea7bd54a3b4f086fe0fc2ce8e8933c9b2\n"
135
+ "gitHead": "20909ffc46f23f61ec7647e8d27ed17752ce9828\n"
136
136
  }
package/word.d.ts CHANGED
@@ -31,11 +31,12 @@ export declare const unwrap: ([stack]: StackContext, n?: number) => any;
31
31
  */
32
32
  export declare const defWord: (prog: StackProgram, env?: StackEnv, mergeEnv?: boolean) => StackFn;
33
33
  /**
34
- * Like {@link word}, but automatically calls {@link unwrap} on result context
35
- * to produced unwrapped value/tuple.
34
+ * Like {@link defWord}, but automatically calls {@link unwrap} on result
35
+ * context to produced unwrapped value/tuple.
36
36
  *
37
- * **Importatant:** Words defined with this function CANNOT be used as
38
- * part of a larger stack program, only for standalone use.
37
+ * @remarks
38
+ * **Importatant:** Words defined with this function CANNOT be used as part of a
39
+ * larger stack program, only for standalone use.
39
40
  *
40
41
  * @param prog -
41
42
  * @param n -