@equinor/fusion-framework-cli 11.0.1 → 11.1.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,80 @@
1
1
  # Change Log
2
2
 
3
+ ## 11.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#3323](https://github.com/equinor/fusion-framework/pull/3323) [`8b2633d`](https://github.com/equinor/fusion-framework/commit/8b2633dca8e61e18f19e605f5338a9925a8588ab) Thanks [@odinr](https://github.com/odinr)! - Add `vite-plugin-tsconfig-paths` to allow apps to use path aliases in tsconfig, instead of defining them manually in Vite config.
8
+
9
+ > [!NOTE]
10
+ > Newer versions of Vite wont resolve files from `baseUrl` in `tsconfig.json`.
11
+ >
12
+ > To fix this, you can either:
13
+ >
14
+ > - Update import with full relative path
15
+ > - Add paths to `tsconfig.json`
16
+
17
+ example:
18
+
19
+ ```json
20
+ {
21
+ "compilerOptions": {
22
+ "baseUrl": "src",
23
+ "paths": {
24
+ "@/*": ["./*"]
25
+ }
26
+ }
27
+ }
28
+ ```
29
+
30
+ ```typescript
31
+ import { MyComponent } from "@/components";
32
+ ```
33
+
34
+ ‼️ Bad practice:
35
+
36
+ ```json
37
+ {
38
+ "compilerOptions": {
39
+ "baseUrl": ".",
40
+ "paths": {
41
+ "MyComponent": ["src/components/MyComponent"]
42
+ }
43
+ }
44
+ }
45
+ ```
46
+
47
+ ```typescript
48
+ import { MyComponent } from "MyComponent";
49
+ ```
50
+
51
+ > [!IMPORTANT]
52
+ > This is just best effort for resolving paths at build time. It does not guarantee that all paths will be resolved correctly in all scenarios. Please verify that your paths are working as expected after this update.
53
+
54
+ ### Patch Changes
55
+
56
+ - [#3323](https://github.com/equinor/fusion-framework/pull/3323) [`8b2633d`](https://github.com/equinor/fusion-framework/commit/8b2633dca8e61e18f19e605f5338a9925a8588ab) Thanks [@odinr](https://github.com/odinr)! - Added debug logging of included file system paths.
57
+
58
+ > [!Note] > _Vite will not resolve files outside the working directory unless explicitly allowed._
59
+
60
+ - [#3323](https://github.com/equinor/fusion-framework/pull/3323) [`8b2633d`](https://github.com/equinor/fusion-framework/commit/8b2633dca8e61e18f19e605f5338a9925a8588ab) Thanks [@odinr](https://github.com/odinr)! - Improved CLI logger by adding a missing argument for enhanced debugging.
61
+ Running `ffc app dev --debug` now provides more detailed output during development server startup.
62
+
63
+ - [#3323](https://github.com/equinor/fusion-framework/pull/3323) [`8b2633d`](https://github.com/equinor/fusion-framework/commit/8b2633dca8e61e18f19e605f5338a9925a8588ab) Thanks [@odinr](https://github.com/odinr)! - Fixed issue where app routing was not properly handled in the development server configuration. Some request where given with `/` instead of `@`, so now we support both formats.
64
+
65
+ example `/apps/bundles/apps/my-app/6.7.8/src/index.ts?import` was expected to be `/apps/bundles/apps/my-app@6.7.8/src/index.ts?import`.
66
+
67
+ Should fix https://github.com/equinor/fusion/issues/640
68
+
69
+ - Updated dependencies [[`39188bf`](https://github.com/equinor/fusion-framework/commit/39188bfc84fe2b62f72b07acd58f10fe7149579c), [`39188bf`](https://github.com/equinor/fusion-framework/commit/39188bfc84fe2b62f72b07acd58f10fe7149579c), [`866d1c5`](https://github.com/equinor/fusion-framework/commit/866d1c52ab86aaa742605e401d8633bc032efeb2)]:
70
+ - @equinor/fusion-imports@1.1.2
71
+
72
+ ## 11.0.2
73
+
74
+ ### Patch Changes
75
+
76
+ - [`00c1851`](https://github.com/equinor/fusion-framework/commit/00c1851c1f80a89531796fb7487176867a4af533) Thanks [@odinr](https://github.com/odinr)! - fixed broken link in migration guide
77
+
3
78
  ## 11.0.1
4
79
 
5
80
  ### Patch Changes