@equinor/fusion-framework-vite-plugin-spa 1.0.0-next.9 → 1.0.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 CHANGED
@@ -1,5 +1,68 @@
1
1
  # @equinor/fusion-framework-vite-plugin-spa
2
2
 
3
+ ## 1.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#3381](https://github.com/equinor/fusion-framework/pull/3381) [`bae9c95`](https://github.com/equinor/fusion-framework/commit/bae9c9554f335d0384b864436874bded47d00ed8) Thanks [@dependabot](https://github.com/apps/dependabot)! - Update rollup from 4.49.0 to 4.50.2
8
+
9
+ - Updated rollup dependency via vite transitive dependency
10
+ - Includes bug fixes for tree-shaking array destructuring patterns
11
+ - Performance improvements and platform support updates
12
+ - No breaking changes - backward compatible update
13
+
14
+ - [#2910](https://github.com/equinor/fusion-framework/pull/2910) [`07cc985`](https://github.com/equinor/fusion-framework/commit/07cc9857e1427b574e011cc319518e701dba784d) Thanks [@dependabot](https://github.com/apps/dependabot)! - Updated vitest from 2.1.9 to 3.2.4 across all packages.
15
+
16
+ ## Breaking Changes
17
+
18
+ - **Node.js Requirements**: Requires Node.js 18+ (already satisfied)
19
+ - **Vite Compatibility**: Updated to work with Vite 7.x (already using Vite 7.1.5)
20
+ - **Snapshot Format**: Snapshots now use backtick quotes (\`) instead of single quotes
21
+ - **Coverage API**: New coverage methods `enableCoverage()` and `disableCoverage()`
22
+ - **TypeScript Support**: Enhanced TypeScript integration and type definitions
23
+
24
+ ## Security Updates
25
+
26
+ - CVE-2025-24963: Browser mode serves arbitrary files (fixed in 2.1.9)
27
+ - CVE-2025-24964: Remote Code Execution vulnerability (fixed in 2.1.9)
28
+
29
+ ## Migration Notes
30
+
31
+ - Test snapshots may need regeneration due to quote format changes
32
+ - Some test configurations might need updates for new TypeScript support
33
+ - Peer dependency warnings for @vitest/coverage-v8 are expected and safe to ignore
34
+
35
+ ## Links
36
+
37
+ - [Vitest 3.0 Migration Guide](https://vitest.dev/guide/migration)
38
+ - [Vitest 3.2.4 Release Notes](https://github.com/vitest-dev/vitest/releases/tag/v3.2.4)
39
+
40
+ ## 1.0.0
41
+
42
+ ### Major Changes
43
+
44
+ - [#3075](https://github.com/equinor/fusion-framework/pull/3075) [`8fffbfb`](https://github.com/equinor/fusion-framework/commit/8fffbfb12daa9748bf5290e5084cd4d409aed253) Thanks [@odinr](https://github.com/odinr)! - Introducing a powerful new Vite plugin for building Single Page Applications (SPAs) with the Fusion Framework and Vite. This plugin significantly streamlines the development workflow by automating HTML template generation, bootstrapping authentication and service discovery, and enabling seamless portal loading and API proxying.
45
+
46
+ **Purpose**:
47
+
48
+ This plugin represents a strategic modularization of the Fusion Framework CLI codebase. By extracting the SPA functionality into its own dedicated package, we've simplified the CLI's architecture while enabling greater flexibility. This modular design allows the SPA component to be replaced or reused by third-party developers independently of the CLI. The primary goal is to maintain a cleaner, more maintainable codebase through proper separation of concerns, with the CLI using this plugin rather than containing this functionality directly.
49
+
50
+ **Key Features**:
51
+
52
+ - **Fusion Framework Bootstrap**: Automatically initializes core modules and renders configured portals
53
+ - **Service Discovery**: Enables dynamic service routing and eliminates hardcoded service endpoints
54
+ - **MSAL Authentication**: Provides seamless Azure AD integration with configurable authentication flows
55
+ - **Service Worker**: Intercepts network requests to add authentication tokens and rewrite URLs for proxying
56
+ - **Portal Integration**: Loads and renders any portal by ID from local packages or the Fusion Portal Service
57
+ - **Environment Configuration**: Supports flexible configuration through code or `.env` files with proper naming conventions
58
+ - **Custom Templates**: Allows full control over HTML document structure while maintaining environment variable injection
59
+ - **Custom Bootstrap**: Supports advanced customization of the application initialization process
60
+ - **API Service Integration**: Works with `@equinor/fusion-framework-vite-plugin-api-service` for enhanced development capabilities
61
+
62
+ This plugin is designed for seamless integration with the Fusion Framework CLI and provides flexible configuration for both standard and advanced SPA scenarios.
63
+
64
+ > Note: This plugin is intended for use in non-production environments only, primarily as a development and testing tool.
65
+
3
66
  ## 1.0.0-next.9
4
67
 
5
68
  ### Patch Changes