@equinor/fusion-framework-cli 12.2.0 → 12.3.1
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 +89 -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/lib/utils/resolve-annotations.js +11 -2
- package/dist/esm/lib/utils/resolve-annotations.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/types/bin/app-check.d.ts +1 -1
- package/dist/types/bin/app-dev.d.ts +4 -0
- package/dist/types/bin/app-upload.d.ts +1 -1
- package/dist/types/bin/utils/create-dev-server.d.ts +5 -1
- package/dist/types/bin/utils/defaultHeaders.d.ts +13 -0
- package/dist/types/bin/utils/index.d.ts +1 -0
- package/dist/types/cli/commands/app/dev.d.ts +8 -0
- package/dist/types/cli/commands/portal/dev.d.ts +6 -0
- package/dist/types/lib/index.d.ts +1 -1
- package/dist/types/lib/utils/resolve-annotations.d.ts +3 -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 +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,94 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 12.3.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#3559](https://github.com/equinor/fusion-framework/pull/3559) [`6667a4e`](https://github.com/equinor/fusion-framework/commit/6667a4ee24a5374a02ec76952f440d495d62dbc3) Thanks [@eikeland](https://github.com/eikeland)! - Added default headers to CLI REST API requests for better identification and tracking.
|
|
8
|
+
|
|
9
|
+
- Created new `defaultHeaders` utility that includes CLI name, version, and user-agent
|
|
10
|
+
- Updated app upload/tag operations to include default headers
|
|
11
|
+
- Updated portal upload/tag operations to include default headers
|
|
12
|
+
|
|
13
|
+
All HTTP requests from the CLI now include:
|
|
14
|
+
|
|
15
|
+
- `X-Fusion-CLI-Name`: Identifies the CLI tool name
|
|
16
|
+
- `X-Fusion-CLI-Version`: Specifies the CLI version making the request
|
|
17
|
+
- `User-Agent`: Standard user agent header with CLI name and version
|
|
18
|
+
|
|
19
|
+
This enhancement improves observability and helps service owners track and debug CLI interactions with backend services.
|
|
20
|
+
|
|
21
|
+
Closes: #3539
|
|
22
|
+
|
|
23
|
+
- [#3552](https://github.com/equinor/fusion-framework/pull/3552) [`8694e5b`](https://github.com/equinor/fusion-framework/commit/8694e5bb9bb1249dc52853dc6a5048f81ed9ab9c) Thanks [@eikeland](https://github.com/eikeland)! - Fixed release annotations to always include CLI version and required metadata.
|
|
24
|
+
|
|
25
|
+
- Added `cliVersion` property to `ReleaseAnnotations` type
|
|
26
|
+
- Ensured annotations are always returned (removed undefined return type)
|
|
27
|
+
- Added fallback annotations for local builds with default values
|
|
28
|
+
- Improved type safety by making annotations consistently available
|
|
29
|
+
|
|
30
|
+
Thanks to @odinr for reporting in issue #3540.
|
|
31
|
+
|
|
32
|
+
- [#3567](https://github.com/equinor/fusion-framework/pull/3567) [`f343b89`](https://github.com/equinor/fusion-framework/commit/f343b89a5716cc76ed5c8c0b714612c97100cf7a) Thanks [@Noggling](https://github.com/Noggling)! - Fix CLI for portal development by ensuring correct placement of viteConfig overrides.
|
|
33
|
+
|
|
34
|
+
- Updated dependencies [[`8c6f679`](https://github.com/equinor/fusion-framework/commit/8c6f6790c69cca01bde55d622418040da1c5c9fc)]:
|
|
35
|
+
- @equinor/fusion-framework-dev-portal@1.2.2
|
|
36
|
+
|
|
37
|
+
## 12.3.0
|
|
38
|
+
|
|
39
|
+
### Minor Changes
|
|
40
|
+
|
|
41
|
+
- [#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)).
|
|
42
|
+
|
|
43
|
+
- Added `/portal-proxy` service worker resource configuration to CLI dev server
|
|
44
|
+
- Routes portal proxy requests to Fusion portal service API (`/@fusion-api/portal-config`)
|
|
45
|
+
- Enhanced dev server creation with improved logging and error handling
|
|
46
|
+
- Exported `defineDevServerConfig` helper for type-safe portal configuration
|
|
47
|
+
- Updated `ffc app dev` command with better logging support
|
|
48
|
+
|
|
49
|
+
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.
|
|
50
|
+
|
|
51
|
+
### Patch Changes
|
|
52
|
+
|
|
53
|
+
- [`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.
|
|
54
|
+
|
|
55
|
+
- Modified `startAppDevServer` function in `app-dev.ts` to use host configuration from local Vite config
|
|
56
|
+
- Changed hardcoded 'localhost' host to respect `localViteConfig.server?.host` with 'localhost' as fallback
|
|
57
|
+
- Improved configuration loading by storing `localViteConfig` in a variable to avoid duplicate loading
|
|
58
|
+
- This allows developers to configure custom host settings (like '0.0.0.0' for network access) through their Vite config
|
|
59
|
+
|
|
60
|
+
**How this affects consumers**
|
|
61
|
+
|
|
62
|
+
Developers can now configure the dev server host through their local `vite.config.ts` file:
|
|
63
|
+
|
|
64
|
+
```ts
|
|
65
|
+
// vite.config.ts
|
|
66
|
+
export default defineConfig({
|
|
67
|
+
server: {
|
|
68
|
+
host: "0.0.0.0", // Allow network access
|
|
69
|
+
// or host: 'localhost' for local-only access
|
|
70
|
+
},
|
|
71
|
+
});
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Previously, the host was always hardcoded to 'localhost', preventing network access to the dev server.
|
|
75
|
+
|
|
76
|
+
ref: [3548](https://github.com/equinor/fusion-framework/issues/3548)
|
|
77
|
+
|
|
78
|
+
- [#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.
|
|
79
|
+
|
|
80
|
+
- Added detailed portal proxy configuration section in dev-server-config.md
|
|
81
|
+
- Documented portal proxy behavior, use cases, and benefits
|
|
82
|
+
- Provided complete code examples for portal proxy setup
|
|
83
|
+
- Fixed broken relative links in application.md
|
|
84
|
+
- Improved documentation navigation and consistency
|
|
85
|
+
|
|
86
|
+
These documentation updates provide developers with complete guidance for configuring and using portal proxy functionality in development environments.
|
|
87
|
+
|
|
88
|
+
- Updated dependencies [[`2d4fd18`](https://github.com/equinor/fusion-framework/commit/2d4fd18394e8545b4616140a93a369d5ae77ccbc), [`99a3c26`](https://github.com/equinor/fusion-framework/commit/99a3c26275c2089c3708124f5819ce383d8dc3dc)]:
|
|
89
|
+
- @equinor/fusion-framework-dev-portal@1.2.1
|
|
90
|
+
- @equinor/fusion-framework-dev-server@1.1.5
|
|
91
|
+
|
|
3
92
|
## 12.2.0
|
|
4
93
|
|
|
5
94
|
### Minor Changes
|