@ogygia/devtools 0.11.0 → 0.11.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.
@@ -18,7 +18,7 @@ import { Forecast } from "./forecast.js";
18
18
  import { HeapGrowth, Pattern } from "./patterns.js";
19
19
  import { SpanRecord } from "./span.js";
20
20
  import { PageAssets } from "@ogygia/core/insights";
21
- import { Handle } from "@sveltejs/kit";
21
+ import { Handle } from "@ogygia/core/plugin";
22
22
  export interface ProfilerOptions {
23
23
  /**
24
24
  * Auth secret. Defaults to the OGYGIA_PROFILER_SECRET env var. Required outside
package/dist/server.js CHANGED
@@ -2,6 +2,13 @@ import { profiler_demand_skip } from "./profiler/on-demand.js";
2
2
  import { defineServer } from "@ogygia/core/plugin";
3
3
  import { want_request_stats } from "@ogygia/core/internal/server";
4
4
  // src/server.ts
5
+ /**
6
+ * The SERVER half of `devtools()` (its `server`). With the profiler on it
7
+ * wraps every request (`handle`): it times the render and serves its UI at `/__profiler`, and turns
8
+ * on core's request stats, its data. The profiler itself — node:inspector, crypto, the UI's render
9
+ * path — loads on the first request through a dynamic import, so an app pays for it only when it is
10
+ * on; with `onDemand`, only once someone opens the profiler.
11
+ */
5
12
  /** the mounted profiler; `undefined` until the first request resolves it, `null` when unavailable */
6
13
  let mounted;
7
14
  async function mount(options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ogygia/devtools",
3
- "version": "0.11.0",
3
+ "version": "0.11.4",
4
4
  "description": "Devtools for ogygia: the in-page dock, and the SSR profiler with its report, client marks and storage adapters",
5
5
  "keywords": [
6
6
  "devtools",
@@ -66,7 +66,8 @@
66
66
  },
67
67
  "dependencies": {
68
68
  "@neodrag/svelte": "3.0.0-next.12",
69
- "devalue": "^5.9.3"
69
+ "devalue": "^5.9.3",
70
+ "@ogygia/router": "^0.11.0"
70
71
  },
71
72
  "devDependencies": {
72
73
  "@playwright/test": "1.62.1",
@@ -80,8 +81,7 @@
80
81
  "typescript": "^6.0.3",
81
82
  "vite": "^8.3.5",
82
83
  "vitest": "^4.1.12",
83
- "@ogygia/core": "0.11.0",
84
- "@ogygia/router": "0.11.0",
84
+ "@ogygia/core": "0.11.4",
85
85
  "@ogygia/tooling": "0.0.0",
86
86
  "@ogygia/tsdown-plugin-svelte": "1.1.0"
87
87
  },
@@ -89,13 +89,7 @@
89
89
  "@sveltejs/kit": ">=2.70.2 <4",
90
90
  "svelte": "^5.56.8",
91
91
  "vite": "^8.2.4",
92
- "@ogygia/core": "^0.11.0",
93
- "@ogygia/router": "^0.11.0"
94
- },
95
- "peerDependenciesMeta": {
96
- "@ogygia/router": {
97
- "optional": true
98
- }
92
+ "@ogygia/core": "^0.11.4"
99
93
  },
100
94
  "scripts": {
101
95
  "build": "tsdown",