@metricinsights/pp-dev 0.19.0 → 1.0.0-beta.2

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.
Files changed (51) hide show
  1. package/CHANGELOG.md +198 -0
  2. package/README.md +298 -266
  3. package/dist/CHANGELOG.md +198 -0
  4. package/dist/README.md +298 -266
  5. package/dist/cjs/cli.js +1 -1
  6. package/dist/cjs/cli.js.map +1 -1
  7. package/dist/cjs/helpers.js +1 -1
  8. package/dist/cjs/helpers.js.map +1 -1
  9. package/dist/cjs/index-DeUfAH6g.js +2 -0
  10. package/dist/cjs/index-DeUfAH6g.js.map +1 -0
  11. package/dist/cjs/index.js +1 -1
  12. package/dist/cjs/migrate-r2mXdGLZ.js +2 -0
  13. package/dist/cjs/migrate-r2mXdGLZ.js.map +1 -0
  14. package/dist/cjs/package.json +16 -16
  15. package/dist/cjs/plugin-Cm9vRLCu.js +2 -0
  16. package/dist/cjs/plugin-Cm9vRLCu.js.map +1 -0
  17. package/dist/cjs/plugin.js +1 -1
  18. package/dist/cjs/version-plugin-DsC5NLoX.js +2 -0
  19. package/dist/cjs/{version-plugin-DUKsGBsW.js.map → version-plugin-DsC5NLoX.js.map} +1 -1
  20. package/dist/client/client.css +1 -1
  21. package/dist/client/client.css.map +1 -1
  22. package/dist/client/client.js +509 -47
  23. package/dist/client/client.js.map +1 -1
  24. package/dist/client/index.html +71 -18
  25. package/dist/esm/cli.js +1 -1
  26. package/dist/esm/cli.js.map +1 -1
  27. package/dist/esm/helpers.js +1 -1
  28. package/dist/esm/helpers.js.map +1 -1
  29. package/dist/esm/index-DOjGFYJ7.js +2 -0
  30. package/dist/esm/index-DOjGFYJ7.js.map +1 -0
  31. package/dist/esm/index.js +1 -1
  32. package/dist/esm/migrate-BYuCtRbI.js +2 -0
  33. package/dist/esm/migrate-BYuCtRbI.js.map +1 -0
  34. package/dist/esm/package.json +16 -16
  35. package/dist/esm/plugin-B2ocw-wb.js +2 -0
  36. package/dist/esm/plugin-B2ocw-wb.js.map +1 -0
  37. package/dist/esm/plugin.js +1 -1
  38. package/dist/esm/version-plugin-BGWVTSsN.js +2 -0
  39. package/dist/esm/{version-plugin-C7j2jDQX.js.map → version-plugin-BGWVTSsN.js.map} +1 -1
  40. package/dist/types/index.d.ts +116 -139
  41. package/package.json +34 -28
  42. package/dist/cjs/index-Bb3yIW5d.js +0 -2
  43. package/dist/cjs/index-Bb3yIW5d.js.map +0 -1
  44. package/dist/cjs/plugin-CqahMAGe.js +0 -2
  45. package/dist/cjs/plugin-CqahMAGe.js.map +0 -1
  46. package/dist/cjs/version-plugin-DUKsGBsW.js +0 -2
  47. package/dist/esm/index-Cd-DmbPQ.js +0 -2
  48. package/dist/esm/index-Cd-DmbPQ.js.map +0 -1
  49. package/dist/esm/plugin-BeehFkJq.js +0 -2
  50. package/dist/esm/plugin-BeehFkJq.js.map +0 -1
  51. package/dist/esm/version-plugin-C7j2jDQX.js +0 -2
