Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# Changelog

## [1.6.0](https://github.com/mi-examples/pp-dev/compare/v1.5.1...v1.6.0) (2026-12-01)

### Features

- Define several MI instances under `envs` in `pp-dev.config` (URL, `appId`, token) and choose one with `--env <name>`, `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_<NAME>` and `MI_BACKEND_URL_<NAME>`, 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 `<sync.backupsDir>/<name>/`, which `pp-dev build --changelog --env <name>` 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.<name>.protected` options make Sync and Variables Editor value saves ask for confirmation first, naming the environment, its MI URL and page.
- New `--pp-config <file>` 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

- 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)

### Bug fixes
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
Loading