@thi.ng/api 8.0.0 → 8.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
+ ## [8.0.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@8.0.3...@thi.ng/api@8.0.4) (2021-10-25)
7
+
8
+ **Note:** Version bump only for package @thi.ng/api
9
+
10
+
11
+
12
+
13
+
14
+ ## [8.0.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@8.0.2...@thi.ng/api@8.0.3) (2021-10-15)
15
+
16
+ **Note:** Version bump only for package @thi.ng/api
17
+
18
+
19
+
20
+
21
+
22
+ ## [8.0.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@8.0.1...@thi.ng/api@8.0.2) (2021-10-15)
23
+
24
+ **Note:** Version bump only for package @thi.ng/api
25
+
26
+
27
+
28
+
29
+
30
+ ## [8.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@8.0.0...@thi.ng/api@8.0.1) (2021-10-13)
31
+
32
+ **Note:** Version bump only for package @thi.ng/api
33
+
34
+
35
+
36
+
37
+
6
38
  # [8.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@7.2.0...@thi.ng/api@8.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 api = await import("@thi.ng/api");
60
61
  ```
package/assoc.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { Fn } from "./fn";
1
+ import type { Fn } from "./fn.js";
2
2
  /**
3
3
  * A key-value pair / tuple.
4
4
  */
package/compare.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { Fn2 } from "./fn";
1
+ import type { Fn2 } from "./fn.js";
2
2
  /**
3
3
  * Generic 2-element comparator function type alias.
4
4
  *
package/deref.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { IObjectOf } from "./object";
1
+ import type { IObjectOf } from "./object.js";
2
2
  /**
3
3
  * Generic interface for reference types (value wrappers).
4
4
  */
package/dissoc.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { IAssoc, IAssocIn } from "./assoc";
1
+ import type { IAssoc, IAssocIn } from "./assoc.js";
2
2
  /**
3
3
  * Extension of `IAssoc` for types supporting key removals.
4
4
  *
package/event.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import type { Fn } from "./fn";
2
- import type { IID } from "./id";
1
+ import type { Fn } from "./fn.js";
2
+ import type { IID } from "./id.js";
3
3
  /**
4
4
  * Event listener.
5
5
  */
package/index.d.ts CHANGED
@@ -1,49 +1,49 @@
1
- export * from "./assoc";
2
- export * from "./bind";
3
- export * from "./buffered";
4
- export * from "./clear";
5
- export * from "./compare";
6
- export * from "./contains";
7
- export * from "./copy";
8
- export * from "./deref";
9
- export * from "./dissoc";
10
- export * from "./empty";
11
- export * from "./enable";
12
- export * from "./equiv";
13
- export * from "./event";
14
- export * from "./fn";
15
- export * from "./get";
16
- export * from "./hash";
17
- export * from "./hiccup";
18
- export * from "./id";
19
- export * from "./indexed";
20
- export * from "./into";
21
- export * from "./keyval";
22
- export * from "./length";
23
- export * from "./meta";
24
- export * from "./null";
25
- export * from "./object";
26
- export * from "./path";
27
- export * from "./predicate";
28
- export * from "./prim";
29
- export * from "./range";
30
- export * from "./release";
31
- export * from "./reset";
32
- export * from "./select";
33
- export * from "./seq";
34
- export * from "./set";
35
- export * from "./stack";
36
- export * from "./tuple";
37
- export * from "./typedarray";
38
- export * from "./watch";
39
- export * from "./api";
40
- export * from "./mixin";
41
- export * from "./decorators/configurable";
42
- export * from "./decorators/deprecated";
43
- export * from "./decorators/nomixin";
44
- export * from "./decorators/sealed";
45
- export * from "./mixins/ienable";
46
- export * from "./mixins/inotify";
47
- export * from "./mixins/iterable";
48
- export * from "./mixins/iwatch";
1
+ export * from "./assoc.js";
2
+ export * from "./bind.js";
3
+ export * from "./buffered.js";
4
+ export * from "./clear.js";
5
+ export * from "./compare.js";
6
+ export * from "./contains.js";
7
+ export * from "./copy.js";
8
+ export * from "./deref.js";
9
+ export * from "./dissoc.js";
10
+ export * from "./empty.js";
11
+ export * from "./enable.js";
12
+ export * from "./equiv.js";
13
+ export * from "./event.js";
14
+ export * from "./fn.js";
15
+ export * from "./get.js";
16
+ export * from "./hash.js";
17
+ export * from "./hiccup.js";
18
+ export * from "./id.js";
19
+ export * from "./indexed.js";
20
+ export * from "./into.js";
21
+ export * from "./keyval.js";
22
+ export * from "./length.js";
23
+ export * from "./meta.js";
24
+ export * from "./null.js";
25
+ export * from "./object.js";
26
+ export * from "./path.js";
27
+ export * from "./predicate.js";
28
+ export * from "./prim.js";
29
+ export * from "./range.js";
30
+ export * from "./release.js";
31
+ export * from "./reset.js";
32
+ export * from "./select.js";
33
+ export * from "./seq.js";
34
+ export * from "./set.js";
35
+ export * from "./stack.js";
36
+ export * from "./tuple.js";
37
+ export * from "./typedarray.js";
38
+ export * from "./watch.js";
39
+ export * from "./api.js";
40
+ export * from "./mixin.js";
41
+ export * from "./decorators/configurable.js";
42
+ export * from "./decorators/deprecated.js";
43
+ export * from "./decorators/nomixin.js";
44
+ export * from "./decorators/sealed.js";
45
+ export * from "./mixins/ienable.js";
46
+ export * from "./mixins/inotify.js";
47
+ export * from "./mixins/iterable.js";
48
+ export * from "./mixins/iwatch.js";
49
49
  //# sourceMappingURL=index.d.ts.map
package/index.js CHANGED
@@ -1,48 +1,48 @@
1
- export * from "./assoc";
2
- export * from "./bind";
3
- export * from "./buffered";
4
- export * from "./clear";
5
- export * from "./compare";
6
- export * from "./contains";
7
- export * from "./copy";
8
- export * from "./deref";
9
- export * from "./dissoc";
10
- export * from "./empty";
11
- export * from "./enable";
12
- export * from "./equiv";
13
- export * from "./event";
14
- export * from "./fn";
15
- export * from "./get";
16
- export * from "./hash";
17
- export * from "./hiccup";
18
- export * from "./id";
19
- export * from "./indexed";
20
- export * from "./into";
21
- export * from "./keyval";
22
- export * from "./length";
23
- export * from "./meta";
24
- export * from "./null";
25
- export * from "./object";
26
- export * from "./path";
27
- export * from "./predicate";
28
- export * from "./prim";
29
- export * from "./range";
30
- export * from "./release";
31
- export * from "./reset";
32
- export * from "./select";
33
- export * from "./seq";
34
- export * from "./set";
35
- export * from "./stack";
36
- export * from "./tuple";
37
- export * from "./typedarray";
38
- export * from "./watch";
39
- export * from "./api";
40
- export * from "./mixin";
41
- export * from "./decorators/configurable";
42
- export * from "./decorators/deprecated";
43
- export * from "./decorators/nomixin";
44
- export * from "./decorators/sealed";
45
- export * from "./mixins/ienable";
46
- export * from "./mixins/inotify";
47
- export * from "./mixins/iterable";
48
- export * from "./mixins/iwatch";
1
+ export * from "./assoc.js";
2
+ export * from "./bind.js";
3
+ export * from "./buffered.js";
4
+ export * from "./clear.js";
5
+ export * from "./compare.js";
6
+ export * from "./contains.js";
7
+ export * from "./copy.js";
8
+ export * from "./deref.js";
9
+ export * from "./dissoc.js";
10
+ export * from "./empty.js";
11
+ export * from "./enable.js";
12
+ export * from "./equiv.js";
13
+ export * from "./event.js";
14
+ export * from "./fn.js";
15
+ export * from "./get.js";
16
+ export * from "./hash.js";
17
+ export * from "./hiccup.js";
18
+ export * from "./id.js";
19
+ export * from "./indexed.js";
20
+ export * from "./into.js";
21
+ export * from "./keyval.js";
22
+ export * from "./length.js";
23
+ export * from "./meta.js";
24
+ export * from "./null.js";
25
+ export * from "./object.js";
26
+ export * from "./path.js";
27
+ export * from "./predicate.js";
28
+ export * from "./prim.js";
29
+ export * from "./range.js";
30
+ export * from "./release.js";
31
+ export * from "./reset.js";
32
+ export * from "./select.js";
33
+ export * from "./seq.js";
34
+ export * from "./set.js";
35
+ export * from "./stack.js";
36
+ export * from "./tuple.js";
37
+ export * from "./typedarray.js";
38
+ export * from "./watch.js";
39
+ export * from "./api.js";
40
+ export * from "./mixin.js";
41
+ export * from "./decorators/configurable.js";
42
+ export * from "./decorators/deprecated.js";
43
+ export * from "./decorators/nomixin.js";
44
+ export * from "./decorators/sealed.js";
45
+ export * from "./mixins/ienable.js";
46
+ export * from "./mixins/inotify.js";
47
+ export * from "./mixins/iterable.js";
48
+ export * from "./mixins/iwatch.js";
package/keyval.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { Head, Tail } from "./tuple";
1
+ import type { Head, Tail } from "./tuple.js";
2
2
  /**
3
3
  * Extracts from A all keys which have values assignable to type B.
4
4
  */
package/mixins/ienable.js CHANGED
@@ -1,5 +1,5 @@
1
- import { EVENT_DISABLE, EVENT_ENABLE } from "../api";
2
- import { mixin } from "../mixin";
1
+ import { EVENT_DISABLE, EVENT_ENABLE } from "../api.js";
2
+ import { mixin } from "../mixin.js";
3
3
  /**
4
4
  * Mixin class decorator, injects IEnable default implementation, incl.
5
5
  * a `_enabled` property. If the target also implements the
@@ -1,4 +1,4 @@
1
- import type { Event } from "../event";
1
+ import type { Event } from "../event.js";
2
2
  export declare const inotify_dispatch: (listeners: any[][], e: Event) => void;
3
3
  /**
4
4
  * Mixin class decorator, injects INotify default implementation, incl.
package/mixins/inotify.js CHANGED
@@ -1,5 +1,5 @@
1
- import { EVENT_ALL } from "../api";
2
- import { mixin } from "../mixin";
1
+ import { EVENT_ALL } from "../api.js";
2
+ import { mixin } from "../mixin.js";
3
3
  export const inotify_dispatch = (listeners, e) => {
4
4
  if (!listeners)
5
5
  return;
@@ -1,4 +1,4 @@
1
- import { mixin } from "../mixin";
1
+ import { mixin } from "../mixin.js";
2
2
  export const iterable = (prop) => mixin({
3
3
  *[Symbol.iterator]() {
4
4
  yield* this[prop];
package/mixins/iwatch.js CHANGED
@@ -1,4 +1,4 @@
1
- import { mixin } from "../mixin";
1
+ import { mixin } from "../mixin.js";
2
2
  export const IWatchMixin = mixin({
3
3
  addWatch(id, fn) {
4
4
  this._watches = this._watches || {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/api",
3
- "version": "8.0.0",
3
+ "version": "8.0.4",
4
4
  "description": "Common, generic types, interfaces & mixins",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -34,7 +34,7 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "devDependencies": {
37
- "@thi.ng/testament": "^0.1.0"
37
+ "@thi.ng/testament": "^0.1.4"
38
38
  },
39
39
  "keywords": [
40
40
  "assert",
@@ -53,6 +53,9 @@
53
53
  "process": false,
54
54
  "setTimeout": false
55
55
  },
56
+ "engines": {
57
+ "node": ">=12.7"
58
+ },
56
59
  "files": [
57
60
  "*.js",
58
61
  "*.d.ts",
@@ -208,5 +211,5 @@
208
211
  "import": "./watch.js"
209
212
  }
210
213
  },
211
- "gitHead": "9ac1344b38b565eb894306fbf72233b6c0b2d115"
214
+ "gitHead": "9ff00a103f76cc4917ef3f244132e218f2300a05"
212
215
  }
package/path.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import type { NumOrString } from "./prim";
2
- import type { Keys, Keys1, Keys2, Keys3, Keys4, Keys5, Keys6, Keys7, ValN } from "./keyval";
3
- import type { Head, Tail, IsEmpty } from "./tuple";
1
+ import type { NumOrString } from "./prim.js";
2
+ import type { Keys, Keys1, Keys2, Keys3, Keys4, Keys5, Keys6, Keys7, ValN } from "./keyval.js";
3
+ import type { Head, Tail, IsEmpty } from "./tuple.js";
4
4
  /**
5
5
  * Unchecked lookup path for nested data structures.
6
6
  */
package/predicate.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { Fn, Fn0, Fn2 } from "./fn";
1
+ import type { Fn, Fn0, Fn2 } from "./fn.js";
2
2
  /**
3
3
  * Predicate function mapping given value to true/false.
4
4
  */
package/set.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { IInto } from "./into";
1
+ import type { IInto } from "./into.js";
2
2
  /**
3
3
  * Generic interface for set collection types.
4
4
  *
package/tuple.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { TypedArray } from "./typedarray";
1
+ import type { TypedArray } from "./typedarray.js";
2
2
  /**
3
3
  * Returns an array's value type. Assumes array is homogeneous (only type of
4
4
  * first element will be considered).