@thi.ng/compare 2.0.0 → 2.0.4

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,38 @@
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
+ ## [2.0.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/compare@2.0.3...@thi.ng/compare@2.0.4) (2021-10-25)
7
+
8
+ **Note:** Version bump only for package @thi.ng/compare
9
+
10
+
11
+
12
+
13
+
14
+ ## [2.0.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/compare@2.0.2...@thi.ng/compare@2.0.3) (2021-10-15)
15
+
16
+ **Note:** Version bump only for package @thi.ng/compare
17
+
18
+
19
+
20
+
21
+
22
+ ## [2.0.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/compare@2.0.1...@thi.ng/compare@2.0.2) (2021-10-15)
23
+
24
+ **Note:** Version bump only for package @thi.ng/compare
25
+
26
+
27
+
28
+
29
+
30
+ ## [2.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/compare@2.0.0...@thi.ng/compare@2.0.1) (2021-10-13)
31
+
32
+ **Note:** Version bump only for package @thi.ng/compare
33
+
34
+
35
+
36
+
37
+
6
38
  # [2.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/compare@1.3.34...@thi.ng/compare@2.0.0) (2021-10-12)
7
39
 
8
40
 
package/README.md CHANGED
@@ -51,10 +51,11 @@ ES module import:
51
51
 
52
52
  [Skypack documentation](https://docs.skypack.dev/)
53
53
 
54
- For NodeJS (v14.6+):
54
+ For Node.js REPL:
55
55
 
56
56
  ```text
57
- node --experimental-specifier-resolution=node --experimental-repl-await
57
+ # with flag only for < v16
58
+ node --experimental-repl-await
58
59
 
59
60
  > const compare = await import("@thi.ng/compare");
60
61
  ```
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export * from "./compare";
2
- export * from "./keys";
3
- export * from "./numeric";
4
- export * from "./reverse";
1
+ export * from "./compare.js";
2
+ export * from "./keys.js";
3
+ export * from "./numeric.js";
4
+ export * from "./reverse.js";
5
5
  //# sourceMappingURL=index.d.ts.map
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export * from "./compare";
2
- export * from "./keys";
3
- export * from "./numeric";
4
- export * from "./reverse";
1
+ export * from "./compare.js";
2
+ export * from "./keys.js";
3
+ export * from "./numeric.js";
4
+ export * from "./reverse.js";
package/keys.js CHANGED
@@ -1,4 +1,4 @@
1
- import { compare } from "./compare";
1
+ import { compare } from "./compare.js";
2
2
  const getKey = (k) => typeof k === "function" ? k : (x) => x[k];
3
3
  export function compareByKey(a, cmp = compare) {
4
4
  const k = getKey(a);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/compare",
3
- "version": "2.0.0",
3
+ "version": "2.0.4",
4
4
  "description": "Comparators with support for types implementing the @thi.ng/api/ICompare interface",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -34,10 +34,10 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "dependencies": {
37
- "@thi.ng/api": "^8.0.0"
37
+ "@thi.ng/api": "^8.0.4"
38
38
  },
39
39
  "devDependencies": {
40
- "@thi.ng/testament": "^0.1.0"
40
+ "@thi.ng/testament": "^0.1.4"
41
41
  },
42
42
  "keywords": [
43
43
  "comparator",
@@ -47,6 +47,9 @@
47
47
  "publishConfig": {
48
48
  "access": "public"
49
49
  },
50
+ "engines": {
51
+ "node": ">=12.7"
52
+ },
50
53
  "files": [
51
54
  "*.js",
52
55
  "*.d.ts"
@@ -68,5 +71,5 @@
68
71
  "import": "./reverse.js"
69
72
  }
70
73
  },
71
- "gitHead": "9ac1344b38b565eb894306fbf72233b6c0b2d115"
74
+ "gitHead": "9ff00a103f76cc4917ef3f244132e218f2300a05"
72
75
  }