Skip to content

Latest commit

 

History

History
704 lines (399 loc) · 30.5 KB

File metadata and controls

704 lines (399 loc) · 30.5 KB

1.4.1-beta.4 (2026-09-02)

Bug Fixes

  • dist: normalize SVGs to match MI's server-side re-serialization (PP-4123) (fb8441d)

1.4.1-beta.3 (2026-09-02)

Bug Fixes

  • variables-editor: allow numeric values for non-static select/multi-select list columns (PP-4107) (cff62ca)

1.4.1-beta.2 (2026-09-02)

Bug Fixes

  • variables-editor: render {id,text} options correctly in list-column select validation warnings (PP-4106) (263777f)

1.4.1-beta.1 (2026-09-02)

Bug Fixes

  • migrate: read pp-dev config from package.json (PP-4105) (78c89a5)

1.3.0-beta.3 (2026-09-02)

Bug Fixes

  • migrate: read pp-dev config from package.json (PP-4105) (78c89a5)

1.3.0-beta.2 (2026-08-28)

Bug Fixes

  • ci: run the beta release in-workflow instead of via workflow_run (69f1282)

1.3.0-beta.1 (2026-08-28)

Bug Fixes

  • ci: allowlist extract-zip's unfixable advisory in audit-all (670c48f)
  • ci: force GITHUB_REF to develop in the beta release step (af5a36d)
  • e2e: stop asserting a hardcoded MI auth-info shape (6db8edf)
  • proxy: rewrite JSON and XML streams, and respect client backpressure (e653e93)
  • proxy: rewrite URLs and forward status for streamed responses (94dc9dd)
  • security: reject unvalidated symlinks after zip extraction (707d8cc)
  • variables-editor: allow manual input for non-static list columns, treat null list value as empty array (368e218)
  • variables-editor: guard missing browser APIs, update stale test selectors (21fa412), closes #content
  • variables-editor: render {id,text} options correctly in list-column select widgets (dfb031c)

Features

  • ui: improve variables editor schema/values UX (6610ee5)
  • variables-editor: import variable values from another page (5c5bf2e)

1.2.0-beta.3 (2026-08-07)

Bug Fixes

  • Variables Editor client script fails to parse, blanking the whole UI (2e48b2e)

1.2.0-beta.2 (2026-08-07)

Bug Fixes

  • address CodeRabbit review feedback on PR #227 (3f64e42)

1.2.0-beta.1 (2026-08-07)

Bug Fixes

  • address npm audit vulnerabilities in root and test fixtures (a33aad3)
  • Variables Editor — ergonomic advanced-fields toggle, confirm before delete (6cc96ee)
  • Variables Editor tab switch no longer blanks out until the fetch resolves (399930d)

Features

  • add Auto/Dark/Light theme switcher, shared across the dev panel, Inspector, and Variables Editor (b6f72a6)
  • add page-variables API and schema/export/validation helpers (36c727e)
  • add standalone Variables Editor page with dev-panel entry points (40bc88e)

1.1.1-beta.1 (2026-07-27)

Bug Fixes

  • address npm audit vulnerabilities in root and test fixtures (342706d)

1.1.0-beta.3 (2026-07-21)

Bug Fixes

  • don't log VERSION/BUILD-MANIFEST written when versionFile is disabled (100820c), closes #208

1.1.0-beta.2 (2026-07-21)

Features

  • warn when a wrapped Next.js app builds via plain next build (be6d4c2)

1.1.0-beta.1 (2026-07-21)

Bug Fixes

  • address new npm audit advisories in root and test fixtures (c02c3dc)

Features

  • add next-build command for Next.js build output parity with pp-dev build (f16871e)
  • extract shared next-build helpers and CLI/env build-output overrides (cd455ac)

1.0.0-beta.2 (2026-07-07)

Features

  • PP-3449: add Dev Panel guide to README (position, auto-hide, hide/restore) (54b8331)

1.0.0-beta.1 (2026-07-07)

  • feat(PP-3449)!: update dependencies and start the 1.0 release line (abdad45)

Features

  • PP-3449: add Dev Panel guide to README (position, auto-hide, hide/restore) (54b8331)

BREAKING CHANGES

  • pp-dev moves to the 1.0 release line. Node.js >= 24 is required (declared in engines) and the package is no longer published under the 0.x version scheme.

