@absolutejs/absolute 0.15.11 → 0.15.12
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/README.md +2 -2
- package/dist/index.js +64 -44
- package/dist/index.js.map +7 -7
- package/dist/src/utils/logger.d.ts +22 -13
- package/package.json +1 -1
|
@@ -1,33 +1,28 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Centralized logger utility for AbsoluteJS
|
|
3
|
-
* Provides
|
|
3
|
+
* Provides formatted output with ANSI colors and timestamps
|
|
4
4
|
*/
|
|
5
5
|
export declare const logger: {
|
|
6
6
|
/**
|
|
7
7
|
* HMR update message
|
|
8
8
|
* Format: "10:30:45 AM [hmr] hmr update /pages/App.tsx"
|
|
9
9
|
*/
|
|
10
|
-
hmrUpdate(path: string, framework?: string): void;
|
|
10
|
+
hmrUpdate(path: string, framework?: string, duration?: number): void;
|
|
11
11
|
/**
|
|
12
12
|
* Page reload message
|
|
13
|
-
* Format: "10:30:45 AM [hmr] page reload /src/App.tsx"
|
|
13
|
+
* Format: "10:30:45 AM [hmr] page reload /src/App.tsx (125ms)"
|
|
14
14
|
*/
|
|
15
|
-
pageReload(path: string, framework?: string): void;
|
|
15
|
+
pageReload(path: string, framework?: string, duration?: number): void;
|
|
16
16
|
/**
|
|
17
17
|
* CSS update message
|
|
18
|
-
* Format: "10:30:45 AM [hmr] css update /styles/main.css"
|
|
18
|
+
* Format: "10:30:45 AM [hmr] css update /styles/main.css (125ms)"
|
|
19
19
|
*/
|
|
20
|
-
cssUpdate(path: string, framework?: string): void;
|
|
20
|
+
cssUpdate(path: string, framework?: string, duration?: number): void;
|
|
21
21
|
/**
|
|
22
22
|
* Script update message
|
|
23
|
-
* Format: "10:30:45 AM [hmr] script update /scripts/counter.ts"
|
|
23
|
+
* Format: "10:30:45 AM [hmr] script update /scripts/counter.ts (125ms)"
|
|
24
24
|
*/
|
|
25
|
-
scriptUpdate(path: string, framework?: string): void;
|
|
26
|
-
/**
|
|
27
|
-
* Rebuild complete message
|
|
28
|
-
* Format: "10:30:45 AM [hmr] rebuilt (125ms)"
|
|
29
|
-
*/
|
|
30
|
-
rebuilt(duration: number): void;
|
|
25
|
+
scriptUpdate(path: string, framework?: string, duration?: number): void;
|
|
31
26
|
/**
|
|
32
27
|
* Build error
|
|
33
28
|
* Format: "10:30:45 AM [hmr] error Build failed: ..."
|
|
@@ -42,4 +37,18 @@ export declare const logger: {
|
|
|
42
37
|
* Generic info message
|
|
43
38
|
*/
|
|
44
39
|
info(message: string): void;
|
|
40
|
+
/**
|
|
41
|
+
* Server module reloaded (Bun --hot triggered a server-side change)
|
|
42
|
+
*/
|
|
43
|
+
serverReload(): void;
|
|
44
|
+
/**
|
|
45
|
+
* Startup banner
|
|
46
|
+
*/
|
|
47
|
+
ready: (options: {
|
|
48
|
+
version: string;
|
|
49
|
+
duration: number;
|
|
50
|
+
port: string | number;
|
|
51
|
+
host: string;
|
|
52
|
+
networkUrl?: string;
|
|
53
|
+
}) => void;
|
|
45
54
|
};
|
package/package.json
CHANGED