@coherent.js/devtools 1.0.0-rc.2 → 1.0.0-rc.4

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/package.json CHANGED
@@ -1,70 +1,47 @@
1
1
  {
2
2
  "name": "@coherent.js/devtools",
3
- "version": "1.0.0-rc.2",
3
+ "version": "1.0.0-rc.4",
4
4
  "description": "Developer tools for Coherent.js applications - tree-shakable modular exports",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./types/index.d.ts",
8
8
  "exports": {
9
9
  ".": {
10
- "development": "./src/index.js",
11
- "import": "./dist/index.js",
12
- "require": "./dist/index.cjs"
10
+ "types": "./types/index.d.ts",
11
+ "import": "./dist/index.js"
13
12
  },
14
13
  "./visualizer": {
15
- "development": "./src/component-visualizer.js",
16
- "import": "./dist/component-visualizer.js",
17
- "require": "./dist/component-visualizer.cjs"
14
+ "import": "./dist/component-visualizer.js"
18
15
  },
19
16
  "./performance": {
20
- "development": "./src/performance/index.js",
21
- "import": "./dist/performance/index.js",
22
- "require": "./dist/performance/index.cjs"
17
+ "import": "./dist/performance/index.js"
23
18
  },
24
19
  "./performance/cache": {
25
- "development": "./src/performance/cache.js",
26
- "import": "./dist/performance/cache.js",
27
- "require": "./dist/performance/cache.cjs"
20
+ "import": "./dist/performance/cache.js"
28
21
  },
29
22
  "./performance/code-splitting": {
30
- "development": "./src/performance/code-splitting.js",
31
- "import": "./dist/performance/code-splitting.js",
32
- "require": "./dist/performance/code-splitting.cjs"
23
+ "import": "./dist/performance/code-splitting.js"
33
24
  },
34
25
  "./performance/lazy-loading": {
35
- "development": "./src/performance/lazy-loading.js",
36
- "import": "./dist/performance/lazy-loading.js",
37
- "require": "./dist/performance/lazy-loading.cjs"
26
+ "import": "./dist/performance/lazy-loading.js"
38
27
  },
39
28
  "./performance/dashboard": {
40
- "development": "./src/performance-dashboard.js",
41
- "import": "./dist/performance-dashboard.js",
42
- "require": "./dist/performance-dashboard.cjs"
29
+ "import": "./dist/performance-dashboard.js"
43
30
  },
44
31
  "./errors": {
45
- "development": "./src/enhanced-errors.js",
46
- "import": "./dist/enhanced-errors.js",
47
- "require": "./dist/enhanced-errors.cjs"
32
+ "import": "./dist/enhanced-errors.js"
48
33
  },
49
34
  "./hybrid": {
50
- "development": "./src/hybrid-integration-tools.js",
51
- "import": "./dist/hybrid-integration-tools.js",
52
- "require": "./dist/hybrid-integration-tools.cjs"
35
+ "import": "./dist/hybrid-integration-tools.js"
53
36
  },
54
37
  "./inspector": {
55
- "development": "./src/inspector.js",
56
- "import": "./dist/inspector.js",
57
- "require": "./dist/inspector.cjs"
38
+ "import": "./dist/inspector.js"
58
39
  },
59
40
  "./profiler": {
60
- "development": "./src/profiler.js",
61
- "import": "./dist/profiler.js",
62
- "require": "./dist/profiler.cjs"
41
+ "import": "./dist/profiler.js"
63
42
  },
64
43
  "./logger": {
65
- "development": "./src/logger.js",
66
- "import": "./dist/logger.js",
67
- "require": "./dist/logger.cjs"
44
+ "import": "./dist/logger.js"
68
45
  },
69
46
  "./package.json": "./package.json"
70
47
  },
@@ -85,7 +62,7 @@
85
62
  "author": "Coherent.js Team",
86
63
  "license": "MIT",
87
64
  "peerDependencies": {
88
- "@coherent.js/core": "1.0.0-rc.2"
65
+ "@coherent.js/core": "1.0.0-rc.4"
89
66
  },
90
67
  "repository": {
91
68
  "type": "git",
package/types/index.d.ts CHANGED
@@ -412,27 +412,6 @@ export function measure<T>(name: string, fn: () => T): T;
412
412
  */
413
413
  export function profile<T>(fn: () => T): { result: T; duration: number };
414
414
 
415
- /**
416
- * Create a profiler that tracks render performance
417
- */
418
- export function createRenderProfiler(config?: ProfilerOptions): {
419
- start(label: string): void;
420
- end(label: string): number;
421
- measure<T>(label: string, fn: () => T): T;
422
- measureAsync<T>(label: string, fn: () => Promise<T>): Promise<T>;
423
- getMetrics(): ProfileReport;
424
- reset(): void;
425
- onRender(callback: (result: ProfilerResult) => void): () => void;
426
- };
427
-
428
- /**
429
- * HOC to add profiling to a component
430
- */
431
- export function withProfiling<P extends ComponentProps>(
432
- component: (props: P) => CoherentNode,
433
- name?: string
434
- ): (props: P) => CoherentNode;
435
-
436
415
  // ============================================================================
437
416
  // DevTools Configuration
438
417
  // ============================================================================
@@ -479,19 +458,6 @@ export interface DevToolsInstance {
479
458
  isEnabled(): boolean;
480
459
  }
481
460
 
482
- /**
483
- * Create a devtools instance
484
- */
485
- export function createDevtools(config?: DevToolsConfig): DevToolsInstance;
486
-
487
- /**
488
- * HOC to add devtools tracking to a component
489
- */
490
- export function withDevtools<T extends (...args: unknown[]) => CoherentNode>(
491
- component: T,
492
- name?: string
493
- ): T;
494
-
495
461
  // ============================================================================
496
462
  // DevTools Class
497
463
  // ============================================================================