@reliverse/relinka 1.4.1 → 1.4.3

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  # MIT License
2
2
 
3
- Copyright (c) 2025 Nazar Kornienko (blefnk), Reliverse
3
+ Copyright (c) Nazar Kornienko (blefnk), Reliverse
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -17,6 +17,8 @@
17
17
 
18
18
  ## Getting Started
19
19
 
20
+ Make sure you have git, node.js, and bun/pnpm/yarn/npm installed.
21
+
20
22
  ### 1. Install
21
23
 
22
24
  ```bash
@@ -80,7 +82,8 @@ export async function main() {
80
82
 
81
83
  // Make sure to exit the program after your CLI is done
82
84
  // It's not required for Bun-only apps, but recommended
83
- // for other runtimes, esp. for Node.js (incl. `tsx`)
85
+ // for other terminal runtimes like Node.js (incl. `tsx`)
86
+ // It's also not required for @reliverse/rempts `runMain()`
84
87
  process.exit(0);
85
88
  }
86
89
 
@@ -263,7 +266,7 @@ defineConfig({ ... }) // helper for relinka.config.ts
263
266
 
264
267
  - Building CLIs? Use with [`@reliverse/prompts`](https://npmjs.com/@reliverse/prompts)
265
268
  - Want type-safe injections? Try [`@reliverse/reinject`](https://npmjs.com/@reliverse/reinject)
266
- - For advanced bundling? Pair with [`@reliverse/relidler`](https://npmjs.com/@reliverse/relidler)
269
+ - For advanced bundling? Pair with [`@reliverse/dler`](https://npmjs.com/@reliverse/dler)
267
270
 
268
271
  ## Roadmap
269
272
 
package/bin/impl.d.ts CHANGED
@@ -34,7 +34,7 @@ export type LogLevelConfig = {
34
34
  /** Configuration for all log levels. */
35
35
  export type LogLevelsConfig = Partial<Record<LogLevel, LogLevelConfig>>;
36
36
  /** Log level types used by the logger. */
37
- export type LogLevel = "error" | "fatal" | "info" | "success" | "verbose" | "warn" | "log";
37
+ export type LogLevel = "error" | "fatal" | "info" | "success" | "verbose" | "warn" | "log" | "null";
38
38
  /**
39
39
  * Configuration options for the Relinka logger.
40
40
  * All properties are optional to allow for partial configuration.
package/bin/impl.js CHANGED
@@ -38,7 +38,7 @@ const DEFAULT_RELINKA_CONFIG = {
38
38
  spacing: 3
39
39
  },
40
40
  info: {
41
- symbol: "\u2BCE",
41
+ symbol: "\u25C8",
42
42
  fallbackSymbol: "[i]",
43
43
  color: "cyanBright",
44
44
  spacing: 3
@@ -62,12 +62,13 @@ const DEFAULT_RELINKA_CONFIG = {
62
62
  spacing: 3
63
63
  },
64
64
  verbose: {
65
- symbol: "\u2727",
65
+ symbol: "\u2731",
66
66
  fallbackSymbol: "[VERBOSE]",
67
67
  color: "gray",
68
68
  spacing: 3
69
69
  },
70
- log: { symbol: "\u2502", fallbackSymbol: "|", color: "dim", spacing: 3 }
70
+ log: { symbol: "\u2502", fallbackSymbol: "|", color: "dim", spacing: 3 },
71
+ null: { symbol: "", fallbackSymbol: "", color: "dim", spacing: 0 }
71
72
  }
72
73
  };
73
74
  function isUnicodeSupported() {
@@ -230,6 +231,13 @@ function getLevelStyle(config, level) {
230
231
  spacing: 3
231
232
  };
232
233
  }
234
+ if (level === "null") {
235
+ return {
236
+ symbol: "",
237
+ color: levelConfig.color,
238
+ spacing: 0
239
+ };
240
+ }
233
241
  const { symbol, fallbackSymbol, color, spacing } = levelConfig;
234
242
  const effectiveSymbol = isUnicodeSupported() ? symbol : fallbackSymbol || `[${level.toUpperCase()}]`;
235
243
  return {
@@ -268,7 +276,8 @@ const consoleMethodMap = {
268
276
  info: console.info,
269
277
  success: console.log,
270
278
  verbose: console.log,
271
- log: console.log
279
+ log: console.log,
280
+ null: console.log
272
281
  };
273
282
  function logToConsole(config, level, formattedMessage) {
274
283
  if (!isColorEnabled(config)) {
@@ -499,14 +508,13 @@ function registerExitHandlers() {
499
508
  if (globalThis[EXIT_GUARD]) return;
500
509
  globalThis[EXIT_GUARD] = true;
501
510
  process.once("beforeExit", () => {
502
- flushAllLogBuffers().catch(() => {
503
- });
511
+ void flushAllLogBuffers();
504
512
  });
505
513
  sigintHandler = () => {
506
- flushAllLogBuffers().finally(() => process.exit(0));
514
+ void flushAllLogBuffers().finally(() => process.exit(0));
507
515
  };
508
516
  sigtermHandler = () => {
509
- flushAllLogBuffers().finally(() => process.exit(0));
517
+ void flushAllLogBuffers().finally(() => process.exit(0));
510
518
  };
511
519
  process.once("SIGINT", sigintHandler);
512
520
  process.once("SIGTERM", sigtermHandler);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "dependencies": {
3
- "@reliverse/relico": "^1.1.0",
3
+ "@reliverse/relico": "^1.1.1",
4
4
  "@reliverse/repris": "^1.0.0",
5
5
  "@reliverse/runtime": "^1.0.3",
6
6
  "c12": "^3.0.3",
@@ -15,7 +15,7 @@
15
15
  "license": "MIT",
16
16
  "name": "@reliverse/relinka",
17
17
  "type": "module",
18
- "version": "1.4.1",
18
+ "version": "1.4.3",
19
19
  "keywords": [
20
20
  "logger",
21
21
  "consola",
@@ -34,26 +34,26 @@
34
34
  ],
35
35
  "devDependencies": {
36
36
  "@biomejs/biome": "1.9.4",
37
- "@eslint/js": "^9.25.1",
37
+ "@eslint/js": "^9.26.0",
38
38
  "@reliverse/relidler-cfg": "^1.1.3",
39
39
  "@stylistic/eslint-plugin": "^4.2.0",
40
40
  "@total-typescript/ts-reset": "^0.6.1",
41
- "@types/bun": "^1.2.10",
41
+ "@types/bun": "^1.2.13",
42
42
  "@types/fs-extra": "^11.0.4",
43
- "@types/node": "^22.15.2",
43
+ "@types/node": "^22.15.17",
44
44
  "@types/sentencer": "^0.2.3",
45
- "eslint": "^9.25.1",
45
+ "eslint": "^9.26.0",
46
46
  "eslint-plugin-no-relative-import-paths": "^1.6.1",
47
- "eslint-plugin-perfectionist": "^4.12.3",
47
+ "eslint-plugin-perfectionist": "^4.13.0",
48
48
  "jiti": "^2.4.2",
49
- "knip": "^5.50.5",
49
+ "knip": "^5.55.1",
50
50
  "sentencer": "^0.2.1",
51
- "tsx": "^4.19.3",
51
+ "tsx": "^4.19.4",
52
52
  "typescript": "^5.8.3",
53
- "typescript-eslint": "^8.31.0"
53
+ "typescript-eslint": "^8.32.1"
54
54
  },
55
55
  "exports": {
56
- ".": "./bin/main.js"
56
+ ".": "./bin/mod.js"
57
57
  },
58
58
  "files": [
59
59
  "bin",
@@ -61,8 +61,8 @@
61
61
  "README.md",
62
62
  "LICENSE"
63
63
  ],
64
- "main": "./bin/main.js",
65
- "module": "./bin/main.js",
64
+ "main": "./bin/mod.js",
65
+ "module": "./bin/mod.js",
66
66
  "publishConfig": {
67
67
  "access": "public"
68
68
  }
File without changes
File without changes