@equinor/fusion-framework-cli 12.1.3 → 12.3.0

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,96 @@
1
1
  # Change Log
2
2
 
3
+ ## 12.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#3547](https://github.com/equinor/fusion-framework/pull/3547) [`99a3c26`](https://github.com/equinor/fusion-framework/commit/99a3c26275c2089c3708124f5819ce383d8dc3dc) Thanks [@odinr](https://github.com/odinr)! - Enhanced CLI with portal proxy support for testing apps in real portal environments ([Issue #3546](https://github.com/equinor/fusion-framework/issues/3546)).
8
+
9
+ - Added `/portal-proxy` service worker resource configuration to CLI dev server
10
+ - Routes portal proxy requests to Fusion portal service API (`/@fusion-api/portal-config`)
11
+ - Enhanced dev server creation with improved logging and error handling
12
+ - Exported `defineDevServerConfig` helper for type-safe portal configuration
13
+ - Updated `ffc app dev` command with better logging support
14
+
15
+ This enables developers to run `ffc app dev` to test against real portals, supporting configuration of portal ID and version tags for targeted testing scenarios.
16
+
17
+ ### Patch Changes
18
+
19
+ - [`4717aab`](https://github.com/equinor/fusion-framework/commit/4717aab6b50d0a795255f7615bb334eae8dc9d3f) Thanks [@Noggling](https://github.com/Noggling)! - Enhanced dev server host configuration to respect Vite config settings.
20
+
21
+ - Modified `startAppDevServer` function in `app-dev.ts` to use host configuration from local Vite config
22
+ - Changed hardcoded 'localhost' host to respect `localViteConfig.server?.host` with 'localhost' as fallback
23
+ - Improved configuration loading by storing `localViteConfig` in a variable to avoid duplicate loading
24
+ - This allows developers to configure custom host settings (like '0.0.0.0' for network access) through their Vite config
25
+
26
+ **How this affects consumers**
27
+
28
+ Developers can now configure the dev server host through their local `vite.config.ts` file:
29
+
30
+ ```ts
31
+ // vite.config.ts
32
+ export default defineConfig({
33
+ server: {
34
+ host: "0.0.0.0", // Allow network access
35
+ // or host: 'localhost' for local-only access
36
+ },
37
+ });
38
+ ```
39
+
40
+ Previously, the host was always hardcoded to 'localhost', preventing network access to the dev server.
41
+
42
+ ref: [3548](https://github.com/equinor/fusion-framework/issues/3548)
43
+
44
+ - [#3547](https://github.com/equinor/fusion-framework/pull/3547) [`99a3c26`](https://github.com/equinor/fusion-framework/commit/99a3c26275c2089c3708124f5819ce383d8dc3dc) Thanks [@odinr](https://github.com/odinr)! - Enhanced CLI documentation with comprehensive portal proxy configuration guide.
45
+
46
+ - Added detailed portal proxy configuration section in dev-server-config.md
47
+ - Documented portal proxy behavior, use cases, and benefits
48
+ - Provided complete code examples for portal proxy setup
49
+ - Fixed broken relative links in application.md
50
+ - Improved documentation navigation and consistency
51
+
52
+ These documentation updates provide developers with complete guidance for configuring and using portal proxy functionality in development environments.
53
+
54
+ - Updated dependencies [[`2d4fd18`](https://github.com/equinor/fusion-framework/commit/2d4fd18394e8545b4616140a93a369d5ae77ccbc), [`99a3c26`](https://github.com/equinor/fusion-framework/commit/99a3c26275c2089c3708124f5819ce383d8dc3dc)]:
55
+ - @equinor/fusion-framework-dev-portal@1.2.1
56
+ - @equinor/fusion-framework-dev-server@1.1.5
57
+
58
+ ## 12.2.0
59
+
60
+ ### Minor Changes
61
+
62
+ - [#3512](https://github.com/equinor/fusion-framework/pull/3512) [`6f17817`](https://github.com/equinor/fusion-framework/commit/6f17817d3e1290d0befca8bb528728128612f8f1) Thanks [@eikeland](https://github.com/eikeland)! - Enhanced app management commands with pre-flight registration checks.
63
+
64
+ - Modified `checkApp` function to return boolean values instead of log results for better programmatic usage
65
+ - Added handling for HTTP 410 status (deleted apps) in app registration checks
66
+ - Added pre-flight app registration validation to `publish` and `upload` commands
67
+ - Commands now exit early if the app is not registered or has been deleted from the app store
68
+ - Improved error handling and user feedback for app registration status
69
+
70
+ This prevents publishing/uploading apps that are not registered in the app store, improving reliability and user experience.
71
+
72
+ Thanks to @odinr for reporting this issue.
73
+
74
+ Closes #3397
75
+
76
+ ### Patch Changes
77
+
78
+ - [#3534](https://github.com/equinor/fusion-framework/pull/3534) [`8049b43`](https://github.com/equinor/fusion-framework/commit/8049b43847370c73814939f258a86723329b6b3c) Thanks [@odinr](https://github.com/odinr)! - Enhanced dev-server documentation with comprehensive configuration guide.
79
+
80
+ - Added detailed `dev-server-config.md` documentation covering configuration options, API mocking, service discovery customization, and template environment overrides
81
+ - Updated main `dev-server.md` documentation with improved architecture overview and configuration reference
82
+ - Provided practical examples and troubleshooting guidance for dev-server configuration
83
+
84
+ ref: [#3523](https://github.com/equinor/fusion-framework/issues/3523)
85
+
86
+ - [#3532](https://github.com/equinor/fusion-framework/pull/3532) [`63ecde5`](https://github.com/equinor/fusion-framework/commit/63ecde5c29e775b341c3fac0c1eeb7123db5e2db) Thanks [@dependabot](https://github.com/apps/dependabot)! - Bump vite from 7.1.8 to 7.1.9 across development tools and plugins.
87
+
88
+ This patch update fixes bugs and improves stability in the vite dependency.
89
+
90
+ - Updated dependencies [[`6cb288b`](https://github.com/equinor/fusion-framework/commit/6cb288b9e1ec4fae68ae6899735c176837bb4275), [`11b5a00`](https://github.com/equinor/fusion-framework/commit/11b5a00047171f9969cabbcbbb53dd188ed8421e), [`63ac6a1`](https://github.com/equinor/fusion-framework/commit/63ac6a1178fc6f6b0702f51a9c36a67db76b92cd), [`63ecde5`](https://github.com/equinor/fusion-framework/commit/63ecde5c29e775b341c3fac0c1eeb7123db5e2db)]:
91
+ - @equinor/fusion-framework-dev-portal@1.2.0
92
+ - @equinor/fusion-framework-dev-server@1.1.4
93
+
3
94
  ## 12.1.3
4
95
 
5
96
  ### Patch Changes