1.0.0-beta.1 (2026-07-07)

  • feat(PP-3449)!: update dependencies and start the 1.0 release line (abdad45)

BREAKING CHANGES

  • pp-dev moves to the 1.0 release line. Node.js >= 24 is required (declared in engines) and the package is no longer published under the 0.x version scheme.

0.20.0-beta.6 (2026-07-06)

Features

  • PP-3449: configurable dev panel position, hide and auto-hide modes (315d6fc)

0.20.0-beta.5 (2026-07-06)

Bug Fixes

  • PP-3449: stop request inspector from swallowing proxied PUT/POST bodies (610a993)

0.20.0-beta.4 (2026-07-02)

Bug Fixes

  • PP-3449: guard release.yml against non-tag workflow_dispatch runs (a7f463f)

0.20.0-beta.3 (2026-07-01)

Bug Fixes

  • PP-3449: address PR #182 code review comments (010a182)

0.20.0-beta.2 (2026-07-01)

Bug Fixes

  • ui: align dev panel with design (0d020e3)

0.20.0-beta.1 (2026-06-30)

Bug Fixes

  • address code review defects (c734183)
  • address review feedback defects (85e2b80)
  • build: run rollup-plugin-dts in child process to prevent Windows hang (d9466b0)
  • ci: restore fixture package install (d0ea762)
  • e2e: use taskkill /T /F on Windows to kill pp-dev process tree (79ca61e)
  • mock-mi: fix broken regex and Windows-incompatible spawn in record.ts (ad0b033)
  • mock-mi: fix remaining TS errors in server.ts (b538640)
  • mock-mi: fix TypeScript errors in mock-mi server and record scripts (f64f835)
  • mock-mi: store binary responses as base64 in cassettes (c6ee828)
  • security: patch npm/node-gyp undici <=6.26.0 high-severity CVEs (d4c8a10), closes hi#severity hi#severity
  • security: pin undici to ^7.28.0 to fix CVEs without breaking jsdom (d03bd5e)
  • ui: align panel bar with Figma spec (PP-3449) (9ed1320)

Features

  • inspector: add Request Inspector with web UI and REST API (e53fa90)
  • inspector: print inspector URL banner to browser DevTools console (9222397)
  • mock-mi: add PAT support and template API fetch to record-auto (74c3142)
  • ui: PP-3440 MI brand redesign — colors, Inter font, SVG type icons (a0a30a5), closes #075B7E #077E45 #AC2B2B #FFB000
  • v1.0 grouped PPDevConfig schema, defineConfig helper, pp-dev migrate codemod (222b4e5)

1.0.0 (2026-06-19)

⚠ BREAKING CHANGES

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.

Configuration schema

The flat VitePPDevOptions object is replaced by PPDevConfig with five grouped sections:

// BEFORE (0.x)
export default {
  backendBaseURL: 'https://mi.company.com',
  personalAccessToken: 'YOUR_TOKEN',
  miHudLess: true,
  v7Features: true,
  appId: 937,
  templateLess: false,
};

// AFTER (1.0)
import { defineConfig } from '@metricinsights/pp-dev';

