@coherent.js/devtools 1.0.0-rc.3 → 1.0.0-rc.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.
- package/package.json +2 -2
- package/types/index.d.ts +0 -34
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coherent.js/devtools",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.5",
|
|
4
4
|
"description": "Developer tools for Coherent.js applications - tree-shakable modular exports",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"author": "Coherent.js Team",
|
|
63
63
|
"license": "MIT",
|
|
64
64
|
"peerDependencies": {
|
|
65
|
-
"@coherent.js/core": "1.0.0-rc.
|
|
65
|
+
"@coherent.js/core": "1.0.0-rc.5"
|
|
66
66
|
},
|
|
67
67
|
"repository": {
|
|
68
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
|
// ============================================================================
|