From 68e1ace035330b97cb788000f6c18393dd27d2a8 Mon Sep 17 00:00:00 2001 From: "mi-examples-workflows-bot[bot]" <333657910+mi-examples-workflows-bot[bot]@users.noreply.github.com> Date: Tue, 1 Dec 2026 12:34:56 +0000 Subject: [PATCH 1/2] chore(release): v1.6.0 --- CHANGELOG.md | 27 +++++++++++++++++++++++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 30 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e5a2534..d270893c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,32 @@ # Changelog +## [1.6.0](https://github.com/mi-examples/pp-dev/compare/v1.5.1...v1.6.0) (2026-12-01) + +### ⚠ Breaking changes + +- `POST /@api/users` now answers `ORIGINAL_USER_REQUIRED` instead of `ORIGINAL_TOKEN_REQUIRED` when no original user is available, so update any code that checks for the old code. + +### Features + +- Define several MI instances under `envs` in `pp-dev.config` (URL, `appId`, token) and choose one with `--env `, `MI_ENV` or `defaultEnv`. The top-level `mi` and `app` settings stay the `default` environment, so existing configs work unchanged. +- Each named environment reads its own `MI_ACCESS_TOKEN_` and `MI_BACKEND_URL_`, never falls back to the default token, and needs a URL of its own. Choosing an unknown environment, or one without a URL, stops `pp-dev` and says what to set. +- Switching environments drops the proxy cache and page data, and each named environment keeps its sync backups in `//`, which `pp-dev build --changelog --env ` compares against. +- With more than one environment configured, the dev panel shows the environment as a list, and picking one restarts the dev server in it and reloads every tab. The choice lasts until `pp-dev` stops. +- New `mi.protected` and `envs..protected` options make Sync and Variables Editor value saves ask for confirmation first, naming the environment, its MI URL and page. +- New `--pp-config ` option loads a `pp-dev` config from another name or location, and the dev server restarts when that file changes. +- Without an API token, the dev panel can now work as whoever is logged in to MI on `localhost` with a username and password, and `GET /@api/users` gains an `original` field describing that user. +- The proxy keeps a separate MI session cookie per MI instance on `localhost`, so logins to different instances no longer replace each other. Existing logins to the default instance are kept. +- The Users popover names the MI environment in use, and messages about your own token name that environment's settings (for example `envs.staging.token or MI_ACCESS_TOKEN_STAGING`). +- On narrow screens the dev panel never grows wider than the window: labels turn into icons with tooltips, and anything that still doesn't fit scrolls sideways while the Sync, Users and settings buttons stay in view. + +### Bug fixes + +- The Request Inspector now records a response's headers as the browser actually received them. + +### Other changes + +- Runtime dependencies are now pinned to exact versions instead of version ranges. + ## [1.5.1](https://github.com/mi-examples/pp-dev/compare/v1.5.0...v1.5.1) (2026-11-10) ### Bug fixes diff --git a/package-lock.json b/package-lock.json index 6696036d..688dd651 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@metricinsights/pp-dev", - "version": "1.5.1", + "version": "1.6.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@metricinsights/pp-dev", - "version": "1.5.1", + "version": "1.6.0", "license": "MIT", "dependencies": { "axios": "1.21.0", diff --git a/package.json b/package.json index a67d6c58..3a8cee86 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@metricinsights/pp-dev", "type": "module", - "version": "1.5.1", + "version": "1.6.0", "description": "Portal Page dev build tool", "bin": { "pp-dev": "bin/pp-dev.js" From e4fb2224a0a216a0f16a07e03e04d11c124de64f Mon Sep 17 00:00:00 2001 From: Serhii Shpak Date: Tue, 1 Dec 2026 14:37:33 +0200 Subject: [PATCH 2/2] docs(changelog): no breaking change in 1.6.0, and what pinned dependencies mean POST /@api/users is the dev panel's own API, shipped with the server in one package: its new error code breaks nothing for projects that install pp-dev. The dependency line covers every dependency, says what pinning means for those projects, and names the ws security fix. --- CHANGELOG.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d270893c..8317238c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,10 +2,6 @@ ## [1.6.0](https://github.com/mi-examples/pp-dev/compare/v1.5.1...v1.6.0) (2026-12-01) -### ⚠ Breaking changes - -- `POST /@api/users` now answers `ORIGINAL_USER_REQUIRED` instead of `ORIGINAL_TOKEN_REQUIRED` when no original user is available, so update any code that checks for the old code. - ### Features - Define several MI instances under `envs` in `pp-dev.config` (URL, `appId`, token) and choose one with `--env `, `MI_ENV` or `defaultEnv`. The top-level `mi` and `app` settings stay the `default` environment, so existing configs work unchanged. @@ -25,7 +21,8 @@ ### Other changes -- Runtime dependencies are now pinned to exact versions instead of version ranges. +- Dependencies are pinned to exact versions instead of version ranges, so projects that install `pp-dev` get exactly the versions it was released with; updates come with `pp-dev` releases. +- `ws` is updated to 8.23.0, which fixes a remote memory exhaustion (a peer flooding Ping frames). ## [1.5.1](https://github.com/mi-examples/pp-dev/compare/v1.5.0...v1.5.1) (2026-11-10)