@equinor/fusion-framework-cli 11.1.2 → 11.1.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.
Files changed (35) hide show
  1. package/CHANGELOG.md +82 -0
  2. package/README.md +3 -2
  3. package/bin/build/bin.mjs +1 -1
  4. package/bin/build/cli.mjs +6 -6
  5. package/dist/esm/lib/utils/resolve-package.js +12 -3
  6. package/dist/esm/lib/utils/resolve-package.js.map +1 -1
  7. package/dist/esm/version.js +1 -1
  8. package/dist/types/cli/commands/app/build.d.ts +1 -1
  9. package/dist/types/cli/commands/app/check.d.ts +3 -3
  10. package/dist/types/cli/commands/app/config.d.ts +4 -4
  11. package/dist/types/cli/commands/app/dev.d.ts +4 -4
  12. package/dist/types/cli/commands/app/manifest.d.ts +4 -4
  13. package/dist/types/cli/commands/app/pack.d.ts +3 -3
  14. package/dist/types/cli/commands/app/publish.d.ts +4 -4
  15. package/dist/types/cli/commands/app/tag.d.ts +10 -11
  16. package/dist/types/cli/commands/app/upload.d.ts +4 -4
  17. package/dist/types/cli/commands/auth/login.d.ts +14 -0
  18. package/dist/types/cli/commands/auth/logout.d.ts +13 -3
  19. package/dist/types/cli/commands/auth/token.d.ts +15 -1
  20. package/dist/types/cli/commands/portal/build.d.ts +25 -0
  21. package/dist/types/cli/commands/portal/config.d.ts +4 -4
  22. package/dist/types/cli/commands/portal/dev.d.ts +25 -0
  23. package/dist/types/cli/commands/portal/manifest.d.ts +28 -0
  24. package/dist/types/cli/commands/portal/pack.d.ts +24 -0
  25. package/dist/types/cli/commands/portal/publish.d.ts +29 -0
  26. package/dist/types/cli/commands/portal/schema.d.ts +27 -0
  27. package/dist/types/cli/commands/portal/tag.d.ts +29 -0
  28. package/dist/types/cli/commands/portal/upload.d.ts +25 -0
  29. package/dist/types/cli/options/auth.d.ts +16 -0
  30. package/dist/types/version.d.ts +1 -1
  31. package/docs/application.md +5 -6
  32. package/docs/auth.md +7 -0
  33. package/docs/portal.md +4 -4
  34. package/package.json +8 -6
  35. package/docs/libsecret.md +0 -66
package/CHANGELOG.md CHANGED
@@ -1,5 +1,87 @@
1
1
  # Change Log
2
2
 
