@tachui/devtools 0.8.0-alpha → 0.8.1-alpha
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 +10 -1
- package/dist/index.prod.d.ts +87 -0
- package/dist/index.prod.d.ts.map +1 -0
- package/dist/index.prod.js +121 -0
- package/dist/index.prod.js.map +1 -0
- package/package.json +11 -3
package/README.md
CHANGED
|
@@ -35,7 +35,7 @@ Development & debugging tools for the tachUI framework. Provides runtime inspect
|
|
|
35
35
|
## Installation
|
|
36
36
|
|
|
37
37
|
```bash
|
|
38
|
-
pnpm add @tachui/devtools@0.8.
|
|
38
|
+
pnpm add @tachui/devtools@0.8.1-alpha
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
## Usage
|
|
@@ -175,6 +175,15 @@ pnpm lint
|
|
|
175
175
|
- **Debug**: ~5KB
|
|
176
176
|
- **Testing**: ~5KB
|
|
177
177
|
|
|
178
|
+
### Bundle Optimization (New in 0.8.1-alpha)
|
|
179
|
+
|
|
180
|
+
Enhanced production bundling with environment-specific exports:
|
|
181
|
+
|
|
182
|
+
- **Development Mode**: Full debugging and profiling capabilities (~35KB)
|
|
183
|
+
- **Production Mode**: Minimal stubs that tree-shake to near 0KB
|
|
184
|
+
- **Smart Exports**: Conditional loading based on `NODE_ENV` and `import.meta.env.DEV`
|
|
185
|
+
- **Build Integration**: Automatic exclusion from production bundles via Vite/Webpack plugins
|
|
186
|
+
|
|
178
187
|
## Dependencies
|
|
179
188
|
|
|
180
189
|
**Requires:**
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @tachui/devtools - Production Stubs
|
|
3
|
+
*
|
|
4
|
+
* Lightweight production stubs that get tree-shaken away.
|
|
5
|
+
* This file provides no-op implementations of all devtools exports
|
|
6
|
+
* to prevent devtools code from being included in production bundles.
|
|
7
|
+
*/
|
|
8
|
+
export declare const enableDebug: () => void;
|
|
9
|
+
export declare const debugManager: {
|
|
10
|
+
enable: () => void;
|
|
11
|
+
disable: () => void;
|
|
12
|
+
log: () => void;
|
|
13
|
+
warn: () => void;
|
|
14
|
+
error: () => void;
|
|
15
|
+
group: () => void;
|
|
16
|
+
groupEnd: () => void;
|
|
17
|
+
time: () => void;
|
|
18
|
+
timeEnd: () => void;
|
|
19
|
+
clear: () => void;
|
|
20
|
+
isEnabled: () => boolean;
|
|
21
|
+
};
|
|
22
|
+
export declare const Inspector: {
|
|
23
|
+
create: () => {};
|
|
24
|
+
destroy: () => void;
|
|
25
|
+
inspect: () => {};
|
|
26
|
+
highlight: () => void;
|
|
27
|
+
unhighlight: () => void;
|
|
28
|
+
};
|
|
29
|
+
export declare const Profiler: {
|
|
30
|
+
start: () => void;
|
|
31
|
+
stop: () => void;
|
|
32
|
+
mark: () => void;
|
|
33
|
+
measure: () => void;
|
|
34
|
+
getEntries: () => never[];
|
|
35
|
+
};
|
|
36
|
+
export declare const TestingUtils: {
|
|
37
|
+
createTestRenderer: () => {};
|
|
38
|
+
waitFor: () => Promise<void>;
|
|
39
|
+
fireEvent: () => void;
|
|
40
|
+
};
|
|
41
|
+
export declare const BuildTimeValidator: {
|
|
42
|
+
validate: () => boolean;
|
|
43
|
+
getErrors: () => never[];
|
|
44
|
+
getWarnings: () => never[];
|
|
45
|
+
};
|
|
46
|
+
export declare const ErrorBoundary: () => null;
|
|
47
|
+
export declare const ErrorRecovery: {
|
|
48
|
+
recover: () => void;
|
|
49
|
+
reset: () => void;
|
|
50
|
+
};
|
|
51
|
+
export declare const ErrorReporting: {
|
|
52
|
+
report: () => void;
|
|
53
|
+
subscribe: () => () => void;
|
|
54
|
+
};
|
|
55
|
+
export declare const DevelopmentWarnings: {
|
|
56
|
+
warn: () => void;
|
|
57
|
+
suppress: () => void;
|
|
58
|
+
enable: () => void;
|
|
59
|
+
disable: () => void;
|
|
60
|
+
};
|
|
61
|
+
export declare const ValidationDebugger: {
|
|
62
|
+
log: () => void;
|
|
63
|
+
track: () => void;
|
|
64
|
+
getSnapshot: () => {};
|
|
65
|
+
};
|
|
66
|
+
export declare const ValidationDebugUtils: {
|
|
67
|
+
formatError: (err: any) => any;
|
|
68
|
+
getComponentInfo: () => {};
|
|
69
|
+
};
|
|
70
|
+
export declare const validationDebugger: {
|
|
71
|
+
log: () => void;
|
|
72
|
+
track: () => void;
|
|
73
|
+
getSnapshot: () => {};
|
|
74
|
+
};
|
|
75
|
+
export declare const PerformanceMonitor: {
|
|
76
|
+
start: () => void;
|
|
77
|
+
stop: () => void;
|
|
78
|
+
measure: () => void;
|
|
79
|
+
getMetrics: () => {};
|
|
80
|
+
};
|
|
81
|
+
export type ValidationDebugEventType = string;
|
|
82
|
+
export type ComponentDebugInfo = Record<string, any>;
|
|
83
|
+
export type PerformanceSnapshot = Record<string, any>;
|
|
84
|
+
export type ValidationDebugEvent = Record<string, any>;
|
|
85
|
+
export type ValidationDebugSession = Record<string, any>;
|
|
86
|
+
export declare const VERSION = "0.8.0-alpha";
|
|
87
|
+
//# sourceMappingURL=index.prod.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.prod.d.ts","sourceRoot":"","sources":["../src/index.prod.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,eAAO,MAAM,WAAW,YAAW,CAAA;AACnC,eAAO,MAAM,YAAY;;;;;;;;;;;;CAYxB,CAAA;AAGD,eAAO,MAAM,SAAS;;;;;;CAMrB,CAAA;AAGD,eAAO,MAAM,QAAQ;;;;;;CAMpB,CAAA;AAGD,eAAO,MAAM,YAAY;;;;CAIxB,CAAA;AAGD,eAAO,MAAM,kBAAkB;;;;CAI9B,CAAA;AAGD,eAAO,MAAM,aAAa,YAAa,CAAA;AACvC,eAAO,MAAM,aAAa;;;CAGzB,CAAA;AACD,eAAO,MAAM,cAAc;;;CAG1B,CAAA;AAGD,eAAO,MAAM,mBAAmB;;;;;CAK/B,CAAA;AAGD,eAAO,MAAM,kBAAkB;;;;CAI9B,CAAA;AACD,eAAO,MAAM,oBAAoB;uBACZ,GAAG;;CAEvB,CAAA;AACD,eAAO,MAAM,kBAAkB;;;;CAAqB,CAAA;AAGpD,eAAO,MAAM,kBAAkB;;;;;CAK9B,CAAA;AAGD,MAAM,MAAM,wBAAwB,GAAG,MAAM,CAAA;AAC7C,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;AACpD,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;AACrD,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;AACtD,MAAM,MAAM,sBAAsB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;AAGxD,eAAO,MAAM,OAAO,gBAAgB,CAAA"}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
const enableDebug = () => {
|
|
2
|
+
};
|
|
3
|
+
const debugManager = {
|
|
4
|
+
enable: () => {
|
|
5
|
+
},
|
|
6
|
+
disable: () => {
|
|
7
|
+
},
|
|
8
|
+
log: () => {
|
|
9
|
+
},
|
|
10
|
+
warn: () => {
|
|
11
|
+
},
|
|
12
|
+
error: () => {
|
|
13
|
+
},
|
|
14
|
+
group: () => {
|
|
15
|
+
},
|
|
16
|
+
groupEnd: () => {
|
|
17
|
+
},
|
|
18
|
+
time: () => {
|
|
19
|
+
},
|
|
20
|
+
timeEnd: () => {
|
|
21
|
+
},
|
|
22
|
+
clear: () => {
|
|
23
|
+
},
|
|
24
|
+
isEnabled: () => false
|
|
25
|
+
};
|
|
26
|
+
const Inspector = {
|
|
27
|
+
create: () => ({}),
|
|
28
|
+
destroy: () => {
|
|
29
|
+
},
|
|
30
|
+
inspect: () => ({}),
|
|
31
|
+
highlight: () => {
|
|
32
|
+
},
|
|
33
|
+
unhighlight: () => {
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
const Profiler = {
|
|
37
|
+
start: () => {
|
|
38
|
+
},
|
|
39
|
+
stop: () => {
|
|
40
|
+
},
|
|
41
|
+
mark: () => {
|
|
42
|
+
},
|
|
43
|
+
measure: () => {
|
|
44
|
+
},
|
|
45
|
+
getEntries: () => []
|
|
46
|
+
};
|
|
47
|
+
const TestingUtils = {
|
|
48
|
+
createTestRenderer: () => ({}),
|
|
49
|
+
waitFor: async () => {
|
|
50
|
+
},
|
|
51
|
+
fireEvent: () => {
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
const BuildTimeValidator = {
|
|
55
|
+
validate: () => true,
|
|
56
|
+
getErrors: () => [],
|
|
57
|
+
getWarnings: () => []
|
|
58
|
+
};
|
|
59
|
+
const ErrorBoundary = () => null;
|
|
60
|
+
const ErrorRecovery = {
|
|
61
|
+
recover: () => {
|
|
62
|
+
},
|
|
63
|
+
reset: () => {
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
const ErrorReporting = {
|
|
67
|
+
report: () => {
|
|
68
|
+
},
|
|
69
|
+
subscribe: () => () => {
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
const DevelopmentWarnings = {
|
|
73
|
+
warn: () => {
|
|
74
|
+
},
|
|
75
|
+
suppress: () => {
|
|
76
|
+
},
|
|
77
|
+
enable: () => {
|
|
78
|
+
},
|
|
79
|
+
disable: () => {
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
const ValidationDebugger = {
|
|
83
|
+
log: () => {
|
|
84
|
+
},
|
|
85
|
+
track: () => {
|
|
86
|
+
},
|
|
87
|
+
getSnapshot: () => ({})
|
|
88
|
+
};
|
|
89
|
+
const ValidationDebugUtils = {
|
|
90
|
+
formatError: (err) => err?.message || "Unknown error",
|
|
91
|
+
getComponentInfo: () => ({})
|
|
92
|
+
};
|
|
93
|
+
const validationDebugger = ValidationDebugger;
|
|
94
|
+
const PerformanceMonitor = {
|
|
95
|
+
start: () => {
|
|
96
|
+
},
|
|
97
|
+
stop: () => {
|
|
98
|
+
},
|
|
99
|
+
measure: () => {
|
|
100
|
+
},
|
|
101
|
+
getMetrics: () => ({})
|
|
102
|
+
};
|
|
103
|
+
const VERSION = "0.8.0-alpha";
|
|
104
|
+
export {
|
|
105
|
+
BuildTimeValidator,
|
|
106
|
+
DevelopmentWarnings,
|
|
107
|
+
ErrorBoundary,
|
|
108
|
+
ErrorRecovery,
|
|
109
|
+
ErrorReporting,
|
|
110
|
+
Inspector,
|
|
111
|
+
PerformanceMonitor,
|
|
112
|
+
Profiler,
|
|
113
|
+
TestingUtils,
|
|
114
|
+
VERSION,
|
|
115
|
+
ValidationDebugUtils,
|
|
116
|
+
ValidationDebugger,
|
|
117
|
+
debugManager,
|
|
118
|
+
enableDebug,
|
|
119
|
+
validationDebugger
|
|
120
|
+
};
|
|
121
|
+
//# sourceMappingURL=index.prod.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.prod.js","sources":["../src/index.prod.ts"],"sourcesContent":["/**\n * @tachui/devtools - Production Stubs\n *\n * Lightweight production stubs that get tree-shaken away.\n * This file provides no-op implementations of all devtools exports\n * to prevent devtools code from being included in production bundles.\n */\n\n// Core debugging system - lightweight stubs\nexport const enableDebug = () => {}\nexport const debugManager = {\n enable: () => {},\n disable: () => {},\n log: () => {},\n warn: () => {},\n error: () => {},\n group: () => {},\n groupEnd: () => {},\n time: () => {},\n timeEnd: () => {},\n clear: () => {},\n isEnabled: () => false,\n}\n\n// Component inspection system - no-ops\nexport const Inspector = {\n create: () => ({}),\n destroy: () => {},\n inspect: () => ({}),\n highlight: () => {},\n unhighlight: () => {},\n}\n\n// Profiler - no-ops\nexport const Profiler = {\n start: () => {},\n stop: () => {},\n mark: () => {},\n measure: () => {},\n getEntries: () => [],\n}\n\n// Testing utilities - no-ops\nexport const TestingUtils = {\n createTestRenderer: () => ({}),\n waitFor: async () => {},\n fireEvent: () => {},\n}\n\n// Build-time validation - no-ops\nexport const BuildTimeValidator = {\n validate: () => true,\n getErrors: () => [],\n getWarnings: () => [],\n}\n\n// Error handling system - minimal stubs\nexport const ErrorBoundary = () => null\nexport const ErrorRecovery = {\n recover: () => {},\n reset: () => {},\n}\nexport const ErrorReporting = {\n report: () => {},\n subscribe: () => () => {},\n}\n\n// Development warnings - no-op\nexport const DevelopmentWarnings = {\n warn: () => {},\n suppress: () => {},\n enable: () => {},\n disable: () => {},\n}\n\n// Validation debugging - no-ops\nexport const ValidationDebugger = {\n log: () => {},\n track: () => {},\n getSnapshot: () => ({}),\n}\nexport const ValidationDebugUtils = {\n formatError: (err: any) => err?.message || 'Unknown error',\n getComponentInfo: () => ({}),\n}\nexport const validationDebugger = ValidationDebugger\n\n// Performance monitoring - no-ops\nexport const PerformanceMonitor = {\n start: () => {},\n stop: () => {},\n measure: () => {},\n getMetrics: () => ({}),\n}\n\n// Types (empty objects for compatibility)\nexport type ValidationDebugEventType = string\nexport type ComponentDebugInfo = Record<string, any>\nexport type PerformanceSnapshot = Record<string, any>\nexport type ValidationDebugEvent = Record<string, any>\nexport type ValidationDebugSession = Record<string, any>\n\n// Version\nexport const VERSION = '0.8.0-alpha'\n"],"names":[],"mappings":"AASO,MAAM,cAAc,MAAM;AAAC;AAC3B,MAAM,eAAe;AAAA,EAC1B,QAAQ,MAAM;AAAA,EAAC;AAAA,EACf,SAAS,MAAM;AAAA,EAAC;AAAA,EAChB,KAAK,MAAM;AAAA,EAAC;AAAA,EACZ,MAAM,MAAM;AAAA,EAAC;AAAA,EACb,OAAO,MAAM;AAAA,EAAC;AAAA,EACd,OAAO,MAAM;AAAA,EAAC;AAAA,EACd,UAAU,MAAM;AAAA,EAAC;AAAA,EACjB,MAAM,MAAM;AAAA,EAAC;AAAA,EACb,SAAS,MAAM;AAAA,EAAC;AAAA,EAChB,OAAO,MAAM;AAAA,EAAC;AAAA,EACd,WAAW,MAAM;AACnB;AAGO,MAAM,YAAY;AAAA,EACvB,QAAQ,OAAO,CAAA;AAAA,EACf,SAAS,MAAM;AAAA,EAAC;AAAA,EAChB,SAAS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EAAC;AAAA,EACd,MAAM,MAAM;AAAA,EAAC;AAAA,EACb,SAAS,MAAM;AAAA,EAAC;AAAA,EAChB,YAAY,OAAO,CAAA;AACrB;AAUO,MAAM,UAAU;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tachui/devtools",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1-alpha",
|
|
4
4
|
"description": "Development & debugging tools for tachUI framework",
|
|
5
5
|
"homepage": "https://tachui.dev/",
|
|
6
6
|
"type": "module",
|
|
@@ -9,6 +9,14 @@
|
|
|
9
9
|
"types": "./dist/index.d.ts",
|
|
10
10
|
"exports": {
|
|
11
11
|
".": {
|
|
12
|
+
"development": {
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"import": "./dist/index.js"
|
|
15
|
+
},
|
|
16
|
+
"production": {
|
|
17
|
+
"types": "./dist/index.prod.d.ts",
|
|
18
|
+
"import": "./dist/index.prod.js"
|
|
19
|
+
},
|
|
12
20
|
"types": "./dist/index.d.ts",
|
|
13
21
|
"import": "./dist/index.js"
|
|
14
22
|
},
|
|
@@ -33,8 +41,8 @@
|
|
|
33
41
|
"dist"
|
|
34
42
|
],
|
|
35
43
|
"dependencies": {
|
|
36
|
-
"@tachui/primitives": "0.8.
|
|
37
|
-
"@tachui/core": "0.8.
|
|
44
|
+
"@tachui/primitives": "0.8.1-alpha",
|
|
45
|
+
"@tachui/core": "0.8.1-alpha"
|
|
38
46
|
},
|
|
39
47
|
"devDependencies": {
|
|
40
48
|
"@types/node": "^20.0.0",
|