@reliverse/relinka 1.3.4 → 1.3.5

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.
Files changed (23) hide show
  1. package/README.md +1 -1
  2. package/bin/libs/core/core-impl/deprecated/components/levels/levels.d.ts +1 -1
  3. package/bin/libs/core/core-impl/deprecated/components/modes/basic.d.ts +1 -2
  4. package/bin/libs/core/core-impl/deprecated/components/modes/basic.js +0 -1
  5. package/bin/libs/core/core-impl/deprecated/components/modes/browser.d.ts +3 -3
  6. package/bin/libs/core/core-impl/deprecated/components/modes/browser.js +3 -2
  7. package/bin/libs/core/core-impl/deprecated/components/modes/shared.d.ts +1 -1
  8. package/bin/libs/core/core-impl/deprecated/components/relinka-deprecated/mod.d.ts +1 -2
  9. package/bin/libs/core/core-impl/deprecated/components/relinka-deprecated/mod.js +0 -1
  10. package/bin/libs/core/core-impl/deprecated/components/relinka-deprecated/relinka.d.ts +1 -1
  11. package/bin/libs/core/core-impl/deprecated/components/reporters/basic.d.ts +1 -1
  12. package/bin/libs/core/core-impl/deprecated/components/reporters/browser.d.ts +1 -1
  13. package/bin/libs/core/core-impl/deprecated/components/reporters/fancy.d.ts +1 -1
  14. package/bin/libs/core/core-main.d.ts +1 -1
  15. package/bin/libs/core/core-types.d.ts +1 -0
  16. package/bin/libs/core/core-types.js +1 -0
  17. package/bin/{libs/core/core-impl/deprecated/types/mod.d.ts → types.d.ts} +1 -1
  18. package/package.json +4 -54
  19. package/bin/libs/core/core-impl/deprecated/components/core/core.d.ts +0 -1
  20. package/bin/libs/core/core-impl/deprecated/components/core/core.js +0 -1
  21. package/bin/libs/core/core-impl/deprecated/utils/mod.d.ts +0 -3
  22. package/bin/libs/core/core-impl/deprecated/utils/mod.js +0 -9
  23. /package/bin/{libs/core/core-impl/deprecated/types/mod.js → types.js} +0 -0
package/README.md CHANGED
@@ -30,7 +30,7 @@ Want to test Relinka before integrating it into your project? Clone the repo and
30
30
  git clone https://github.com/reliverse/relinka-logger.git
31
31
  cd relinka-logger
32
32
  bun i