export default defineConfig({
  mi:    { url: 'https://mi.company.com', token: 'YOUR_TOKEN', mode: 'standalone', apiVersion: 7 },
  app:   { id: 937, type: 'template' },
});
0.x field 1.0 field
backendBaseURL mi.url
personalAccessToken mi.token
miHudLess: true mi.mode: 'standalone'
miHudLess: false mi.mode: 'embedding'
integrateMiTopBar: true mi.mode: 'standalone', mi.include: 'top-bar'
integrateMiTopBar: { addSharedComponentsScripts: true } mi.include: 'shared-components'
v7Features: true mi.apiVersion: 7
v7Features: false mi.apiVersion: 6
appId / portalPageId app.id
templateName app.name (auto-resolved from package.json#name — usually omit)
templateLess: true app.type: 'page'
templateLess: false app.type: 'template'
enableProxyCache proxy.cache
proxyCacheTTL proxy.cacheTtl
disableSSLValidation: true proxy.tls.allowSelfSigned: true
distZip build.zip
versionPlugin build.versionFile
imageOptimizer build.imageOptimisations
outDir build.outDir
syncBackupsDir sync.backupsDir

Removed

  • pp-watch.config.* / .pp-watch.config.* config files — use pp-dev.config.* instead
  • PPWatchConfig type
  • VitePPDevOptions type — use PPDevConfig
  • normalizeVitePPDevConfig() — internal, use normalizePPDevConfig()

Defaults

Field Default
mi.mode 'standalone'
mi.apiVersion 7
app.type 'template'
app.name resolved from package.json#name

Validation

Startup validation now throws meaningful errors instead of silently ignoring bad config. Key rules:

  • mi.include requires mi.mode: 'standalone'
  • mi.url is required when mi.mode: 'embedding' or app.type: 'template'
  • app.id is required for templates and standalone pages

Migration

Run the built-in codemod to upgrade your config automatically:

npx @metricinsights/pp-dev migrate
# Preview changes first:
npx @metricinsights/pp-dev migrate --dry-run
# Force output format:
npx @metricinsights/pp-dev migrate --format ts

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.

Features

  • config: grouped PPDevConfig schema with mi, app, proxy, build, sync sections
  • config: defineConfig() helper for full TypeScript intellisense
  • 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
  • ui: redesigned dev panel — MI brand colors (#075B7E), Inter font, bordered buttons, updated toast and confirm modal styles

0.19.0-beta.2 (2026-06-18)

Bug Fixes

  • address CodeRabbit review findings (7d50da6)

0.19.0-beta.1 (2026-06-17)

Bug Fixes

  • client: keep the sync spinner running while confirmation modals are open (da86bcb)
  • next: resolve sync export dir from the production config (8b8275a)
  • test-nextjs: exclude build output from type-check to stop duplicate route types (1ec5e50)

Features

  • next: add dev panel for the Next.js dev server (95dfd8e)
  • next: build template sync assets with next build (f19c42e)

0.18.3-beta.2 (2026-06-11)

Bug Fixes

  • client: send dev-panel WebSocket responses to the requesting client only (d73700f)
  • middleware: load template variables on deep-linked sub-path navigation (a21c032)

0.18.3-beta.1 (2026-06-08)

Bug Fixes

  • deps: resolve npm audit findings across workspace (bb41f5c)

0.18.2-beta.1 (2026-05-06)

Bug Fixes

  • deps: resolve npm audit findings across workspace (d13ffad)

0.18.1-beta.2 (2026-04-22)

Bug Fixes

  • harden sync prompt lifecycle and metadata safety (3aaaeb6)

0.18.1-beta.1 (2026-04-21)

Bug Fixes

  • cli: harden shortcut cleanup and add dts trace logging (4de05ed)

0.18.0-beta.1 (2026-04-06)

Features

  • rewrite /data/page/ path for v7 proxy when template differs from internal name (a060da2)

0.17.0-beta.1 (2026-04-06)

Bug Fixes

  • tests: align sandbox overrides with audited dependency policy (5841aa8)

Features

  • cli: Webpack fallback for Next dev when Turbopack native SWC fails (5940f31)

0.16.0-beta.1 (2026-03-23)

Bug Fixes

  • version-plugin: hash concatenated digests without hex input encoding (1ea5e5a)

Features

  • version manifest plugin and upgrade to Vite 8 (ad8c4ac)

0.15.1-beta.1 (2026-03-12)

Bug Fixes

  • resolve all package vulnerabilities (79d7e24)

0.15.0-beta.2 (2026-03-02)

Bug Fixes

  • add overrides to fix serialize-javascript and minimatch vulnerabilities (3f79b97)

0.15.0-beta.1 (2026-02-27)

Bug Fixes

  • add chokidar override to resolve npm ci sync (3e24d40)
  • pass appId to initLoadPPData, remove debug logs, update lock file (079c13b)
  • proxy middleware - add cache headers for login page, inject token for HTML (452755f)

Features

  • add appId option and fix internal server restart (ee74beb)

0.14.1-beta.1 (2026-02-24)

Bug Fixes

  • nextjs: rewrite response middleware for Next.js page URLs (3e80f41)

0.14.0-beta.1 (2026-02-20)

Bug Fixes

  • ejs v4 default import for ESM compatibility (e64f4c8)
  • improve dev server restart reliability and config change detection (3edd020)

Features

  • cli: appId support, base path handling (63ec031)
  • cli: appId support, base path handling, API routes passthrough (2c16dae)

0.13.2-beta.1 (2026-02-12)

Bug Fixes

  • client-injection: resolve DIRNAME to parent directory for correct resource paths (606fd91)

0.13.0-beta.2 (2026-02-11)

Bug Fixes

  • plugin: correct DIRNAME path resolution in client injection (dce83d7)

Features

  • cli: support Next.js 16 and fix base path regex escaping (9182d2a)
  • cli: watch .env and pp-dev config files, await Next.js check (69a07f0)

0.13.0-beta.1 (2026-01-22)

Bug Fixes

  • plugin: add null check for integrateMiTopBar validation (df35e2a)

Features

  • plugin: enhance integrateMiTopBar with selective configuration options (cbb9a6c)

0.12.4-beta.1 (2026-01-14)

Bug Fixes

  • plugin: move topbar scripts injection to head-prepend (a248f91)

Bug Fixes

  • pp-dev: improve node compatibility for SSL and buffer handling (fcef21f)

Bug Fixes

  • release: prepare v0.12.2 patch release

Bug Fixes

  • release: prepare v0.12.1 patch release

Features

  • auth: add global authentication provider (2b1e00d)
  • pp-dev: enhance CLI and core functionality (14a3772)

Features

  • pp-dev: add postbuild script and package renaming utility (afdc0d6)
  • pp-dev: refactor CLI and core functionality (98ce2d2)
  • test-commonjs: moved test commonjs folder to new location (9480d77)
  • test-nextjs: add initial Next.js project files and configuration (a5da0fd)
  • test-nextjs: initialize Next.js test project structure (2a6155d)

Bug Fixes

  • ci: improve package detection and JSON validation (f787a1c)

Features

  • pp-dev: add startup optimization and enhance authentication helpers (a29e311)

Bug Fixes

  • remove issue number references from semantic-release configs (f532226)

Features

  • pp-dev: add dependency version synchronization for create-pp-dev releases (2597b01)
  • pp-dev: add esbuild configuration and build optimization scripts (bbe1791)
  • pp-dev: add semantic release configuration and update dependencies (5962bcc)

Changelog

All notable changes to the @metricinsights/pp-dev package will be documented in this file.

[0.10.0] - 2024-03-21

Changed

  • Removed unused pino and pino-pretty dependencies

[0.9.0] - 2025-01-31

Added

  • Added support for MI v7.1.0 instances
  • Added new API endpoints for v7 instances

[0.8.0] - 2024-11-15

Changed

  • Updated package dependencies to latest versions
  • Improved template loading mechanism

[0.7.0] - 2024-02-28

Added

  • Added icon font generation tool
  • Added changelog generator for assets
  • Added image optimization tool

Changed

  • Improved helper logging system

[0.6.0] - 2024-01-18

Added

  • Added support for React.js, TypeScript, and Next.js templates
  • Added new npm package structure
  • Added documentation for templates

Changed

  • Updated template code structure
  • Improved helper info panel

[0.5.0] - 2023-10-16

Added

  • Added Next.js support (beta)
  • Added SSL validation support
  • Added shields for package information

Changed

  • Fixed Next.js dependency versions
  • Improved helper UI

[0.4.0] - 2023-05-29

Added

  • Added CI/CD support
  • Added package for CI/CD
  • Added documentation

Changed

  • Updated publish configuration
  • Improved installation command

[0.3.3] - 2023-11-14

Changed

  • Fixed URL parameters handling in helper
  • Improved helper UI

[0.3.2] - 2023-11-14

Changed

  • Fixed Next.js dependency versions
  • Improved helper UI

[0.3.1] - 2023-12-04

Changed

  • Fixed URL parameters handling in helper
  • Improved helper UI

[0.3.0] - 2023-11-08

Added

  • Added Next.js support
  • Added helper info panel
  • Added support for React.js templates

Changed

  • Improved helper UI
  • Updated template loading mechanism

[0.2.0] - 2023-05-25

Added

  • Added support for React.js templates
  • Added helper info panel
  • Added documentation

Changed

  • Improved template loading mechanism
  • Updated package structure

[0.1.1] - 2023-05-23

Changed

  • Fixed template loading issues
  • Improved helper UI

[0.1.0] - 2023-05-17

Added

  • Initial release
  • Basic template support
  • Helper UI implementation

[0.0.3] - 2023-05-17

Added

  • Added basic template support
  • Added helper UI

Changed

  • Improved package structure

[0.0.2] - 2023-05-17

Added

  • Added basic package structure
  • Added helper implementation

[0.0.1] - 2023-05-17

Added

  • Initial package setup
  • Basic helper functionality