@thi.ng/rstream-log 5.1.48 → 5.1.50

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-12-27T14:11:37Z
3
+ - **Last updated**: 2025-01-14T12:23:33Z
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
+ ### [5.1.50](https://github.com/thi-ng/umbrella/tree/@thi.ng/rstream-log@5.1.50) (2025-01-14)
13
+
14
+ #### ♻️ Refactoring
15
+
16
+ - use optional chaining & nullish coalescing ([c5a0a13](https://github.com/thi-ng/umbrella/commit/c5a0a13))
17
+
12
18
  ### [5.1.32](https://github.com/thi-ng/umbrella/tree/@thi.ng/rstream-log@5.1.32) (2024-08-20)
13
19
 
14
20
  #### ♻️ Refactoring
package/README.md CHANGED
@@ -78,7 +78,7 @@ For Node.js REPL:
78
78
  const rslog = await import("@thi.ng/rstream-log");
79
79
  ```
80
80
 
81
- Package sizes (brotli'd, pre-treeshake): ESM: 753 bytes
81
+ Package sizes (brotli'd, pre-treeshake): ESM: 749 bytes
82
82
 
83
83
  ## Dependencies
84
84
 
@@ -144,4 +144,4 @@ If this project contributes to an academic publication, please cite it as:
144
144
 
145
145
  ## License
146
146
 
147
- © 2017 - 2024 Karsten Schmidt // Apache License 2.0
147
+ © 2017 - 2025 Karsten Schmidt // Apache License 2.0
package/logger.js CHANGED
@@ -25,7 +25,7 @@ class Logger extends ALogger {
25
25
  logEntry(e) {
26
26
  if (e[0] >= this.level) {
27
27
  this.stream.next(e);
28
- this.parent && this.parent.logEntry(e);
28
+ this.parent?.logEntry(e);
29
29
  }
30
30
  }
31
31
  childLogger(id, level) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/rstream-log",
3
- "version": "5.1.48",
3
+ "version": "5.1.50",
4
4
  "description": "Structured, multilevel & hierarchical loggers based on @thi.ng/rstream",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -40,12 +40,12 @@
40
40
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
41
41
  },
42
42
  "dependencies": {
43
- "@thi.ng/api": "^8.11.15",
44
- "@thi.ng/checks": "^3.6.17",
45
- "@thi.ng/logger": "^3.0.25",
46
- "@thi.ng/rstream": "^9.2.2",
47
- "@thi.ng/strings": "^3.8.13",
48
- "@thi.ng/transducers": "^9.2.11"
43
+ "@thi.ng/api": "^8.11.16",
44
+ "@thi.ng/checks": "^3.6.19",
45
+ "@thi.ng/logger": "^3.0.27",
46
+ "@thi.ng/rstream": "^9.2.4",
47
+ "@thi.ng/strings": "^3.9.0",
48
+ "@thi.ng/transducers": "^9.2.13"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@microsoft/api-extractor": "^7.48.1",
@@ -102,5 +102,5 @@
102
102
  ],
103
103
  "year": 2017
104
104
  },
105
- "gitHead": "48bf4c22bf23f88ac99f435106af2214f79a0be1\n"
105
+ "gitHead": "6542b842120bef47cc18d45a1b1db68307a7f04b\n"
106
106
  }