@thi.ng/gp 0.4.30 → 0.4.31

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**: 2022-11-30T22:27:37Z
3
+ - **Last updated**: 2022-12-16T12:52:25Z
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
@@ -1,10 +1,10 @@
1
1
  <!-- This file is generated - DO NOT EDIT! -->
2
2
 
3
- # ![gp](https://media.thi.ng/umbrella/banners-20220914/thing-gp.svg?37482bab)
3
+ # ![@thi.ng/gp](https://media.thi.ng/umbrella/banners-20220914/thing-gp.svg?37482bab)
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/@thi.ng/gp.svg)](https://www.npmjs.com/package/@thi.ng/gp)
6
6
  ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/gp.svg)
7
- [![Twitter Follow](https://img.shields.io/twitter/follow/thing_umbrella.svg?style=flat-square&label=twitter)](https://twitter.com/thing_umbrella)
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
  This project is part of the
10
10
  [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo.
@@ -22,7 +22,7 @@ This project is part of the
22
22
 
23
23
  ## About
24
24
 
25
- Genetic programming helpers & strategies (tree based & multi-expression programming).
25
+ Genetic programming helpers & strategies (tree based & multi-expression programming)
26
26
 
27
27
  This package does not (yet) provide a complete GP framework and is
28
28
  largely focused on the following operations:
@@ -79,11 +79,8 @@ ES module import:
79
79
 
80
80
  For Node.js REPL:
81
81
 
82
- ```text
83
- # with flag only for < v16
84
- node --experimental-repl-await
85
-
86
- > const gp = await import("@thi.ng/gp");
82
+ ```js
83
+ const gp = await import("@thi.ng/gp");
87
84
  ```
88
85
 
89
86
  Package sizes (brotli'd, pre-treeshake): ESM: 1.18 KB
@@ -117,7 +114,7 @@ TODO
117
114
 
118
115
  ## Authors
119
116
 
120
- Karsten Schmidt
117
+ - [Karsten Schmidt](https://thi.ng)
121
118
 
122
119
  If this project contributes to an academic publication, please cite it as:
123
120
 
@@ -132,4 +129,4 @@ If this project contributes to an academic publication, please cite it as:
132
129
 
133
130
  ## License
134
131
 
135
- &copy; 2019 - 2022 Karsten Schmidt // Apache Software License 2.0
132
+ &copy; 2019 - 2022 Karsten Schmidt // Apache License 2.0
package/api.d.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  import type { Fn, Fn2 } from "@thi.ng/api";
2
2
  import type { IRandom } from "@thi.ng/random";
3
- export declare type GeneType = "term" | "op";
3
+ export type GeneType = "term" | "op";
4
4
  /**
5
5
  * Type alias for S-expression based AST
6
6
  */
7
- export declare type ASTNode<OP, T> = TerminalGene<T> | OpGene<OP, ASTNode<OP, T>>;
8
- export declare type MEPGene<OP, T> = TerminalGene<T> | OpGene<OP, number>;
9
- export declare type MEPChromosome<OP, T> = MEPGene<OP, T>[];
7
+ export type ASTNode<OP, T> = TerminalGene<T> | OpGene<OP, ASTNode<OP, T>>;
8
+ export type MEPGene<OP, T> = TerminalGene<T> | OpGene<OP, number>;
9
+ export type MEPChromosome<OP, T> = MEPGene<OP, T>[];
10
10
  export interface GPOpts<OP, T, ARGS> {
11
11
  /**
12
12
  * Terminal node generator. If probabilistic, the given PRNG MUST be
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/gp",
3
- "version": "0.4.30",
3
+ "version": "0.4.31",
4
4
  "description": "Genetic programming helpers & strategies (tree based & multi-expression programming)",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -21,7 +21,7 @@
21
21
  "url": "https://patreon.com/thing_umbrella"
22
22
  }
23
23
  ],
24
- "author": "Karsten Schmidt <k+npm@thi.ng>",
24
+ "author": "Karsten Schmidt (https://thi.ng)",
25
25
  "license": "Apache-2.0",
26
26
  "scripts": {
27
27
  "build": "yarn clean && tsc --declaration",
@@ -34,20 +34,20 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "dependencies": {
37
- "@thi.ng/api": "^8.5.1",
38
- "@thi.ng/errors": "^2.2.5",
39
- "@thi.ng/math": "^5.3.15",
40
- "@thi.ng/random": "^3.3.17",
41
- "@thi.ng/transducers": "^8.3.25",
42
- "@thi.ng/zipper": "^2.1.26"
37
+ "@thi.ng/api": "^8.6.0",
38
+ "@thi.ng/errors": "^2.2.6",
39
+ "@thi.ng/math": "^5.3.16",
40
+ "@thi.ng/random": "^3.3.18",
41
+ "@thi.ng/transducers": "^8.3.26",
42
+ "@thi.ng/zipper": "^2.1.27"
43
43
  },
44
44
  "devDependencies": {
45
- "@microsoft/api-extractor": "^7.33.5",
46
- "@thi.ng/testament": "^0.3.6",
45
+ "@microsoft/api-extractor": "^7.33.7",
46
+ "@thi.ng/testament": "^0.3.7",
47
47
  "rimraf": "^3.0.2",
48
48
  "tools": "^0.0.1",
49
- "typedoc": "^0.23.20",
50
- "typescript": "^4.8.4"
49
+ "typedoc": "^0.23.22",
50
+ "typescript": "^4.9.4"
51
51
  },
52
52
  "keywords": [
53
53
  "agent",
@@ -108,5 +108,5 @@
108
108
  "status": "alpha",
109
109
  "year": 2019
110
110
  },
111
- "gitHead": "1fe40da507070653f420156d91e6b27cf682004f\n"
111
+ "gitHead": "f445a9cc8022bcdebbf6ff91fd66ced016d72f01\n"
112
112
  }