@equinor/fusion-framework-vite-plugin-spa 3.1.10 → 3.1.12-next.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 +28 -35
- package/dist/esm/version.js +1 -1
- package/dist/esm/version.js.map +1 -1
- package/dist/html/bootstrap.js +337 -245
- package/dist/html/bootstrap.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/html/index.html.d.ts +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +6 -6
- package/src/version.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @equinor/fusion-framework-vite-plugin-spa
|
|
2
2
|
|
|
3
|
+
## 3.1.12-next.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#3820](https://github.com/equinor/fusion-framework/pull/3820) [`f647825`](https://github.com/equinor/fusion-framework/commit/f647825cb5712763b09dafda21fd996211c78b78) Thanks [@odinr](https://github.com/odinr)! - relase next
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`f647825`](https://github.com/equinor/fusion-framework/commit/f647825cb5712763b09dafda21fd996211c78b78)]:
|
|
10
|
+
- @equinor/fusion-framework-module-telemetry@4.6.5-next.0
|
|
11
|
+
- @equinor/fusion-framework-module-http@7.0.9-next.0
|
|
12
|
+
- @equinor/fusion-framework-module@5.0.7-next.0
|
|
13
|
+
- @equinor/fusion-framework-module-msal@7.3.2-next.0
|
|
14
|
+
- @equinor/fusion-framework-module-service-discovery@9.1.2-next.0
|
|
15
|
+
|
|
16
|
+
## 3.1.11
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- [#4100](https://github.com/equinor/fusion-framework/pull/4100) [`9d4d520`](https://github.com/equinor/fusion-framework/commit/9d4d520e9d3c3a3c4ef68a96952fbbc6f6d34720) Thanks [@dependabot](https://github.com/apps/dependabot)! - Internal: rebuild the CLI, dev portal, and SPA plugin with Rollup 4.59.0 to address a security advisory affecting packaged build output. No public API changes.
|
|
21
|
+
|
|
22
|
+
- [#4157](https://github.com/equinor/fusion-framework/pull/4157) [`6aa8e1f`](https://github.com/equinor/fusion-framework/commit/6aa8e1f5c9d852b25e97aa7d98a63008c64d4581) Thanks [@Noggling](https://github.com/Noggling)! - Internal: patch release to align TypeScript types across packages for consistent type compatibility.
|
|
23
|
+
|
|
24
|
+
- Updated dependencies [[`6aa8e1f`](https://github.com/equinor/fusion-framework/commit/6aa8e1f5c9d852b25e97aa7d98a63008c64d4581), [`db8fa81`](https://github.com/equinor/fusion-framework/commit/db8fa8134b77a628b15e06f7f72b50f04ef97458)]:
|
|
25
|
+
- @equinor/fusion-framework-module-http@7.0.8
|
|
26
|
+
- @equinor/fusion-framework-module@5.0.6
|
|
27
|
+
- @equinor/fusion-framework-module-msal@7.3.1
|
|
28
|
+
- @equinor/fusion-framework-module-service-discovery@9.1.1
|
|
29
|
+
- @equinor/fusion-framework-module-telemetry@4.6.4
|
|
30
|
+
|
|
3
31
|
## 3.1.10
|
|
4
32
|
|
|
5
33
|
### Patch Changes
|
|
@@ -80,7 +108,6 @@
|
|
|
80
108
|
- [#3922](https://github.com/equinor/fusion-framework/pull/3922) [`d34ebd8`](https://github.com/equinor/fusion-framework/commit/d34ebd82c93acabc88f88e44a725f084af3af5ec) Thanks [@odinr](https://github.com/odinr)! - Enable AG Grid Enterprise license injection for the dev-portal by setting a global window key produced from the SPA template environment. The portal reads `window.FUSION_AG_GRID_KEY` to configure the AG Grid module and silence license warnings when a valid key is present. CLI docs now mention the license key setup.
|
|
81
109
|
|
|
82
110
|
**Usage:**
|
|
83
|
-
|
|
84
111
|
- In your SPA environment file, set `FUSION_SPA_AG_GRID_KEY=your-license-key-here`.
|
|
85
112
|
- The SPA HTML template injects `window.FUSION_AG_GRID_KEY` before bootstrap runs, and the dev-portal picks it up automatically.
|
|
86
113
|
|
|
@@ -103,7 +130,6 @@
|
|
|
103
130
|
- [#3932](https://github.com/equinor/fusion-framework/pull/3932) [`15aaa87`](https://github.com/equinor/fusion-framework/commit/15aaa87e6a8b391c0672db0dcdca4c1cac3b50a7) Thanks [@dependabot](https://github.com/apps/dependabot)! - Internal: update rollup build dependency from 4.52.5 to 4.55.2.
|
|
104
131
|
|
|
105
132
|
This update includes:
|
|
106
|
-
|
|
107
133
|
- Improved circular dependency handling for manual chunks
|
|
108
134
|
- Enhanced tree-shaking for Symbol properties
|
|
109
135
|
- Performance improvements via variable name caching
|
|
@@ -160,7 +186,6 @@
|
|
|
160
186
|
### Patch Changes
|
|
161
187
|
|
|
162
188
|
- [#3714](https://github.com/equinor/fusion-framework/pull/3714) [`11fe961`](https://github.com/equinor/fusion-framework/commit/11fe961794e4960ccb987bc320268cc9b263f1f8) Thanks [@odinr](https://github.com/odinr)! - Fix MSAL v4 compatibility issues in SPA plugin.
|
|
163
|
-
|
|
164
189
|
- Update MSAL client configuration to use nested auth object structure
|
|
165
190
|
- Replace deprecated defaultAccount with account property
|
|
166
191
|
- Update acquireToken calls to use MSAL v4 request structure
|
|
@@ -198,20 +223,17 @@
|
|
|
198
223
|
This update addresses a security vulnerability in Vite's development server and includes bug fixes for improved compatibility. The update ensures secure development environments and better plugin ecosystem compatibility.
|
|
199
224
|
|
|
200
225
|
**Changes:**
|
|
201
|
-
|
|
202
226
|
- Updated Vite from v7.1.10 to v7.1.12
|
|
203
227
|
- Includes security fix for development server file system checks
|
|
204
228
|
- Includes compatibility fix for CommonJS plugin
|
|
205
229
|
- No breaking changes or API modifications
|
|
206
230
|
|
|
207
231
|
**Security Fix (v7.1.11):**
|
|
208
|
-
|
|
209
232
|
- **dev**: trim trailing slash before `server.fs.deny` check ([#20968](https://github.com/vitejs/vite/issues/20968))
|
|
210
233
|
- Prevents potential path traversal vulnerability in development server
|
|
211
234
|
- Only affects development environment, not production builds
|
|
212
235
|
|
|
213
236
|
**Bug Fix (v7.1.12):**
|
|
214
|
-
|
|
215
237
|
- **deps**: downgrade commonjs plugin to 28.0.6 to avoid rollup/plugins issues ([#20990](https://github.com/vitejs/vite/issues/20990))
|
|
216
238
|
- Improves compatibility with Rollup plugin ecosystem
|
|
217
239
|
- Prevents potential build issues
|
|
@@ -227,19 +249,16 @@
|
|
|
227
249
|
- [#3584](https://github.com/equinor/fusion-framework/pull/3584) [`0dd31cd`](https://github.com/equinor/fusion-framework/commit/0dd31cd1078b383ddab4a8cf1bb03d502e214715) Thanks [@dependabot](https://github.com/apps/dependabot)! - chore: bump @rollup/plugin-node-resolve from 16.0.1 to 16.0.3
|
|
228
250
|
|
|
229
251
|
Bug fixes:
|
|
230
|
-
|
|
231
252
|
- fix: resolve bare targets of package "imports" using export maps; avoid fileURLToPath(null)
|
|
232
253
|
- fix: error thrown with empty entry
|
|
233
254
|
|
|
234
255
|
- [#3604](https://github.com/equinor/fusion-framework/pull/3604) [`31e2581`](https://github.com/equinor/fusion-framework/commit/31e2581fca2765dc7caf54f74db3db51020b53b7) Thanks [@odinr](https://github.com/odinr)! - Update SPA bootstrap telemetry configuration to use proper adapter identifiers.
|
|
235
256
|
|
|
236
257
|
**Changes:**
|
|
237
|
-
|
|
238
258
|
- Refactor console adapter setup for cleaner conditional logic
|
|
239
259
|
- Update setAdapter calls to include required identifier parameter
|
|
240
260
|
|
|
241
261
|
**Migration:**
|
|
242
|
-
|
|
243
262
|
- No breaking changes for SPA consumers - internal implementation update only
|
|
244
263
|
|
|
245
264
|
- Updated dependencies [[`6900d98`](https://github.com/equinor/fusion-framework/commit/6900d98142c84f4703095f8d03b09af57a1d7d2e), [`e1a94c5`](https://github.com/equinor/fusion-framework/commit/e1a94c5a1df4ac2ec92ed25b75648397a3dbfa7b), [`e1a94c5`](https://github.com/equinor/fusion-framework/commit/e1a94c5a1df4ac2ec92ed25b75648397a3dbfa7b), [`31e2581`](https://github.com/equinor/fusion-framework/commit/31e2581fca2765dc7caf54f74db3db51020b53b7), [`0bc6b38`](https://github.com/equinor/fusion-framework/commit/0bc6b38e61c98a2f9dea7b55fa9983f268f860be), [`a13de68`](https://github.com/equinor/fusion-framework/commit/a13de68b2f196a779ea850af055d8db7926941ce)]:
|
|
@@ -258,7 +277,6 @@
|
|
|
258
277
|
Previously, the plugin was using direct `.pathname` access on URL objects which could cause issues on Windows due to path separator differences. This change replaces the direct pathname access with `fileURLToPath()` and `normalizePath()` from Vite to ensure proper cross-platform path handling.
|
|
259
278
|
|
|
260
279
|
**Changes:**
|
|
261
|
-
|
|
262
280
|
- Import `normalizePath` from Vite for consistent path normalization
|
|
263
281
|
- Use `fileURLToPath()` to properly convert file URLs to paths
|
|
264
282
|
- Apply `normalizePath()` to ensure consistent path separators across platforms
|
|
@@ -272,7 +290,6 @@
|
|
|
272
290
|
- [#3579](https://github.com/equinor/fusion-framework/pull/3579) [`b6a64d9`](https://github.com/equinor/fusion-framework/commit/b6a64d94bad7248c06b3aa7d65d7d698052437c7) Thanks [@Noggling](https://github.com/Noggling)! - Add peer dependencies to SPA Vite plugin
|
|
273
291
|
|
|
274
292
|
Added peer dependencies to ensure proper dependency resolution for the SPA Vite plugin. This change declares the Fusion Framework modules that the plugin expects to be available in the consuming application:
|
|
275
|
-
|
|
276
293
|
- `@equinor/fusion-framework-module`
|
|
277
294
|
- `@equinor/fusion-framework-module-http`
|
|
278
295
|
- `@equinor/fusion-framework-module-msal`
|
|
@@ -286,7 +303,6 @@
|
|
|
286
303
|
### Minor Changes
|
|
287
304
|
|
|
288
305
|
- [#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 SPA plugin with portal proxy support for testing apps in real portal environments ([Issue #3546](https://github.com/equinor/fusion-framework/issues/3546)).
|
|
289
|
-
|
|
290
306
|
- Added `proxy` option to portal configuration to enable `/portal-proxy` routing
|
|
291
307
|
- Added `FUSION_SPA_PORTAL_PROXY` environment variable support
|
|
292
308
|
- Updated TypeScript types to include portal proxy configuration
|
|
@@ -312,7 +328,6 @@
|
|
|
312
328
|
### Patch Changes
|
|
313
329
|
|
|
314
330
|
- [#3490](https://github.com/equinor/fusion-framework/pull/3490) [`45954e5`](https://github.com/equinor/fusion-framework/commit/45954e5db471a2faa24e88e41fc6d6c18817d6d1) Thanks [@odinr](https://github.com/odinr)! - Remove logger level configuration from bootstrap template.
|
|
315
|
-
|
|
316
331
|
- Removed `configurator.logger.level` assignment from `bootstrap.ts`
|
|
317
332
|
- Logger level configuration should be handled elsewhere or is no longer needed
|
|
318
333
|
|
|
@@ -323,7 +338,6 @@
|
|
|
323
338
|
This patch update fixes bugs and improves stability in the vite dependency.
|
|
324
339
|
|
|
325
340
|
- [#3521](https://github.com/equinor/fusion-framework/pull/3521) [`d1098f7`](https://github.com/equinor/fusion-framework/commit/d1098f7eeff04380c9e05e4a7a7d6b16e1d95884) Thanks [@odinr](https://github.com/odinr)! - Add comprehensive telemetry integration to SPA bootstrap and service worker.
|
|
326
|
-
|
|
327
341
|
- Enable telemetry in SPA bootstrap with ConsoleAdapter
|
|
328
342
|
- Add configurable console logging levels via FUSION_SPA_TELEMETRY_CONSOLE_LEVEL environment variable
|
|
329
343
|
- Track bootstrap performance for portal loading operations
|
|
@@ -333,7 +347,6 @@
|
|
|
333
347
|
- Fix console level filtering logic to properly respect environment variable settings
|
|
334
348
|
|
|
335
349
|
**Implementation Notes:**
|
|
336
|
-
|
|
337
350
|
- Console level filtering defaults to `TelemetryLevel.Information` (1) when env var not set
|
|
338
351
|
- Invalid env var values fallback to logging all telemetry (robust error handling)
|
|
339
352
|
- Backward compatible: existing behavior unchanged when no FUSION_SPA_TELEMETRY_CONSOLE_LEVEL specified
|
|
@@ -346,7 +359,6 @@
|
|
|
346
359
|
### Patch Changes
|
|
347
360
|
|
|
348
361
|
- [`56c27ec`](https://github.com/equinor/fusion-framework/commit/56c27ec9de03e07e725eecfdf2c028a1e29b6ece) Thanks [@odinr](https://github.com/odinr)! - Updated workspace dependencies to use exact version specifiers for consistent release behavior.
|
|
349
|
-
|
|
350
362
|
- Changed workspace dependencies from `workspace:^` to `workspace:*` across CLI, dev-server, and SPA vite plugin packages
|
|
351
363
|
- Ensures exact version resolution within the monorepo for predictable builds and releases
|
|
352
364
|
- Affects both dependencies and devDependencies where applicable
|
|
@@ -360,19 +372,16 @@
|
|
|
360
372
|
**Problem**: During hard refresh, the service worker would not intercept fetch requests, causing authenticated API requests to fail. The service worker could be stuck in "waiting" state or already active but not controlling the page (`navigator.serviceWorker.controller` was `undefined`).
|
|
361
373
|
|
|
362
374
|
**Root Cause**: Two related issues in the service worker lifecycle during hard refresh:
|
|
363
|
-
|
|
364
375
|
1. **Waiting state**: When code changes, the new service worker enters "waiting" state, but `skipWaiting()` only runs in the `install` event (which already fired)
|
|
365
376
|
2. **No controller**: Even when active, `clients.claim()` only runs in the `activate` event, which doesn't fire again if the service worker is already active
|
|
366
377
|
|
|
367
378
|
**Solution**:
|
|
368
|
-
|
|
369
379
|
- **Force activation on config receipt**: When receiving `INIT_CONFIG`, immediately call both `skipWaiting()` and `clients.claim()` to ensure the service worker activates and takes control regardless of its current state
|
|
370
380
|
- **Wait for controller**: Registration now waits for `navigator.serviceWorker.controller` to be set before proceeding, ensuring fetch interception is ready
|
|
371
381
|
- **Disable service worker caching**: Added `updateViaCache: 'none'` to always fetch fresh service worker code during development
|
|
372
382
|
- **Comprehensive state handling**: Handle service workers in installing, waiting, and active states
|
|
373
383
|
|
|
374
384
|
**Changes**:
|
|
375
|
-
|
|
376
385
|
1. **sw.ts**: Call `skipWaiting()` and `clients.claim()` when receiving `INIT_CONFIG` message
|
|
377
386
|
2. **register-service-worker.ts**: Wait for controller with polling and timeout fallback; disable service worker HTTP caching
|
|
378
387
|
|
|
@@ -396,7 +405,6 @@
|
|
|
396
405
|
- [#3349](https://github.com/equinor/fusion-framework/pull/3349) [`c511123`](https://github.com/equinor/fusion-framework/commit/c511123c835e24e9ddefcc4c47c2455f5df12087) Thanks [@dependabot](https://github.com/apps/dependabot)! - chore: bump vite from 6.x to 7.1.5
|
|
397
406
|
|
|
398
407
|
Major version update of Vite build tool across all packages. This update includes:
|
|
399
|
-
|
|
400
408
|
- Enhanced build performance and caching
|
|
401
409
|
- Better error reporting with code frames
|
|
402
410
|
- Improved TypeScript integration
|
|
@@ -404,7 +412,6 @@
|
|
|
404
412
|
- New development server features
|
|
405
413
|
|
|
406
414
|
### Links
|
|
407
|
-
|
|
408
415
|
- [Vite 7.1.5 Release Notes](https://github.com/vitejs/vite/releases/tag/v7.1.5)
|
|
409
416
|
- [Vite 7.x Migration Guide](https://vitejs.dev/guide/migration)
|
|
410
417
|
|
|
@@ -413,7 +420,6 @@
|
|
|
413
420
|
### Patch Changes
|
|
414
421
|
|
|
415
422
|
- [#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
|
|
416
|
-
|
|
417
423
|
- Updated rollup dependency via vite transitive dependency
|
|
418
424
|
- Includes bug fixes for tree-shaking array destructuring patterns
|
|
419
425
|
- Performance improvements and platform support updates
|
|
@@ -422,7 +428,6 @@
|
|
|
422
428
|
- [#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.
|
|
423
429
|
|
|
424
430
|
## Breaking Changes
|
|
425
|
-
|
|
426
431
|
- **Node.js Requirements**: Requires Node.js 18+ (already satisfied)
|
|
427
432
|
- **Vite Compatibility**: Updated to work with Vite 7.x (already using Vite 7.1.5)
|
|
428
433
|
- **Snapshot Format**: Snapshots now use backtick quotes (\`) instead of single quotes
|
|
@@ -430,18 +435,15 @@
|
|
|
430
435
|
- **TypeScript Support**: Enhanced TypeScript integration and type definitions
|
|
431
436
|
|
|
432
437
|
## Security Updates
|
|
433
|
-
|
|
434
438
|
- CVE-2025-24963: Browser mode serves arbitrary files (fixed in 2.1.9)
|
|
435
439
|
- CVE-2025-24964: Remote Code Execution vulnerability (fixed in 2.1.9)
|
|
436
440
|
|
|
437
441
|
## Migration Notes
|
|
438
|
-
|
|
439
442
|
- Test snapshots may need regeneration due to quote format changes
|
|
440
443
|
- Some test configurations might need updates for new TypeScript support
|
|
441
444
|
- Peer dependency warnings for @vitest/coverage-v8 are expected and safe to ignore
|
|
442
445
|
|
|
443
446
|
## Links
|
|
444
|
-
|
|
445
447
|
- [Vitest 3.0 Migration Guide](https://vitest.dev/guide/migration)
|
|
446
448
|
- [Vitest 3.2.4 Release Notes](https://github.com/vitest-dev/vitest/releases/tag/v3.2.4)
|
|
447
449
|
|
|
@@ -456,7 +458,6 @@
|
|
|
456
458
|
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.
|
|
457
459
|
|
|
458
460
|
**Key Features**:
|
|
459
|
-
|
|
460
461
|
- **Fusion Framework Bootstrap**: Automatically initializes core modules and renders configured portals
|
|
461
462
|
- **Service Discovery**: Enables dynamic service routing and eliminates hardcoded service endpoints
|
|
462
463
|
- **MSAL Authentication**: Provides seamless Azure AD integration with configurable authentication flows
|
|
@@ -484,7 +485,6 @@
|
|
|
484
485
|
### Patch Changes
|
|
485
486
|
|
|
486
487
|
- [#3075](https://github.com/equinor/fusion-framework/pull/3075) [`5973182`](https://github.com/equinor/fusion-framework/commit/5973182b156adb56137f1fc683635ae15274cc57) Thanks [@odinr](https://github.com/odinr)! - Update portal config and manifest API routes and types for consistency:
|
|
487
|
-
|
|
488
488
|
- Change dev server API route for portal manifest/config from `/portals/portals/...` to `/portal-config/portals/...` for alignment with client usage.
|
|
489
489
|
- Make portal config optional in dev server route and type definitions.
|
|
490
490
|
- Update SPA bootstrap to use `portal-config` as the service discovery client key.
|
|
@@ -498,7 +498,6 @@
|
|
|
498
498
|
### Patch Changes
|
|
499
499
|
|
|
500
500
|
- [#3075](https://github.com/equinor/fusion-framework/pull/3075) [`23fdc8a`](https://github.com/equinor/fusion-framework/commit/23fdc8a80d21ff063b17d8c596c0afc0a891305f) Thanks [@odinr](https://github.com/odinr)! - Fix dependency and devDependency declarations for lodash.mergewith:
|
|
501
|
-
|
|
502
501
|
- Move "lodash.mergewith" to dependencies and ensure correct version for @types/lodash.mergewith in devDependencies.
|
|
503
502
|
- Remove duplicate and misplaced entries for lodash.mergewith and its types.
|
|
504
503
|
- Remove unused @equinor/fusion-framework-vite-plugin-api-service from devDependencies.
|
|
@@ -511,7 +510,6 @@
|
|
|
511
510
|
### Patch Changes
|
|
512
511
|
|
|
513
512
|
- [#3075](https://github.com/equinor/fusion-framework/pull/3075) [`713cb15`](https://github.com/equinor/fusion-framework/commit/713cb15c5f1607e7f7285940a58165d97d8e41df) Thanks [@odinr](https://github.com/odinr)! - Refactor plugin internals for improved Vite compatibility and maintainability:
|
|
514
|
-
|
|
515
513
|
- Made `resolveId` and `config` hooks async to support dynamic import resolution for virtual modules.
|
|
516
514
|
- Improved resource alias resolution for `/@fusion-spa-bootstrap.js` and `/@fusion-spa-sw.js` using `import.meta.resolve` and `fileURLToPath`.
|
|
517
515
|
- Enhanced environment variable handling by merging plugin and loaded environments, and defining them on `config.define`.
|
|
@@ -523,7 +521,6 @@
|
|
|
523
521
|
### Minor Changes
|
|
524
522
|
|
|
525
523
|
- [#3075](https://github.com/equinor/fusion-framework/pull/3075) [`ea96493`](https://github.com/equinor/fusion-framework/commit/ea96493d95336f682e31a7b63161783ae7c99a63) Thanks [@odinr](https://github.com/odinr)! - Refactor build output and entrypoints for SPA Vite plugin:
|
|
526
|
-
|
|
527
524
|
- Change main export entrypoint to `./dist/bin/index.js` (was `./dist/esm/index.js`).
|
|
528
525
|
- Remove the `./html` export subpath.
|
|
529
526
|
- Update Rollup config to bundle from `dist/esm` to `dist/bin` and adjust input/output accordingly.
|
|
@@ -537,7 +534,6 @@
|
|
|
537
534
|
### Patch Changes
|
|
538
535
|
|
|
539
536
|
- [#3075](https://github.com/equinor/fusion-framework/pull/3075) [`8870e73`](https://github.com/equinor/fusion-framework/commit/8870e73bd6d4141142c69c11c67b5b154bc80023) Thanks [@odinr](https://github.com/odinr)! - Update build system and dependencies:
|
|
540
|
-
|
|
541
537
|
- Switch build script to use Rollup with a new `rollup.config.js` for ESM output
|
|
542
538
|
- Add postbuild script to emit TypeScript declarations
|
|
543
539
|
- Move all dependencies to devDependencies for clarity
|
|
@@ -593,7 +589,6 @@
|
|
|
593
589
|
This plugin enables building single-page applications (SPAs) with Vite. It provides features such as service discovery, MSAL authentication, and service worker configuration.
|
|
594
590
|
|
|
595
591
|
**Features**:
|
|
596
|
-
|
|
597
592
|
- **Service Discovery**: Fetch service discovery configurations and authenticate requests.
|
|
598
593
|
- **MSAL Authentication**: Authenticate users with Azure AD.
|
|
599
594
|
- **Service Worker**: Intercept fetch requests, apply authentication headers, and rewrite URLs.
|
|
@@ -642,7 +637,6 @@
|
|
|
642
637
|
```
|
|
643
638
|
|
|
644
639
|
**Additional Details**:
|
|
645
|
-
|
|
646
640
|
- **Custom Bootstrap**: Allows defining custom bootloader scripts.
|
|
647
641
|
- **Dynamic Proxy**: Supports dynamic proxy services using `@equinor/fusion-framework-vite-plugin-api-service`.
|
|
648
642
|
- **Environment Variables**: Automatically maps `.env` variables to `import.meta.env`.
|
|
@@ -652,7 +646,6 @@
|
|
|
652
646
|
### Patch Changes
|
|
653
647
|
|
|
654
648
|
- [#3074](https://github.com/equinor/fusion-framework/pull/3074) [`6b034e5`](https://github.com/equinor/fusion-framework/commit/6b034e5459094cea0c0f2490335eef3092390a13) Thanks [@odinr](https://github.com/odinr)! - Fetch and pass portal config to portal render function in bootstrap.ts
|
|
655
|
-
|
|
656
649
|
- The SPA bootstrap script now fetches the portal config from `/portals/{portalId}@{portalTag}/config` and passes it as `config` to the portal's render function.
|
|
657
650
|
- This enables portals to receive their runtime configuration directly at startup.
|
|
658
651
|
|
package/dist/esm/version.js
CHANGED
package/dist/esm/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,MAAM,CAAC,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC"}
|