@equinor/fusion-framework-module-msal 7.3.0 → 7.3.2-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 CHANGED
@@ -1,5 +1,27 @@
1
1
  # Change Log
2
2
 
3
+ ## 7.3.2-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@5.0.7-next.0
12
+
13
+ ## 7.3.1
14
+
15
+ ### Patch Changes
16
+
17
+ - [#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.
18
+
19
+ - [#4132](https://github.com/equinor/fusion-framework/pull/4132) [`db8fa81`](https://github.com/equinor/fusion-framework/commit/db8fa8134b77a628b15e06f7f72b50f04ef97458) Thanks [@dependabot](https://github.com/apps/dependabot)! - Internal: update @azure/msal-browser to 5.4.0 to include upstream security and authentication flow fixes without changing the module API.
20
+
21
+ - Updated dependencies [[`6aa8e1f`](https://github.com/equinor/fusion-framework/commit/6aa8e1f5c9d852b25e97aa7d98a63008c64d4581)]:
22
+ - @equinor/fusion-framework-module@5.0.6
23
+ - @equinor/fusion-framework-module-telemetry@4.6.4
24
+
3
25
  ## 7.3.0
4
26
 
5
27
  ### Minor Changes
@@ -56,12 +78,10 @@
56
78
  Enable automatic sign-in using a backend-issued SPA authorization code without requiring interactive MSAL login flows. This eliminates double-login issues and provides seamless user experience when backend pre-authenticates users.
57
79
 
58
80
  **New API:**
59
-
60
81
  - `MsalConfigurator.setAuthCode(authCode: string)` - Configure backend auth code for token exchange
61
82
  - `IMsalClient.acquireTokenByCode(request)` - Exchange auth code for tokens (inherited from PublicClientApplication)
62
83
 
63
84
  **How it works:**
64
-
65
85
  1. Backend authenticates user and generates short-lived SPA auth code
66
86
  2. Frontend calls `builder.setAuthCode(authCode)` during MSAL configuration
67
87
  3. During `initialize()`, auth code is exchanged for tokens before `requiresAuth` check
@@ -95,7 +115,6 @@
95
115
  - [#3944](https://github.com/equinor/fusion-framework/pull/3944) [`cb37cae`](https://github.com/equinor/fusion-framework/commit/cb37cae45e06778e8d1ea20faed31b582e49fcae) Thanks [@dependabot](https://github.com/apps/dependabot)! - Upgrade @azure/msal-browser from v2.39.0 to v5.0.2
96
116
 
97
117
  **Changes:**
98
-
99
118
  - Updated MSAL browser dependency to v5.0.2
100
119
  - Added V5 to MsalModuleVersion enum for version detection
101
120
  - Updated version mapping logic to handle MSAL v5.x (maps to V5)
@@ -182,7 +201,6 @@
182
201
  **🚀 Enhanced features available** - New v4 APIs provide better performance, security, and error handling.
183
202
 
184
203
  ## What You Get
185
-
186
204
  - **Better Security**: Latest MSAL v4 security improvements and vulnerability fixes
187
205
  - **Improved Performance**: Faster token acquisition and caching
188
206
  - **Enhanced Error Handling**: More robust error recovery and retry mechanisms
@@ -227,7 +245,6 @@
227
245
  - [#3714](https://github.com/equinor/fusion-framework/pull/3714) [`11fe961`](https://github.com/equinor/fusion-framework/commit/11fe961794e4960ccb987bc320268cc9b263f1f8) Thanks [@odinr](https://github.com/odinr)! - Add optional provider-level telemetry for MSAL flows and update interface methods.
228
246
 
229
247
  **BREAKING CHANGES:**
230
-
231
248
  - `acquireAccessToken(options: AcquireTokenOptions)` → `acquireAccessToken(options: AcquireTokenOptionsLegacy)`
232
249
  - `acquireToken(options: AcquireTokenOptions)` → `acquireToken(options: AcquireTokenOptionsLegacy)`
233
250
  - `logout(options?: LogoutOptions): Promise<void>` → `logout(options?: LogoutOptions): Promise<boolean>`
@@ -235,7 +252,6 @@
235
252
  - Added `initialize(): Promise<void>` method
236
253
 
237
254
  **New Features:**
238
-
239
255
  - Optional provider-level telemetry for MSAL flows (login, token acquisition, redirect handling)
240
256
  - Emits telemetry events and measurements via injected telemetry provider when available
241
257
  - Includes basic metadata (framework module version, clientId, tenantId) and authentication context
@@ -288,7 +304,6 @@
288
304
  ### Minor Changes
289
305
 
290
306
  - [#3573](https://github.com/equinor/fusion-framework/pull/3573) [`b42b116`](https://github.com/equinor/fusion-framework/commit/b42b11616487c534e8e01f2df126e2ad05ce6a8f) Thanks [@odinr](https://github.com/odinr)! - Refactored AuthProvider to use a cleaner `client` property instead of deprecated `defaultClient`.
291
-
292
307
  - Added `client` property to IAuthProvider interface
293
308
  - Replaced deprecated `defaultClient` getter with `client` getter
294
309
  - Updated internal references to use private `#client` field
@@ -297,14 +312,12 @@
297
312
  - [#3572](https://github.com/equinor/fusion-framework/pull/3572) [`2d90f8b`](https://github.com/equinor/fusion-framework/commit/2d90f8b3806aa3deec5ca60142d38118748b1d3e) Thanks [@odinr](https://github.com/odinr)! - Refactored MSAL versioning module to use warnings instead of errors for version incompatibilities.
298
313
 
299
314
  **Changes:**
300
-
301
315
  - Removed `create-version-message.ts` and `static.ts` utility files
302
316
  - Modified `resolveVersion()` to collect warnings for version mismatches instead of throwing errors
303
317
  - Simplified `VersionError` class by removing factory methods and type enum references
304
318
  - Updated tests to reflect new warning-based behavior
305
319
 
306
320
  **Breaking Changes:**
307
-
308
321
  - Version resolution now returns warnings for incompatible versions instead of throwing errors
309
322
  - This change is backward compatible as existing code will continue to work, but error handling behavior has changed
310
323
 
@@ -318,7 +331,6 @@
318
331
  - [#3442](https://github.com/equinor/fusion-framework/pull/3442) [`3b614f8`](https://github.com/equinor/fusion-framework/commit/3b614f87138f5a52f8ccc50ca8c6598ef3db37d6) Thanks [@asbjornhaland](https://github.com/asbjornhaland)! - Update biome to latest version
319
332
 
320
333
  - [#3428](https://github.com/equinor/fusion-framework/pull/3428) [`1700ca8`](https://github.com/equinor/fusion-framework/commit/1700ca8851fa108e55e9729fd24f595272766e63) Thanks [@dependabot](https://github.com/apps/dependabot)! - Update zod from 4.1.9 to 4.1.11
321
-
322
334
  - **v4.1.10**: Fixed shape caching issue (#5263) improving validation performance for complex schemas
323
335
  - **v4.1.11**: Maintenance release with general improvements
324
336
 
@@ -336,7 +348,6 @@
336
348
  Updated source code to migrate from zod v3 to v4. Updated zod dependency from v3.25.76 to v4.1.8 and modified authentication configuration schemas in the MSAL module to be compatible with zod v4's stricter type checking and updated API.
337
349
 
338
350
  Key changes in source code:
339
-
340
351
  - Updated `AuthClientConfigSchema` and `AuthConfigSchema` for zod v4 compatibility
341
352
  - Enhanced version schema transformation to work with zod v4
342
353
  - Improved validation of client configuration (clientId, tenantId, redirectUri)
@@ -345,7 +356,6 @@
345
356
  Breaking changes: Schema validation behavior may differ due to zod v4's stricter type checking. Error message format has changed from zod v3 to v4 format. Function schema definitions now require explicit typing.
346
357
 
347
358
  Links:
348
-
349
359
  - [Zod v4 Migration Guide](https://github.com/colinhacks/zod/releases/tag/v4.0.0)
350
360
  - [Zod v4.1.8 Release Notes](https://github.com/colinhacks/zod/releases/tag/v4.1.8)
351
361
 
@@ -356,7 +366,6 @@
356
366
  - [#3376](https://github.com/equinor/fusion-framework/pull/3376) [`da373ad`](https://github.com/equinor/fusion-framework/commit/da373ade663898b2628e28529b6e3dea3b91ed43) Thanks [@odinr](https://github.com/odinr)! - Improved MSAL module version checking to be more permissive for minor and patch versions.
357
367
 
358
368
  Fixes: #3375
359
-
360
369
  - Refactored version checking logic into dedicated versioning module
361
370
  - Made version checking more permissive for minor and patch versions
362
371
  - Only major version incompatibilities will block execution
@@ -371,7 +380,6 @@
371
380
  ### Patch Changes
372
381
 
373
382
  - [#3343](https://github.com/equinor/fusion-framework/pull/3343) [`68dc22f`](https://github.com/equinor/fusion-framework/commit/68dc22f582bb68fbc94f29ad053122f81c049405) Thanks [@odinr](https://github.com/odinr)! - Enhanced documentation with comprehensive guides and improved developer experience.
374
-
375
383
  - **Complete documentation rewrite** with better structure and organization
376
384
  - **Added comprehensive API reference** with detailed interface documentation
377
385
  - **Enhanced configuration guide** with clear required/optional settings tables
@@ -382,7 +390,6 @@
382
390
  - **Added package description** for better npm package visibility
383
391
 
384
392
  **Key Improvements:**
385
-
386
393
  - Clear separation between required and optional configuration
387
394
  - Comprehensive API reference with TypeScript interfaces
388
395
  - Migration guidance for v4 breaking changes
@@ -403,7 +410,6 @@
403
410
  ### Patch Changes
404
411
 
405
412
  - [#3088](https://github.com/equinor/fusion-framework/pull/3088) [`7441b13`](https://github.com/equinor/fusion-framework/commit/7441b13aa50dd7362d1629086a27b6b4e571575d) Thanks [@eikeland](https://github.com/eikeland)! - chore: update package typesVersions
406
-
407
413
  - Updated package.json typesVersions.
408
414
  - Ensures backward compatibility with older node versions.
409
415
  - Ensured consistency with workspace and repository configuration.
@@ -469,7 +475,6 @@
469
475
  - [#2814](https://github.com/equinor/fusion-framework/pull/2814) [`ea4b522`](https://github.com/equinor/fusion-framework/commit/ea4b5221b30719289fc947b5dbb0acd3ea52ffaa) Thanks [@odinr](https://github.com/odinr)! - Rework of the MSAL module to support module hoisting. This means that sub modules instances will proxy the parent module instance. This means that the module instance will be shared between all instances of the module.
470
476
 
471
477
  **Highlights:**
472
-
473
478
  - Versioning module, config and provider.
474
479
  - Interfaces for MSAL versions
475
480
  - Proxy provider instances for sub modules.
@@ -477,7 +482,6 @@
477
482
  - Configurator using `BaseConfigBuilder` (aligned with other modules)
478
483
 
479
484
  **BREAKING CHANGES:**
480
-
481
485
  - `configureMsal` has changed parameter signature to `configureMsal(msalConfigurator: MsalConfigurator): void`
482
486
  - Added `enableMsal` with parameter signature to `enableMsal(configurator: IModulesConfigurator, configureMsal: (msalConfigurator: MsalConfigurator) => void): void`
483
487
 
@@ -536,7 +540,6 @@
536
540
  - [#2320](https://github.com/equinor/fusion-framework/pull/2320) [`1dd85f3`](https://github.com/equinor/fusion-framework/commit/1dd85f3a408a73df556d1812a5f280945cc100ee) Thanks [@odinr](https://github.com/odinr)! - Removed the `removeComments` option from the `tsconfig.base.json` file.
537
541
 
538
542
  Removing the `removeComments` option allows TypeScript to preserve comments in the compiled JavaScript output. This can be beneficial for several reasons:
539
-
540
543
  1. Improved debugging: Preserved comments can help developers understand the code better during debugging sessions.
541
544
  2. Documentation: JSDoc comments and other important code documentation will be retained in the compiled output.
542
545
  3. Source map accuracy: Keeping comments can lead to more accurate source maps, which is crucial for debugging and error tracking.
@@ -662,7 +665,6 @@
662
665
  ### Patch Changes
663
666
 
664
667
  - [#905](https://github.com/equinor/fusion-framework/pull/905) [`a7858a1c`](https://github.com/equinor/fusion-framework/commit/a7858a1c01542e2dc94370709f122b4b99c3219c) Thanks [@odinr](https://github.com/odinr)! - **🚧 Chore: dedupe packages**
665
-
666
668
  - align all versions of typescript
667
669
  - update types to build
668
670
  - a couple of typecasts did not [satisfies](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-0.html#satisfies-support-in-jsdoc) and was recasted as `unknwon`, marked with `TODO`, should be fixed in future
@@ -1,3 +1,3 @@
1
1
  // Generated by genversion.
2
- export const version = '7.3.0';
2
+ export const version = '7.3.2-next.0';
3
3
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC"}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,MAAM,CAAC,MAAM,OAAO,GAAG,cAAc,CAAC"}