@equinor/fusion-framework-module-msal 7.3.1 → 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,15 @@
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
+
3
13
  ## 7.3.1
4
14
 
5
15
  ### Patch Changes
@@ -68,12 +78,10 @@
68
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.
69
79
 
70
80
  **New API:**
71
-
72
81
  - `MsalConfigurator.setAuthCode(authCode: string)` - Configure backend auth code for token exchange
73
82
  - `IMsalClient.acquireTokenByCode(request)` - Exchange auth code for tokens (inherited from PublicClientApplication)
74
83
 
75
84
  **How it works:**
76
-
77
85
  1. Backend authenticates user and generates short-lived SPA auth code
78
86
  2. Frontend calls `builder.setAuthCode(authCode)` during MSAL configuration
79
87
  3. During `initialize()`, auth code is exchanged for tokens before `requiresAuth` check
@@ -107,7 +115,6 @@
107
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
108
116
 
109
117
  **Changes:**
110
-
111
118
  - Updated MSAL browser dependency to v5.0.2
112
119
  - Added V5 to MsalModuleVersion enum for version detection
113
120
  - Updated version mapping logic to handle MSAL v5.x (maps to V5)
@@ -194,7 +201,6 @@
194
201
  **🚀 Enhanced features available** - New v4 APIs provide better performance, security, and error handling.
195
202
 
196
203
  ## What You Get
197
-
198
204
  - **Better Security**: Latest MSAL v4 security improvements and vulnerability fixes
199
205
  - **Improved Performance**: Faster token acquisition and caching
200
206
  - **Enhanced Error Handling**: More robust error recovery and retry mechanisms
@@ -239,7 +245,6 @@
239
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.
240
246
 
241
247
  **BREAKING CHANGES:**
242
-
243
248
  - `acquireAccessToken(options: AcquireTokenOptions)` → `acquireAccessToken(options: AcquireTokenOptionsLegacy)`
244
249
  - `acquireToken(options: AcquireTokenOptions)` → `acquireToken(options: AcquireTokenOptionsLegacy)`
245
250
  - `logout(options?: LogoutOptions): Promise<void>` → `logout(options?: LogoutOptions): Promise<boolean>`
@@ -247,7 +252,6 @@
247
252
  - Added `initialize(): Promise<void>` method
248
253
 
249
254
  **New Features:**
250
-
251
255
  - Optional provider-level telemetry for MSAL flows (login, token acquisition, redirect handling)
252
256
  - Emits telemetry events and measurements via injected telemetry provider when available
253
257
  - Includes basic metadata (framework module version, clientId, tenantId) and authentication context
@@ -300,7 +304,6 @@
300
304
  ### Minor Changes
301
305
 
302
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`.
303
-
304
307
  - Added `client` property to IAuthProvider interface
305
308
  - Replaced deprecated `defaultClient` getter with `client` getter
306
309
  - Updated internal references to use private `#client` field
@@ -309,14 +312,12 @@
309
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.
310
313
 
311
314
  **Changes:**
312
-
313
315
  - Removed `create-version-message.ts` and `static.ts` utility files
314
316
  - Modified `resolveVersion()` to collect warnings for version mismatches instead of throwing errors
315
317
  - Simplified `VersionError` class by removing factory methods and type enum references
316
318
  - Updated tests to reflect new warning-based behavior
317
319
 
318
320
  **Breaking Changes:**
319
-
320
321
  - Version resolution now returns warnings for incompatible versions instead of throwing errors
321
322
  - This change is backward compatible as existing code will continue to work, but error handling behavior has changed
322
323
 
@@ -330,7 +331,6 @@
330
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
331
332
 
332
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
333
-
334
334
  - **v4.1.10**: Fixed shape caching issue (#5263) improving validation performance for complex schemas
335
335
  - **v4.1.11**: Maintenance release with general improvements
336
336
 
@@ -348,7 +348,6 @@
348
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.
349
349
 
350
350
  Key changes in source code:
351
-
352
351
  - Updated `AuthClientConfigSchema` and `AuthConfigSchema` for zod v4 compatibility
353
352
  - Enhanced version schema transformation to work with zod v4
354
353
  - Improved validation of client configuration (clientId, tenantId, redirectUri)
@@ -357,7 +356,6 @@
357
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.
358
357
 
359
358
  Links:
360
-
361
359
  - [Zod v4 Migration Guide](https://github.com/colinhacks/zod/releases/tag/v4.0.0)
362
360
  - [Zod v4.1.8 Release Notes](https://github.com/colinhacks/zod/releases/tag/v4.1.8)
363
361
 
@@ -368,7 +366,6 @@
368
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.
369
367
 
370
368
  Fixes: #3375
371
-
372
369
  - Refactored version checking logic into dedicated versioning module
373
370
  - Made version checking more permissive for minor and patch versions
374
371
  - Only major version incompatibilities will block execution
@@ -383,7 +380,6 @@
383
380
  ### Patch Changes
384
381
 
385
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.
386
-
387
383
  - **Complete documentation rewrite** with better structure and organization
388
384
  - **Added comprehensive API reference** with detailed interface documentation
389
385
  - **Enhanced configuration guide** with clear required/optional settings tables
@@ -394,7 +390,6 @@
394
390
  - **Added package description** for better npm package visibility
395
391
 
396
392
  **Key Improvements:**
397
-
398
393
  - Clear separation between required and optional configuration
399
394
  - Comprehensive API reference with TypeScript interfaces
400
395
  - Migration guidance for v4 breaking changes
@@ -415,7 +410,6 @@
415
410
  ### Patch Changes
416
411
 
417
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
418
-
419
413
  - Updated package.json typesVersions.
420
414
  - Ensures backward compatibility with older node versions.
421
415
  - Ensured consistency with workspace and repository configuration.
@@ -481,7 +475,6 @@
481
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.
482
476
 
483
477
  **Highlights:**
484
-
485
478
  - Versioning module, config and provider.
486
479
  - Interfaces for MSAL versions
487
480
  - Proxy provider instances for sub modules.
@@ -489,7 +482,6 @@
489
482
  - Configurator using `BaseConfigBuilder` (aligned with other modules)
490
483
 
491
484
  **BREAKING CHANGES:**
492
-
493
485
  - `configureMsal` has changed parameter signature to `configureMsal(msalConfigurator: MsalConfigurator): void`
494
486
  - Added `enableMsal` with parameter signature to `enableMsal(configurator: IModulesConfigurator, configureMsal: (msalConfigurator: MsalConfigurator) => void): void`
495
487
 
@@ -548,7 +540,6 @@
548
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.
549
541
 
550
542
  Removing the `removeComments` option allows TypeScript to preserve comments in the compiled JavaScript output. This can be beneficial for several reasons:
551
-
552
543
  1. Improved debugging: Preserved comments can help developers understand the code better during debugging sessions.
553
544
  2. Documentation: JSDoc comments and other important code documentation will be retained in the compiled output.
554
545
  3. Source map accuracy: Keeping comments can lead to more accurate source maps, which is crucial for debugging and error tracking.
@@ -674,7 +665,6 @@
674
665
  ### Patch Changes
675
666
 
676
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**
677
-
678
668
  - align all versions of typescript
679
669
  - update types to build
680
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.1';
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"}