@thi.ng/system 2.1.32 → 2.1.34

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-23T22:46:54Z
3
+ - **Last updated**: 2022-12-06T17:16:38Z
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.
@@ -9,6 +9,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
9
9
  **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
10
  and/or version bumps of transitive dependencies.
11
11
 
12
+ ### [2.1.34](https://github.com/thi-ng/umbrella/tree/@thi.ng/system@2.1.34) (2022-12-06)
13
+
14
+ #### ♻️ Refactoring
15
+
16
+ - extract SystemSpec interface ([7c12bd4](https://github.com/thi-ng/umbrella/commit/7c12bd4))
17
+
12
18
  ### [2.1.9](https://github.com/thi-ng/umbrella/tree/@thi.ng/system@2.1.9) (2022-06-09)
13
19
 
14
20
  #### ♻️ Refactoring
package/README.md CHANGED
@@ -58,7 +58,7 @@ node --experimental-repl-await
58
58
  > const system = await import("@thi.ng/system");
59
59
  ```
60
60
 
61
- Package sizes (gzipped, pre-treeshake): ESM: 433 bytes
61
+ Package sizes (brotli'd, pre-treeshake): ESM: 387 bytes
62
62
 
63
63
  ## Dependencies
64
64
 
package/api.d.ts CHANGED
@@ -31,15 +31,16 @@ export declare type SystemMap<T> = Record<Keys<T>, ILifecycle>;
31
31
  * Component initialization function.
32
32
  */
33
33
  export declare type ComponentFactory<T extends SystemMap<T>> = Fn<T, ILifecycle>;
34
+ export interface SystemSpec<T extends SystemMap<T>> {
35
+ factory: ComponentFactory<T>;
36
+ deps?: Keys<T>[];
37
+ }
34
38
  /**
35
39
  * Definition object of system component specs, i.e. their factories and
36
40
  * component dependencies. The generic type arg `T` is used to infer &
37
41
  * validate all specs.
38
42
  */
39
- export declare type SystemSpecs<T extends SystemMap<T>> = Record<Keys<T>, {
40
- factory: ComponentFactory<T>;
41
- deps?: Keys<T>[];
42
- }>;
43
+ export declare type SystemSpecs<T extends SystemMap<T>> = Record<Keys<T>, SystemSpec<T>>;
43
44
  /** @internal */
44
45
  export declare let LOGGER: ILogger;
45
46
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/system",
3
- "version": "2.1.32",
3
+ "version": "2.1.34",
4
4
  "description": "Minimal and explicit dependency-injection & lifecycle container for stateful app components",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -34,13 +34,13 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "dependencies": {
37
- "@thi.ng/api": "^8.5.0",
38
- "@thi.ng/dgraph": "^2.1.29",
39
- "@thi.ng/logger": "^1.4.3"
37
+ "@thi.ng/api": "^8.5.1",
38
+ "@thi.ng/dgraph": "^2.1.30",
39
+ "@thi.ng/logger": "^1.4.4"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@microsoft/api-extractor": "^7.33.5",
43
- "@thi.ng/testament": "^0.3.5",
43
+ "@thi.ng/testament": "^0.3.6",
44
44
  "rimraf": "^3.0.2",
45
45
  "tools": "^0.0.1",
46
46
  "typedoc": "^0.23.20",
@@ -81,5 +81,5 @@
81
81
  "thi.ng": {
82
82
  "year": 2020
83
83
  },
84
- "gitHead": "75ec32ff7f1b7b5e72e7a04ace24732cd5d6c774\n"
84
+ "gitHead": "54c5f22520162bac0d58426a3f86ca636e797f71\n"
85
85
  }