@equinor/fusion-framework-cli 12.2.0 → 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 +55 -0
- package/bin/build/bin.mjs +1 -1
- package/bin/build/cli.mjs +5 -5
- package/dist/esm/lib/index.js +1 -1
- package/dist/esm/lib/index.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/types/bin/utils/create-dev-server.d.ts +5 -1
- package/dist/types/cli/commands/app/dev.d.ts +6 -0
- package/dist/types/cli/commands/portal/dev.d.ts +6 -0
- package/dist/types/lib/index.d.ts +1 -1
- package/dist/types/version.d.ts +1 -1
- package/docs/application.md +55 -3
- package/docs/dev-server-config.md +26 -1
- package/docs/dev-server.md +4 -0
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,60 @@
|
|
|
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
|
+
|
|
3
58
|
## 12.2.0
|
|
4
59
|
|
|
5
60
|
### Minor Changes
|