@thi.ng/memoize 3.0.0 → 3.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
+ ## [3.0.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/memoize@3.0.3...@thi.ng/memoize@3.0.4) (2021-10-25)
7
+
8
+ **Note:** Version bump only for package @thi.ng/memoize
9
+
10
+
11
+
12
+
13
+
14
+ ## [3.0.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/memoize@3.0.2...@thi.ng/memoize@3.0.3) (2021-10-15)
15
+
16
+ **Note:** Version bump only for package @thi.ng/memoize
17
+
18
+
19
+
20
+
21
+
22
+ ## [3.0.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/memoize@3.0.1...@thi.ng/memoize@3.0.2) (2021-10-15)
23
+
24
+ **Note:** Version bump only for package @thi.ng/memoize
25
+
26
+
27
+
28
+
29
+
30
+ ## [3.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/memoize@3.0.0...@thi.ng/memoize@3.0.1) (2021-10-13)
31
+
32
+ **Note:** Version bump only for package @thi.ng/memoize
33
+
34
+
35
+
36
+
37
+
6
38
  # [3.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/memoize@2.1.21...@thi.ng/memoize@3.0.0) (2021-10-12)
7
39
 
8
40
 
package/README.md CHANGED
@@ -61,10 +61,11 @@ ES module import:
61
61
 
62
62
  [Skypack documentation](https://docs.skypack.dev/)
63
63
 
64
- For NodeJS (v14.6+):
64
+ For Node.js REPL:
65
65
 
66
66
  ```text
67
- node --experimental-specifier-resolution=node --experimental-repl-await
67
+ # with flag only for < v16
68
+ node --experimental-repl-await
68
69
 
69
70
  > const memoize = await import("@thi.ng/memoize");
70
71
  ```
package/do-once.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { Fn } from "@thi.ng/api";
2
- import type { MapLike } from "./api";
2
+ import type { MapLike } from "./api.js";
3
3
  /**
4
4
  * Similar to {@link memoize1}, however optimized for side effects only, i.e.
5
5
  * functions which DO NOT return any result.
package/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- export * from "./api";
2
- export * from "./defonce";
3
- export * from "./do-once";
4
- export * from "./memoize";
5
- export * from "./memoize1";
6
- export * from "./memoizej";
1
+ export * from "./api.js";
2
+ export * from "./defonce.js";
3
+ export * from "./do-once.js";
4
+ export * from "./memoize.js";
5
+ export * from "./memoize1.js";
6
+ export * from "./memoizej.js";
7
7
  //# sourceMappingURL=index.d.ts.map
package/index.js CHANGED
@@ -1,6 +1,6 @@
1
- export * from "./api";
2
- export * from "./defonce";
3
- export * from "./do-once";
4
- export * from "./memoize";
5
- export * from "./memoize1";
6
- export * from "./memoizej";
1
+ export * from "./api.js";
2
+ export * from "./defonce.js";
3
+ export * from "./do-once.js";
4
+ export * from "./memoize.js";
5
+ export * from "./memoize1.js";
6
+ export * from "./memoizej.js";
package/memoize.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { Fn, Fn2, Fn3, Fn4 } from "@thi.ng/api";
2
- import type { MapLike } from "./api";
2
+ import type { MapLike } from "./api.js";
3
3
  /**
4
4
  * Function memoization for arbitrary argument counts. Returns augmented
5
5
  * function, which uses the given `Map` implementation to obtain and
package/memoize1.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { Fn } from "@thi.ng/api";
2
- import type { MapLike } from "./api";
2
+ import type { MapLike } from "./api.js";
3
3
  /**
4
4
  * Optimized memoization for single arg functions. If the function
5
5
  * expects args other than strings or numbers, you MUST provide a `Map`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/memoize",
3
- "version": "3.0.0",
3
+ "version": "3.0.4",
4
4
  "description": "Function memoization with configurable caching",
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
  "cache",
@@ -48,6 +48,9 @@
48
48
  "publishConfig": {
49
49
  "access": "public"
50
50
  },
51
+ "engines": {
52
+ "node": ">=12.7"
53
+ },
51
54
  "files": [
52
55
  "*.js",
53
56
  "*.d.ts"
@@ -81,5 +84,5 @@
81
84
  ],
82
85
  "year": 2018
83
86
  },
84
- "gitHead": "9ac1344b38b565eb894306fbf72233b6c0b2d115"
87
+ "gitHead": "9ff00a103f76cc4917ef3f244132e218f2300a05"
85
88
  }