@equinor/fusion-framework-cli 15.5.2 → 15.5.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # Change Log
2
2
 
3
+ ## 15.5.4
4
+
5
+ ### Patch Changes
6
+
7
+ - f858a7d: Send service discovery to the mock server whenever mock authentication is enabled.
8
+
9
+ Previously `FUSION_SPA_MSAL_MOCK=true` (from the environment or a `.env` file) only switched the SPA to unsigned mock tokens, while `ffc app dev` and `ffc app serve` kept forwarding service discovery to the real CI environment. Every page load — for example in a Playwright suite — sent a mock token to `discovery.fusion.equinor.com` and failed with `401`.
10
+
11
+ Mock auth now implies mock discovery, exactly like `--mock`: the dev server uses `FUSION_SPA_MSAL_MOCK_SERVER_URL`, or `http://localhost:4010` when only `FUSION_SPA_MSAL_MOCK` is set. `--mock` still takes precedence. Start the mock server with `ffc mock-server` before running the app.
12
+ - f858a7d: Refuse to start the dev server in mock mode when service discovery does not point at the mock server. A `dev-server.config` that overrides `api.serviceDiscoveryUrl` while `--mock` (or `FUSION_SPA_MSAL_MOCK`) is active now fails at startup with a clear error instead of sending mock tokens to real service discovery.
13
+ - f858a7d: `ffc app dev`, `ffc app serve`, and `ffc portal dev` add `X-Fusion-Mock: true|false` to every request the dev server proxies upstream, so upstream telemetry shows whether the caller ran with mock authentication.
14
+ - Updated dependencies [71108a9]
15
+ - Updated dependencies [f858a7d]
16
+ - @equinor/fusion-framework-dev-portal@11.1.4
17
+ - @equinor/fusion-framework-dev-server@2.3.0
18
+
19
+ ## 15.5.3
20
+
21
+ ### Patch Changes
22
+
23
+ - a23ec8a: Internal: bump `@types/adm-zip` from `0.5.8` to `0.6.0`.
24
+ - @equinor/fusion-framework-dev-portal@11.1.3
25
+ - @equinor/fusion-framework-dev-server@2.2.1
26
+
3
27
  ## 15.5.2
4
28
 
5
29
  ### Patch Changes