33
- bun dev # bun examples/main.ts
33
+ bun dev # bun examples/e-main.ts
34
34
  ```
35
35
 
36
36
  ### Relidler Usage
@@ -1,4 +1,4 @@
1
- import type { LogObject } from "../../types/mod.js";
1
+ import type { LogObject } from "../../../../core-types.js";
2
2
  /**
3
3
  * Defines the level of logs as specific numbers or special number types.
4
4
  *
@@ -1,5 +1,5 @@
1
1
  import type { RelinkaInstanceDeprecated } from "../relinka-deprecated/relinka.js";
2
- import type { RelinkaOptions } from "../../types/mod.js";
2
+ import type { RelinkaOptions } from "../../../../core-types.js";
3
3
  export * from "./shared.js";
4
4
  /**
5
5
  * Factory function to create a new Relinka instance
@@ -17,4 +17,3 @@ export declare function createRelinkaBaseDeprecated(options?: Partial<RelinkaOpt
17
17
  * @type {RelinkaInstanceDeprecated} relinka - The default instance of Relinka.
18
18
  */
19
19
  export declare const relinkaBasicDeprecated: RelinkaInstanceDeprecated;
20
- export default relinkaBasicDeprecated;
@@ -18,4 +18,3 @@ export function createRelinkaBaseDeprecated(options = {}) {
18
18
  return relinka;
19
19
  }
20
20
  export const relinkaBasicDeprecated = createRelinkaBaseDeprecated();
21
- export default relinkaBasicDeprecated;
@@ -1,4 +1,5 @@
1
- import type { RelinkaOptions } from "../../types/mod.js";
1
+ import type { RelinkaOptions } from "../../../../core-types.js";
2
+ import { type RelinkaInstanceDeprecated } from "../relinka-deprecated/relinka.js";
2
3
  export * from "./shared.js";
3
4
  /**
4
5
  * Creates a new Relinka instance configured specifically for browser environments.
@@ -15,5 +16,4 @@ export declare function createRelinkaBrowserDeprecatedDeprecated(options?: Parti
15
16
  *
16
17
  * @type {RelinkaInstanceDeprecated} relinka - The default browser-configured Relinka instance.
17
18
  */
18
- export declare const relinkaBrowserDeprecated: any;
19
- export default relinkaBrowserDeprecated;
19
+ export declare const relinkaBrowserDeprecated: RelinkaInstanceDeprecated;
@@ -1,4 +1,6 @@
1
- import { createRelinkaDeprecated as _createRelinkaDeprecated } from "../relinka-deprecated/relinka.js";
1
+ import {
2
+ createRelinkaDeprecated as _createRelinkaDeprecated
3
+ } from "../relinka-deprecated/relinka.js";
2
4
  import { BrowserReporter } from "../reporters/browser.js";
3
5
  export * from "./shared.js";
4
6
  export function createRelinkaBrowserDeprecatedDeprecated(options = {}) {
@@ -9,4 +11,3 @@ export function createRelinkaBrowserDeprecatedDeprecated(options = {}) {
9
11
  return relinka;
10
12
  }
11
13
  export const relinkaBrowserDeprecated = createRelinkaBrowserDeprecatedDeprecated();
12
- export default relinkaBrowserDeprecated;
@@ -1,3 +1,3 @@
1
1
  export { LogLevelsDeprecated, LogTypesDeprecated, } from "../levels/levels.js";
2
- export type * from "../../types/mod.js";
2
+ export type * from "../../../../core-types.js";
3
3
  export type { LogLevelDeprecated, LogTypeDeprecated, } from "../levels/levels.js";
@@ -1,4 +1,4 @@
1
- import type { RelinkaOptions } from "../../types/mod.js";
1
+ import type { RelinkaOptions } from "../../../../core-types.js";
2
2
  import type { RelinkaInstanceDeprecated } from "./relinka.js";
3
3
  export * from "../modes/shared.js";
4
4
  /**
@@ -18,4 +18,3 @@ export declare function createRelinkaSharedDeprecated(options?: Partial<RelinkaO
18
18
  * @type {RelinkaInstanceDeprecated} relinka - The default Relinka instance, ready to use.
19
19
  */
20
20
  export declare const relinkaInstanceDeprecated: RelinkaInstanceDeprecated;
21
- export default relinkaInstanceDeprecated;
@@ -31,4 +31,3 @@ function _getDefaultLogLevelDeprecated() {
31
31
  return LogLevelsDeprecated.info;
32
32
  }
33
33
  export const relinkaInstanceDeprecated = createRelinkaSharedDeprecated();
34
- export default relinkaInstanceDeprecated;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  import type { LogTypeDeprecated } from "../levels/levels.js";
3
- import type { InputLogObject, LogObject, RelinkaOptions, RelinkaReporter } from "../../types/mod.js";
3
+ import type { InputLogObject, LogObject, RelinkaOptions, RelinkaReporter } from "../../../../core-types.js";
4
4
  /**
5
5
  * Relinka class for logging management with support for pause/resume, mocking and customizable reporting.
6
6
  * Provides flexible logging capabilities including level-based logging, custom reporters and integration options.
@@ -1,4 +1,4 @@
1
- import type { LogObject, RelinkaReporter, FormatOptions, RelinkaOptions } from "../../types/mod.js";
1
+ import type { LogObject, RelinkaReporter, FormatOptions, RelinkaOptions } from "../../../../core-types.js";
2
2
  export declare class BasicReporter implements RelinkaReporter {
3
3
  formatStack(stack: string): string;
4
4
  formatArgs(args: any[], opts: FormatOptions): string;
@@ -1,4 +1,4 @@
1
- import type { LogObject } from "../../types/mod.js";
1
+ import type { LogObject } from "../../../../core-types.js";
2
2
  export declare class BrowserReporter {
3
3
  options: any;
4
4
  defaultColor: string;
@@ -1,5 +1,5 @@
1
1
  import type { LogLevelDeprecated, LogTypeDeprecated } from "../levels/levels.js";
2
- import type { FormatOptions, LogObject } from "../../types/mod.js";
2
+ import type { FormatOptions, LogObject } from "../../../../core-types.js";
3
3
  import { BasicReporter } from "./basic.js";
4
4
  export declare const TYPE_COLOR_MAP: Partial<Record<LogTypeDeprecated, string>>;
5
5
  export declare const LEVEL_COLOR_MAP: Partial<Record<LogLevelDeprecated, string>>;
@@ -9,7 +9,7 @@ export { RelinkaInterface, createRelinkaDeprecated, } from "./core-impl/deprecat
9
9
  export { BasicReporter } from "./core-impl/deprecated/components/reporters/basic.js";
10
10
  export { BrowserReporter } from "./core-impl/deprecated/components/reporters/browser.js";
11
11
  export { TYPE_COLOR_MAP, LEVEL_COLOR_MAP, FancyReporter, } from "./core-impl/deprecated/components/reporters/fancy.js";
12
- export type { RelinkaOptions, FormatOptions, InputLogObject, LogObject, RelinkaReporter, } from "./core-impl/deprecated/types/mod.js";
12
+ export type { RelinkaOptions, FormatOptions, InputLogObject, LogObject, RelinkaReporter, } from "./core-types.js";
13
13
  export type { BoxBorderStyle, BoxStyle, BoxOpts, } from "./core-impl/deprecated/utils/box.js";
14
14
  export { box } from "./core-impl/deprecated/utils/box.js";
15
15
  export type { ColorName, ColorFunction, } from "./core-impl/deprecated/utils/deprecatedColors.js";
@@ -0,0 +1 @@
1
+ export * from "../../types.js";
@@ -0,0 +1 @@
1
+ export * from "../../types.js";
@@ -1,5 +1,5 @@
1
1
  /// <reference types="node" />
2
- import type { LogLevelDeprecated, LogTypeDeprecated } from "../components/levels/levels.js";
2
+ import type { LogLevelDeprecated, LogTypeDeprecated } from "./libs/core/core-impl/deprecated/components/levels/levels.js";
3
3
  export type RelinkaOptions = {
4
4
  /**
5
5
  * An array of RelinkaReporter instances used to handle and output log messages.
package/package.json CHANGED
@@ -1,86 +1,36 @@
1
1
  {
2
2
  "dependencies": {
3
- "@figliolia/chalk-animation": "^1.0.4",
4
3
  "@reliverse/relico": "^1.0.2",
5
4
  "@reliverse/runtime": "^1.0.3",
6
- "@sinclair/typebox": "^0.34.31",
7
- "ansi-diff-stream": "^1.2.1",
8
- "ansi-escapes": "^7.0.0",
9
- "chalk": "^5.4.1",
10
- "cli-spinners": "^3.2.0",
11
- "cli-styles": "^1.0.0",
12
- "cli-width": "^4.1.0",
13
- "confbox": "^0.2.1",
14
5
  "defu": "^6.1.4",
15
- "destr": "^2.0.3",
16
- "detect-package-manager": "^3.0.2",
17
- "external-editor": "^3.1.0",
18
- "fast-glob": "^3.3.3",
19
- "figlet": "^1.8.0",
20
- "fs-extra": "^11.3.0",
21
- "get-pixels": "^3.3.3",
22
- "globby": "^14.1.0",
23
- "gradient-string": "^3.0.0",
24
- "kleur": "^4.1.5",
25
- "log-update": "^6.1.0",
26
- "mri": "^1.2.0",
27
- "mute-stream": "^2.0.0",
28
- "node-emoji": "^2.2.0",
29
- "nypm": "^0.6.0",
30
- "ora": "^8.2.0",
31
6
  "pathe": "^2.0.3",
32
- "precision": "^1.0.1",
33
- "seventh": "^0.9.2",
34
- "signal-exit": "^4.1.0",
35
- "sisteransi": "^1.0.5",
7
+ "printj": "^1.3.1",
36
8
  "std-env": "^3.8.1",
37
- "string-width": "^7.2.0",
38
- "strip-ansi": "^7.1.0",
39
- "terminal-size": "^4.0.0",
40
- "ts-regex-builder": "^1.8.2",
41
- "window-size": "^1.1.1",
42
- "wrap-ansi": "^9.0.0"
9
+ "string-width": "^7.2.0"
43
10
  },
44
11
  "description": "@reliverse/relinka is a powerful logger for your terminal.",
45
12
  "homepage": "https://docs.reliverse.org",
46
13
  "license": "MIT",
47
14
  "name": "@reliverse/relinka",
48
15
  "type": "module",
49
- "version": "1.3.4",
16
+ "version": "1.3.5",
50
17
  "devDependencies": {
51
- "@arethetypeswrong/cli": "^0.17.4",
52
18
  "@biomejs/biome": "1.9.4",
53
- "@cspell/dict-npm": "^5.1.32",
54
19
  "@eslint/js": "^9.23.0",
55
20
  "@reliverse/relidler-cfg": "^1.1.3",
56
21
  "@stylistic/eslint-plugin": "^4.2.0",
57
- "@types/ansi-diff-stream": "^1.2.3",
22
+ "@total-typescript/ts-reset": "^0.6.1",
58
23
  "@types/bun": "^1.2.8",
59
- "@types/chalk-animation": "^1.6.3",
60
- "@types/figlet": "^1.7.0",
61
- "@types/fs-extra": "^11.0.4",
62
- "@types/mute-stream": "^0.0.4",
63
24
  "@types/node": "^22.13.16",
64
25
  "@types/sentencer": "^0.2.3",
65
- "@types/signal-exit": "^4.0.0",
66
- "@types/strip-comments": "^2.0.4",
67
- "@types/window-size": "^1.1.4",
68
- "c12": "^3.0.2",
69
- "citty": "^0.1.6",
70
26
  "eslint": "^9.23.0",
71
27
  "eslint-plugin-no-relative-import-paths": "^1.6.1",
72
28
  "eslint-plugin-perfectionist": "^4.10.1",
73
- "execa": "^9.5.2",
74
29
  "jiti": "^2.4.2",
75
30
  "knip": "^5.46.4",
76
- "mock-stdin": "^1.0.0",
77
- "printj": "^1.3.1",
78
31
  "sentencer": "^0.2.1",
79
- "strip-comments": "^2.0.1",
80
- "tsx": "^4.19.3",
81
32
  "typescript": "^5.8.2",
82
33
  "typescript-eslint": "^8.29.0",
83
- "unbuild": "^3.5.0",
84
34
  "vitest": "^3.1.1"
85
35
  },
86
36
  "exports": {
@@ -1 +0,0 @@
1
- export * from "../modes/shared.js";
@@ -1 +0,0 @@
1
- export * from "../modes/shared.js";
@@ -1,3 +0,0 @@
1
- export * from "./box.js";
2
- export * from "./deprecatedColors.js";
3
- export { stripAnsi, centerAlign, rightAlign, leftAlign, align, } from "./string.js";
@@ -1,9 +0,0 @@
1
- export * from "./box.js";
2
- export * from "./deprecatedColors.js";
3
- export {
4
- stripAnsi,
5
- centerAlign,
6
- rightAlign,
7
- leftAlign,
8
- align
9
- } from "./string.js";