package/CHANGELOG.md CHANGED
@@ -1,3 +1,201 @@
1
+ # [1.0.0-beta.2](https://github.com/mi-examples/pp-dev/compare/v1.0.0-beta.1...v1.0.0-beta.2) (2026-07-07)
2
+
3
+
4
+ ### Features
5
+
6
+ * **PP-3449:** add Dev Panel guide to README (position, auto-hide, hide/restore) ([54b8331](https://github.com/mi-examples/pp-dev/commit/54b833163bf65372f6ba55f5910cd7e3332261a9))
7
+
8
+ # [1.0.0-beta.1](https://github.com/mi-examples/pp-dev/compare/v0.20.0-beta.6...v1.0.0-beta.1) (2026-07-07)
9
+
10
+
11
+ * feat(PP-3449)!: update dependencies and start the 1.0 release line ([abdad45](https://github.com/mi-examples/pp-dev/commit/abdad45b87e752d7468994f821841adc9e288e70))
12
+
13
+
14
+ ### Features
15
+
16
+ * **PP-3449:** add Dev Panel guide to README (position, auto-hide, hide/restore) ([54b8331](https://github.com/mi-examples/pp-dev/commit/54b833163bf65372f6ba55f5910cd7e3332261a9))
17
+
18
+
19
+ ### BREAKING CHANGES
20
+
21
+ * pp-dev moves to the 1.0 release line. Node.js >= 24
22
+ is required (declared in engines) and the package is no longer
23
+ published under the 0.x version scheme.
24
+
25
+ # [1.0.0-beta.1](https://github.com/mi-examples/pp-dev/compare/v0.20.0-beta.6...v1.0.0-beta.1) (2026-07-07)
26
+
27
+
28
+ * feat(PP-3449)!: update dependencies and start the 1.0 release line ([abdad45](https://github.com/mi-examples/pp-dev/commit/abdad45b87e752d7468994f821841adc9e288e70))
29
+
30
+
31
+ ### BREAKING CHANGES
32
+
33
+ * pp-dev moves to the 1.0 release line. Node.js >= 24
34
+ is required (declared in engines) and the package is no longer
35
+ published under the 0.x version scheme.
36
+
37
+ # [0.20.0-beta.6](https://github.com/mi-examples/pp-dev/compare/v0.20.0-beta.5...v0.20.0-beta.6) (2026-07-06)
38
+
39
+
40
+ ### Features
41
+
42
+ * **PP-3449:** configurable dev panel position, hide and auto-hide modes ([315d6fc](https://github.com/mi-examples/pp-dev/commit/315d6fc4182c1128f77fe192a425e3f816970f6f))
43
+
44
+ # [0.20.0-beta.5](https://github.com/mi-examples/pp-dev/compare/v0.20.0-beta.4...v0.20.0-beta.5) (2026-07-06)
45
+
46
+
47
+ ### Bug Fixes
48
+
49
+ * **PP-3449:** stop request inspector from swallowing proxied PUT/POST bodies ([610a993](https://github.com/mi-examples/pp-dev/commit/610a9933ac0a7ec19ee349ff7c6490b605a739ed))
50
+
51
+ # [0.20.0-beta.4](https://github.com/mi-examples/pp-dev/compare/v0.20.0-beta.3...v0.20.0-beta.4) (2026-07-02)
52
+
53
+
54
+ ### Bug Fixes
55
+
56
+ * **PP-3449:** guard release.yml against non-tag workflow_dispatch runs ([a7f463f](https://github.com/mi-examples/pp-dev/commit/a7f463f7c0e75f3305b2dfab560ee9a6c315343d))
57
+
58
+ # [0.20.0-beta.3](https://github.com/mi-examples/pp-dev/compare/v0.20.0-beta.2...v0.20.0-beta.3) (2026-07-01)
59
+
60
+
61
+ ### Bug Fixes
62
+
63
+ * **PP-3449:** address PR [#182](https://github.com/mi-examples/pp-dev/issues/182) code review comments ([010a182](https://github.com/mi-examples/pp-dev/commit/010a182136cf72eac0782e38750ea30f9f89f8f8))
64
+
65
+ # [0.20.0-beta.2](https://github.com/mi-examples/pp-dev/compare/v0.20.0-beta.1...v0.20.0-beta.2) (2026-07-01)
66
+
67
+
68
+ ### Bug Fixes
69
+
70
+ * **ui:** align dev panel with design ([0d020e3](https://github.com/mi-examples/pp-dev/commit/0d020e32c3e1608cafdcc0c7a5b368524867a785))
71
+
72
+ # [0.20.0-beta.1](https://github.com/mi-examples/pp-dev/compare/v0.19.0...v0.20.0-beta.1) (2026-06-30)
73
+
74
+
75
+ ### Bug Fixes
76
+
77
+ * address code review defects ([c734183](https://github.com/mi-examples/pp-dev/commit/c734183f2b4e7cd901e27502acff42d671d4dff4))
78
+ * address review feedback defects ([85e2b80](https://github.com/mi-examples/pp-dev/commit/85e2b80ddc4cdeca9d97682315c4a0417cb34e5a))
79
+ * **build:** run rollup-plugin-dts in child process to prevent Windows hang ([d9466b0](https://github.com/mi-examples/pp-dev/commit/d9466b0884f3e0eb5d01ef864e18ba32c6ff7899))
80
+ * **ci:** restore fixture package install ([d0ea762](https://github.com/mi-examples/pp-dev/commit/d0ea762c6f9e6802cb3bca22d29f7193a0dcdf9c))
81
+ * **e2e:** use taskkill /T /F on Windows to kill pp-dev process tree ([79ca61e](https://github.com/mi-examples/pp-dev/commit/79ca61e2f73144d9584bce762424853c154281e7))
82
+ * **mock-mi:** fix broken regex and Windows-incompatible spawn in record.ts ([ad0b033](https://github.com/mi-examples/pp-dev/commit/ad0b0333976b38b362b74a47c8bad239d9b0e75a))
83
+ * **mock-mi:** fix remaining TS errors in server.ts ([b538640](https://github.com/mi-examples/pp-dev/commit/b5386404e0fb16f8d5ba03073da507c8f679cb48))
84
+ * **mock-mi:** fix TypeScript errors in mock-mi server and record scripts ([f64f835](https://github.com/mi-examples/pp-dev/commit/f64f8350e4353ac90f963feee99ff945c15572bf))
85
+ * **mock-mi:** store binary responses as base64 in cassettes ([c6ee828](https://github.com/mi-examples/pp-dev/commit/c6ee82800dc4c621326f4032ea2f2ec606b0545b))
86
+ * **security:** patch npm/node-gyp undici <=6.26.0 high-severity CVEs ([d4c8a10](https://github.com/mi-examples/pp-dev/commit/d4c8a10e704c75b6d1c1b7bcd8166d007b5270a2)), closes [hi#severity](https://github.com/hi/issues/severity) [hi#severity](https://github.com/hi/issues/severity)
87
+ * **security:** pin undici to ^7.28.0 to fix CVEs without breaking jsdom ([d03bd5e](https://github.com/mi-examples/pp-dev/commit/d03bd5e744e18695a7c05c3e3e6b545e2a00b219))
88
+ * **ui:** align panel bar with Figma spec (PP-3449) ([9ed1320](https://github.com/mi-examples/pp-dev/commit/9ed13200bb154753534a29b7f606b3fc663d3076))
89
+
90
+
91
+ ### Features
92
+
93
+ * **inspector:** add Request Inspector with web UI and REST API ([e53fa90](https://github.com/mi-examples/pp-dev/commit/e53fa90639bdb6ed917772169ea2cb4f36de28a8))
94
+ * **inspector:** print inspector URL banner to browser DevTools console ([9222397](https://github.com/mi-examples/pp-dev/commit/92223972ec5f649085a76afd22b2328aeafb0e97))
95
+ * **mock-mi:** add PAT support and template API fetch to record-auto ([74c3142](https://github.com/mi-examples/pp-dev/commit/74c3142941456d9a8fdaad62fdb1ff956e6b147e))
96
+ * **ui:** PP-3440 MI brand redesign — colors, Inter font, SVG type icons ([a0a30a5](https://github.com/mi-examples/pp-dev/commit/a0a30a5aafe07255cc74bb614d36f86a4ee64925)), closes [#075B7E](https://github.com/mi-examples/pp-dev/issues/075B7E) [#077E45](https://github.com/mi-examples/pp-dev/issues/077E45) [#AC2B2B](https://github.com/mi-examples/pp-dev/issues/AC2B2B) [#FFB000](https://github.com/mi-examples/pp-dev/issues/FFB000)
97
+ * v1.0 grouped PPDevConfig schema, defineConfig helper, pp-dev migrate codemod ([222b4e5](https://github.com/mi-examples/pp-dev/commit/222b4e5949144295f07dd9fed87e131692323560))
98
+
99
+ # [1.0.0](https://github.com/mi-examples/pp-dev/compare/v0.19.0-beta.2...v1.0.0) (2026-06-19)
100
+
101
+ ## ⚠ BREAKING CHANGES
102
+
103
+ This release replaces the flat configuration API with a grouped schema. All existing `pp-dev.config.*` files must be updated — use `pp-dev migrate` to do it automatically.
104
+
105
+ ### Configuration schema
106
+
107
+ The flat `VitePPDevOptions` object is replaced by `PPDevConfig` with five grouped sections:
108
+
109
+ ```ts
110
+ // BEFORE (0.x)
111
+ export default {
112
+ backendBaseURL: 'https://mi.company.com',
113
+ personalAccessToken: 'YOUR_TOKEN',
114
+ miHudLess: true,
115
+ v7Features: true,
116
+ appId: 937,
117
+ templateLess: false,
118
+ };
119
+
120
+ // AFTER (1.0)
121
+ import { defineConfig } from '@metricinsights/pp-dev';
122
+
123
+ export default defineConfig({
124
+ mi: { url: 'https://mi.company.com', token: 'YOUR_TOKEN', mode: 'standalone', apiVersion: 7 },
125
+ app: { id: 937, type: 'template' },
126
+ });
127
+ ```
128
+
129
+ | 0.x field | 1.0 field |
130
+ |---|---|
131
+ | `backendBaseURL` | `mi.url` |
132
+ | `personalAccessToken` | `mi.token` |
133
+ | `miHudLess: true` | `mi.mode: 'standalone'` |
134
+ | `miHudLess: false` | `mi.mode: 'embedding'` |
135
+ | `integrateMiTopBar: true` | `mi.mode: 'standalone'`, `mi.include: 'top-bar'` |
136
+ | `integrateMiTopBar: { addSharedComponentsScripts: true }` | `mi.include: 'shared-components'` |
137
+ | `v7Features: true` | `mi.apiVersion: 7` |
138
+ | `v7Features: false` | `mi.apiVersion: 6` |
139
+ | `appId` / `portalPageId` | `app.id` |
140
+ | `templateName` | `app.name` (auto-resolved from `package.json#name` — usually omit) |
141
+ | `templateLess: true` | `app.type: 'page'` |
142
+ | `templateLess: false` | `app.type: 'template'` |
143
+ | `enableProxyCache` | `proxy.cache` |
144
+ | `proxyCacheTTL` | `proxy.cacheTtl` |
145
+ | `disableSSLValidation: true` | `proxy.tls.allowSelfSigned: true` |
146
+ | `distZip` | `build.zip` |
147
+ | `versionPlugin` | `build.versionFile` |
148
+ | `imageOptimizer` | `build.imageOptimisations` |
149
+ | `outDir` | `build.outDir` |
150
+ | `syncBackupsDir` | `sync.backupsDir` |
151
+
152
+ ### Removed
153
+
154
+ - `pp-watch.config.*` / `.pp-watch.config.*` config files — use `pp-dev.config.*` instead
155
+ - `PPWatchConfig` type
156
+ - `VitePPDevOptions` type — use `PPDevConfig`
157
+ - `normalizeVitePPDevConfig()` — internal, use `normalizePPDevConfig()`
158
+
159
+ ### Defaults
160
+
161
+ | Field | Default |
162
+ |---|---|
163
+ | `mi.mode` | `'standalone'` |
164
+ | `mi.apiVersion` | `7` |
165
+ | `app.type` | `'template'` |
166
+ | `app.name` | resolved from `package.json#name` |
167
+
168
+ ### Validation
169
+
170
+ Startup validation now throws meaningful errors instead of silently ignoring bad config. Key rules:
171
+
172
+ - `mi.include` requires `mi.mode: 'standalone'`
173
+ - `mi.url` is required when `mi.mode: 'embedding'` or `app.type: 'template'`
174
+ - `app.id` is required for templates and standalone pages
175
+
176
+ ### Migration
177
+
178
+ Run the built-in codemod to upgrade your config automatically:
179
+
180
+ ```bash
181
+ npx @metricinsights/pp-dev migrate
182
+ # Preview changes first:
183
+ npx @metricinsights/pp-dev migrate --dry-run
184
+ # Force output format:
185
+ npx @metricinsights/pp-dev migrate --format ts
186
+ ```
187
+
188
+ The command detects flat 0.x configs and `pp-watch.config.*` files, migrates them to the new grouped format, and writes a `.bak` backup before overwriting.
189
+
190
+ ## Features
191
+
192
+ * **config:** grouped `PPDevConfig` schema with `mi`, `app`, `proxy`, `build`, `sync` sections
193
+ * **config:** `defineConfig()` helper for full TypeScript intellisense
194
+ * **cli:** `pp-dev migrate` codemod — auto-migrates 0.x flat and `pp-watch` configs to 1.0 format, supports `--dry-run`, `--format ts|js|json`, `--output`, `--no-backup`
195
+ * **ui:** redesigned dev panel — MI brand colors (`#075B7E`), Inter font, bordered buttons, updated toast and confirm modal styles
196
+
197
+ ---
198
+
1
199
  # [0.19.0-beta.2](https://github.com/mi-examples/pp-dev/compare/v0.19.0-beta.1...v0.19.0-beta.2) (2026-06-18)
2
200
 
3
201