@thi.ng/gp 0.3.0 → 0.3.1

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
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.3.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/gp@0.3.0...@thi.ng/gp@0.3.1) (2021-10-13)
7
+
8
+ **Note:** Version bump only for package @thi.ng/gp
9
+
10
+
11
+
12
+
13
+
6
14
  # [0.3.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/gp@0.2.30...@thi.ng/gp@0.3.0) (2021-10-12)
7
15
 
8
16
 
package/README.md CHANGED
@@ -77,10 +77,11 @@ ES module import:
77
77
 
78
78
  [Skypack documentation](https://docs.skypack.dev/)
79
79
 
80
- For NodeJS (v14.6+):
80
+ For Node.js REPL:
81
81
 
82
82
  ```text
83
- node --experimental-specifier-resolution=node --experimental-repl-await
83
+ # with flag only for < v16
84
+ node --experimental-repl-await
84
85
 
85
86
  > const gp = await import("@thi.ng/gp");
86
87
  ```
package/ast.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { Location } from "@thi.ng/zipper";
2
- import type { ASTNode, ASTOpts } from "./api";
2
+ import type { ASTNode, ASTOpts } from "./api.js";
3
3
  export declare class AST<OP, T> {
4
4
  opts: ASTOpts<OP, T>;
5
5
  choices: IterableIterator<number>;
package/ast.js CHANGED
@@ -5,7 +5,7 @@ import { iterator } from "@thi.ng/transducers/iterator";
5
5
  import { repeatedly } from "@thi.ng/transducers/repeatedly";
6
6
  import { takeWhile } from "@thi.ng/transducers/take-while";
7
7
  import { zipper } from "@thi.ng/zipper/zipper";
8
- import { opNode, probabilities, terminalNode } from "./utils";
8
+ import { opNode, probabilities, terminalNode } from "./utils.js";
9
9
  export class AST {
10
10
  opts;
11
11
  choices;
package/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export * from "./api";
2
- export * from "./ast";
3
- export * from "./mep";
1
+ export * from "./api.js";
2
+ export * from "./ast.js";
3
+ export * from "./mep.js";
4
4
  //# sourceMappingURL=index.d.ts.map
package/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export * from "./api";
2
- export * from "./ast";
3
- export * from "./mep";
1
+ export * from "./api.js";
2
+ export * from "./ast.js";
3
+ export * from "./mep.js";
package/mep.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { ASTNode, MEPChromosome, MEPGene, MEPOpts } from "./api";
1
+ import type { ASTNode, MEPChromosome, MEPGene, MEPOpts } from "./api.js";
2
2
  export declare class MEP<OP, T> {
3
3
  opts: MEPOpts<OP, T>;
4
4
  probTerminal: number;
package/mep.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { inRange } from "@thi.ng/math/interval";
2
2
  import { SYSTEM } from "@thi.ng/random/system";
3
3
  import { repeatedly } from "@thi.ng/transducers/repeatedly";
4
- import { opNode, probabilities, terminalNode } from "./utils";
4
+ import { opNode, probabilities, terminalNode } from "./utils.js";
5
5
  export class MEP {
6
6
  opts;
7
7
  probTerminal;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/gp",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Genetic programming helpers & strategies (tree based & multi-expression programming)",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -34,15 +34,15 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "dependencies": {
37
- "@thi.ng/api": "^8.0.0",
38
- "@thi.ng/errors": "^2.0.0",
39
- "@thi.ng/math": "^5.0.0",
40
- "@thi.ng/random": "^3.0.0",
41
- "@thi.ng/transducers": "^8.0.0",
42
- "@thi.ng/zipper": "^2.0.0"
37
+ "@thi.ng/api": "^8.0.1",
38
+ "@thi.ng/errors": "^2.0.1",
39
+ "@thi.ng/math": "^5.0.1",
40
+ "@thi.ng/random": "^3.0.1",
41
+ "@thi.ng/transducers": "^8.0.1",
42
+ "@thi.ng/zipper": "^2.0.1"
43
43
  },
44
44
  "devDependencies": {
45
- "@thi.ng/testament": "^0.1.0"
45
+ "@thi.ng/testament": "^0.1.1"
46
46
  },
47
47
  "keywords": [
48
48
  "agent",
@@ -65,6 +65,9 @@
65
65
  "publishConfig": {
66
66
  "access": "public"
67
67
  },
68
+ "engines": {
69
+ "node": ">=12.7"
70
+ },
68
71
  "files": [
69
72
  "*.js",
70
73
  "*.d.ts"
@@ -100,5 +103,5 @@
100
103
  "status": "alpha",
101
104
  "year": 2019
102
105
  },
103
- "gitHead": "9ac1344b38b565eb894306fbf72233b6c0b2d115"
106
+ "gitHead": "2e6b3d7c0f4c5686c1e9bdb4902ed7d3f90bcc19"
104
107
  }
package/utils.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { GPOpts, OpGene, TerminalGene } from "./api";
1
+ import type { GPOpts, OpGene, TerminalGene } from "./api.js";
2
2
  export declare const terminalNode: <T>(value: T) => TerminalGene<T>;
3
3
  export declare const opNode: <OP, A>(op: OP, args: A[]) => OpGene<OP, A>;
4
4
  export declare const probabilities: (opts: GPOpts<any, any, any>) => {