@thi.ng/tangle 0.1.82 → 0.1.83

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
+ ### [0.1.83](https://github.com/thi-ng/umbrella/tree/@thi.ng/tangle@0.1.83) (2024-02-16)
13
+
14
+ #### ♻️ Refactoring
15
+
16
+ - update LOGGER handling ([69b58d6](https://github.com/thi-ng/umbrella/commit/69b58d6))
17
+
12
18
  ### [0.1.62](https://github.com/thi-ng/umbrella/tree/@thi.ng/tangle@0.1.62) (2023-11-09)
13
19
 
14
20
  #### ♻️ Refactoring
package/api.d.ts CHANGED
@@ -64,6 +64,5 @@ export interface CodeBlockFormat {
64
64
  }
65
65
  export declare const BLOCK_FORMATS: IObjectOf<CodeBlockFormat>;
66
66
  export declare const COMMENT_FORMATS: IObjectOf<string | [string, string]>;
67
- export declare let LOGGER: ILogger;
68
- export declare const setLogger: (logger: ILogger) => void;
67
+ export declare const LOGGER: ILogger;
69
68
  //# sourceMappingURL=api.d.ts.map
package/api.js CHANGED
@@ -1,5 +1,4 @@
1
- import { LogLevel } from "@thi.ng/logger";
2
- import { ConsoleLogger } from "@thi.ng/logger/console";
1
+ import { ConsoleLogger, LogLevel, ROOT } from "@thi.ng/logger";
3
2
  const BLOCK_FORMATS = {
4
3
  ".md": {
5
4
  prefix: "```",
@@ -53,13 +52,9 @@ const COMMENT_FORMATS = {
53
52
  yaml: P,
54
53
  zig: C
55
54
  };
56
- let LOGGER = new ConsoleLogger("tangle", LogLevel.INFO);
57
- const setLogger = (logger) => {
58
- LOGGER = logger;
59
- };
55
+ const LOGGER = ROOT.addChild(new ConsoleLogger("tangle", LogLevel.INFO));
60
56
  export {
61
57
  BLOCK_FORMATS,
62
58
  COMMENT_FORMATS,
63
- LOGGER,
64
- setLogger
59
+ LOGGER
65
60
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/tangle",
3
- "version": "0.1.82",
3
+ "version": "0.1.83",
4
4
  "description": "Literate programming code block tangling / codegen utility, inspired by org-mode & noweb",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -37,19 +37,19 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@thi.ng/api": "^8.9.23",
40
- "@thi.ng/args": "^2.3.12",
40
+ "@thi.ng/args": "^2.3.13",
41
41
  "@thi.ng/checks": "^3.4.23",
42
42
  "@thi.ng/compare": "^2.2.19",
43
43
  "@thi.ng/date": "^2.5.17",
44
44
  "@thi.ng/errors": "^2.4.16",
45
- "@thi.ng/file-io": "^1.2.6",
46
- "@thi.ng/logger": "^2.1.10",
45
+ "@thi.ng/file-io": "^1.2.7",
46
+ "@thi.ng/logger": "^3.0.0",
47
47
  "@thi.ng/strings": "^3.7.14",
48
- "@thi.ng/transducers": "^8.9.1"
48
+ "@thi.ng/transducers": "^8.9.2"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@microsoft/api-extractor": "^7.40.1",
52
- "@thi.ng/testament": "^0.4.16",
52
+ "@thi.ng/testament": "^0.4.17",
53
53
  "esbuild": "^0.20.0",
54
54
  "rimraf": "^5.0.5",
55
55
  "typedoc": "^0.25.7",
@@ -93,5 +93,5 @@
93
93
  "status": "alpha",
94
94
  "year": 2022
95
95
  },
96
- "gitHead": "e5e7d5c6ed2eadee7a91d59cbd0c86ce880ab1c5\n"
96
+ "gitHead": "25ee18f7db6d03f0b76787267ab071d16df94888\n"
97
97
  }