3
+ ## 11.1.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#3356](https://github.com/equinor/fusion-framework/pull/3356) [`2e47652`](https://github.com/equinor/fusion-framework/commit/2e47652aba8ab14dea62307953666d8f136d7ca0) Thanks [@odinr](https://github.com/odinr)! - Fix SemVer 2.0 compliance issue where build metadata was stripped from package versions.
8
+
9
+ - Disabled built-in normalization in `read-package-up` to preserve version build metadata
10
+ - Added manual package data normalization using `normalize-package-data` library
11
+ - Preserves original version with build metadata (e.g., `11.8.0+commit`) in app manifests
12
+ - Maintains backward compatibility with existing version formats
13
+ - Resolves issue where `+` build metadata was being stripped from versions in `app-manifest.json`
14
+
15
+ This fix enables proper SemVer 2.0 compliant versioning for applications built with the CLI.
16
+
17
+ Fixes https://github.com/equinor/fusion/issues/657
18
+
19
+ Thanks to [@v3gard](https://github.com/v3gard) for identifying and reporting this SemVer compliance issue.
20
+
21
+ ## 11.1.3
22
+
23
+ ### Patch Changes
24
+
25
+ - [#3341](https://github.com/equinor/fusion-framework/pull/3341) [`cd09bef`](https://github.com/equinor/fusion-framework/commit/cd09befcdab4162a38d4dfd14f280ce228ea97d9) Thanks [@odinr](https://github.com/odinr)! - Added `--silent` option to the `disco resolve` command to disable CLI logger output and only output structured JSON results for piping.
26
+
27
+ - Added `--silent` flag that completely disables the CLI logger and all logging output
28
+ - Only outputs the resolved service details as JSON when silent mode is enabled
29
+ - Enables piping the command output to other tools (e.g., `jq`, `grep`, etc.)
30
+ - Modified logging calls to use optional chaining for silent mode compatibility
31
+ - Cleaned up debug console.log statements
32
+
33
+ - [#3341](https://github.com/equinor/fusion-framework/pull/3341) [`cd09bef`](https://github.com/equinor/fusion-framework/commit/cd09befcdab4162a38d4dfd14f280ce228ea97d9) Thanks [@odinr](https://github.com/odinr)! - Aligned portal dev command options with app dev command for consistency.
34
+
35
+ - Standardized option format from short flags to long flags (--debug, --port)
36
+ - Added --env option support for runtime environment configuration
37
+ - Updated logging message to be portal-specific ("Starting portal in development mode...")
38
+ - Enhanced startPortalDevServer function call to include env parameter
39
+
40
+ - [#3343](https://github.com/equinor/fusion-framework/pull/3343) [`33054ac`](https://github.com/equinor/fusion-framework/commit/33054ac27b309e9d0301dd1f1d63639dac27f00b) Thanks [@odinr](https://github.com/odinr)! - Reorganized authentication documentation to improve maintainability and user experience.
41
+
42
+ - Removed local `libsecret.md` documentation file
43
+ - Updated all libsecret references to point to centralized MSAL Node module documentation
44
+ - Enhanced authentication guide with cross-references to underlying module documentation
45
+ - Improved documentation structure by consolidating authentication docs in the appropriate module packages
46
+
47
+ **Migration Notes:**
48
+
49
+ - libsecret installation guide is now available at: https://equinor.github.io/fusion-framework/modules/auth/msal-node/docs/libsecret.html
50
+ - All authentication-related documentation is now centralized in the MSAL Node module package
51
+
52
+ - [#3341](https://github.com/equinor/fusion-framework/pull/3341) [`cd09bef`](https://github.com/equinor/fusion-framework/commit/cd09befcdab4162a38d4dfd14f280ce228ea97d9) Thanks [@odinr](https://github.com/odinr)! - Fixed missing `env` parameter in `buildApplication` call within `bundleApp` function.
53
+
54
+ - Added the required `env` parameter to the `buildApplication` function call in `packages/cli/src/bin/app-pack.ts`
55
+ - This ensures the build process receives the correct runtime environment configuration
56
+
57
+ - [#3341](https://github.com/equinor/fusion-framework/pull/3341) [`cd09bef`](https://github.com/equinor/fusion-framework/commit/cd09befcdab4162a38d4dfd14f280ce228ea97d9) Thanks [@odinr](https://github.com/odinr)! - Fixed stdout concatenation issues in CLI commands that output JSON to stdout.
58
+
59
+ - Replaced `stdout.write()` with `console.log()` for proper newline handling in:
60
+ - `ffc app manifest` command
61
+ - `ffc app config` command
62
+ - `ffc portal manifest` command
63
+ - `ffc portal config` command
64
+ - Removed unused `stdout` imports
65
+ - Improved output consistency and piping compatibility
66
+
67
+ These changes ensure that shell prompts no longer concatenate to JSON output, making the commands safe to pipe to tools like `jq`.
68
+
69
+ - [#3341](https://github.com/equinor/fusion-framework/pull/3341) [`cd09bef`](https://github.com/equinor/fusion-framework/commit/cd09befcdab4162a38d4dfd14f280ce228ea97d9) Thanks [@odinr](https://github.com/odinr)! - Enhanced CLI command documentation and help text across all commands.
70
+
71
+ - Updated command examples to use `ffc` (alias) instead of `fusion-framework-cli`
72
+ - Improved TSDoc comments with comprehensive descriptions and examples
73
+ - Streamlined help text by removing redundant information and improving formatting
74
+ - Added proper @example and @remarks tags for better IntelliSense support
75
+ - Enhanced option descriptions for clarity and consistency
76
+
77
+ These changes improve the developer experience when using the CLI by providing clearer documentation and more accurate examples.
78
+
79
+ Thanks to [@estoksam](https://github.com/estoksam) for reporting the CLI command help text issues in [fusion#651](https://github.com/equinor/fusion/issues/651).
80
+
81
+ - Updated dependencies [[`8c88574`](https://github.com/equinor/fusion-framework/commit/8c885745ee345cd7ef219b2cc469fd19c8687467), [`c1cd89a`](https://github.com/equinor/fusion-framework/commit/c1cd89abad4ca8f232a497316232d1f5ac8c530a)]:
82
+ - @equinor/fusion-framework-dev-portal@1.0.2
83
+ - @equinor/fusion-framework-module-msal-node@1.0.2
84
+
3
85
  ## 11.1.2
4
86
 
5
87
  ### Patch Changes
package/README.md CHANGED
@@ -82,6 +82,7 @@ pnpm fusion-framework-cli app config --publish --env <environment>
82
82
  | `pnpm fusion-framework-cli auth ...` | Authenticate with Fusion |
83
83
  | `pnpm fusion-framework-cli app ...` | Working with Fusion applications |
84
84
  | `pnpm fusion-framework-cli portal ...` | Working with Fusion portal templates |
85
+ | `pnpm fusion-framework-cli disco ...` | Service discovery and resolution |
85
86
 
86
87
  ## Example: package.json
87
88
 
@@ -124,7 +125,7 @@ A minimal example for a Fusion Framework app:
124
125
 
125
126
  **Setup & Configuration**
126
127
  - [Authentication](docs/auth.md): Setting up authentication for local development and CI/CD environments
127
- - [libsecret Installation](docs/libsecret.md): Fix credential storage issues on Linux systems
128
+ - [libsecret Installation](https://equinor.github.io/fusion-framework/modules/auth/msal-node/docs/libsecret.html): Fix credential storage issues on Linux systems
128
129
 
129
130
  **Migration & Updates**
130
131
  - [Migration Guide: v10 to v11](docs/migration-v10-to-v11.md): Breaking changes, deprecated commands, and upgrade instructions
@@ -140,7 +141,7 @@ A minimal example for a Fusion Framework app:
140
141
 
141
142
  **Authentication & Credentials**
142
143
  - **Authentication issues?** See [Authentication Guide](docs/auth.md) for token setup and troubleshooting
143
- - **libsecret errors on Linux?** Install libsecret using our [installation guide](docs/libsecret.md)
144
+ - **libsecret errors on Linux?** Install libsecret using our [installation guide](https://equinor.github.io/fusion-framework/modules/auth/msal-node/#troubleshooting)
144
145
 
145
146
  **CLI & Commands**
146
147
  - **Command not found?** Ensure `node_modules/.bin` is in your PATH or use `pnpm`/`npx`