@thi.ng/system 3.0.2 → 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
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2024-02-10T08:59:57Z
3
+ - **Last updated**: 2024-02-16T20:01:44Z
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
+ ### [3.0.3](https://github.com/thi-ng/umbrella/tree/@thi.ng/system@3.0.3) (2024-02-16)
13
+
14
+ #### ♻️ Refactoring
15
+
16
+ - update LOGGER handling ([a11f2a8](https://github.com/thi-ng/umbrella/commit/a11f2a8))
17
+
12
18
  # [3.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/system@3.0.0) (2024-02-01)
13
19
 
14
20
  #### 🛑 Breaking changes
package/README.md CHANGED
@@ -73,7 +73,7 @@ For Node.js REPL:
73
73
  const system = await import("@thi.ng/system");
74
74
  ```
75
75
 
76
- Package sizes (brotli'd, pre-treeshake): ESM: 570 bytes
76
+ Package sizes (brotli'd, pre-treeshake): ESM: 562 bytes
77
77
 
78
78
  ## Dependencies
79
79
 
package/api.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import type { Fn, Keys } from "@thi.ng/api";
2
- import type { ILogger } from "@thi.ng/logger";
3
2
  import type { System } from "./system.js";
4
3
  export interface ILifecycle<T extends SystemMap<T> = any> {
5
4
  /**
@@ -54,12 +53,8 @@ export interface SystemSpec<T extends SystemMap<T>> {
54
53
  * validate all specs.
55
54
  */
56
55
  export type SystemSpecs<T extends SystemMap<T>> = Record<Keys<T>, SystemSpec<T>>;
57
- /** @internal */
58
- export declare let LOGGER: ILogger;
59
56
  /**
60
- * Sets package logger to given instance.
61
- *
62
- * @param logger -
57
+ * See [thi.ng/logger](https://docs.thi.ng/umbrella/logger/) for usage.
63
58
  */
64
- export declare const setLogger: (logger: ILogger) => ILogger;
59
+ export declare const LOGGER: import("@thi.ng/logger/root").ProxyLogger;
65
60
  //# sourceMappingURL=api.d.ts.map
package/api.js CHANGED
@@ -1,7 +1,5 @@
1
- import { NULL_LOGGER } from "@thi.ng/logger/null";
2
- let LOGGER = NULL_LOGGER;
3
- const setLogger = (logger) => LOGGER = logger;
1
+ import { ROOT } from "@thi.ng/logger/root";
2
+ const LOGGER = ROOT.childLogger("system");
4
3
  export {
5
- LOGGER,
6
- setLogger
4
+ LOGGER
7
5
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/system",
3
- "version": "3.0.2",
3
+ "version": "3.0.4",
4
4
  "description": "Minimal and explicit dependency-injection & lifecycle container for stateful app components",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -39,8 +39,8 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "@thi.ng/api": "^8.9.23",
42
- "@thi.ng/dgraph": "^2.1.95",
43
- "@thi.ng/logger": "^2.1.10"
42
+ "@thi.ng/dgraph": "^2.1.97",
43
+ "@thi.ng/logger": "^3.0.0"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@microsoft/api-extractor": "^7.40.1",
@@ -84,5 +84,5 @@
84
84
  "thi.ng": {
85
85
  "year": 2020
86
86
  },
87
- "gitHead": "e5e7d5c6ed2eadee7a91d59cbd0c86ce880ab1c5\n"
87
+ "gitHead": "ea2ec2e4f14c572bbfac00c43953a6c4033da09e\n"
88
88
  }