@equinor/fusion-framework-module-msal 6.0.4 → 7.0.0-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 +10 -17
- package/dist/esm/version.js +1 -1
- package/dist/esm/version.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +5 -5
- package/src/version.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 7.0.0-next.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#3820](https://github.com/equinor/fusion-framework/pull/3820) [`265bb76`](https://github.com/equinor/fusion-framework/commit/265bb767249989eeb1971e83f3fba94879e0813b) Thanks [@odinr](https://github.com/odinr)! - relase next
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`265bb76`](https://github.com/equinor/fusion-framework/commit/265bb767249989eeb1971e83f3fba94879e0813b), [`d252b0d`](https://github.com/equinor/fusion-framework/commit/d252b0d442b7c8c1b50bf2768cf9ecbbb55a76f8)]:
|
|
10
|
+
- @equinor/fusion-framework-module-telemetry@5.0.0-next.0
|
|
11
|
+
- @equinor/fusion-framework-module@5.0.6-next.0
|
|
12
|
+
|
|
3
13
|
## 6.0.4
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -62,7 +72,6 @@
|
|
|
62
72
|
**🚀 Enhanced features available** - New v4 APIs provide better performance, security, and error handling.
|
|
63
73
|
|
|
64
74
|
## What You Get
|
|
65
|
-
|
|
66
75
|
- **Better Security**: Latest MSAL v4 security improvements and vulnerability fixes
|
|
67
76
|
- **Improved Performance**: Faster token acquisition and caching
|
|
68
77
|
- **Enhanced Error Handling**: More robust error recovery and retry mechanisms
|
|
@@ -107,7 +116,6 @@
|
|
|
107
116
|
- [#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.
|
|
108
117
|
|
|
109
118
|
**BREAKING CHANGES:**
|
|
110
|
-
|
|
111
119
|
- `acquireAccessToken(options: AcquireTokenOptions)` → `acquireAccessToken(options: AcquireTokenOptionsLegacy)`
|
|
112
120
|
- `acquireToken(options: AcquireTokenOptions)` → `acquireToken(options: AcquireTokenOptionsLegacy)`
|
|
113
121
|
- `logout(options?: LogoutOptions): Promise<void>` → `logout(options?: LogoutOptions): Promise<boolean>`
|
|
@@ -115,7 +123,6 @@
|
|
|
115
123
|
- Added `initialize(): Promise<void>` method
|
|
116
124
|
|
|
117
125
|
**New Features:**
|
|
118
|
-
|
|
119
126
|
- Optional provider-level telemetry for MSAL flows (login, token acquisition, redirect handling)
|
|
120
127
|
- Emits telemetry events and measurements via injected telemetry provider when available
|
|
121
128
|
- Includes basic metadata (framework module version, clientId, tenantId) and authentication context
|
|
@@ -168,7 +175,6 @@
|
|
|
168
175
|
### Minor Changes
|
|
169
176
|
|
|
170
177
|
- [#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`.
|
|
171
|
-
|
|
172
178
|
- Added `client` property to IAuthProvider interface
|
|
173
179
|
- Replaced deprecated `defaultClient` getter with `client` getter
|
|
174
180
|
- Updated internal references to use private `#client` field
|
|
@@ -177,14 +183,12 @@
|
|
|
177
183
|
- [#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.
|
|
178
184
|
|
|
179
185
|
**Changes:**
|
|
180
|
-
|
|
181
186
|
- Removed `create-version-message.ts` and `static.ts` utility files
|
|
182
187
|
- Modified `resolveVersion()` to collect warnings for version mismatches instead of throwing errors
|
|
183
188
|
- Simplified `VersionError` class by removing factory methods and type enum references
|
|
184
189
|
- Updated tests to reflect new warning-based behavior
|
|
185
190
|
|
|
186
191
|
**Breaking Changes:**
|
|
187
|
-
|
|
188
192
|
- Version resolution now returns warnings for incompatible versions instead of throwing errors
|
|
189
193
|
- This change is backward compatible as existing code will continue to work, but error handling behavior has changed
|
|
190
194
|
|
|
@@ -198,7 +202,6 @@
|
|
|
198
202
|
- [#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
|
|
199
203
|
|
|
200
204
|
- [#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
|
|
201
|
-
|
|
202
205
|
- **v4.1.10**: Fixed shape caching issue (#5263) improving validation performance for complex schemas
|
|
203
206
|
- **v4.1.11**: Maintenance release with general improvements
|
|
204
207
|
|
|
@@ -216,7 +219,6 @@
|
|
|
216
219
|
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.
|
|
217
220
|
|
|
218
221
|
Key changes in source code:
|
|
219
|
-
|
|
220
222
|
- Updated `AuthClientConfigSchema` and `AuthConfigSchema` for zod v4 compatibility
|
|
221
223
|
- Enhanced version schema transformation to work with zod v4
|
|
222
224
|
- Improved validation of client configuration (clientId, tenantId, redirectUri)
|
|
@@ -225,7 +227,6 @@
|
|
|
225
227
|
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.
|
|
226
228
|
|
|
227
229
|
Links:
|
|
228
|
-
|
|
229
230
|
- [Zod v4 Migration Guide](https://github.com/colinhacks/zod/releases/tag/v4.0.0)
|
|
230
231
|
- [Zod v4.1.8 Release Notes](https://github.com/colinhacks/zod/releases/tag/v4.1.8)
|
|
231
232
|
|
|
@@ -236,7 +237,6 @@
|
|
|
236
237
|
- [#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.
|
|
237
238
|
|
|
238
239
|
Fixes: #3375
|
|
239
|
-
|
|
240
240
|
- Refactored version checking logic into dedicated versioning module
|
|
241
241
|
- Made version checking more permissive for minor and patch versions
|
|
242
242
|
- Only major version incompatibilities will block execution
|
|
@@ -251,7 +251,6 @@
|
|
|
251
251
|
### Patch Changes
|
|
252
252
|
|
|
253
253
|
- [#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.
|
|
254
|
-
|
|
255
254
|
- **Complete documentation rewrite** with better structure and organization
|
|
256
255
|
- **Added comprehensive API reference** with detailed interface documentation
|
|
257
256
|
- **Enhanced configuration guide** with clear required/optional settings tables
|
|
@@ -262,7 +261,6 @@
|
|
|
262
261
|
- **Added package description** for better npm package visibility
|
|
263
262
|
|
|
264
263
|
**Key Improvements:**
|
|
265
|
-
|
|
266
264
|
- Clear separation between required and optional configuration
|
|
267
265
|
- Comprehensive API reference with TypeScript interfaces
|
|
268
266
|
- Migration guidance for v4 breaking changes
|
|
@@ -283,7 +281,6 @@
|
|
|
283
281
|
### Patch Changes
|
|
284
282
|
|
|
285
283
|
- [#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
|
|
286
|
-
|
|
287
284
|
- Updated package.json typesVersions.
|
|
288
285
|
- Ensures backward compatibility with older node versions.
|
|
289
286
|
- Ensured consistency with workspace and repository configuration.
|
|
@@ -349,7 +346,6 @@
|
|
|
349
346
|
- [#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.
|
|
350
347
|
|
|
351
348
|
**Highlights:**
|
|
352
|
-
|
|
353
349
|
- Versioning module, config and provider.
|
|
354
350
|
- Interfaces for MSAL versions
|
|
355
351
|
- Proxy provider instances for sub modules.
|
|
@@ -357,7 +353,6 @@
|
|
|
357
353
|
- Configurator using `BaseConfigBuilder` (aligned with other modules)
|
|
358
354
|
|
|
359
355
|
**BREAKING CHANGES:**
|
|
360
|
-
|
|
361
356
|
- `configureMsal` has changed parameter signature to `configureMsal(msalConfigurator: MsalConfigurator): void`
|
|
362
357
|
- Added `enableMsal` with parameter signature to `enableMsal(configurator: IModulesConfigurator, configureMsal: (msalConfigurator: MsalConfigurator) => void): void`
|
|
363
358
|
|
|
@@ -416,7 +411,6 @@
|
|
|
416
411
|
- [#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.
|
|
417
412
|
|
|
418
413
|
Removing the `removeComments` option allows TypeScript to preserve comments in the compiled JavaScript output. This can be beneficial for several reasons:
|
|
419
|
-
|
|
420
414
|
1. Improved debugging: Preserved comments can help developers understand the code better during debugging sessions.
|
|
421
415
|
2. Documentation: JSDoc comments and other important code documentation will be retained in the compiled output.
|
|
422
416
|
3. Source map accuracy: Keeping comments can lead to more accurate source maps, which is crucial for debugging and error tracking.
|
|
@@ -542,7 +536,6 @@
|
|
|
542
536
|
### Patch Changes
|
|
543
537
|
|
|
544
538
|
- [#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**
|
|
545
|
-
|
|
546
539
|
- align all versions of typescript
|
|
547
540
|
- update types to build
|
|
548
541
|
- 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
|
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,cAAc,CAAC"}
|